Class: Google::Cloud::ApiKeys::V2::Restrictions

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

Overview

Describes the restrictions on the key.

Instance Attribute Summary collapse

Instance Attribute Details

#android_key_restrictions::Google::Cloud::ApiKeys::V2::AndroidKeyRestrictions

Returns The Android apps that are allowed to use the key.

Returns:



105
106
107
108
# File 'proto_docs/google/api/apikeys/v2/resources.rb', line 105

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

#api_targets::Array<::Google::Cloud::ApiKeys::V2::ApiTarget>

Returns A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.

Returns:

  • (::Array<::Google::Cloud::ApiKeys::V2::ApiTarget>)

    A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.



105
106
107
108
# File 'proto_docs/google/api/apikeys/v2/resources.rb', line 105

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

#browser_key_restrictions::Google::Cloud::ApiKeys::V2::BrowserKeyRestrictions

Returns The HTTP referrers (websites) that are allowed to use the key.

Returns:



105
106
107
108
# File 'proto_docs/google/api/apikeys/v2/resources.rb', line 105

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

#ios_key_restrictions::Google::Cloud::ApiKeys::V2::IosKeyRestrictions

Returns The iOS apps that are allowed to use the key.

Returns:



105
106
107
108
# File 'proto_docs/google/api/apikeys/v2/resources.rb', line 105

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

#server_key_restrictions::Google::Cloud::ApiKeys::V2::ServerKeyRestrictions

Returns The IP addresses of callers that are allowed to use the key.

Returns:



105
106
107
108
# File 'proto_docs/google/api/apikeys/v2/resources.rb', line 105

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