# Google Cloud Net App V1 Client - Class EstablishPeeringRequest (1.12.0)

1.12.0 (latest) 1.11.0 1.10.2 1.9.0 1.8.1 1.7.0 1.6.1 1.4.0 1.3.1 1.2.1 1.1.1 1.0.1 0.3.1 0.2.6 0.1.1 Reference documentation and code samples for the Google Cloud Net App V1 Client class EstablishPeeringRequest.

EstablishPeeringRequest establishes cluster and svm peerings between the
source and the destination replications.

Generated from protobuf message `google.cloud.netapp.v1.EstablishPeeringRequest`

## Namespace

Google \\ Cloud \\ NetApp \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The resource name of the replication, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}. |
| `↳ peer_cluster_name` | `string` Required. Name of the user's local source cluster to be peered with the destination cluster. |
| `↳ peer_svm_name` | `string` Required. Name of the user's local source vserver svm to be peered with the destination vserver svm. |
| `↳ peer_ip_addresses` | `string[]` Optional. List of IPv4 ip addresses to be used for peering. |
| `↳ peer_volume_name` | `string` Required. Name of the user's local source volume to be peered with the destination volume. |

### getName

Required. The resource name of the replication, in the format of
projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}.

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

### setName

Required. The resource name of the replication, in the format of
projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}.

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

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

### getPeerClusterName

Required. Name of the user's local source cluster to be peered with the
destination cluster.

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

### setPeerClusterName

Required. Name of the user's local source cluster to be peered with the
destination cluster.

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

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

### getPeerSvmName

Required. Name of the user's local source vserver svm to be peered with the
destination vserver svm.

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

### setPeerSvmName

Required. Name of the user's local source vserver svm to be peered with the
destination vserver svm.

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

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

### getPeerIpAddresses

Optional. List of IPv4 ip addresses to be used for peering.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setPeerIpAddresses

Optional. List of IPv4 ip addresses to be used for peering.

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

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

### getPeerVolumeName

Required. Name of the user's local source volume to be peered with the
destination volume.

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

### setPeerVolumeName

Required. Name of the user's local source volume to be peered with the
destination volume.

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

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