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

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

Overview

The site for which a verification token will be generated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Site

Returns a new instance of Site.



65
66
67
# File 'generated/google/apis/site_verification_v1/classes.rb', line 65

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

Instance Attribute Details

#identifierString

The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name. Corresponds to the JSON property identifier

Returns:

  • (String)


58
59
60
# File 'generated/google/apis/site_verification_v1/classes.rb', line 58

def identifier
  @identifier
end

#typeString

The type of resource to be verified. Can be SITE or INET_DOMAIN (domain name). Corresponds to the JSON property type

Returns:

  • (String)


63
64
65
# File 'generated/google/apis/site_verification_v1/classes.rb', line 63

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



70
71
72
73
# File 'generated/google/apis/site_verification_v1/classes.rb', line 70

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