Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/recaptchaenterprise_v1/classes.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb
Overview
Settings specific to keys that can be used by Android apps.
Instance Attribute Summary collapse
-
#allow_all_package_names ⇒ Boolean
(also: #allow_all_package_names?)
If set to true, allowed_package_names are not enforced.
-
#allowed_package_names ⇒ Array<String>
Android package names of apps allowed to use the key.
-
#support_non_google_app_store_distribution ⇒ Boolean
(also: #support_non_google_app_store_distribution?)
Set to true for keys that are used in an Android application that is available for download in app stores in addition to the Google Play Store.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1AndroidKeySettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
Returns a new instance of GoogleCloudRecaptchaenterpriseV1AndroidKeySettings.
106 107 108 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 106 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_all_package_names ⇒ Boolean Also known as: allow_all_package_names?
If set to true, allowed_package_names are not enforced.
Corresponds to the JSON property allowAllPackageNames
90 91 92 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 90 def allow_all_package_names @allow_all_package_names end |
#allowed_package_names ⇒ Array<String>
Android package names of apps allowed to use the key. Example: 'com.
companyname.appname'
Corresponds to the JSON property allowedPackageNames
97 98 99 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 97 def allowed_package_names @allowed_package_names end |
#support_non_google_app_store_distribution ⇒ Boolean Also known as: support_non_google_app_store_distribution?
Set to true for keys that are used in an Android application that is available
for download in app stores in addition to the Google Play Store.
Corresponds to the JSON property supportNonGoogleAppStoreDistribution
103 104 105 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 103 def support_non_google_app_store_distribution @support_non_google_app_store_distribution end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
111 112 113 114 115 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 111 def update!(**args) @allow_all_package_names = args[:allow_all_package_names] if args.key?(:allow_all_package_names) @allowed_package_names = args[:allowed_package_names] if args.key?(:allowed_package_names) @support_non_google_app_store_distribution = args[:support_non_google_app_store_distribution] if args.key?(:support_non_google_app_store_distribution) end |