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
- (::Google::Cloud::ApiKeys::V2::AndroidKeyRestrictions) — The Android apps that are allowed to use the key.
#android_key_restrictions=
def android_key_restrictions=(value) -> ::Google::Cloud::ApiKeys::V2::AndroidKeyRestrictions
Parameter
- value (::Google::Cloud::ApiKeys::V2::AndroidKeyRestrictions) — The Android apps that are allowed to use the key.
Returns
- (::Google::Cloud::ApiKeys::V2::AndroidKeyRestrictions) — The Android apps that are allowed to use the key.
#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
- (::Google::Cloud::ApiKeys::V2::BrowserKeyRestrictions) — The HTTP referrers (websites) that are allowed to use the key.
#browser_key_restrictions=
def browser_key_restrictions=(value) -> ::Google::Cloud::ApiKeys::V2::BrowserKeyRestrictions
Parameter
- value (::Google::Cloud::ApiKeys::V2::BrowserKeyRestrictions) — The HTTP referrers (websites) that are allowed to use the key.
Returns
- (::Google::Cloud::ApiKeys::V2::BrowserKeyRestrictions) — The HTTP referrers (websites) that are allowed to use the key.
#ios_key_restrictions
def ios_key_restrictions() -> ::Google::Cloud::ApiKeys::V2::IosKeyRestrictions
Returns
- (::Google::Cloud::ApiKeys::V2::IosKeyRestrictions) — The iOS apps that are allowed to use the key.
#ios_key_restrictions=
def ios_key_restrictions=(value) -> ::Google::Cloud::ApiKeys::V2::IosKeyRestrictions
Parameter
- value (::Google::Cloud::ApiKeys::V2::IosKeyRestrictions) — The iOS apps that are allowed to use the key.
Returns
- (::Google::Cloud::ApiKeys::V2::IosKeyRestrictions) — The iOS apps that are allowed to use the key.
#server_key_restrictions
def server_key_restrictions() -> ::Google::Cloud::ApiKeys::V2::ServerKeyRestrictions
Returns
- (::Google::Cloud::ApiKeys::V2::ServerKeyRestrictions) — The IP addresses of callers that are allowed to use the key.
#server_key_restrictions=
def server_key_restrictions=(value) -> ::Google::Cloud::ApiKeys::V2::ServerKeyRestrictions
Parameter
- value (::Google::Cloud::ApiKeys::V2::ServerKeyRestrictions) — The IP addresses of callers that are allowed to use the key.
Returns
- (::Google::Cloud::ApiKeys::V2::ServerKeyRestrictions) — The IP addresses of callers that are allowed to use the key.