# Service Usage V1 API - Class Google::Cloud::ServiceUsage::V1::ServiceConfig (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.1 0.7.0 0.6.2 0.5.0 0.4.0 0.3.1 0.2.1 0.1.4 Reference documentation and code samples for the Service Usage V1 API class Google::Cloud::ServiceUsage::V1::ServiceConfig.

The configuration of the service.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #apis

    def apis() -> ::Array<::Google::Protobuf::Api>

**Returns**

- (::Array\<[::Google::Protobuf::Api](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Protobuf-Api)\>) --- A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

### #apis=

    def apis=(value) -> ::Array<::Google::Protobuf::Api>

**Parameter**

- **value** (::Array\<[::Google::Protobuf::Api](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Protobuf-Api)\>) --- A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.
**Returns**

- (::Array\<[::Google::Protobuf::Api](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Protobuf-Api)\>) --- A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.

### #authentication

    def authentication() -> ::Google::Api::Authentication

**Returns**

- ([::Google::Api::Authentication](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-Authentication)) --- Auth configuration. Contains only the OAuth rules.

### #authentication=

    def authentication=(value) -> ::Google::Api::Authentication

**Parameter**

- **value** ([::Google::Api::Authentication](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-Authentication)) --- Auth configuration. Contains only the OAuth rules.
**Returns**

- ([::Google::Api::Authentication](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-Authentication)) --- Auth configuration. Contains only the OAuth rules.

### #documentation

    def documentation() -> ::Google::Api::Documentation

**Returns**

- ([::Google::Api::Documentation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-Documentation)) --- Additional API documentation. Contains only the summary and the documentation URL.

### #documentation=

    def documentation=(value) -> ::Google::Api::Documentation

**Parameter**

- **value** ([::Google::Api::Documentation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-Documentation)) --- Additional API documentation. Contains only the summary and the documentation URL.
**Returns**

- ([::Google::Api::Documentation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-Documentation)) --- Additional API documentation. Contains only the summary and the documentation URL.

### #endpoints

    def endpoints() -> ::Array<::Google::Api::Endpoint>

**Returns**

- (::Array\<[::Google::Api::Endpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-Endpoint)\>) --- Configuration for network endpoints. Contains only the names and aliases of the endpoints.

### #endpoints=

    def endpoints=(value) -> ::Array<::Google::Api::Endpoint>

**Parameter**

- **value** (::Array\<[::Google::Api::Endpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-Endpoint)\>) --- Configuration for network endpoints. Contains only the names and aliases of the endpoints.
**Returns**

- (::Array\<[::Google::Api::Endpoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-Endpoint)\>) --- Configuration for network endpoints. Contains only the names and aliases of the endpoints.

### #monitored_resources

    def monitored_resources() -> ::Array<::Google::Api::MonitoredResourceDescriptor>

**Returns**

- (::Array\<[::Google::Api::MonitoredResourceDescriptor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-MonitoredResourceDescriptor)\>) --- Defines the monitored resources used by this service. This is required by the \[Service.monitoring\]\[google.api.Service.monitoring\] and \[Service.logging\]\[google.api.Service.logging\] configurations.

### #monitored_resources=

    def monitored_resources=(value) -> ::Array<::Google::Api::MonitoredResourceDescriptor>

**Parameter**

- **value** (::Array\<[::Google::Api::MonitoredResourceDescriptor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-MonitoredResourceDescriptor)\>) --- Defines the monitored resources used by this service. This is required by the \[Service.monitoring\]\[google.api.Service.monitoring\] and \[Service.logging\]\[google.api.Service.logging\] configurations.
**Returns**

- (::Array\<[::Google::Api::MonitoredResourceDescriptor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-MonitoredResourceDescriptor)\>) --- Defines the monitored resources used by this service. This is required by the \[Service.monitoring\]\[google.api.Service.monitoring\] and \[Service.logging\]\[google.api.Service.logging\] configurations.

### #monitoring

    def monitoring() -> ::Google::Api::Monitoring

**Returns**

- ([::Google::Api::Monitoring](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-Monitoring)) --- Monitoring configuration. This should not include the 'producer_destinations' field.

### #monitoring=

    def monitoring=(value) -> ::Google::Api::Monitoring

**Parameter**

- **value** ([::Google::Api::Monitoring](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-Monitoring)) --- Monitoring configuration. This should not include the 'producer_destinations' field.
**Returns**

- ([::Google::Api::Monitoring](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-Monitoring)) --- Monitoring configuration. This should not include the 'producer_destinations' field.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The DNS address at which this service is available.

  An example DNS address would be:
  `calendar.googleapis.com`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The DNS address at which this service is available.


  An example DNS address would be:
  `calendar.googleapis.com`.
**Returns**

- (::String) --- The DNS address at which this service is available.

  An example DNS address would be:
  `calendar.googleapis.com`.

### #quota

    def quota() -> ::Google::Api::Quota

**Returns**

- ([::Google::Api::Quota](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-Quota)) --- Quota configuration.

### #quota=

    def quota=(value) -> ::Google::Api::Quota

**Parameter**

- **value** ([::Google::Api::Quota](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-Quota)) --- Quota configuration.
**Returns**

- ([::Google::Api::Quota](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-Quota)) --- Quota configuration.

### #title

    def title() -> ::String

**Returns**

- (::String) --- The product title for this service.

### #title=

    def title=(value) -> ::String

**Parameter**

- **value** (::String) --- The product title for this service.
**Returns**

- (::String) --- The product title for this service.

### #usage

    def usage() -> ::Google::Api::Usage

**Returns**

- ([::Google::Api::Usage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-Usage)) --- Configuration controlling usage of this service.

### #usage=

    def usage=(value) -> ::Google::Api::Usage

**Parameter**

- **value** ([::Google::Api::Usage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-Usage)) --- Configuration controlling usage of this service.
**Returns**

- ([::Google::Api::Usage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Api-Usage)) --- Configuration controlling usage of this service.