Google Cloud Memorystore V1 Client - Class Instance (0.6.0)

Reference documentation and code samples for the Google Cloud Memorystore V1 Client class Instance.

A Memorystore instance.

Generated from protobuf message google.cloud.memorystore.v1.Instance

Namespace

Google \ Cloud \ Memorystore \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ gcs_source
Instance\GcsBackupSource

Optional. Immutable. Backups that stored in Cloud Storage buckets. The Cloud Storage buckets need to be the same region as the instances. Read permission is required to import from the provided Cloud Storage Objects.

↳ managed_backup_source
Instance\ManagedBackupSource

Optional. Immutable. Backups that generated and managed by memorystore service.

↳ name
string

Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}

↳ create_time
Google\Protobuf\Timestamp

Output only. Creation timestamp of the instance.

↳ update_time
Google\Protobuf\Timestamp

Output only. Latest update timestamp of the instance.

↳ labels
array| Google\Protobuf\Internal\MapField

Optional. Labels to represent user-provided metadata.

↳ state
int

Output only. Current state of the instance.

↳ state_info
Instance\StateInfo

Output only. Additional information about the state of the instance.

↳ uid
string

Output only. System assigned, unique identifier for the instance.

↳ replica_count
int

Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.

↳ authorization_mode
int

Optional. Immutable. Authorization mode of the instance.

↳ transit_encryption_mode
int

Optional. Immutable. In-transit encryption mode of the instance.

↳ shard_count
int

Optional. Number of shards for the instance.

↳ discovery_endpoints
array< DiscoveryEndpoint >

Output only. Deprecated: The discovery_endpoints parameter is deprecated. As a result, it will not be populated if the connections are created using endpoints parameter. Instead of this parameter, for discovery, use endpoints.connections.pscConnection and endpoints.connections.pscAutoConnection with connectionType CONNECTION_TYPE_DISCOVERY.

↳ node_type
int

Optional. Machine type for individual nodes of the instance.

↳ persistence_config
PersistenceConfig

Optional. Persistence configuration of the instance.

↳ engine_version
string

Optional. Engine version of the instance.

↳ engine_configs
array| Google\Protobuf\Internal\MapField

Optional. User-provided engine configurations for the instance.

↳ node_config
NodeConfig

Output only. Configuration of individual nodes of the instance.

↳ zone_distribution_config
ZoneDistributionConfig

Optional. Immutable. Zone distribution configuration of the instance for node allocation.

↳ deletion_protection_enabled
bool

Optional. If set to true deletion of the instance will fail.

↳ psc_auto_connections
array< PscAutoConnection >

Optional. Immutable. Deprecated: Use the endpoints.connections.psc_auto_connection value instead.

↳ psc_attachment_details
array< PscAttachmentDetail >

Output only. Service attachment details to configure PSC connections.

↳ endpoints
array< Instance\InstanceEndpoint >

Optional. Endpoints for the instance.

↳ mode
int

Optional. The mode config for the instance.

↳ simulate_maintenance_event
bool

Optional. Input only. Simulate a maintenance event.

↳ ondemand_maintenance
bool

Optional. Input only. Ondemand maintenance for the instance.

↳ satisfies_pzs
bool

Optional. Output only. Reserved for future use.

↳ satisfies_pzi
bool

Optional. Output only. Reserved for future use.

↳ maintenance_policy
MaintenancePolicy

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

↳ maintenance_schedule
MaintenanceSchedule

Output only. Published maintenance schedule.

↳ cross_instance_replication_config
CrossInstanceReplicationConfig

Optional. The config for cross instance replication.

↳ async_instance_endpoints_deletion_enabled
bool

Optional. If true, instance endpoints that are created and registered by customers can be deleted asynchronously. That is, such an instance endpoint can be de-registered before the forwarding rules in the instance endpoint are deleted.

↳ kms_key
string

Optional. The KMS key used to encrypt the at-rest data of the cluster.

↳ encryption_info
EncryptionInfo

Output only. Encryption information of the data at rest of the cluster.

↳ backup_collection
string

Output only. The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}

