Class: Google::Apis::WebcontentpublisherV1::SiteToken
- Inherits:
-
Object
- Object
- Google::Apis::WebcontentpublisherV1::SiteToken
- 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-scoped secure token mapping.
Instance Attribute Summary collapse
-
#domain ⇒ String
The domain scope this token is valid for.
-
#token ⇒ String
The domain-scoped secure token value (ESUT).
Instance Method Summary collapse
-
#initialize(**args) ⇒ SiteToken
constructor
A new instance of SiteToken.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SiteToken
Returns a new instance of SiteToken.
439 440 441 |
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 439 def initialize(**args) update!(**args) end |
Instance Attribute Details
#domain ⇒ String
The domain scope this token is valid for.
Corresponds to the JSON property domain
432 433 434 |
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 432 def domain @domain end |
#token ⇒ String
The domain-scoped secure token value (ESUT).
Corresponds to the JSON property token
437 438 439 |
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 437 def token @token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
444 445 446 447 |
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 444 def update!(**args) @domain = args[:domain] if args.key?(:domain) @token = args[:token] if args.key?(:token) end |