Class: Google::Apis::PubsubV1::Schema
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1::Schema
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/pubsub_v1/classes.rb,
lib/google/apis/pubsub_v1/representations.rb,
lib/google/apis/pubsub_v1/representations.rb
Overview
A schema resource.
Instance Attribute Summary collapse
-
#definition ⇒ String
The definition of the schema.
-
#name ⇒ String
Required.
-
#revision_create_time ⇒ String
Output only.
-
#revision_id ⇒ String
Output only.
-
#type ⇒ String
The type of the schema definition.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Schema
constructor
A new instance of Schema.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Schema
Returns a new instance of Schema.
1388 1389 1390 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1388 def initialize(**args) update!(**args) end |
Instance Attribute Details
#definition ⇒ String
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
1366 1367 1368 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1366 def definition @definition end |
#name ⇒ String
Required. Name of the schema. Format is projects/project/schemas/schema`.
Corresponds to the JSON propertyname`
1371 1372 1373 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1371 def name @name end |
#revision_create_time ⇒ String
Output only. The timestamp that the revision was created.
Corresponds to the JSON property revisionCreateTime
1376 1377 1378 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1376 def revision_create_time @revision_create_time end |
#revision_id ⇒ String
Output only. Immutable. The revision ID of the schema.
Corresponds to the JSON property revisionId
1381 1382 1383 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1381 def revision_id @revision_id end |
#type ⇒ String
The type of the schema definition.
Corresponds to the JSON property type
1386 1387 1388 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1386 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1393 1394 1395 1396 1397 1398 1399 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 1393 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 |