Service Client: Google::Cloud::Memcache::V1beta2::CloudMemcache::CloudMemcacheClient
Client stub representing the remote CloudMemcache gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to memcache.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Memcache::V1beta2::CloudMemcache - Compiled Protocol Buffers messages for google/cloud/memcache/v1beta2/cloud_memcache.proto
SYNOPSIS
use Google::Cloud::Memcache::V1beta2::CloudMemcache;
my $msg = Google::Cloud::Memcache::V1beta2::CloudMemcache::Instance->new({
name => $name,
display_name => $display_name,
labels => $labels,
authorized_network => $authorized_network,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Memcache::V1beta2::CloudMemcache::Instance->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/memcache/v1beta2/cloud_memcache.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::Memcache::V1beta2::CloudMemcache::Instance
A Memorystore for Memcached instance
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. 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: Memcached instances are managed and addressed at the regional level so `location_id` here refers to a Google Cloud region; however, users may choose which zones Memcached nodes should be provisioned in within an instance. Refer to [zones][google.cloud.memcache.v1beta2.Instance.zones] field for more details.
$msg->display_name()/$msg->display_name($value)Type:
StringUser provided name for the instance, which is only used for display purposes. Cannot be more than 80 characters.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Memcache::V1beta2::CloudMemcache::Instance::LabelsEntry)Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
$msg->authorized_network()/$msg->authorized_network($value)Type:
StringThe 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->zones()/$msg->zones($value)Type:
StringZones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance.
$msg->node_count()/$msg->node_count($value)Type:
Int32Required. Number of nodes in the Memcached instance.
$msg->node_config()/$msg->node_config($value)Type:
Message(Google::Cloud::Memcache::V1beta2::CloudMemcache::Instance::NodeConfig)Required. Configuration for Memcached nodes.
$msg->memcache_version()/$msg->memcache_version($value)Type:
Enum(Google::Cloud::Memcache::V1beta2::MemcacheVersion)The major version of Memcached software. If not provided, latest supported version will be used. Currently the latest supported major version is `MEMCACHE_1_5`. The minor version will be automatically determined by our system based on the latest supported minor version.
$msg->parameters()/$msg->parameters($value)Type:
Message(Google::Cloud::Memcache::V1beta2::CloudMemcache::MemcacheParameters)User defined parameters to apply to the memcached process on each node.
$msg->memcache_nodes()/$msg->memcache_nodes($value)Type:
Message(Google::Cloud::Memcache::V1beta2::CloudMemcache::Instance::Node)Output only. List of Memcached nodes. Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time the instance was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time the instance was updated.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Memcache::V1beta2::Instance::State)Output only. The state of this Memcached instance.
$msg->memcache_full_version()/$msg->memcache_full_version($value)Type:
StringOutput only. The full version of memcached server running on this instance. System automatically determines the full memcached version for an instance based on the input MemcacheVersion. The full version format will be "memcached-1.5.16".
$msg->instance_messages()/$msg->instance_messages($value)Type:
Message(Google::Cloud::Memcache::V1beta2::CloudMemcache::Instance::InstanceMessage)List of messages that describe the current state of the Memcached instance.
$msg->discovery_endpoint()/$msg->discovery_endpoint($value)Type:
StringOutput only. Endpoint for the Discovery API.
$msg->update_available()/$msg->update_available($value)Type:
BoolOutput only. Returns true if there is an update waiting to be applied
$msg->maintenance_policy()/$msg->maintenance_policy($value)Type:
Message(Google::Cloud::Memcache::V1beta2::CloudMemcache::MaintenancePolicy)The maintenance policy for the instance. If not provided, the maintenance event will be performed based on Memorystore internal rollout schedule.
$msg->maintenance_schedule()/$msg->maintenance_schedule($value)Type:
Message(Google::Cloud::Memcache::V1beta2::CloudMemcache::MaintenanceSchedule)Output only. Published maintenance schedule.
Enum: Instance::State
STATE_UNSPECIFIED=>0CREATING=>1READY=>2UPDATING=>3DELETING=>4PERFORMING_MAINTENANCE=>5
Google::Cloud::Memcache::V1beta2::CloudMemcache::MaintenancePolicy
Maintenance policy per 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 updated.
$msg->description()/$msg->description($value)Type:
StringDescription 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::Memcache::V1beta2::CloudMemcache::WeeklyMaintenanceWindow)Required. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_windows is expected to be one.
Google::Cloud::Memcache::V1beta2::CloudMemcache::WeeklyMaintenanceWindow
Time window specified for weekly operations.
Inherits from Protobuf::Message.
Accessors
$msg->day()/$msg->day($value)Type:
Enum(Google::Type::DayOfWeek)Required. Allows to define schedule that runs specified day of the week.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Type::Timeofday::TimeOfDay)Required. Start time of the window in UTC.
$msg->duration()/$msg->duration($value)Type:
Message(Google::Protobuf::Duration::Duration)Required. Duration of the time window.
Google::Cloud::Memcache::V1beta2::CloudMemcache::MaintenanceSchedule
Upcoming maintenance schedule.
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->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::Memcache::V1beta2::CloudMemcache::ListInstancesRequest
Request for [ListInstances][google.cloud.memcache.v1beta2.CloudMemcache.ListInstances].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. 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:
Int32The 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.memcache.v1beta2.ListInstancesResponse.next_page_token] to determine if there are more instances left to be queried.
$msg->page_token()/$msg->page_token($value)Type:
StringThe `next_page_token` value returned from a previous List request, if any.
$msg->filter()/$msg->filter($value)Type:
StringList filter. For example, exclude all Memcached instances with name as my-instance by specifying `"name != my-instance"`.
$msg->order_by()/$msg->order_by($value)Type:
StringSort results. Supported values are "name", "name desc" or "" (unsorted).
Google::Cloud::Memcache::V1beta2::CloudMemcache::ListInstancesResponse
Response for [ListInstances][google.cloud.memcache.v1beta2.CloudMemcache.ListInstances].
Inherits from Protobuf::Message.
Accessors
$msg->resources()/$msg->resources($value)Type:
Message(Google::Cloud::Memcache::V1beta2::CloudMemcache::Instance)A list of Memcached 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.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringToken to retrieve the next page of results, or empty if there are no more results in the list.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations that could not be reached.
Google::Cloud::Memcache::V1beta2::CloudMemcache::GetInstanceRequest
Request for [GetInstance][google.cloud.memcache.v1beta2.CloudMemcache.GetInstance].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Memcached instance resource name in the format: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region
Google::Cloud::Memcache::V1beta2::CloudMemcache::CreateInstanceRequest
Request for [CreateInstance][google.cloud.memcache.v1beta2.CloudMemcache.CreateInstance].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. 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:
StringRequired. The logical name of the Memcached instance in the user 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 user project / location.
If any of the above are not met, the API raises an invalid argument error.
$msg->resource()/$msg->resource($value)Type:
Message(Google::Cloud::Memcache::V1beta2::CloudMemcache::Instance)Required. A Memcached [Instance] resource
Google::Cloud::Memcache::V1beta2::CloudMemcache::UpdateInstanceRequest
Request for [UpdateInstance][google.cloud.memcache.v1beta2.CloudMemcache.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.
* `displayName`$msg->resource()/$msg->resource($value)Type:
Message(Google::Cloud::Memcache::V1beta2::CloudMemcache::Instance)Required. A Memcached [Instance] resource. Only fields specified in update_mask are updated.
Google::Cloud::Memcache::V1beta2::CloudMemcache::DeleteInstanceRequest
Request for [DeleteInstance][google.cloud.memcache.v1beta2.CloudMemcache.DeleteInstance].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Memcached instance resource name in the format: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` refers to a GCP region
Google::Cloud::Memcache::V1beta2::CloudMemcache::RescheduleMaintenanceRequest
Request for [RescheduleMaintenance][google.cloud.memcache.v1beta2.CloudMemcache.RescheduleMaintenance].
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. Memcache 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::Memcache::V1beta2::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)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=>0IMMEDIATE=>1NEXT_AVAILABLE_WINDOW=>2SPECIFIC_TIME=>3
Google::Cloud::Memcache::V1beta2::CloudMemcache::ApplyParametersRequest
Request for [ApplyParameters][google.cloud.memcache.v1beta2.CloudMemcache.ApplyParameters].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the Memcached instance for which parameter group updates should be applied.
$msg->node_ids()/$msg->node_ids($value)Type:
StringNodes to which the instance-level parameter group is applied.
$msg->apply_all()/$msg->apply_all($value)Type:
BoolWhether to apply instance-level parameter group to all nodes. If set to true, users are restricted from specifying individual nodes, and `ApplyParameters` updates all nodes within the instance.
Google::Cloud::Memcache::V1beta2::CloudMemcache::UpdateParametersRequest
Request for [UpdateParameters][google.cloud.memcache.v1beta2.CloudMemcache.UpdateParameters].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the Memcached instance for which the parameters should be updated.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. Mask of fields to update.
$msg->parameters()/$msg->parameters($value)Type:
Message(Google::Cloud::Memcache::V1beta2::CloudMemcache::MemcacheParameters)The parameters to apply to the instance.
Google::Cloud::Memcache::V1beta2::CloudMemcache::ApplySoftwareUpdateRequest
Request for [ApplySoftwareUpdate][google.cloud.memcache.v1beta2.CloudMemcache.ApplySoftwareUpdate].
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. Resource name of the Memcached instance for which software update should be applied.
$msg->node_ids()/$msg->node_ids($value)Type:
StringNodes to which we should apply the update to. Note all the selected nodes are updated in parallel.
$msg->apply_all()/$msg->apply_all($value)Type:
BoolWhether to apply the update to all nodes. If set to true, will explicitly restrict users from specifying any nodes, and apply software update to all nodes (where applicable) within the instance.
Google::Cloud::Memcache::V1beta2::CloudMemcache::MemcacheParameters
Inherits from Protobuf::Message.
Accessors
$msg->id()/$msg->id($value)Type:
StringOutput only. The unique ID associated with this set of parameters. Users can use this id to determine if the parameters associated with the instance differ from the parameters associated with the nodes. A discrepancy between parameter ids can inform users that they may need to take action to apply parameters on nodes.
$msg->params()/$msg->params($value)Type:
Message(Google::Cloud::Memcache::V1beta2::CloudMemcache::MemcacheParameters::ParamsEntry)User defined set of parameters to use in the memcached process.
Google::Cloud::Memcache::V1beta2::CloudMemcache::OperationMetadata
Represents the metadata of a long-running operation.
Inherits from Protobuf::Message.
Accessors
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time when the operation was created.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time when the operation finished running.
$msg->target()/$msg->target($value)Type:
StringOutput only. Server-defined resource path for the target of the operation.
$msg->verb()/$msg->verb($value)Type:
StringOutput only. Name of the verb executed by the operation.
$msg->status_detail()/$msg->status_detail($value)Type:
StringOutput only. Human-readable status of the operation, if any.
$msg->cancel_requested()/$msg->cancel_requested($value)Type:
BoolOutput only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
$msg->api_version()/$msg->api_version($value)Type:
StringOutput only. API version used to start the operation.
Google::Cloud::Memcache::V1beta2::CloudMemcache::LocationMetadata
Metadata for the given [google.cloud.location.Location][google.cloud.location.Location].
Inherits from Protobuf::Message.
Accessors
$msg->available_zones()/$msg->available_zones($value)Type:
Message(Google::Cloud::Memcache::V1beta2::CloudMemcache::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 the `zones` field when creating a Memcached instance.
Google::Cloud::Memcache::V1beta2::CloudMemcache::ZoneMetadata
Inherits from Protobuf::Message.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Memcache::V1beta2::CloudMemcache::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.