0.16.0 (latest) 0.15.0 0.14.0 0.13.3 0.12.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.2 0.5.1 0.4.2 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Memorystore V1 Client class SelfManagedSource.

Details of the self-managed source instance.

Generated from protobuf message `google.cloud.memorystore.v1.SelfManagedSource`

## Namespace

Google \\ Cloud \\ Memorystore \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ ip_address` | `string` Required. The IP address of the source instance. This IP address should be a stable IP address that can be accessed by the Memorystore instance throughout the migration process. |
| `↳ port` | `int` Required. The port of the source instance. This port should be a stable port that can be accessed by the Memorystore instance throughout the migration process. |
| `↳ network_attachment` | `string` Required. The resource name of the Private Service Connect Network Attachment used to establish connectivity to the source instance. This network attachment has the following requirements: 1. It must be in the same project as the Memorystore instance. 2. It must be in the same region as the Memorystore instance. 3. The subnet attached to the network attachment must be in the same VPC network as the source instance nodes. Format: projects/{project}/regions/{region}/networkAttachments/{network_attachment} |

### getIpAddress

Required. The IP address of the source instance.

This IP address should be a stable IP address that can be accessed by the
Memorystore instance throughout the migration process.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setIpAddress

Required. The IP address of the source instance.

This IP address should be a stable IP address that can be accessed by the
Memorystore instance throughout the migration process.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPort

Required. The port of the source instance.

This port should be a stable port that can be accessed by the Memorystore
instance throughout the migration process.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setPort

Required. The port of the source instance.

This port should be a stable port that can be accessed by the Memorystore
instance throughout the migration process.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNetworkAttachment

Required. The resource name of the Private Service Connect Network
Attachment used to establish connectivity to the source instance. This
network attachment has the following requirements:

1. It must be in the same project as the Memorystore instance.

2. It must be in the same region as the Memorystore instance.

3. The subnet attached to the network attachment must be in the same VPC network as the source instance nodes. Format: projects/{project}/regions/{region}/networkAttachments/{network_attachment}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setNetworkAttachment

Required. The resource name of the Private Service Connect Network
Attachment used to establish connectivity to the source instance. This
network attachment has the following requirements:

1. It must be in the same project as the Memorystore instance.

2. It must be in the same region as the Memorystore instance.

3. The subnet attached to the network attachment must be in the same VPC network as the source instance nodes. Format: projects/{project}/regions/{region}/networkAttachments/{network_attachment}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |