Class: Google::Apis::ResellerV1::Subscription::Plan

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_intervalGoogle::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_planBoolean Also known as: is_commitment_plan?

Whether the plan is a commitment plan or not. Corresponds to the JSON property isCommitmentPlan

Returns:

  • (Boolean)


410
411
412
# File 'generated/google/apis/reseller_v1/classes.rb', line 410

def is_commitment_plan
  @is_commitment_plan
end

#plan_nameString

The plan name of this subscription's plan. Corresponds to the JSON property planName

Returns:

  • (String)


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