0.16.0 (latest) 0.15.0 0.14.2 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.1 0.7.0 0.6.1 0.5.2 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the API Keys V2 API class Google::Cloud::ApiKeys::V2::ApiTarget.

A restriction for a specific service and optionally one or multiple
specific methods. Both fields are case insensitive.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #methods

    def methods() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol.
  Valid examples:
  `google.cloud.translate.v2.TranslateService.GetSupportedLanguage`
  `TranslateText`
  \`Get* `
  `translate.googleapis.com.Get\*\`

### #methods=

    def methods=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol.
  Valid examples:
  `google.cloud.translate.v2.TranslateService.GetSupportedLanguage`
  `TranslateText`
  \`Get* `
  `translate.googleapis.com.Get\*\`
**Returns**

- (::Array\<::String\>) --- Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol.
  Valid examples:
  `google.cloud.translate.v2.TranslateService.GetSupportedLanguage`
  `TranslateText`
  \`Get* `
  `translate.googleapis.com.Get\*\`

### #service

    def service() -> ::String

**Returns**

- (::String) --- The service for this restriction. It should be the canonical service name, for example: `translate.googleapis.com`. You can use [`gcloud services list`](https://docs.cloud.google.com/sdk/gcloud/reference/services/list) to get a list of services that are enabled in the project.

### #service=

    def service=(value) -> ::String

**Parameter**

- **value** (::String) --- The service for this restriction. It should be the canonical service name, for example: `translate.googleapis.com`. You can use [`gcloud services list`](https://docs.cloud.google.com/sdk/gcloud/reference/services/list) to get a list of services that are enabled in the project.
**Returns**

- (::String) --- The service for this restriction. It should be the canonical service name, for example: `translate.googleapis.com`. You can use [`gcloud services list`](https://docs.cloud.google.com/sdk/gcloud/reference/services/list) to get a list of services that are enabled in the project.