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

An allowed method or permission of a service specified in [ApiOperation](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.ApiOperation).

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ method` | `string` Value for `method` should be a valid method name for the corresponding `service_name` in \[ApiOperation\] \[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation\]. If `*` used as value for `method`, then ALL methods and permissions are allowed. |
| `↳ permission` | `string` Value for `permission` should be a valid Cloud IAM permission for the corresponding `service_name` in \[ApiOperation\] \[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation\]. |

### getMethod

Value for `method` should be a valid method name for the corresponding
`service_name` in [ApiOperation](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.ApiOperation).

If `*` used as value for `method`, then ALL methods and permissions are
allowed.

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

### hasMethod

### setMethod

Value for `method` should be a valid method name for the corresponding
`service_name` in [ApiOperation](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.ApiOperation).

If `*` used as value for `method`, then ALL methods and permissions are
allowed.

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

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

### getPermission

Value for `permission` should be a valid Cloud IAM permission for the
corresponding `service_name` in [ApiOperation](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.ApiOperation).

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

### hasPermission

### setPermission

Value for `permission` should be a valid Cloud IAM permission for the
corresponding `service_name` in [ApiOperation](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.ServicePerimeterConfig.ApiOperation).

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

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

### getKind

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