Class: Google::Apis::ApphubV1::ExtendedMetadataSchema

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_schemaString

Output only. The JSON schema as a string. Corresponds to the JSON property jsonSchema

Returns:

  • (String)


626
627
628
# File 'lib/google/apis/apphub_v1/classes.rb', line 626

def json_schema
  @json_schema
end

#nameString

Identifier. Resource name of the schema. Format: projects//locations// extendedMetadataSchemas/ Corresponds to the JSON property name

Returns:

  • (String)


632
633
634
# File 'lib/google/apis/apphub_v1/classes.rb', line 632

def name
  @name
end

#schema_versionFixnum

Output only. The version of the schema. New versions are required to be backwards compatible. Corresponds to the JSON property schemaVersion

Returns:

  • (Fixnum)


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