Class: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata

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

Common model for database resource instance metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata

Returns a new instance of StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata.



2444
2445
2446
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2444

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

Instance Attribute Details

#availability_configurationGoogle::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration

Configuration for availability of database instance Corresponds to the JSON property availabilityConfiguration



2356
2357
2358
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2356

def availability_configuration
  @availability_configuration
end

#backup_configurationGoogle::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainBackupConfiguration

Configuration for automatic backups Corresponds to the JSON property backupConfiguration



2361
2362
2363
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2361

def backup_configuration
  @backup_configuration
end

#backup_runGoogle::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainBackupRun

A backup run. Corresponds to the JSON property backupRun



2366
2367
2368
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2366

def backup_run
  @backup_run
end

#creation_timeString

The creation time of the resource, i.e. the time when resource is created and recorded in partner service. Corresponds to the JSON property creationTime

Returns:

  • (String)


2372
2373
2374
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2372

def creation_time
  @creation_time
end

#current_stateString

Current state of the instance. Corresponds to the JSON property currentState

Returns:

  • (String)


2377
2378
2379
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2377

def current_state
  @current_state
end

#custom_metadataHash<String,Object>

Any custom metadata associated with the resource (a JSON field) Corresponds to the JSON property customMetadata

Returns:

  • (Hash<String,Object>)


2382
2383
2384
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2382

def 
  @custom_metadata
end

#expected_stateString

The state that the instance is expected to be in. For example, an instance state can transition to UNHEALTHY due to wrong patch update, while the expected state will remain at the HEALTHY. Corresponds to the JSON property expectedState

Returns:

  • (String)


2389
2390
2391
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2389

def expected_state
  @expected_state
end

#idGoogle::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId

DatabaseResourceId will serve as primary key for any resource ingestion event. Corresponds to the JSON property id



2394
2395
2396
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2394

def id
  @id
end

#instance_typeString

The type of the instance. Specified at creation time. Corresponds to the JSON property instanceType

Returns:

  • (String)


2399
2400
2401
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2399

def instance_type
  @instance_type
end

#locationString

The resource location. REQUIRED Corresponds to the JSON property location

Returns:

  • (String)


2404
2405
2406
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2404

def location
  @location
end

#primary_resource_idGoogle::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainDatabaseResourceId

DatabaseResourceId will serve as primary key for any resource ingestion event. Corresponds to the JSON property primaryResourceId



2409
2410
2411
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2409

def primary_resource_id
  @primary_resource_id
end

#productGoogle::Apis::AlloydbV1::StorageDatabasecenterProtoCommonProduct

Product specification for Condor resources. Corresponds to the JSON property product



2414
2415
2416
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2414

def product
  @product
end

#resource_containerString

Closest parent Cloud Resource Manager container of this resource. It must be resource name of a Cloud Resource Manager project with the format of "provider/ /", such as "gcp/projects/123". For GCP provided resources, number should be project number. Corresponds to the JSON property resourceContainer

Returns:

  • (String)


2422
2423
2424
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2422

def resource_container
  @resource_container
end

#resource_nameString

Required. Different from DatabaseResourceId.unique_id, a resource name can be reused over time. That is, after a resource named "ABC" is deleted, the name " ABC" can be used to to create a new resource within the same source. Resource name to follow CAIS resource_name format as noted here go/condor-common- datamodel Corresponds to the JSON property resourceName

Returns:

  • (String)


2431
2432
2433
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2431

def resource_name
  @resource_name
end

#updation_timeString

The time at which the resource was updated and recorded at partner service. Corresponds to the JSON property updationTime

Returns:

  • (String)


2436
2437
2438
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2436

def updation_time
  @updation_time
end

#user_labelsHash<String,String>

User-provided labels, represented as a dictionary where each label is a single key value pair. Corresponds to the JSON property userLabels

Returns:

  • (Hash<String,String>)


2442
2443
2444
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2442

def user_labels
  @user_labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2449

def update!(**args)
  @availability_configuration = args[:availability_configuration] if args.key?(:availability_configuration)
  @backup_configuration = args[:backup_configuration] if args.key?(:backup_configuration)
  @backup_run = args[:backup_run] if args.key?(:backup_run)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @current_state = args[:current_state] if args.key?(:current_state)
  @custom_metadata = args[:custom_metadata] if args.key?(:custom_metadata)
  @expected_state = args[:expected_state] if args.key?(:expected_state)
  @id = args[:id] if args.key?(:id)
  @instance_type = args[:instance_type] if args.key?(:instance_type)
  @location = args[:location] if args.key?(:location)
  @primary_resource_id = args[:primary_resource_id] if args.key?(:primary_resource_id)
  @product = args[:product] if args.key?(:product)
  @resource_container = args[:resource_container] if args.key?(:resource_container)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @updation_time = args[:updation_time] if args.key?(:updation_time)
  @user_labels = args[:user_labels] if args.key?(:user_labels)
end