Class: Google::Apis::AlloydbV1::Cluster
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1::Cluster
- 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
A cluster is a collection of regional AlloyDB resources. It can include a primary instance and one or more read pool instances. All cluster resources share a storage layer, which scales as needed.
Instance Attribute Summary collapse
-
#annotations ⇒ Hash<String,String>
Annotations to allow client tools to store small amount of arbitrary data.
-
#automated_backup_policy ⇒ Google::Apis::AlloydbV1::AutomatedBackupPolicy
Message describing the user-specified automated backup policy.
-
#backup_source ⇒ Google::Apis::AlloydbV1::BackupSource
Message describing a BackupSource.
-
#cluster_type ⇒ String
Output only.
-
#continuous_backup_config ⇒ Google::Apis::AlloydbV1::ContinuousBackupConfig
ContinuousBackupConfig describes the continuous backups recovery configurations of a cluster.
-
#continuous_backup_info ⇒ Google::Apis::AlloydbV1::ContinuousBackupInfo
ContinuousBackupInfo describes the continuous backup properties of a cluster.
-
#create_time ⇒ String
Output only.
-
#database_version ⇒ String
Optional.
-
#delete_time ⇒ String
Output only.
-
#display_name ⇒ String
User-settable and human-readable display name for the Cluster.
-
#encryption_config ⇒ Google::Apis::AlloydbV1::EncryptionConfig
EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key).
-
#encryption_info ⇒ Google::Apis::AlloydbV1::EncryptionInfo
EncryptionInfo describes the encryption information of a cluster or a backup.
-
#etag ⇒ String
For Resource freshness validation (https://google.aip.dev/154) Corresponds to the JSON property
etag
. -
#initial_user ⇒ Google::Apis::AlloydbV1::UserPassword
The username/password for a database user.
-
#labels ⇒ Hash<String,String>
Labels as key value pairs Corresponds to the JSON property
labels
. -
#migration_source ⇒ Google::Apis::AlloydbV1::MigrationSource
Subset of the source instance configuration that is available when reading the cluster resource.
-
#name ⇒ String
Output only.
-
#network ⇒ String
Required.
-
#network_config ⇒ Google::Apis::AlloydbV1::NetworkConfig
Metadata related to network configuration.
-
#primary_config ⇒ Google::Apis::AlloydbV1::PrimaryConfig
Configuration for the primary cluster.
-
#reconciling ⇒ Boolean
(also: #reconciling?)
Output only.
-
#satisfies_pzs ⇒ Boolean
(also: #satisfies_pzs?)
Output only.
-
#secondary_config ⇒ Google::Apis::AlloydbV1::SecondaryConfig
Configuration information for the secondary cluster.
-
#ssl_config ⇒ Google::Apis::AlloydbV1::SslConfig
SSL configuration.
-
#state ⇒ String
Output only.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Cluster
constructor
A new instance of Cluster.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Cluster
Returns a new instance of Cluster.
538 539 540 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 538 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotations ⇒ Hash<String,String>
Annotations to allow client tools to store small amount of arbitrary data.
This is distinct from labels. https://google.aip.dev/128
Corresponds to the JSON property annotations
376 377 378 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 376 def annotations @annotations end |
#automated_backup_policy ⇒ Google::Apis::AlloydbV1::AutomatedBackupPolicy
Message describing the user-specified automated backup policy. All fields in
the automated backup policy are optional. Defaults for each field are provided
if they are not set.
Corresponds to the JSON property automatedBackupPolicy
383 384 385 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 383 def automated_backup_policy @automated_backup_policy end |
#backup_source ⇒ Google::Apis::AlloydbV1::BackupSource
Message describing a BackupSource.
Corresponds to the JSON property backupSource
388 389 390 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 388 def backup_source @backup_source end |
#cluster_type ⇒ String
Output only. The type of the cluster. This is an output-only field and it's
populated at the Cluster creation time or the Cluster promotion time. The
cluster type is determined by which RPC was used to create the cluster (i.e.
CreateCluster
vs. CreateSecondaryCluster
Corresponds to the JSON property clusterType
396 397 398 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 396 def cluster_type @cluster_type end |
#continuous_backup_config ⇒ Google::Apis::AlloydbV1::ContinuousBackupConfig
ContinuousBackupConfig describes the continuous backups recovery
configurations of a cluster.
Corresponds to the JSON property continuousBackupConfig
402 403 404 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 402 def continuous_backup_config @continuous_backup_config end |
#continuous_backup_info ⇒ Google::Apis::AlloydbV1::ContinuousBackupInfo
ContinuousBackupInfo describes the continuous backup properties of a cluster.
Corresponds to the JSON property continuousBackupInfo
407 408 409 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 407 def continuous_backup_info @continuous_backup_info end |
#create_time ⇒ String
Output only. Create time stamp
Corresponds to the JSON property createTime
412 413 414 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 412 def create_time @create_time end |
#database_version ⇒ String
Optional. The database engine major version. This is an optional field and it
is populated at the Cluster creation time. If a database version is not
supplied at cluster creation time, then a default database version will be
used.
Corresponds to the JSON property databaseVersion
420 421 422 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 420 def database_version @database_version end |
#delete_time ⇒ String
Output only. Delete time stamp
Corresponds to the JSON property deleteTime
425 426 427 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 425 def delete_time @delete_time end |
#display_name ⇒ String
User-settable and human-readable display name for the Cluster.
Corresponds to the JSON property displayName
430 431 432 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 430 def display_name @display_name end |
#encryption_config ⇒ Google::Apis::AlloydbV1::EncryptionConfig
EncryptionConfig describes the encryption config of a cluster or a backup that
is encrypted with a CMEK (customer-managed encryption key).
Corresponds to the JSON property encryptionConfig
436 437 438 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 436 def encryption_config @encryption_config end |
#encryption_info ⇒ Google::Apis::AlloydbV1::EncryptionInfo
EncryptionInfo describes the encryption information of a cluster or a backup.
Corresponds to the JSON property encryptionInfo
441 442 443 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 441 def encryption_info @encryption_info end |
#etag ⇒ String
For Resource freshness validation (https://google.aip.dev/154)
Corresponds to the JSON property etag
446 447 448 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 446 def etag @etag end |
#initial_user ⇒ Google::Apis::AlloydbV1::UserPassword
The username/password for a database user. Used for specifying initial users
at cluster creation time.
Corresponds to the JSON property initialUser
452 453 454 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 452 def initial_user @initial_user end |
#labels ⇒ Hash<String,String>
Labels as key value pairs
Corresponds to the JSON property labels
457 458 459 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 457 def labels @labels end |
#migration_source ⇒ Google::Apis::AlloydbV1::MigrationSource
Subset of the source instance configuration that is available when reading the
cluster resource.
Corresponds to the JSON property migrationSource
463 464 465 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 463 def migration_source @migration_source end |
#name ⇒ String
Output only. The name of the cluster resource with the format: * projects/
project
/locations/region
/clusters/cluster_id
where the cluster ID segment
should satisfy the regex expression [a-z0-9-]+
. For more details see https://
google.aip.dev/122. The prefix of the cluster resource name is the name of the
parent resource: * projects/project
/locations/region
Corresponds to the JSON property name
472 473 474 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 472 def name @name end |
#network ⇒ String
Required. The resource link for the VPC network in which cluster resources are
created and from which they are accessible via Private IP. The network must
belong to the same project as the cluster. It is specified in the form:
projects/
project/global/networks/
network_id`. This is required to create a
cluster. Deprecated, use network_config.network instead.
Corresponds to the JSON property
network`
481 482 483 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 481 def network @network end |
#network_config ⇒ Google::Apis::AlloydbV1::NetworkConfig
Metadata related to network configuration.
Corresponds to the JSON property networkConfig
486 487 488 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 486 def network_config @network_config end |
#primary_config ⇒ Google::Apis::AlloydbV1::PrimaryConfig
Configuration for the primary cluster. It has the list of clusters that are
replicating from this cluster. This should be set if and only if the cluster
is of type PRIMARY.
Corresponds to the JSON property primaryConfig
493 494 495 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 493 def primary_config @primary_config end |
#reconciling ⇒ Boolean Also known as: reconciling?
Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to
true if the current state of Cluster does not match the user's intended state,
and the service is actively updating the resource to reconcile them. This can
happen due to user-triggered updates or system actions like failover or
maintenance.
Corresponds to the JSON property reconciling
502 503 504 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 502 def reconciling @reconciling end |
#satisfies_pzs ⇒ Boolean Also known as: satisfies_pzs?
Output only. Reserved for future use.
Corresponds to the JSON property satisfiesPzs
508 509 510 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 508 def satisfies_pzs @satisfies_pzs end |
#secondary_config ⇒ Google::Apis::AlloydbV1::SecondaryConfig
Configuration information for the secondary cluster. This should be set if and
only if the cluster is of type SECONDARY.
Corresponds to the JSON property secondaryConfig
515 516 517 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 515 def secondary_config @secondary_config end |
#ssl_config ⇒ Google::Apis::AlloydbV1::SslConfig
SSL configuration.
Corresponds to the JSON property sslConfig
520 521 522 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 520 def ssl_config @ssl_config end |
#state ⇒ String
Output only. The current serving state of the cluster.
Corresponds to the JSON property state
525 526 527 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 525 def state @state end |
#uid ⇒ String
Output only. The system-generated UID of the resource. The UID is assigned
when the resource is created, and it is retained until it is deleted.
Corresponds to the JSON property uid
531 532 533 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 531 def uid @uid end |
#update_time ⇒ String
Output only. Update time stamp
Corresponds to the JSON property updateTime
536 537 538 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 536 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 543 def update!(**args) @annotations = args[:annotations] if args.key?(:annotations) @automated_backup_policy = args[:automated_backup_policy] if args.key?(:automated_backup_policy) @backup_source = args[:backup_source] if args.key?(:backup_source) @cluster_type = args[:cluster_type] if args.key?(:cluster_type) @continuous_backup_config = args[:continuous_backup_config] if args.key?(:continuous_backup_config) @continuous_backup_info = args[:continuous_backup_info] if args.key?(:continuous_backup_info) @create_time = args[:create_time] if args.key?(:create_time) @database_version = args[:database_version] if args.key?(:database_version) @delete_time = args[:delete_time] if args.key?(:delete_time) @display_name = args[:display_name] if args.key?(:display_name) @encryption_config = args[:encryption_config] if args.key?(:encryption_config) @encryption_info = args[:encryption_info] if args.key?(:encryption_info) @etag = args[:etag] if args.key?(:etag) @initial_user = args[:initial_user] if args.key?(:initial_user) @labels = args[:labels] if args.key?(:labels) @migration_source = args[:migration_source] if args.key?(:migration_source) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @network_config = args[:network_config] if args.key?(:network_config) @primary_config = args[:primary_config] if args.key?(:primary_config) @reconciling = args[:reconciling] if args.key?(:reconciling) @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs) @secondary_config = args[:secondary_config] if args.key?(:secondary_config) @ssl_config = args[:ssl_config] if args.key?(:ssl_config) @state = args[:state] if args.key?(:state) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) end |