- [JSON representation](https://docs.cloud.google.com/access-context-manager/docs/reference/rest/v1/MethodSelector#SCHEMA_REPRESENTATION)

An allowed method or permission of a service specified in `https://docs.cloud.google.com/access-context-manager/docs/reference/rest/v1/accessPolicies.servicePerimeters#ApiOperation`.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "method": string, "permission": string // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| The API method name or Cloud IAM permission name to allow. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `method` | `string` A valid method name for the corresponding `serviceName` in `https://docs.cloud.google.com/access-context-manager/docs/reference/rest/v1/accessPolicies.servicePerimeters#ApiOperation`. If `*` is used as the value for the `method`, then ALL methods and permissions are allowed. |
| `permission` | `string` A valid Cloud IAM permission for the corresponding `serviceName` in `https://docs.cloud.google.com/access-context-manager/docs/reference/rest/v1/accessPolicies.servicePerimeters#ApiOperation`. |
| End of mutually exclusive fields. ||