Class: Google::Apis::WebcontentpublisherV1::DomainProperty
- Inherits:
-
Object
- Object
- Google::Apis::WebcontentpublisherV1::DomainProperty
- 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
-
#ownership_verified ⇒ Boolean
(also: #ownership_verified?)
Optional.
-
#url ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DomainProperty
constructor
A new instance of DomainProperty.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_verified ⇒ Boolean 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
123 124 125 |
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 123 def ownership_verified @ownership_verified end |
#url ⇒ String
Required. The URL of the domain property (e.g., "https://example.com").
Corresponds to the JSON property url
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 |