Class: Google::Apis::SiteVerificationV1::GetWebResourceTokenResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/site_verification_v1/classes.rb,
generated/google/apis/site_verification_v1/representations.rb,
generated/google/apis/site_verification_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GetWebResourceTokenResponse

Returns a new instance of GetWebResourceTokenResponse.



96
97
98
# File 'generated/google/apis/site_verification_v1/classes.rb', line 96

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

Instance Attribute Details

#tokenString

The verification token. The token must be placed appropriately in order for verification to succeed. Corresponds to the JSON property token

Returns:

  • (String)


94
95
96
# File 'generated/google/apis/site_verification_v1/classes.rb', line 94

def token
  @token
end

#verification_methodString

The verification method to use in conjunction with this token. For FILE, the token should be placed in the top-level directory of the site, stored inside a file of the same name. For META, the token should be placed in the HEAD tag of the default page that is loaded for the site. For DNS, the token should be placed in a TXT record of the domain. Corresponds to the JSON property method

Returns:

  • (String)


88
89
90
# File 'generated/google/apis/site_verification_v1/classes.rb', line 88

def verification_method
  @verification_method
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



101
102
103
104
# File 'generated/google/apis/site_verification_v1/classes.rb', line 101

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