Service Client: Google::Cloud::Redis::V1::CloudRedis::CloudRedisClient

Client stub representing the remote CloudRedis gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to redis.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Redis::V1::CloudRedis - Compiled Protocol Buffers messages for google/cloud/redis/v1/cloud_redis.proto

SYNOPSIS

use Google::Cloud::Redis::V1::CloudRedis;

my $msg = Google::Cloud::Redis::V1::CloudRedis::NodeInfo->new({
    id => $id,
    zone => $zone,
});

# Read or update a field
my $val = $msg->id();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Redis::V1::CloudRedis::NodeInfo->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/redis/v1/cloud_redis.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Redis::V1::CloudRedis::NodeInfo

Node specific properties.

Inherits from Protobuf::Message.

Accessors

  • $msg->id() / $msg->id($value)

    Type: String

    Output only. Node identifying string. e.g. 'node-0', 'node-1'

  • $msg->zone() / $msg->zone($value)

    Type: String

    Output only. Location of the node.

Google::Cloud::Redis::V1::CloudRedis::Instance

A Memorystore for Redis instance.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}`

    Note: Redis instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to [location_id][google.cloud.redis.v1.Instance.location_id] and [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] fields for more details.

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    An arbitrary and optional user-provided name for the instance.

  • $msg->labels() / $msg->labels($value)

    Type: Message (Google::Cloud::Redis::V1::CloudRedis::Instance::LabelsEntry)

    Resource labels to represent user provided metadata

  • $msg->location_id() / $msg->location_id($value)

    Type: String

    Optional. The zone where the instance will be provisioned. If not provided, the service will choose a zone from the specified region for the instance. For standard tier, additional nodes will be added across multiple zones for protection against zonal failures. If specified, at least one node will be provisioned in this zone.

  • $msg->alternative_location_id() / $msg->alternative_location_id($value)

    Type: String

    Optional. If specified, at least one node will be provisioned in this zone in addition to the zone specified in location_id. Only applicable to standard tier. If provided, it must be a different zone from the one provided in [location_id]. Additional nodes beyond the first 2 will be placed in zones selected by the service.

  • $msg->redis_version() / $msg->redis_version($value)

    Type: String

    Optional. The version of Redis software. If not provided, latest supported version will be used. Currently, the supported values are:

    *   `REDIS_3_2` for Redis 3.2 compatibility
    *   `REDIS_4_0` for Redis 4.0 compatibility (default)
    *   `REDIS_5_0` for Redis 5.0 compatibility
    *   `REDIS_6_X` for Redis 6.x compatibility
  • $msg->reserved_ip_range() / $msg->reserved_ip_range($value)

    Type: String

    Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses that are reserved for this instance. Range must be unique and non-overlapping with existing subnets in an authorized network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP address ranges associated with this private service access connection. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. For READ_REPLICAS_ENABLED the default block size is /28.

  • $msg->secondary_ip_range() / $msg->secondary_ip_range($value)

    Type: String

    Optional. Additional IP range for node placement. Required when enabling read replicas on an existing instance. For DIRECT_PEERING mode value must be a CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode value must be the name of an allocated address range associated with the private service access connection, or "auto".

  • $msg->host() / $msg->host($value)

    Type: String

    Output only. Hostname or IP address of the exposed Redis endpoint used by clients to connect to the service.

  • $msg->port() / $msg->port($value)

    Type: Int32

    Output only. The port number of the exposed Redis endpoint.

  • $msg->current_location_id() / $msg->current_location_id($value)

    Type: String

    Output only. The current zone where the Redis primary node is located. In basic tier, this will always be the same as [location_id]. In standard tier, this can be the zone of any node in the instance.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the instance was created.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Redis::V1::Instance::State)

    Output only. The current state of this instance.

  • $msg->status_message() / $msg->status_message($value)

    Type: String

    Output only. Additional information about the current status of this instance, if available.

  • $msg->redis_configs() / $msg->redis_configs($value)

    Type: Message (Google::Cloud::Redis::V1::CloudRedis::Instance::RedisConfigsEntry)

    Optional. Redis configuration parameters, according to http://redis.io/topics/config. Currently, the only supported parameters are:

    Redis version 3.2 and newer:
    
    *   maxmemory-policy
    *   notify-keyspace-events
    
    Redis version 4.0 and newer:
    
    *   activedefrag
    *   lfu-decay-time
    *   lfu-log-factor
    *   maxmemory-gb
    
    Redis version 5.0 and newer:
    
    *   stream-node-max-bytes
    *   stream-node-max-entries
  • $msg->tier() / $msg->tier($value)

    Type: Enum (Google::Cloud::Redis::V1::Instance::Tier)

    Required. The service tier of the instance.

  • $msg->memory_size_gb() / $msg->memory_size_gb($value)

    Type: Int32

    Required. Redis memory size in GiB.

  • $msg->authorized_network() / $msg->authorized_network($value)

    Type: String

    Optional. The full name of the Google Compute Engine [network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected. If left unspecified, the `default` network will be used.

  • $msg->persistence_iam_identity() / $msg->persistence_iam_identity($value)

    Type: String

    Output only. Cloud IAM identity used by import / export operations to transfer data to/from Cloud Storage. Format is "serviceAccount:<service_account_email>". The value may change over time for a given instance so should be checked before each import/export operation.

  • $msg->connect_mode() / $msg->connect_mode($value)

    Type: Enum (Google::Cloud::Redis::V1::Instance::ConnectMode)

    Optional. The network connect mode of the Redis instance. If not provided, the connect mode defaults to DIRECT_PEERING.

  • $msg->auth_enabled() / $msg->auth_enabled($value)

    Type: Bool

    Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to "true" AUTH is enabled on the instance. Default value is "false" meaning AUTH is disabled.

  • $msg->server_ca_certs() / $msg->server_ca_certs($value)

    Type: Message (Google::Cloud::Redis::V1::CloudRedis::TlsCertificate)

    Output only. List of server CA certificates for the instance.

  • $msg->transit_encryption_mode() / $msg->transit_encryption_mode($value)

    Type: Enum (Google::Cloud::Redis::V1::Instance::TransitEncryptionMode)

    Optional. The TLS mode of the Redis instance. If not provided, TLS is disabled for the instance.

  • $msg->maintenance_policy() / $msg->maintenance_policy($value)

    Type: Message (Google::Cloud::Redis::V1::CloudRedis::MaintenancePolicy)

    Optional. The maintenance policy for the instance. If not provided, maintenance events can be performed at any time.

  • $msg->maintenance_schedule() / $msg->maintenance_schedule($value)

    Type: Message (Google::Cloud::Redis::V1::CloudRedis::MaintenanceSchedule)

    Output only. Date and time of upcoming maintenance events which have been scheduled.

  • $msg->replica_count() / $msg->replica_count($value)

    Type: Int32

    Optional. The number of replica nodes. The valid range for the Standard Tier with read replicas enabled is [1-5] and defaults to 2. If read replicas are not enabled for a Standard Tier instance, the only valid value is 1 and the default is 1. The valid value for basic tier is 0 and the default is also 0.

  • $msg->nodes() / $msg->nodes($value)

    Type: Message (Google::Cloud::Redis::V1::CloudRedis::NodeInfo)

    Output only. Info per node.

  • $msg->read_endpoint() / $msg->read_endpoint($value)

    Type: String

    Output only. Hostname or IP address of the exposed readonly Redis endpoint. Standard tier only. Targets all healthy replica nodes in instance. Replication is asynchronous and replica nodes will exhibit some lag behind the primary. Write requests must target 'host'.

  • $msg->read_endpoint_port() / $msg->read_endpoint_port($value)

    Type: Int32

    Output only. The port number of the exposed readonly redis endpoint. Standard tier only. Write requests should target 'port'.

  • $msg->read_replicas_mode() / $msg->read_replicas_mode($value)

    Type: Enum (Google::Cloud::Redis::V1::Instance::ReadReplicasMode)

    Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.

  • $msg->customer_managed_key() / $msg->customer_managed_key($value)

    Type: String

    Optional. The KMS key reference that the customer provides when trying to create the instance.

  • $msg->persistence_config() / $msg->persistence_config($value)

    Type: Message (Google::Cloud::Redis::V1::CloudRedis::PersistenceConfig)

    Optional. Persistence configuration parameters

  • $msg->suspension_reasons() / $msg->suspension_reasons($value)

    Type: Enum (Google::Cloud::Redis::V1::Instance::SuspensionReason)

    Optional. reasons that causes instance in "SUSPENDED" state.

  • $msg->maintenance_version() / $msg->maintenance_version($value)

    Type: String

    Optional. The self service update maintenance version. The version is date based such as "20210712_00_00".

  • $msg->available_maintenance_versions() / $msg->available_maintenance_versions($value)

    Type: String

    Optional. The available maintenance versions that an instance could update to.

Enum: Instance::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • READY => 2

  • UPDATING => 3

  • DELETING => 4

  • REPAIRING => 5

  • MAINTENANCE => 6

  • IMPORTING => 8

  • FAILING_OVER => 9

Enum: Instance::Tier

  • TIER_UNSPECIFIED => 0

  • BASIC => 1

  • STANDARD_HA => 3

Enum: Instance::ConnectMode

  • CONNECT_MODE_UNSPECIFIED => 0

  • DIRECT_PEERING => 1

  • PRIVATE_SERVICE_ACCESS => 2

Enum: Instance::TransitEncryptionMode

  • TRANSIT_ENCRYPTION_MODE_UNSPECIFIED => 0

  • SERVER_AUTHENTICATION => 1

  • DISABLED => 2

Enum: Instance::ReadReplicasMode

  • READ_REPLICAS_MODE_UNSPECIFIED => 0

  • READ_REPLICAS_DISABLED => 1

  • READ_REPLICAS_ENABLED => 2

Enum: Instance::SuspensionReason

  • SUSPENSION_REASON_UNSPECIFIED => 0

  • CUSTOMER_MANAGED_KEY_ISSUE => 1

Google::Cloud::Redis::V1::CloudRedis::PersistenceConfig

Configuration of the persistence functionality.

Inherits from Protobuf::Message.

Accessors

  • $msg->persistence_mode() / $msg->persistence_mode($value)

    Type: Enum (Google::Cloud::Redis::V1::PersistenceConfig::PersistenceMode)

    Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used.

  • $msg->rdb_snapshot_period() / $msg->rdb_snapshot_period($value)

    Type: Enum (Google::Cloud::Redis::V1::PersistenceConfig::SnapshotPeriod)

    Optional. Period between RDB snapshots. Snapshots will be attempted every period starting from the provided snapshot start time. For example, a start time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45, and 00:45 the next day, and so on. If not provided, TWENTY_FOUR_HOURS will be used as default.

  • $msg->rdb_next_snapshot_time() / $msg->rdb_next_snapshot_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The next time that a snapshot attempt is scheduled to occur.

  • $msg->rdb_snapshot_start_time() / $msg->rdb_snapshot_start_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Optional. Date and time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.

Enum: PersistenceConfig::PersistenceMode

  • PERSISTENCE_MODE_UNSPECIFIED => 0

  • DISABLED => 1

  • RDB => 2

Enum: PersistenceConfig::SnapshotPeriod

  • SNAPSHOT_PERIOD_UNSPECIFIED => 0

  • ONE_HOUR => 3

  • SIX_HOURS => 4

  • TWELVE_HOURS => 5

  • TWENTY_FOUR_HOURS => 6

Google::Cloud::Redis::V1::CloudRedis::RescheduleMaintenanceRequest

Request for [RescheduleMaintenance][google.cloud.redis.v1.CloudRedis.RescheduleMaintenance].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region.

  • $msg->reschedule_type() / $msg->reschedule_type($value)

    Type: Enum (Google::Cloud::Redis::V1::RescheduleMaintenanceRequest::RescheduleType)

    Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as well.

  • $msg->schedule_time() / $msg->schedule_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Optional. Timestamp when the maintenance shall be rescheduled to if reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`.

