Class: Google::Apis::SiteVerificationV1::GetWebResourceTokenResponse
- Inherits:
-
Object
- Object
- Google::Apis::SiteVerificationV1::GetWebResourceTokenResponse
- 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
-
#token ⇒ String
The verification token.
-
#verification_method ⇒ String
The verification method to use in conjunction with this token.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GetWebResourceTokenResponse
constructor
A new instance of GetWebResourceTokenResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#token ⇒ String
The verification token. The token must be placed appropriately in order for
verification to succeed.
Corresponds to the JSON property token
94 95 96 |
# File 'generated/google/apis/site_verification_v1/classes.rb', line 94 def token @token end |
#verification_method ⇒ String
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
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 |