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.GetSupportedLanguageTranslateText`Gettranslate.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.GetSupportedLanguageTranslateText`Gettranslate.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.GetSupportedLanguageTranslateText`Gettranslate.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 usegcloud services listto 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 usegcloud services listto 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 usegcloud services listto get a list of services that are enabled in the project.