Class: Google::Apis::WebcontentpublisherV1::SlProduct

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

Subscription Linking (SL) product settings and status.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SlProduct

Returns a new instance of SlProduct.



394
395
396
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 394

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Optional. Whether the Subscription Linking product is enabled. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


386
387
388
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 386

def enabled
  @enabled
end

#gcp_project_numberFixnum

Optional. The Google Cloud Project number associated with the publication. Corresponds to the JSON property gcpProjectNumber

Returns:

  • (Fixnum)


392
393
394
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 392

def gcp_project_number
  @gcp_project_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



399
400
401
402
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 399

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