Class: Google::Cloud::ApiKeys::V2::ApiTarget

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/api/apikeys/v2/resources.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#methods::Array<::String>

Returns 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*`



182
183
184
185
# File 'proto_docs/google/api/apikeys/v2/resources.rb', line 182

class ApiTarget
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#service::String

Returns The service for this restriction. It should be the canonical service name, for example: translate.googleapis.com. You can use gcloud 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 to get a list of services that are enabled in the project.



182
183
184
185
# File 'proto_docs/google/api/apikeys/v2/resources.rb', line 182

class ApiTarget
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end