Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Key

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

A key used to identify and configure applications (web and/or mobile) that use reCAPTCHA Enterprise.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1Key

Returns a new instance of GoogleCloudRecaptchaenterpriseV1Key.



339
340
341
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 339

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

Instance Attribute Details

#android_settings ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AndroidKeySettings

Settings specific to keys that can be used by Android apps. Corresponds to the JSON property androidSettings



297
298
299
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 297

def android_settings
  @android_settings
end

#create_time ⇒ String

The timestamp corresponding to the creation of this Key. Corresponds to the JSON property createTime

Returns:

  • (String)


302
303
304
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 302

def create_time
  @create_time
end

#display_name ⇒ String

Human-readable display name of this key. Modifiable by user. Corresponds to the JSON property displayName

Returns:

  • (String)


307
308
309
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 307

def display_name
  @display_name
end

#ios_settings ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IosKeySettings

Settings specific to keys that can be used by iOS apps. Corresponds to the JSON property iosSettings



312
313
314
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 312

def ios_settings
  @ios_settings
end

#labels ⇒ Hash<String,String>

See Creating and managing labels. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


317
318
319
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 317

def labels
  @labels
end

#name ⇒ String

The resource name for the Key in the format "projects/project/keys/key". Corresponds to the JSON property name

Returns:

  • (String)


322
323
324
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 322

def name
  @name
end

#testing_options ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TestingOptions

Options for user acceptance testing. Corresponds to the JSON property testingOptions



327
328
329
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 327

def testing_options
  @testing_options
end

#waf_settings ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WafSettings

Settings specific to keys that can be used for WAF (Web Application Firewall). Corresponds to the JSON property wafSettings



332
333
334
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 332

def waf_settings
  @waf_settings
end

#web_settings ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WebKeySettings

Settings specific to keys that can be used by websites. Corresponds to the JSON property webSettings



337
338
339
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 337

def web_settings
  @web_settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



344
345
346
347
348
349
350
351
352
353
354
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 344

def update!(**args)
  @android_settings = args[:android_settings] if args.key?(:android_settings)
  @create_time = args[:create_time] if args.key?(:create_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @ios_settings = args[:ios_settings] if args.key?(:ios_settings)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @testing_options = args[:testing_options] if args.key?(:testing_options)
  @waf_settings = args[:waf_settings] if args.key?(:waf_settings)
  @web_settings = args[:web_settings] if args.key?(:web_settings)
end