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
-
(::Google::Cloud::ApiKeys::V2::AndroidKeyRestrictions) — The Android apps that are allowed to use the key.
Note: The following fields are mutually exclusive:
android_key_restrictions
,browser_key_restrictions
,server_key_restrictions
,ios_key_restrictions
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#android_key_restrictions=
def android_key_restrictions=(value) -> ::Google::Cloud::ApiKeys::V2::AndroidKeyRestrictions
-
value (::Google::Cloud::ApiKeys::V2::AndroidKeyRestrictions) — The Android apps that are allowed to use the key.
Note: The following fields are mutually exclusive:
android_key_restrictions
,browser_key_restrictions
,server_key_restrictions
,ios_key_restrictions
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::ApiKeys::V2::AndroidKeyRestrictions) — The Android apps that are allowed to use the key.
Note: The following fields are mutually exclusive:
android_key_restrictions
,browser_key_restrictions
,server_key_restrictions
,ios_key_restrictions
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#api_targets
def api_targets() -> ::Array<::Google::Cloud::ApiKeys::V2::ApiTarget>
- (::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>
- 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.
- (::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
-
(::Google::Cloud::ApiKeys::V2::BrowserKeyRestrictions) — The HTTP referrers (websites) that are allowed to use the key.
Note: The following fields are mutually exclusive:
browser_key_restrictions
,server_key_restrictions
,android_key_restrictions
,ios_key_restrictions
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#browser_key_restrictions=
def browser_key_restrictions=(value) -> ::Google::Cloud::ApiKeys::V2::BrowserKeyRestrictions
-
value (::Google::Cloud::ApiKeys::V2::BrowserKeyRestrictions) — The HTTP referrers (websites) that are allowed to use the key.
Note: The following fields are mutually exclusive:
browser_key_restrictions
,server_key_restrictions
,android_key_restrictions
,ios_key_restrictions
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::ApiKeys::V2::BrowserKeyRestrictions) — The HTTP referrers (websites) that are allowed to use the key.
Note: The following fields are mutually exclusive:
browser_key_restrictions
,server_key_restrictions
,android_key_restrictions
,ios_key_restrictions
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#ios_key_restrictions
def ios_key_restrictions() -> ::Google::Cloud::ApiKeys::V2::IosKeyRestrictions
-
(::Google::Cloud::ApiKeys::V2::IosKeyRestrictions) — The iOS apps that are allowed to use the key.
Note: The following fields are mutually exclusive:
ios_key_restrictions
,browser_key_restrictions
,server_key_restrictions
,android_key_restrictions
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#ios_key_restrictions=
def ios_key_restrictions=(value) -> ::Google::Cloud::ApiKeys::V2::IosKeyRestrictions
-
value (::Google::Cloud::ApiKeys::V2::IosKeyRestrictions) — The iOS apps that are allowed to use the key.
Note: The following fields are mutually exclusive:
ios_key_restrictions
,browser_key_restrictions
,server_key_restrictions
,android_key_restrictions
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::ApiKeys::V2::IosKeyRestrictions) — The iOS apps that are allowed to use the key.
Note: The following fields are mutually exclusive:
ios_key_restrictions
,browser_key_restrictions
,server_key_restrictions
,android_key_restrictions
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#server_key_restrictions
def server_key_restrictions() -> ::Google::Cloud::ApiKeys::V2::ServerKeyRestrictions
-
(::Google::Cloud::ApiKeys::V2::ServerKeyRestrictions) — The IP addresses of callers that are allowed to use the key.
Note: The following fields are mutually exclusive:
server_key_restrictions
,browser_key_restrictions
,android_key_restrictions
,ios_key_restrictions
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#server_key_restrictions=
def server_key_restrictions=(value) -> ::Google::Cloud::ApiKeys::V2::ServerKeyRestrictions
-
value (::Google::Cloud::ApiKeys::V2::ServerKeyRestrictions) — The IP addresses of callers that are allowed to use the key.
Note: The following fields are mutually exclusive:
server_key_restrictions
,browser_key_restrictions
,android_key_restrictions
,ios_key_restrictions
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::ApiKeys::V2::ServerKeyRestrictions) — The IP addresses of callers that are allowed to use the key.
Note: The following fields are mutually exclusive:
server_key_restrictions
,browser_key_restrictions
,android_key_restrictions
,ios_key_restrictions
. If a field in that set is populated, all other fields in the set will automatically be cleared.