Memorystore for Memcached V1beta2 Client - Class Instance (1.2.2)

Reference documentation and code samples for the Memorystore for Memcached V1beta2 Client class Instance.

A Memorystore for Memcached instance

Generated from protobuf message google.cloud.memcache.v1beta2.Instance

Namespace

Google \ Cloud \ Memcache \ V1beta2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name 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: 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 field for more details.

↳ display_name string

User provided name for the instance, which is only used for display purposes. Cannot be more than 80 characters.

↳ labels array|Google\Protobuf\Internal\MapField

Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

↳ authorized_network string

The full name of the Google Compute Engine network to which the instance is connected. If left unspecified, the default network will be used.

↳ zones array

Zones 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.

↳ node_count int

Required. Number of nodes in the Memcached instance.

↳ node_config Google\Cloud\Memcache\V1beta2\Instance\NodeConfig

Required. Configuration for Memcached nodes.

↳ memcache_version int

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.

↳ parameters Google\Cloud\Memcache\V1beta2\MemcacheParameters

User defined parameters to apply to the memcached process on each node.

↳ memcache_nodes array<Google\Cloud\Memcache\V1beta2\Instance\Node>

Output only. List of Memcached nodes. Refer to Node message for more details.

↳ create_time Google\Protobuf\Timestamp

Output only. The time the instance was created.

↳ update_time Google\Protobuf\Timestamp

Output only. The time the instance was updated.

↳ state int

Output only. The state of this Memcached instance.

↳ memcache_full_version string

Output 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".

↳ instance_messages array<Google\Cloud\Memcache\V1beta2\Instance\InstanceMessage>

List of messages that describe the current state of the Memcached instance.

↳ discovery_endpoint string

Output only. Endpoint for the Discovery API.

↳ update_available bool

Output only. Returns true if there is an update waiting to be applied

↳ maintenance_policy Google\Cloud\Memcache\V1beta2\MaintenancePolicy

The maintenance policy for the instance. If not provided, the maintenance event will be performed based on Memorystore internal rollout schedule.

↳ maintenance_schedule Google\Cloud\Memcache\V1beta2\MaintenanceSchedule

Output only. Published maintenance schedule.

getName

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: 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 field for more details.

Returns
TypeDescription
string

setName

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: 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 field for more details.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

User provided name for the instance, which is only used for display purposes. Cannot be more than 80 characters.

Returns
TypeDescription
string

setDisplayName

User provided name for the instance, which is only used for display purposes. Cannot be more than 80 characters.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLabels

Resource labels to represent user-provided metadata.

Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Resource labels to represent user-provided metadata.

Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getAuthorizedNetwork

The full name of the Google Compute Engine network to which the instance is connected. If left unspecified, the default network will be used.

Returns
TypeDescription
string

setAuthorizedNetwork

The full name of the Google Compute Engine network to which the instance is connected. If left unspecified, the default network will be used.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getZones

Zones 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.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setZones

Zones 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.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getNodeCount

Required. Number of nodes in the Memcached instance.

Returns
TypeDescription
int

setNodeCount

Required. Number of nodes in the Memcached instance.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getNodeConfig

Required. Configuration for Memcached nodes.

Returns
TypeDescription
Google\Cloud\Memcache\V1beta2\Instance\NodeConfig|null

hasNodeConfig

clearNodeConfig

setNodeConfig

Required. Configuration for Memcached nodes.

Parameter
NameDescription
var Google\Cloud\Memcache\V1beta2\Instance\NodeConfig
Returns
TypeDescription
$this

getMemcacheVersion

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.

Returns
TypeDescription
int

setMemcacheVersion

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.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getParameters

User defined parameters to apply to the memcached process on each node.

Returns
TypeDescription
Google\Cloud\Memcache\V1beta2\MemcacheParameters|null

hasParameters

clearParameters

setParameters

User defined parameters to apply to the memcached process on each node.

Parameter
NameDescription
var Google\Cloud\Memcache\V1beta2\MemcacheParameters
Returns
TypeDescription
$this

getMemcacheNodes

Output only. List of Memcached nodes.

Refer to Node message for more details.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setMemcacheNodes

Output only. List of Memcached nodes.

Refer to Node message for more details.

Parameter
NameDescription
var array<Google\Cloud\Memcache\V1beta2\Instance\Node>
Returns
TypeDescription
$this

getCreateTime

Output only. The time the instance was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time the instance was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. The time the instance was updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The time the instance was updated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getState

Output only. The state of this Memcached instance.

Returns
TypeDescription
int

setState

Output only. The state of this Memcached instance.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMemcacheFullVersion

Output 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".

Returns
TypeDescription
string

setMemcacheFullVersion

Output 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".

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInstanceMessages

List of messages that describe the current state of the Memcached instance.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setInstanceMessages

List of messages that describe the current state of the Memcached instance.

Parameter
NameDescription
var array<Google\Cloud\Memcache\V1beta2\Instance\InstanceMessage>
Returns
TypeDescription
$this

getDiscoveryEndpoint

Output only. Endpoint for the Discovery API.

Returns
TypeDescription
string

setDiscoveryEndpoint

Output only. Endpoint for the Discovery API.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUpdateAvailable

Output only. Returns true if there is an update waiting to be applied

Returns
TypeDescription
bool

setUpdateAvailable

Output only. Returns true if there is an update waiting to be applied

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getMaintenancePolicy

The maintenance policy for the instance. If not provided, the maintenance event will be performed based on Memorystore internal rollout schedule.

Returns
TypeDescription
Google\Cloud\Memcache\V1beta2\MaintenancePolicy|null

hasMaintenancePolicy

clearMaintenancePolicy

setMaintenancePolicy

The maintenance policy for the instance. If not provided, the maintenance event will be performed based on Memorystore internal rollout schedule.

Parameter
NameDescription
var Google\Cloud\Memcache\V1beta2\MaintenancePolicy
Returns
TypeDescription
$this

getMaintenanceSchedule

Output only. Published maintenance schedule.

Returns
TypeDescription
Google\Cloud\Memcache\V1beta2\MaintenanceSchedule|null

hasMaintenanceSchedule

clearMaintenanceSchedule

setMaintenanceSchedule

Output only. Published maintenance schedule.

Parameter
NameDescription
var Google\Cloud\Memcache\V1beta2\MaintenanceSchedule
Returns
TypeDescription
$this