Class: Google::Apis::SiteVerificationV1::GetWebResourceTokenRequest::Site
- Inherits:
-
Object
- Object
- Google::Apis::SiteVerificationV1::GetWebResourceTokenRequest::Site
- 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
-
#identifier ⇒ String
The site identifier.
-
#type ⇒ String
The type of resource to be verified.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Site
constructor
A new instance of Site.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#identifier ⇒ String
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
58 59 60 |
# File 'generated/google/apis/site_verification_v1/classes.rb', line 58 def identifier @identifier end |
#type ⇒ String
The type of resource to be verified. Can be SITE or INET_DOMAIN (domain name).
Corresponds to the JSON property type
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 |