Class: Google::Apis::WebcontentpublisherV1::SiteToken

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-scoped secure token mapping.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#domainString

The domain scope this token is valid for. Corresponds to the JSON property domain

Returns:

  • (String)


432
433
434
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 432

def domain
  @domain
end

#tokenString

The domain-scoped secure token value (ESUT). Corresponds to the JSON property token

Returns:

  • (String)


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