Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TokenProperties
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TokenProperties
- 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
Instance Attribute Summary collapse
-
#action ⇒ String
Action name provided at token generation.
-
#create_time ⇒ String
The timestamp corresponding to the generation of the token.
-
#hostname ⇒ String
The hostname of the page on which the token was generated.
-
#invalid_reason ⇒ String
Reason associated with the response when valid = false.
-
#valid ⇒ Boolean
(also: #valid?)
Whether the provided user response token is valid.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1TokenProperties
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1TokenProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1TokenProperties
Returns a new instance of GoogleCloudRecaptchaenterpriseV1TokenProperties.
741 742 743 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 741 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Action name provided at token generation.
Corresponds to the JSON property action
715 716 717 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 715 def action @action end |
#create_time ⇒ String
The timestamp corresponding to the generation of the token.
Corresponds to the JSON property createTime
720 721 722 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 720 def create_time @create_time end |
#hostname ⇒ String
The hostname of the page on which the token was generated.
Corresponds to the JSON property hostname
725 726 727 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 725 def hostname @hostname end |
#invalid_reason ⇒ String
Reason associated with the response when valid = false.
Corresponds to the JSON property invalidReason
730 731 732 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 730 def invalid_reason @invalid_reason end |
#valid ⇒ Boolean Also known as: valid?
Whether the provided user response token is valid. When valid = false, the
reason could be specified in invalid_reason or it could also be due to a user
failing to solve a challenge or a sitekey mismatch (i.e the sitekey used to
generate the token was different than the one specified in the assessment).
Corresponds to the JSON property valid
738 739 740 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 738 def valid @valid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
746 747 748 749 750 751 752 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 746 def update!(**args) @action = args[:action] if args.key?(:action) @create_time = args[:create_time] if args.key?(:create_time) @hostname = args[:hostname] if args.key?(:hostname) @invalid_reason = args[:invalid_reason] if args.key?(:invalid_reason) @valid = args[:valid] if args.key?(:valid) end |