Class: Google::Apis::ApikeysV2::V2AndroidKeyRestrictions
- Inherits:
-
Object
- Object
- Google::Apis::ApikeysV2::V2AndroidKeyRestrictions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apikeys_v2/classes.rb,
lib/google/apis/apikeys_v2/representations.rb,
lib/google/apis/apikeys_v2/representations.rb
Overview
The Android apps that are allowed to use the key.
Instance Attribute Summary collapse
-
#allowed_applications ⇒ Array<Google::Apis::ApikeysV2::V2AndroidApplication>
A list of Android applications that are allowed to make API calls with this key.
Instance Method Summary collapse
-
#initialize(**args) ⇒ V2AndroidKeyRestrictions
constructor
A new instance of V2AndroidKeyRestrictions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ V2AndroidKeyRestrictions
Returns a new instance of V2AndroidKeyRestrictions.
163 164 165 |
# File 'lib/google/apis/apikeys_v2/classes.rb', line 163 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_applications ⇒ Array<Google::Apis::ApikeysV2::V2AndroidApplication>
A list of Android applications that are allowed to make API calls with this
key.
Corresponds to the JSON property allowedApplications
161 162 163 |
# File 'lib/google/apis/apikeys_v2/classes.rb', line 161 def allowed_applications @allowed_applications end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
168 169 170 |
# File 'lib/google/apis/apikeys_v2/classes.rb', line 168 def update!(**args) @allowed_applications = args[:allowed_applications] if args.key?(:allowed_applications) end |