Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AndroidKeySettings

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1AndroidKeySettings

Returns a new instance of GoogleCloudRecaptchaenterpriseV1AndroidKeySettings.



41
42
43
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 41

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allow_all_package_namesBoolean Also known as: allow_all_package_names?

If set to true, it means allowed_package_names will not be enforced. Corresponds to the JSON property allowAllPackageNames

Returns:

  • (Boolean)


32
33
34
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 32

def allow_all_package_names
  @allow_all_package_names
end

#allowed_package_namesArray<String>

Android package names of apps allowed to use the key. Example: 'com. companyname.appname' Corresponds to the JSON property allowedPackageNames

Returns:

  • (Array<String>)


39
40
41
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 39

def allowed_package_names
  @allowed_package_names
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46
47
48
49
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 46

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)
end