Class: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1/classes.rb,
lib/google/apis/alloydb_v1/representations.rb,
lib/google/apis/alloydb_v1/representations.rb

Overview

DatabaseResourceId will serve as primary key for any resource ingestion event.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainDatabaseResourceId

Returns a new instance of StorageDatabasecenterPartnerapiV1mainDatabaseResourceId.



2352
2353
2354
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2352

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#providerString

Required. Cloud provider name. Ex: GCP/AWS/Azure/OnPrem/SelfManaged Corresponds to the JSON property provider

Returns:

  • (String)


2331
2332
2333
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2331

def provider
  @provider
end

#provider_descriptionString

Optional. Needs to be used only when the provider is PROVIDER_OTHER. Corresponds to the JSON property providerDescription

Returns:

  • (String)


2336
2337
2338
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2336

def provider_description
  @provider_description
end

#resource_typeString

Required. The type of resource this ID is identifying. Ex redis.googleapis.com/ Instance, redis.googleapis.com/Cluster, alloydb.googleapis.com/Cluster, alloydb.googleapis.com/Instance, spanner.googleapis.com/Instance REQUIRED Please refer go/condor-common-datamodel Corresponds to the JSON property resourceType

Returns:

  • (String)


2344
2345
2346
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2344

def resource_type
  @resource_type
end

#unique_idString

Required. A service-local token that distinguishes this resource from other resources within the same service. Corresponds to the JSON property uniqueId

Returns:

  • (String)


2350
2351
2352
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2350

def unique_id
  @unique_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2357
2358
2359
2360
2361
2362
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2357

def update!(**args)
  @provider = args[:provider] if args.key?(:provider)
  @provider_description = args[:provider_description] if args.key?(:provider_description)
  @resource_type = args[:resource_type] if args.key?(:resource_type)
  @unique_id = args[:unique_id] if args.key?(:unique_id)
end