Class: Google::Apis::AlloydbV1alpha::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1alpha::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1alpha/classes.rb,
lib/google/apis/alloydb_v1alpha/representations.rb,
lib/google/apis/alloydb_v1alpha/representations.rb
Overview
DatabaseResourceId will serve as primary key for any resource ingestion event.
Instance Attribute Summary collapse
-
#provider ⇒ String
Required.
-
#provider_description ⇒ String
Optional.
-
#resource_type ⇒ String
Required.
-
#unique_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
constructor
A new instance of StorageDatabasecenterPartnerapiV1mainDatabaseResourceId.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
Returns a new instance of StorageDatabasecenterPartnerapiV1mainDatabaseResourceId.
2590 2591 2592 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2590 def initialize(**args) update!(**args) end |
Instance Attribute Details
#provider ⇒ String
Required. Cloud provider name. Ex: GCP/AWS/Azure/OnPrem/SelfManaged
Corresponds to the JSON property provider
2570 2571 2572 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2570 def provider @provider end |
#provider_description ⇒ String
Optional. Needs to be used only when the provider is PROVIDER_OTHER.
Corresponds to the JSON property providerDescription
2575 2576 2577 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2575 def provider_description @provider_description end |
#resource_type ⇒ String
Required. The type of resource this ID is identifying. Ex 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
2582 2583 2584 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2582 def resource_type @resource_type end |
#unique_id ⇒ String
Required. A service-local token that distinguishes this resource from other
resources within the same service.
Corresponds to the JSON property uniqueId
2588 2589 2590 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2588 def unique_id @unique_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2595 2596 2597 2598 2599 2600 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2595 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 |