class Google::Apis::PubsubV1::Schema

A schema resource.

Attributes

definition[RW]

The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in `type`. Corresponds to the JSON property `definition` @return [String]

name[RW]

Required. Name of the schema. Format is `projects/`project`/schemas/`schema“. Corresponds to the JSON property `name` @return [String]

type[RW]

The type of the schema definition. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/pubsub_v1/classes.rb, line 948
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/pubsub_v1/classes.rb, line 953
def update!(**args)
  @definition = args[:definition] if args.key?(:definition)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
end