# Service Management V1 API - Class Google::Api::Control (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.2 0.11.0 0.10.2 0.9.0 0.8.0 0.7.0 0.6.1 0.5.0 0.4.1 0.3.10 Reference documentation and code samples for the Service Management V1 API class Google::Api::Control.

Selects and configures the service controller used by the service.

Example:

    control:
      environment: servicecontrol.googleapis.com

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #environment

    def environment() -> ::String

**Returns**

- (::String) --- The service controller environment to use. If empty, no control plane features (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com.

### #environment=

    def environment=(value) -> ::String

**Parameter**

- **value** (::String) --- The service controller environment to use. If empty, no control plane features (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com.
**Returns**

- (::String) --- The service controller environment to use. If empty, no control plane features (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com.

### #method_policies

    def method_policies() -> ::Array<::Google::Api::MethodPolicy>

**Returns**

- (::Array\<[::Google::Api::MethodPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_management-v1/latest/Google-Api-MethodPolicy)\>) --- Defines policies applying to the API methods of the service.

### #method_policies=

    def method_policies=(value) -> ::Array<::Google::Api::MethodPolicy>

**Parameter**

- **value** (::Array\<[::Google::Api::MethodPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_management-v1/latest/Google-Api-MethodPolicy)\>) --- Defines policies applying to the API methods of the service.
**Returns**

- (::Array\<[::Google::Api::MethodPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_management-v1/latest/Google-Api-MethodPolicy)\>) --- Defines policies applying to the API methods of the service.