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.



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

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)


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

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)


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

def gcp_project_number
  @gcp_project_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



406
407
408
409
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 406

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