Enum: RescheduleMaintenanceRequest::RescheduleType

  • RESCHEDULE_TYPE_UNSPECIFIED => 0

  • IMMEDIATE => 1

  • NEXT_AVAILABLE_WINDOW => 2

  • SPECIFIC_TIME => 3

Google::Cloud::Redis::V1::CloudRedis::MaintenancePolicy

Maintenance policy for an instance.

Inherits from Protobuf::Message.

Accessors

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the policy was created.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the policy was last updated.

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512.

  • $msg->weekly_maintenance_window() / $msg->weekly_maintenance_window($value)

    Type: Message (Google::Cloud::Redis::V1::CloudRedis::WeeklyMaintenanceWindow)

    Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_window is expected to be one.

Google::Cloud::Redis::V1::CloudRedis::WeeklyMaintenanceWindow

Time window in which disruptive maintenance updates occur. Non-disruptive updates can occur inside or outside this window.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Redis::V1::CloudRedis::MaintenanceSchedule

Upcoming maintenance schedule. If no maintenance is scheduled, fields are not populated.

Inherits from Protobuf::Message.

Accessors

  • $msg->start_time() / $msg->start_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The start time of any upcoming scheduled maintenance for this instance.

  • $msg->end_time() / $msg->end_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The end time of any upcoming scheduled maintenance for this instance.

  • $msg->can_reschedule() / $msg->can_reschedule($value)

    Type: Bool

    If the scheduled maintenance can be rescheduled, default is true.

  • $msg->schedule_deadline_time() / $msg->schedule_deadline_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule.

