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.



363
364
365
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 363

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" - " wordpress.org/plugins/recaptcha-something" Corresponds to the JSON property client

Returns:

  • (String)


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

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)


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

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



368
369
370
371
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 368

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