Class: Google::Apis::SiteVerificationV1::SiteVerificationWebResourceResource::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 address and type of a site that is verified or will be verified.

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) ⇒ Site


172
173
174
# File 'generated/google/apis/site_verification_v1/classes.rb', line 172

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


165
166
167
# File 'generated/google/apis/site_verification_v1/classes.rb', line 165

def identifier
  @identifier
end

#typeString

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


170
171
172
# File 'generated/google/apis/site_verification_v1/classes.rb', line 170

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


177
178
179
180
# File 'generated/google/apis/site_verification_v1/classes.rb', line 177

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