↳ automated_backup_config
AutomatedBackupConfig

Optional. The automated backup config for the instance.

↳ maintenance_version
string

Optional. This field can be used to trigger self service update to indicate the desired maintenance version. The input to this field can be determined by the available_maintenance_versions field.

↳ effective_maintenance_version
string

Output only. This field represents the actual maintenance version of the instance.

↳ available_maintenance_versions
array

Output only. This field is used to determine the available maintenance versions for the self service update.

↳ allow_fewer_zones_deployment
bool

Optional. Immutable. Deprecated, do not use.

getGcsSource

Optional. Immutable. Backups that stored in Cloud Storage buckets.

The Cloud Storage buckets need to be the same region as the instances. Read permission is required to import from the provided Cloud Storage Objects.

Returns
Type
Description

hasGcsSource

setGcsSource

Optional. Immutable. Backups that stored in Cloud Storage buckets.

The Cloud Storage buckets need to be the same region as the instances. Read permission is required to import from the provided Cloud Storage Objects.

Parameter
Name
Description
Returns
Type
Description
$this

getManagedBackupSource

Optional. Immutable. Backups that generated and managed by memorystore service.

Returns
Type
Description

hasManagedBackupSource

setManagedBackupSource

Optional. Immutable. Backups that generated and managed by memorystore service.

Parameter
Name
Description
Returns
Type
Description
$this

getName

Identifier. Unique name of the instance.

Format: projects/{project}/locations/{location}/instances/{instance}

Returns
Type
Description
string

setName

Identifier. Unique name of the instance.

Format: projects/{project}/locations/{location}/instances/{instance}

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getCreateTime

Output only. Creation timestamp of the instance.

Returns
Type
Description

hasCreateTime

clearCreateTime

setCreateTime

Output only. Creation timestamp of the instance.

Parameter
Name
Description
Returns
Type
Description
$this

getUpdateTime

Output only. Latest update timestamp of the instance.

Returns
Type
Description

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Latest update timestamp of the instance.

Parameter
Name
Description
Returns
Type
Description
$this

getLabels

Optional. Labels to represent user-provided metadata.

Returns
Type
Description

setLabels

Optional. Labels to represent user-provided metadata.

Parameter
Name
Description
Returns
Type
Description
$this

getState

Output only. Current state of the instance.

Returns
Type
Description
int
Enum of type State .

setState

Output only. Current state of the instance.

Parameter
Name
Description
var
int

Enum of type State .

Returns
Type
Description
$this

getStateInfo

Output only. Additional information about the state of the instance.

Returns
Type
Description

hasStateInfo

clearStateInfo

setStateInfo

Output only. Additional information about the state of the instance.

Parameter
Name
Description
Returns
Type
Description
$this

getUid

Output only. System assigned, unique identifier for the instance.

Returns
Type
Description
string

setUid

Output only. System assigned, unique identifier for the instance.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getReplicaCount

Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.

Returns
Type
Description
int

hasReplicaCount

clearReplicaCount

setReplicaCount

Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getAuthorizationMode

Optional. Immutable. Authorization mode of the instance.

Returns
Type
Description
int
Enum of type AuthorizationMode .

setAuthorizationMode

Optional. Immutable. Authorization mode of the instance.

Parameter
Name
Description
var
int

Enum of type AuthorizationMode .

Returns
Type
Description
$this

getTransitEncryptionMode

Optional. Immutable. In-transit encryption mode of the instance.

Returns
Type
Description
int
Enum of type TransitEncryptionMode .

setTransitEncryptionMode

Optional. Immutable. In-transit encryption mode of the instance.

Parameter
Name
Description
var
int

Enum of type TransitEncryptionMode .

Returns
Type
Description
$this

getShardCount

Optional. Number of shards for the instance.

Returns
Type
Description
int

setShardCount

Optional. Number of shards for the instance.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getDiscoveryEndpoints

Output only. Deprecated: The discovery_endpoints parameter is deprecated.

As a result, it will not be populated if the connections are created using endpoints parameter. Instead of this parameter, for discovery, use endpoints.connections.pscConnection and endpoints.connections.pscAutoConnection with connectionType CONNECTION_TYPE_DISCOVERY.

