Class: Google::Apis::GmailpostmastertoolsV2::DomainVerificationToken
- Inherits:
-
Object
- Object
- Google::Apis::GmailpostmastertoolsV2::DomainVerificationToken
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gmailpostmastertools_v2/classes.rb,
lib/google/apis/gmailpostmastertools_v2/representations.rb,
lib/google/apis/gmailpostmastertools_v2/representations.rb
Overview
Developer Preview: The DNS token a user can use to verify ownership of a domain.
Instance Attribute Summary collapse
-
#name ⇒ String
Identifier.
-
#token ⇒ String
The verification token.
-
#verification_method ⇒ String
The verification method used.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DomainVerificationToken
constructor
A new instance of DomainVerificationToken.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DomainVerificationToken
Returns a new instance of DomainVerificationToken.
545 546 547 |
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 545 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Identifier. The resource name of the domain verification token. Format:
domains/domain/verificationToken
Corresponds to the JSON property name
533 534 535 |
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 533 def name @name end |
#token ⇒ String
The verification token.
Corresponds to the JSON property token
538 539 540 |
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 538 def token @token end |
#verification_method ⇒ String
The verification method used.
Corresponds to the JSON property verificationMethod
543 544 545 |
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 543 def verification_method @verification_method end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
550 551 552 553 554 |
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 550 def update!(**args) @name = args[:name] if args.key?(:name) @token = args[:token] if args.key?(:token) @verification_method = args[:verification_method] if args.key?(:verification_method) end |