Class: Google::Apis::SiteVerificationV1::GetWebResourceTokenRequest

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

Defined Under Namespace

Classes: Site

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GetWebResourceTokenRequest

Returns a new instance of GetWebResourceTokenRequest.



40
41
42
# File 'generated/google/apis/site_verification_v1/classes.rb', line 40

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

Instance Attribute Details

#siteGoogle::Apis::SiteVerificationV1::GetWebResourceTokenRequest::Site

The site for which a verification token will be generated. Corresponds to the JSON property site



32
33
34
# File 'generated/google/apis/site_verification_v1/classes.rb', line 32

def site
  @site
end

#verification_methodString

The verification method that will be used to verify this site. For sites, ' FILE' or 'META' methods may be used. For domains, only 'DNS' may be used. Corresponds to the JSON property verificationMethod

Returns:

  • (String)


38
39
40
# File 'generated/google/apis/site_verification_v1/classes.rb', line 38

def verification_method
  @verification_method
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



45
46
47
48
# File 'generated/google/apis/site_verification_v1/classes.rb', line 45

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