Class: Google::Apis::ResellerV1::Subscription::Plan
- Inherits:
-
Object
- Object
- Google::Apis::ResellerV1::Subscription::Plan
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/reseller_v1/classes.rb,
generated/google/apis/reseller_v1/representations.rb,
generated/google/apis/reseller_v1/representations.rb
Overview
Plan details of the subscription
Defined Under Namespace
Classes: CommitmentInterval
Instance Attribute Summary collapse
-
#commitment_interval ⇒ Google::Apis::ResellerV1::Subscription::Plan::CommitmentInterval
Interval of the commitment if it is a commitment plan.
-
#is_commitment_plan ⇒ Boolean
(also: #is_commitment_plan?)
Whether the plan is a commitment plan or not.
-
#plan_name ⇒ String
The plan name of this subscription's plan.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Plan
constructor
A new instance of Plan.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Plan
Returns a new instance of Plan.
418 419 420 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 418 def initialize(**args) update!(**args) end |
Instance Attribute Details
#commitment_interval ⇒ Google::Apis::ResellerV1::Subscription::Plan::CommitmentInterval
Interval of the commitment if it is a commitment plan.
Corresponds to the JSON property commitmentInterval
405 406 407 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 405 def commitment_interval @commitment_interval end |
#is_commitment_plan ⇒ Boolean Also known as: is_commitment_plan?
Whether the plan is a commitment plan or not.
Corresponds to the JSON property isCommitmentPlan
410 411 412 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 410 def is_commitment_plan @is_commitment_plan end |
#plan_name ⇒ String
The plan name of this subscription's plan.
Corresponds to the JSON property planName
416 417 418 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 416 def plan_name @plan_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
423 424 425 426 427 |
# File 'generated/google/apis/reseller_v1/classes.rb', line 423 def update!(**args) @commitment_interval = args[:commitment_interval] if args.key?(:commitment_interval) @is_commitment_plan = args[:is_commitment_plan] if args.key?(:is_commitment_plan) @plan_name = args[:plan_name] if args.key?(:plan_name) end |