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.



292
293
294
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 292

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

Instance Attribute Details

#android_settingsGoogle::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AndroidKeySettings

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



255
256
257
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 255

def android_settings
  @android_settings
end

#create_timeString

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

Returns:

  • (String)


260
261
262
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 260

def create_time
  @create_time
end

#display_nameString

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

Returns:

  • (String)


265
266
267
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 265

def display_name
  @display_name
end

#ios_settingsGoogle::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IosKeySettings

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



270
271
272
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 270

def ios_settings
  @ios_settings
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


275
276
277
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 275

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


280
281
282
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 280

def name
  @name
end

#testing_optionsGoogle::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TestingOptions

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



285
286
287
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 285

def testing_options
  @testing_options
end

#web_settingsGoogle::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WebKeySettings

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



290
291
292
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 290

def web_settings
  @web_settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



297
298
299
300
301
302
303
304
305
306
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 297

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)
  @web_settings = args[:web_settings] if args.key?(:web_settings)
end