Returns
Type
Description

setDiscoveryEndpoints

Output only. Deprecated: The discovery_endpoints parameter is deprecated.

As a result, it will not be populated if the connections are created using endpoints parameter. Instead of this parameter, for discovery, use endpoints.connections.pscConnection and endpoints.connections.pscAutoConnection with connectionType CONNECTION_TYPE_DISCOVERY.

Parameter
Name
Description
var
Returns
Type
Description
$this

getNodeType

Optional. Machine type for individual nodes of the instance.

Returns
Type
Description
int
Enum of type NodeType .

setNodeType

Optional. Machine type for individual nodes of the instance.

Parameter
Name
Description
var
int

Enum of type NodeType .

Returns
Type
Description
$this

getPersistenceConfig

Optional. Persistence configuration of the instance.

Returns
Type
Description

hasPersistenceConfig

clearPersistenceConfig

setPersistenceConfig

Optional. Persistence configuration of the instance.

Parameter
Name
Description
Returns
Type
Description
$this

getEngineVersion

Optional. Engine version of the instance.

Returns
Type
Description
string

setEngineVersion

Optional. Engine version of the instance.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getEngineConfigs

Optional. User-provided engine configurations for the instance.

Returns
Type
Description

setEngineConfigs

Optional. User-provided engine configurations for the instance.

Parameter
Name
Description
Returns
Type
Description
$this

getNodeConfig

Output only. Configuration of individual nodes of the instance.

Returns
Type
Description
NodeConfig |null

hasNodeConfig

clearNodeConfig

setNodeConfig

Output only. Configuration of individual nodes of the instance.

Parameter
Name
Description
Returns
Type
Description
$this

getZoneDistributionConfig

Optional. Immutable. Zone distribution configuration of the instance for node allocation.

Returns
Type
Description

hasZoneDistributionConfig

clearZoneDistributionConfig

setZoneDistributionConfig

Optional. Immutable. Zone distribution configuration of the instance for node allocation.

Parameter
Name
Description
Returns
Type
Description
$this

getDeletionProtectionEnabled

Optional. If set to true deletion of the instance will fail.

Returns
Type
Description
bool

hasDeletionProtectionEnabled

clearDeletionProtectionEnabled

setDeletionProtectionEnabled

Optional. If set to true deletion of the instance will fail.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getPscAutoConnections

Optional. Immutable. Deprecated: Use the endpoints.connections.psc_auto_connection value instead.

Returns
Type
Description

setPscAutoConnections

Optional. Immutable. Deprecated: Use the endpoints.connections.psc_auto_connection value instead.

Parameter
Name
Description
var
Returns
Type
Description
$this

getPscAttachmentDetails

Output only. Service attachment details to configure PSC connections.

Returns
Type
Description

setPscAttachmentDetails

Output only. Service attachment details to configure PSC connections.

Parameter
Name
Description
var
Returns
Type
Description
$this

getEndpoints

Optional. Endpoints for the instance.

Returns
Type
Description

setEndpoints

Optional. Endpoints for the instance.

Parameter
Name
Description
Returns
Type
Description
$this

getMode

Optional. The mode config for the instance.

Returns
Type
Description
int
Enum of type Mode .

setMode

Optional. The mode config for the instance.

Parameter
Name
Description
var
int

Enum of type Mode .

Returns
Type
Description
$this

getSimulateMaintenanceEvent

Optional. Input only. Simulate a maintenance event.

Returns
Type
Description
bool

hasSimulateMaintenanceEvent

clearSimulateMaintenanceEvent

setSimulateMaintenanceEvent

Optional. Input only. Simulate a maintenance event.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getOndemandMaintenance

Optional. Input only. Ondemand maintenance for the instance.

Returns
Type
Description
bool

hasOndemandMaintenance

clearOndemandMaintenance

setOndemandMaintenance

Optional. Input only. Ondemand maintenance for the instance.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getSatisfiesPzs

Optional. Output only. Reserved for future use.

Returns
Type
Description
bool

