class Google::Apis::PubsubV1::Schema
A schema resource.
Attributes
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]
Required. Name of the schema. Format is `projects/`project`/schemas/`schema“. Corresponds to the JSON property `name` @return [String]
Output only. The timestamp that the revision was created. Corresponds to the JSON property `revisionCreateTime` @return [String]
Output only. Immutable. The revision ID of the schema. Corresponds to the JSON property `revisionId` @return [String]
The type of the schema definition. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File lib/google/apis/pubsub_v1/classes.rb, line 1030 def initialize(**args) update!(**args) end
Public Instance Methods
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