Class: Google::Apis::ApphubV1::ExtendedMetadataSchema
- Inherits:
-
Object
- Object
- Google::Apis::ApphubV1::ExtendedMetadataSchema
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apphub_v1/classes.rb,
lib/google/apis/apphub_v1/representations.rb,
lib/google/apis/apphub_v1/representations.rb
Overview
ExtendedMetadataSchema represents a schema for extended metadata of a service or workload.
Instance Attribute Summary collapse
-
#json_schema ⇒ String
Output only.
-
#name ⇒ String
Identifier.
-
#schema_version ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExtendedMetadataSchema
constructor
A new instance of ExtendedMetadataSchema.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExtendedMetadataSchema
Returns a new instance of ExtendedMetadataSchema.
640 641 642 |
# File 'lib/google/apis/apphub_v1/classes.rb', line 640 def initialize(**args) update!(**args) end |
Instance Attribute Details
#json_schema ⇒ String
Output only. The JSON schema as a string.
Corresponds to the JSON property jsonSchema
626 627 628 |
# File 'lib/google/apis/apphub_v1/classes.rb', line 626 def json_schema @json_schema end |
#name ⇒ String
Identifier. Resource name of the schema. Format: projects//locations//
extendedMetadataSchemas/
Corresponds to the JSON property name
632 633 634 |
# File 'lib/google/apis/apphub_v1/classes.rb', line 632 def name @name end |
#schema_version ⇒ Fixnum
Output only. The version of the schema. New versions are required to be
backwards compatible.
Corresponds to the JSON property schemaVersion
638 639 640 |
# File 'lib/google/apis/apphub_v1/classes.rb', line 638 def schema_version @schema_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
645 646 647 648 649 |
# File 'lib/google/apis/apphub_v1/classes.rb', line 645 def update!(**args) @json_schema = args[:json_schema] if args.key?(:json_schema) @name = args[:name] if args.key?(:name) @schema_version = args[:schema_version] if args.key?(:schema_version) end |