Class: Google::Apis::WebcontentpublisherV1::DomainProperty

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/webcontentpublisher_v1/classes.rb,
lib/google/apis/webcontentpublisher_v1/representations.rb,
lib/google/apis/webcontentpublisher_v1/representations.rb

Overview

Represents a domain property associated with a publication, typically used to verify ownership and scope access.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DomainProperty

Returns a new instance of DomainProperty.



131
132
133
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 131

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

Instance Attribute Details

#ownership_verifiedBoolean Also known as: ownership_verified?

Optional. Whether the domain ownership has been verified (e.g., via Google Search Console). Corresponds to the JSON property ownershipVerified

Returns:

  • (Boolean)


123
124
125
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 123

def ownership_verified
  @ownership_verified
end

#urlString

Required. The URL of the domain property (e.g., "https://example.com"). Corresponds to the JSON property url

Returns:

  • (String)


129
130
131
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 129

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



136
137
138
139
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 136

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