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]

revision_create_time[RW]

Output only. The timestamp that the revision was created. Corresponds to the JSON property `revisionCreateTime` @return [String]

revision_id[RW]

Output only. Immutable. The revision ID of the schema. Corresponds to the JSON property `revisionId` @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 1030
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 1035
def update!(**args)
  @definition = args[:definition] if args.key?(:definition)
  @name = args[:name] if args.key?(:name)
  @revision_create_time = args[:revision_create_time] if args.key?(:revision_create_time)
  @revision_id = args[:revision_id] if args.key?(:revision_id)
  @type = args[:type] if args.key?(:type)
end