Class: Google::Apis::WebcontentpublisherV1::SlProduct
- Inherits:
-
Object
- Object
- Google::Apis::WebcontentpublisherV1::SlProduct
- 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
-
#enabled ⇒ Boolean
(also: #enabled?)
Optional.
-
#gcp_project_number ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SlProduct
constructor
A new instance of SlProduct.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#enabled ⇒ Boolean Also known as: enabled?
Optional. Whether the Subscription Linking product is enabled.
Corresponds to the JSON property enabled
386 387 388 |
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 386 def enabled @enabled end |
#gcp_project_number ⇒ Fixnum
Optional. The Google Cloud Project number associated with the publication.
Corresponds to the JSON property gcpProjectNumber
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 |