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 ApiOperation.

Identification for an API Operation.

Generated from protobuf message `google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation`

## Namespace

Google \\ Identity \\ AccessContextManager \\ V1 \\ ServicePerimeterConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ service_name` | `string` The name of the API whose methods or permissions the \[IngressPolicy\] \[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy\] or \[EgressPolicy\] \[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy\] want to allow. A single \[ApiOperation\] \[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation\] with `service_name` field set to `*` will allow all methods AND permissions for all services. |
| `↳ method_selectors` | `array<https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.MethodSelector>` API methods or permissions to allow. Method or permission must belong to the service specified by `service_name` field. A single \[MethodSelector\] \[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector\] entry with `*` specified for the `method` field will allow all methods AND permissions for the service specified in `service_name`. |

### getServiceName

The name of the API whose methods or permissions the [IngressPolicy](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressPolicy)
or [EgressPolicy](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.EgressPolicy)
want to allow. A single [ApiOperation](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.ApiOperation)
with `service_name` field set to `*` will allow all methods AND
permissions for all services.

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

### setServiceName

The name of the API whose methods or permissions the [IngressPolicy](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.IngressPolicy)
or [EgressPolicy](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.EgressPolicy)
want to allow. A single [ApiOperation](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.ApiOperation)
with `service_name` field set to `*` will allow all methods AND
permissions for all services.

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

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

### getMethodSelectors

API methods or permissions to allow. Method or permission must belong to
the service specified by `service_name` field. A single [MethodSelector](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.MethodSelector)
entry with `*` specified for the `method` field will allow all methods
AND permissions for the service specified in `service_name`.

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

### setMethodSelectors

API methods or permissions to allow. Method or permission must belong to
the service specified by `service_name` field. A single [MethodSelector](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.MethodSelector)
entry with `*` specified for the `method` field will allow all methods
AND permissions for the service specified in `service_name`.

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

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