API Keys V2 API - Class Google::Cloud::ApiKeys::V2::Restrictions (v0.6.0)

Reference documentation and code samples for the API Keys V2 API class Google::Cloud::ApiKeys::V2::Restrictions.

Describes the restrictions on the key.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#android_key_restrictions

def android_key_restrictions() -> ::Google::Cloud::ApiKeys::V2::AndroidKeyRestrictions
Returns

#android_key_restrictions=

def android_key_restrictions=(value) -> ::Google::Cloud::ApiKeys::V2::AndroidKeyRestrictions
Parameter
Returns

#api_targets

def api_targets() -> ::Array<::Google::Cloud::ApiKeys::V2::ApiTarget>
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.

#api_targets=

def api_targets=(value) -> ::Array<::Google::Cloud::ApiKeys::V2::ApiTarget>
Parameter
  • value (::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.
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.

#browser_key_restrictions

def browser_key_restrictions() -> ::Google::Cloud::ApiKeys::V2::BrowserKeyRestrictions
Returns

#browser_key_restrictions=

def browser_key_restrictions=(value) -> ::Google::Cloud::ApiKeys::V2::BrowserKeyRestrictions
Parameter
Returns

#ios_key_restrictions

def ios_key_restrictions() -> ::Google::Cloud::ApiKeys::V2::IosKeyRestrictions
Returns

#ios_key_restrictions=

def ios_key_restrictions=(value) -> ::Google::Cloud::ApiKeys::V2::IosKeyRestrictions
Parameter
Returns

#server_key_restrictions

def server_key_restrictions() -> ::Google::Cloud::ApiKeys::V2::ServerKeyRestrictions
Returns

#server_key_restrictions=

def server_key_restrictions=(value) -> ::Google::Cloud::ApiKeys::V2::ServerKeyRestrictions
Parameter
Returns