1.3.0 (latest) 1.2.4 1.1.3 1.0.4 0.5.5 0.4.5 0.3.5 Reference documentation and code samples for the Access Context Manager V1 Client class ReplaceServicePerimetersRequest.

A request to replace all existing Service Perimeters in an Access Policy
with the Service Perimeters provided. This is done atomically.

Generated from protobuf message `google.identity.accesscontextmanager.v1.ReplaceServicePerimetersRequest`

## Namespace

Google \\ Identity \\ AccessContextManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Resource name for the access policy which owns these \[Service Perimeters\] \[google.identity.accesscontextmanager.v1.ServicePerimeter\]. Format: `accessPolicies/{policy_id}` |
| `↳ service_perimeters` | `array<https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeter>` Required. The desired \[Service Perimeters\] \[google.identity.accesscontextmanager.v1.ServicePerimeter\] that should replace all existing \[Service Perimeters\] \[google.identity.accesscontextmanager.v1.ServicePerimeter\] in the \[Access Policy\] \[google.identity.accesscontextmanager.v1.AccessPolicy\]. |
| `↳ etag` | `string` Optional. The etag for the version of the \[Access Policy\] \[google.identity.accesscontextmanager.v1.AccessPolicy\] that this replace operation is to be performed on. If, at the time of replace, the etag for the Access Policy stored in Access Context Manager is different from the specified etag, then the replace operation will not be performed and the call will fail. This field is not required. If etag is not provided, the operation will be performed as if a valid etag is provided. |

### getParent

Required. Resource name for the access policy which owns these
[Service Perimeters](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeter).

Format: `accessPolicies/{policy_id}`

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

### setParent

Required. Resource name for the access policy which owns these
[Service Perimeters](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeter).

Format: `accessPolicies/{policy_id}`

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

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

### getServicePerimeters

Required. The desired [Service Perimeters](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeter) that should
replace all existing [Service Perimeters](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeter) in the
[Access Policy](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessPolicy).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeter>` |   |

### setServicePerimeters

Required. The desired [Service Perimeters](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeter) that should
replace all existing [Service Perimeters](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeter) in the
[Access Policy](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessPolicy).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeter>` |

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

### getEtag

Optional. The etag for the version of the [Access Policy](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessPolicy) that this
replace operation is to be performed on. If, at the time of replace, the
etag for the Access Policy stored in Access Context Manager is different
from the specified etag, then the replace operation will not be performed
and the call will fail. This field is not required. If etag is not
provided, the operation will be performed as if a valid etag is provided.

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

### setEtag

Optional. The etag for the version of the [Access Policy](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessPolicy) that this
replace operation is to be performed on. If, at the time of replace, the
etag for the Access Policy stored in Access Context Manager is different
from the specified etag, then the replace operation will not be performed
and the call will fail. This field is not required. If etag is not
provided, the operation will be performed as if a valid etag is provided.

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

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