Reference documentation and code samples for the Google Cloud Memorystore V1 Client class PscAutoConnection.
Details of consumer resources in a PSC connection.
Generated from protobuf message google.cloud.memorystore.v1.PscAutoConnection
Namespace
Google \ Cloud \ Memorystore \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ port
int
Optional. port will only be set for Primary/Reader or Discovery endpoint.
↳ psc_connection_id
string
Output only. The PSC connection id of the forwarding rule connected to the service attachment.
↳ ip_address
string
Output only. The IP allocated on the consumer network for the PSC forwarding rule.
↳ forwarding_rule
string
Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
↳ project_id
string
Required. The consumer project_id where PSC connections are established. This should be the same project_id that the instance is being created in.
↳ network
string
Required. The network where the PSC endpoints are created, in the form of projects/{project_id}/global/networks/{network_id}.
↳ service_attachment
string
Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
↳ psc_connection_status
int
Output only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.
↳ connection_type
int
Output only. Type of the PSC connection.
getPort
Optional. port will only be set for Primary/Reader or Discovery endpoint.
int
hasPort
setPort
Optional. port will only be set for Primary/Reader or Discovery endpoint.
var
int
$this
getPscConnectionId
Output only. The PSC connection id of the forwarding rule connected to the service attachment.
string
setPscConnectionId
Output only. The PSC connection id of the forwarding rule connected to the service attachment.
var
string
$this
getIpAddress
Output only. The IP allocated on the consumer network for the PSC forwarding rule.
string
setIpAddress
Output only. The IP allocated on the consumer network for the PSC forwarding rule.
var
string
$this
getForwardingRule
Output only. The URI of the consumer side forwarding rule.
Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
string
setForwardingRule
Output only. The URI of the consumer side forwarding rule.
Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
var
string
$this
getProjectId
Required. The consumer project_id where PSC connections are established.
This should be the same project_id that the instance is being created in.
string
setProjectId
Required. The consumer project_id where PSC connections are established.
This should be the same project_id that the instance is being created in.
var
string
$this
getNetwork
Required. The network where the PSC endpoints are created, in the form of projects/{project_id}/global/networks/{network_id}.
string
setNetwork
Required. The network where the PSC endpoints are created, in the form of projects/{project_id}/global/networks/{network_id}.
var
string
$this
getServiceAttachment
Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
string
setServiceAttachment
Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
var
string
$this
getPscConnectionStatus
Output only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.
int
setPscConnectionStatus
Output only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.
var
int
$this
getConnectionType
Output only. Type of the PSC connection.
int
setConnectionType
Output only. Type of the PSC connection.
var
int
$this
getPorts
string