Google::Cloud::Redis::V1::CloudRedis::ListInstancesRequest

Request for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The maximum number of items to return.

    If not specified, a default value of 1000 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's [`next_page_token`][google.cloud.redis.v1.ListInstancesResponse.next_page_token] to determine if there are more instances left to be queried.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    The `next_page_token` value returned from a previous [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances] request, if any.

Google::Cloud::Redis::V1::CloudRedis::ListInstancesResponse

Response for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances].

Inherits from Protobuf::Message.

Accessors

  • $msg->instances() / $msg->instances($value)

    Type: Message (Google::Cloud::Redis::V1::CloudRedis::Instance)

    A list of Redis instances in the project in the specified location, or across all locations.

    If the `location_id` in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder Redis entry is included in the response with the `name` field set to a value of the form `projects/{project_id}/locations/{location_id}/instances/`- and the `status` field set to ERROR and `status_message` field set to "location not available for ListInstances".

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Token to retrieve the next page of results, or empty if there are no more results in the list.

  • $msg->unreachable() / $msg->unreachable($value)

    Type: String

    Locations that could not be reached.

Google::Cloud::Redis::V1::CloudRedis::GetInstanceRequest

Request for [GetInstance][google.cloud.redis.v1.CloudRedis.GetInstance].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region.

