Class: Google::Apis::RedisV1beta1::Cluster
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1beta1::Cluster
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/redis_v1beta1/classes.rb,
lib/google/apis/redis_v1beta1/representations.rb,
lib/google/apis/redis_v1beta1/representations.rb
Overview
A cluster instance.
Instance Attribute Summary collapse
-
#authorization_mode ⇒ String
Optional.
-
#automated_backup_config ⇒ Google::Apis::RedisV1beta1::AutomatedBackupConfig
The automated backup config for a cluster.
-
#backup_collection ⇒ String
Optional.
-
#cluster_endpoints ⇒ Array<Google::Apis::RedisV1beta1::ClusterEndpoint>
Optional.
-
#create_time ⇒ String
Output only.
-
#cross_cluster_replication_config ⇒ Google::Apis::RedisV1beta1::CrossClusterReplicationConfig
Cross cluster replication config.
-
#deletion_protection_enabled ⇒ Boolean
(also: #deletion_protection_enabled?)
Optional.
-
#discovery_endpoints ⇒ Array<Google::Apis::RedisV1beta1::DiscoveryEndpoint>
Output only.
-
#encryption_info ⇒ Google::Apis::RedisV1beta1::EncryptionInfo
EncryptionInfo describes the encryption information of a cluster or a backup.
-
#gcs_source ⇒ Google::Apis::RedisV1beta1::GcsBackupSource
Backups stored in Cloud Storage buckets.
-
#kms_key ⇒ String
Optional.
-
#maintenance_policy ⇒ Google::Apis::RedisV1beta1::ClusterMaintenancePolicy
Maintenance policy per cluster.
-
#maintenance_schedule ⇒ Google::Apis::RedisV1beta1::ClusterMaintenanceSchedule
Upcoming maitenance schedule.
-
#managed_backup_source ⇒ Google::Apis::RedisV1beta1::ManagedBackupSource
Backups that generated and managed by memorystore.
-
#name ⇒ String
Required.
-
#node_type ⇒ String
Optional.
-
#persistence_config ⇒ Google::Apis::RedisV1beta1::ClusterPersistenceConfig
Configuration of the persistence functionality.
-
#precise_size_gb ⇒ Float
Output only.
-
#psc_configs ⇒ Array<Google::Apis::RedisV1beta1::PscConfig>
Optional.
-
#psc_connections ⇒ Array<Google::Apis::RedisV1beta1::PscConnection>
Output only.
-
#psc_service_attachments ⇒ Array<Google::Apis::RedisV1beta1::PscServiceAttachment>
Output only.
-
#redis_configs ⇒ Hash<String,String>
Optional.
-
#replica_count ⇒ Fixnum
Optional.
-
#shard_count ⇒ Fixnum
Optional.
-
#size_gb ⇒ Fixnum
Output only.
-
#state ⇒ String
Output only.
-
#state_info ⇒ Google::Apis::RedisV1beta1::StateInfo
Represents additional information about the state of the cluster.
-
#transit_encryption_mode ⇒ String
Optional.
-
#uid ⇒ String
Output only.
-
#zone_distribution_config ⇒ Google::Apis::RedisV1beta1::ZoneDistributionConfig
Zone distribution config for allocation of cluster resources.
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.
626 627 628 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 626 def initialize(**args) update!(**args) end |
Instance Attribute Details
#authorization_mode ⇒ String
Optional. The authorization mode of the Redis cluster. If not provided, auth
feature is disabled for the cluster.
Corresponds to the JSON property authorizationMode
466 467 468 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 466 def @authorization_mode end |
#automated_backup_config ⇒ Google::Apis::RedisV1beta1::AutomatedBackupConfig
The automated backup config for a cluster.
Corresponds to the JSON property automatedBackupConfig
471 472 473 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 471 def automated_backup_config @automated_backup_config end |
#backup_collection ⇒ String
Optional. Output only. The backup collection full resource name. Example:
projects/project/locations/location/backupCollections/collection
Corresponds to the JSON property backupCollection
477 478 479 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 477 def backup_collection @backup_collection end |
#cluster_endpoints ⇒ Array<Google::Apis::RedisV1beta1::ClusterEndpoint>
Optional. A list of cluster enpoints.
Corresponds to the JSON property clusterEndpoints
482 483 484 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 482 def cluster_endpoints @cluster_endpoints end |
#create_time ⇒ String
Output only. The timestamp associated with the cluster creation request.
Corresponds to the JSON property createTime
487 488 489 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 487 def create_time @create_time end |
#cross_cluster_replication_config ⇒ Google::Apis::RedisV1beta1::CrossClusterReplicationConfig
Cross cluster replication config.
Corresponds to the JSON property crossClusterReplicationConfig
492 493 494 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 492 def cross_cluster_replication_config @cross_cluster_replication_config end |
#deletion_protection_enabled ⇒ Boolean Also known as: deletion_protection_enabled?
Optional. The delete operation will fail when the value is set to true.
Corresponds to the JSON property deletionProtectionEnabled
497 498 499 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 497 def deletion_protection_enabled @deletion_protection_enabled end |
#discovery_endpoints ⇒ Array<Google::Apis::RedisV1beta1::DiscoveryEndpoint>
Output only. Endpoints created on each given network, for Redis clients to
connect to the cluster. Currently only one discovery endpoint is supported.
Corresponds to the JSON property discoveryEndpoints
504 505 506 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 504 def discovery_endpoints @discovery_endpoints end |
#encryption_info ⇒ Google::Apis::RedisV1beta1::EncryptionInfo
EncryptionInfo describes the encryption information of a cluster or a backup.
Corresponds to the JSON property encryptionInfo
509 510 511 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 509 def encryption_info @encryption_info end |
#gcs_source ⇒ Google::Apis::RedisV1beta1::GcsBackupSource
Backups stored in Cloud Storage buckets. The Cloud Storage buckets need to be
the same region as the clusters.
Corresponds to the JSON property gcsSource
515 516 517 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 515 def gcs_source @gcs_source end |
#kms_key ⇒ String
Optional. The KMS key used to encrypt the at-rest data of the cluster.
Corresponds to the JSON property kmsKey
520 521 522 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 520 def kms_key @kms_key end |
#maintenance_policy ⇒ Google::Apis::RedisV1beta1::ClusterMaintenancePolicy
Maintenance policy per cluster.
Corresponds to the JSON property maintenancePolicy
525 526 527 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 525 def maintenance_policy @maintenance_policy end |
#maintenance_schedule ⇒ Google::Apis::RedisV1beta1::ClusterMaintenanceSchedule
Upcoming maitenance schedule.
Corresponds to the JSON property maintenanceSchedule
530 531 532 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 530 def maintenance_schedule @maintenance_schedule end |
#managed_backup_source ⇒ Google::Apis::RedisV1beta1::ManagedBackupSource
Backups that generated and managed by memorystore.
Corresponds to the JSON property managedBackupSource
535 536 537 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 535 def managed_backup_source @managed_backup_source end |
#name ⇒ String
Required. Identifier. Unique name of the resource in this scope including
project and location using the form: projects/project_id/locations/
location_id/clusters/cluster_id`
Corresponds to the JSON propertyname`
542 543 544 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 542 def name @name end |
#node_type ⇒ String
Optional. The type of a redis node in the cluster. NodeType determines the
underlying machine-type of a redis node.
Corresponds to the JSON property nodeType
548 549 550 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 548 def node_type @node_type end |
#persistence_config ⇒ Google::Apis::RedisV1beta1::ClusterPersistenceConfig
Configuration of the persistence functionality.
Corresponds to the JSON property persistenceConfig
553 554 555 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 553 def persistence_config @persistence_config end |
#precise_size_gb ⇒ Float
Output only. Precise value of redis memory size in GB for the entire cluster.
Corresponds to the JSON property preciseSizeGb
558 559 560 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 558 def precise_size_gb @precise_size_gb end |
#psc_configs ⇒ Array<Google::Apis::RedisV1beta1::PscConfig>
Optional. Each PscConfig configures the consumer network where IPs will be
designated to the cluster for client access through Private Service Connect
Automation. Currently, only one PscConfig is supported.
Corresponds to the JSON property pscConfigs
565 566 567 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 565 def psc_configs @psc_configs end |
#psc_connections ⇒ Array<Google::Apis::RedisV1beta1::PscConnection>
Output only. The list of PSC connections that are auto-created through service
connectivity automation.
Corresponds to the JSON property pscConnections
571 572 573 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 571 def psc_connections @psc_connections end |
#psc_service_attachments ⇒ Array<Google::Apis::RedisV1beta1::PscServiceAttachment>
Output only. Service attachment details to configure Psc connections
Corresponds to the JSON property pscServiceAttachments
576 577 578 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 576 def @psc_service_attachments end |
#redis_configs ⇒ Hash<String,String>
Optional. Key/Value pairs of customer overrides for mutable Redis Configs
Corresponds to the JSON property redisConfigs
581 582 583 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 581 def redis_configs @redis_configs end |
#replica_count ⇒ Fixnum
Optional. The number of replica nodes per shard.
Corresponds to the JSON property replicaCount
586 587 588 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 586 def replica_count @replica_count end |
#shard_count ⇒ Fixnum
Optional. Number of shards for the Redis cluster.
Corresponds to the JSON property shardCount
591 592 593 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 591 def shard_count @shard_count end |
#size_gb ⇒ Fixnum
Output only. Redis memory size in GB for the entire cluster rounded up to the
next integer.
Corresponds to the JSON property sizeGb
597 598 599 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 597 def size_gb @size_gb end |
#state ⇒ String
Output only. The current state of this cluster. Can be CREATING, READY,
UPDATING, DELETING and SUSPENDED
Corresponds to the JSON property state
603 604 605 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 603 def state @state end |
#state_info ⇒ Google::Apis::RedisV1beta1::StateInfo
Represents additional information about the state of the cluster.
Corresponds to the JSON property stateInfo
608 609 610 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 608 def state_info @state_info end |
#transit_encryption_mode ⇒ String
Optional. The in-transit encryption for the Redis cluster. If not provided,
encryption is disabled for the cluster.
Corresponds to the JSON property transitEncryptionMode
614 615 616 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 614 def transit_encryption_mode @transit_encryption_mode end |
#uid ⇒ String
Output only. System assigned, unique identifier for the cluster.
Corresponds to the JSON property uid
619 620 621 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 619 def uid @uid end |
#zone_distribution_config ⇒ Google::Apis::RedisV1beta1::ZoneDistributionConfig
Zone distribution config for allocation of cluster resources.
Corresponds to the JSON property zoneDistributionConfig
624 625 626 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 624 def zone_distribution_config @zone_distribution_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 631 def update!(**args) @authorization_mode = args[:authorization_mode] if args.key?(:authorization_mode) @automated_backup_config = args[:automated_backup_config] if args.key?(:automated_backup_config) @backup_collection = args[:backup_collection] if args.key?(:backup_collection) @cluster_endpoints = args[:cluster_endpoints] if args.key?(:cluster_endpoints) @create_time = args[:create_time] if args.key?(:create_time) @cross_cluster_replication_config = args[:cross_cluster_replication_config] if args.key?(:cross_cluster_replication_config) @deletion_protection_enabled = args[:deletion_protection_enabled] if args.key?(:deletion_protection_enabled) @discovery_endpoints = args[:discovery_endpoints] if args.key?(:discovery_endpoints) @encryption_info = args[:encryption_info] if args.key?(:encryption_info) @gcs_source = args[:gcs_source] if args.key?(:gcs_source) @kms_key = args[:kms_key] if args.key?(:kms_key) @maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy) @maintenance_schedule = args[:maintenance_schedule] if args.key?(:maintenance_schedule) @managed_backup_source = args[:managed_backup_source] if args.key?(:managed_backup_source) @name = args[:name] if args.key?(:name) @node_type = args[:node_type] if args.key?(:node_type) @persistence_config = args[:persistence_config] if args.key?(:persistence_config) @precise_size_gb = args[:precise_size_gb] if args.key?(:precise_size_gb) @psc_configs = args[:psc_configs] if args.key?(:psc_configs) @psc_connections = args[:psc_connections] if args.key?(:psc_connections) @psc_service_attachments = args[:psc_service_attachments] if args.key?(:psc_service_attachments) @redis_configs = args[:redis_configs] if args.key?(:redis_configs) @replica_count = args[:replica_count] if args.key?(:replica_count) @shard_count = args[:shard_count] if args.key?(:shard_count) @size_gb = args[:size_gb] if args.key?(:size_gb) @state = args[:state] if args.key?(:state) @state_info = args[:state_info] if args.key?(:state_info) @transit_encryption_mode = args[:transit_encryption_mode] if args.key?(:transit_encryption_mode) @uid = args[:uid] if args.key?(:uid) @zone_distribution_config = args[:zone_distribution_config] if args.key?(:zone_distribution_config) end |