# Access Context Manager V1 API - Class Google::Identity::AccessContextManager::V1::ServicePerimeterConfig::ApiOperation (v0.15.0)

0.15.0 (latest) 0.14.1 0.13.1 0.12.0 0.11.0 0.10.1 0.9.0 0.8.2 0.7.2 0.6.0 0.5.2 0.4.0 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the Access Context Manager V1 API class Google::Identity::AccessContextManager::V1::ServicePerimeterConfig::ApiOperation.

Identification for an API Operation.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #method_selectors

    def method_selectors() -> ::Array<::Google::Identity::AccessContextManager::V1::ServicePerimeterConfig::MethodSelector>

**Returns**

- (::Array\<[::Google::Identity::AccessContextManager::V1::ServicePerimeterConfig::MethodSelector](https://docs.cloud.google.com/ruby/docs/reference/google-identity-access_context_manager-v1/latest/Google-Identity-AccessContextManager-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`.

### #method_selectors=

    def method_selectors=(value) -> ::Array<::Google::Identity::AccessContextManager::V1::ServicePerimeterConfig::MethodSelector>

**Parameter**

- **value** (::Array\<[::Google::Identity::AccessContextManager::V1::ServicePerimeterConfig::MethodSelector](https://docs.cloud.google.com/ruby/docs/reference/google-identity-access_context_manager-v1/latest/Google-Identity-AccessContextManager-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`.
**Returns**

- (::Array\<[::Google::Identity::AccessContextManager::V1::ServicePerimeterConfig::MethodSelector](https://docs.cloud.google.com/ruby/docs/reference/google-identity-access_context_manager-v1/latest/Google-Identity-AccessContextManager-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`.

### #service_name

    def service_name() -> ::String

**Returns**

- (::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.

### #service_name=

    def service_name=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.