Google::Cloud::Redis::V1::CloudRedis::GetInstanceAuthStringRequest

Request for [GetInstanceAuthString][google.cloud.redis.v1.CloudRedis.GetInstanceAuthString].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region.

Google::Cloud::Redis::V1::CloudRedis::InstanceAuthString

Instance AUTH string details.

Inherits from Protobuf::Message.

Accessors

  • $msg->auth_string() / $msg->auth_string($value)

    Type: String

    AUTH string set on the instance.

Google::Cloud::Redis::V1::CloudRedis::CreateInstanceRequest

Request for [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region.

  • $msg->instance_id() / $msg->instance_id($value)

    Type: String

    Required. The logical name of the Redis instance in the customer project with the following restrictions:

    * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-40 characters. * Must end with a number or a letter. * Must be unique within the customer project / location

  • $msg->instance() / $msg->instance($value)

    Type: Message (Google::Cloud::Redis::V1::CloudRedis::Instance)

    Required. A Redis [Instance] resource

Google::Cloud::Redis::V1::CloudRedis::UpdateInstanceRequest

Request for [UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance].

Inherits from Protobuf::Message.

Accessors

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from [Instance][google.cloud.redis.v1.Instance]:

    *   `displayName`
    *   `labels`
    *   `memorySizeGb`
    *   `redisConfig`
    *   `replica_count`
  • $msg->instance() / $msg->instance($value)

    Type: Message (Google::Cloud::Redis::V1::CloudRedis::Instance)

    Required. Update description. Only fields specified in update_mask are updated.

Google::Cloud::Redis::V1::CloudRedis::UpgradeInstanceRequest

Request for [UpgradeInstance][google.cloud.redis.v1.CloudRedis.UpgradeInstance].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region.

  • $msg->redis_version() / $msg->redis_version($value)

    Type: String

    Required. Specifies the target version of Redis software to upgrade to.

Google::Cloud::Redis::V1::CloudRedis::DeleteInstanceRequest

Request for [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region.

Google::Cloud::Redis::V1::CloudRedis::GcsSource

The Cloud Storage location for the input content

Inherits from Protobuf::Message.

Accessors

  • $msg->uri() / $msg->uri($value)

    Type: String

    Required. Source data URI. (e.g. 'gs://my_bucket/my_object').

Google::Cloud::Redis::V1::CloudRedis::InputConfig

The input content

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Redis::V1::CloudRedis::ImportInstanceRequest

Request for [Import][google.cloud.redis.v1.CloudRedis.ImportInstance].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region.

  • $msg->input_config() / $msg->input_config($value)

    Type: Message (Google::Cloud::Redis::V1::CloudRedis::InputConfig)

    Required. Specify data to be imported.

Google::Cloud::Redis::V1::CloudRedis::GcsDestination

The Cloud Storage location for the output content

Inherits from Protobuf::Message.

Accessors

  • $msg->uri() / $msg->uri($value)

    Type: String

    Required. Data destination URI (e.g. 'gs://my_bucket/my_object'). Existing files will be overwritten.

Google::Cloud::Redis::V1::CloudRedis::OutputConfig

The output content

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Redis::V1::CloudRedis::ExportInstanceRequest

Request for [Export][google.cloud.redis.v1.CloudRedis.ExportInstance].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region.

  • $msg->output_config() / $msg->output_config($value)

    Type: Message (Google::Cloud::Redis::V1::CloudRedis::OutputConfig)

    Required. Specify data to be exported.

Google::Cloud::Redis::V1::CloudRedis::FailoverInstanceRequest

Request for [Failover][google.cloud.redis.v1.CloudRedis.FailoverInstance].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. Redis instance resource name using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region.

  • $msg->data_protection_mode() / $msg->data_protection_mode($value)

    Type: Enum (Google::Cloud::Redis::V1::FailoverInstanceRequest::DataProtectionMode)

    Optional. Available data protection modes that the user can choose. If it's unspecified, data protection mode will be LIMITED_DATA_LOSS by default.

Enum: FailoverInstanceRequest::DataProtectionMode

  • DATA_PROTECTION_MODE_UNSPECIFIED => 0

  • LIMITED_DATA_LOSS => 1

  • FORCE_DATA_LOSS => 2

Google::Cloud::Redis::V1::CloudRedis::OperationMetadata

Represents the v1 metadata of the long-running operation.

Inherits from Protobuf::Message.

Accessors

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Creation timestamp.

  • $msg->end_time() / $msg->end_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    End timestamp.

  • $msg->target() / $msg->target($value)

    Type: String

    Operation target.

  • $msg->verb() / $msg->verb($value)

    Type: String

    Operation verb.

  • $msg->status_detail() / $msg->status_detail($value)

    Type: String

    Operation status details.

  • $msg->cancel_requested() / $msg->cancel_requested($value)

    Type: Bool

    Specifies if cancellation was requested for the operation.

  • $msg->api_version() / $msg->api_version($value)

    Type: String

    API version.

Google::Cloud::Redis::V1::CloudRedis::LocationMetadata

This location metadata represents additional configuration options for a given location where a Redis instance may be created. All fields are output only. It is returned as content of the `google.cloud.location.Location.metadata` field.

Inherits from Protobuf::Message.

Accessors

  • $msg->available_zones() / $msg->available_zones($value)

    Type: Message (Google::Cloud::Redis::V1::CloudRedis::LocationMetadata::AvailableZonesEntry)

    Output only. The set of available zones in the location. The map is keyed by the lowercase ID of each zone, as defined by GCE. These keys can be specified in `location_id` or `alternative_location_id` fields when creating a Redis instance.

Google::Cloud::Redis::V1::CloudRedis::ZoneMetadata

Defines specific information for a particular zone. Currently empty and reserved for future use only.

Inherits from Protobuf::Message.

Google::Cloud::Redis::V1::CloudRedis::TlsCertificate

TlsCertificate Resource

Inherits from Protobuf::Message.

Accessors

  • $msg->serial_number() / $msg->serial_number($value)

    Type: String

    Serial number, as extracted from the certificate.

  • $msg->cert() / $msg->cert($value)

    Type: String

    PEM representation.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`.

  • $msg->expire_time() / $msg->expire_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`.

  • $msg->sha1_fingerprint() / $msg->sha1_fingerprint($value)

    Type: String

    Sha1 Fingerprint of the certificate.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Redis::V1::CloudRedis::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.