hasSatisfiesPzs

clearSatisfiesPzs

setSatisfiesPzs

Optional. Output only. Reserved for future use.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getSatisfiesPzi

Optional. Output only. Reserved for future use.

Returns
Type
Description
bool

hasSatisfiesPzi

clearSatisfiesPzi

setSatisfiesPzi

Optional. Output only. Reserved for future use.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getMaintenancePolicy

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

Returns
Type
Description

hasMaintenancePolicy

clearMaintenancePolicy

setMaintenancePolicy

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

Parameter
Name
Description
Returns
Type
Description
$this

getMaintenanceSchedule

Output only. Published maintenance schedule.

Returns
Type
Description

hasMaintenanceSchedule

clearMaintenanceSchedule

setMaintenanceSchedule

Output only. Published maintenance schedule.

Parameter
Name
Description
Returns
Type
Description
$this

getCrossInstanceReplicationConfig

Optional. The config for cross instance replication.

Returns
Type
Description

hasCrossInstanceReplicationConfig

clearCrossInstanceReplicationConfig

setCrossInstanceReplicationConfig

Optional. The config for cross instance replication.

Parameter
Name
Description
Returns
Type
Description
$this

getAsyncInstanceEndpointsDeletionEnabled

Optional. If true, instance endpoints that are created and registered by customers can be deleted asynchronously. That is, such an instance endpoint can be de-registered before the forwarding rules in the instance endpoint are deleted.

Returns
Type
Description
bool

hasAsyncInstanceEndpointsDeletionEnabled

clearAsyncInstanceEndpointsDeletionEnabled

setAsyncInstanceEndpointsDeletionEnabled

Optional. If true, instance endpoints that are created and registered by customers can be deleted asynchronously. That is, such an instance endpoint can be de-registered before the forwarding rules in the instance endpoint are deleted.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getKmsKey

Optional. The KMS key used to encrypt the at-rest data of the cluster.

Returns
Type
Description
string

hasKmsKey

clearKmsKey

setKmsKey

Optional. The KMS key used to encrypt the at-rest data of the cluster.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getEncryptionInfo

Output only. Encryption information of the data at rest of the cluster.

Returns
Type
Description

hasEncryptionInfo

clearEncryptionInfo

setEncryptionInfo

Output only. Encryption information of the data at rest of the cluster.

Parameter
Name
Description
Returns
Type
Description
$this

getBackupCollection

Output only. The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}

Returns
Type
Description
string

hasBackupCollection

clearBackupCollection

setBackupCollection

Output only. The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getAutomatedBackupConfig

Optional. The automated backup config for the instance.

Returns
Type
Description

hasAutomatedBackupConfig

clearAutomatedBackupConfig

setAutomatedBackupConfig

Optional. The automated backup config for the instance.

Parameter
Name
Description
Returns
Type
Description
$this

getMaintenanceVersion

Optional. This field can be used to trigger self service update to indicate the desired maintenance version. The input to this field can be determined by the available_maintenance_versions field.

Returns
Type
Description
string

hasMaintenanceVersion

clearMaintenanceVersion

setMaintenanceVersion

Optional. This field can be used to trigger self service update to indicate the desired maintenance version. The input to this field can be determined by the available_maintenance_versions field.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getEffectiveMaintenanceVersion

Output only. This field represents the actual maintenance version of the instance.

Returns
Type
Description
string

hasEffectiveMaintenanceVersion

clearEffectiveMaintenanceVersion

setEffectiveMaintenanceVersion

Output only. This field represents the actual maintenance version of the instance.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getAvailableMaintenanceVersions

Output only. This field is used to determine the available maintenance versions for the self service update.

Returns
Type
Description

setAvailableMaintenanceVersions

Output only. This field is used to determine the available maintenance versions for the self service update.

Parameter
Name
Description
var
string[]
Returns
Type
Description
$this

getAllowFewerZonesDeployment

Optional. Immutable. Deprecated, do not use.

Returns
Type
Description
bool

setAllowFewerZonesDeployment

Optional. Immutable. Deprecated, do not use.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getImportSources

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: