Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment

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

The environment creating the assessment. This describes your environment (the system invoking CreateAssessment), NOT the environment of your user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment

Returns a new instance of GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment.



355
356
357
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 355

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

Instance Attribute Details

#clientString

Optional. Identifies the client module initiating the CreateAssessment request. This can be the link to the client module's project. Examples include: - " github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager" - " cloud.google.com/recaptcha/docs/implement-waf-akamai" - "cloud.google.com/ recaptcha/docs/implement-waf-cloudflare" - "wordpress.org/plugins/recaptcha- something" Corresponds to the JSON property client

Returns:

  • (String)


348
349
350
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 348

def client
  @client
end

#versionString

Optional. The version of the client module. For example, "1.0.0". Corresponds to the JSON property version

Returns:

  • (String)


353
354
355
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 353

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



360
361
362
363
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 360

def update!(**args)
  @client = args[:client] if args.key?(:client)
  @version = args[:version] if args.key?(:version)
end