Class: Google::Apis::GmailpostmastertoolsV2::DomainVerificationToken

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameString

Identifier. The resource name of the domain verification token. Format: domains/domain/verificationToken Corresponds to the JSON property name

Returns:

  • (String)


533
534
535
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 533

def name
  @name
end

#tokenString

The verification token. Corresponds to the JSON property token

Returns:

  • (String)


538
539
540
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 538

def token
  @token
end

#verification_methodString

The verification method used. Corresponds to the JSON property verificationMethod

Returns:

  • (String)


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