Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Entitlement

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudchannel_v1/classes.rb,
lib/google/apis/cloudchannel_v1/representations.rb,
lib/google/apis/cloudchannel_v1/representations.rb

Overview

An entitlement is a representation of a customer's ability to use a service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1Entitlement

Returns a new instance of GoogleCloudChannelV1Entitlement.



847
848
849
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 847

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

Instance Attribute Details

#association_infoGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1AssociationInfo

Association links that an entitlement has to other entitlements. Corresponds to the JSON property associationInfo



784
785
786
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 784

def association_info
  @association_info
end

#commitment_settingsGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1CommitmentSettings

Commitment settings for commitment-based offers. Corresponds to the JSON property commitmentSettings



789
790
791
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 789

def commitment_settings
  @commitment_settings
end

#create_timeString

Output only. The time at which the entitlement is created. Corresponds to the JSON property createTime

Returns:

  • (String)


794
795
796
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 794

def create_time
  @create_time
end

#nameString

Output only. Resource name of an entitlement in the form: accounts/account_id /customers/customer_id/entitlements/entitlement_id. Corresponds to the JSON property name

Returns:

  • (String)


800
801
802
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 800

def name
  @name
end

#offerString

Required. The offer resource name for which the entitlement is to be created. Takes the form: accounts/account_id/offers/offer_id. Corresponds to the JSON property offer

Returns:

  • (String)


806
807
808
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 806

def offer
  @offer
end

#parametersArray<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Parameter>

Extended entitlement parameters. When creating an entitlement, valid parameters' names and values are defined in the offer's parameter definitions. Corresponds to the JSON property parameters



812
813
814
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 812

def parameters
  @parameters
end

#provisioned_serviceGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1ProvisionedService

Service provisioned for an entitlement. Corresponds to the JSON property provisionedService



817
818
819
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 817

def provisioned_service
  @provisioned_service
end

#provisioning_stateString

Output only. Current provisioning state of the entitlement. Corresponds to the JSON property provisioningState

Returns:

  • (String)


822
823
824
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 822

def provisioning_state
  @provisioning_state
end

#purchase_order_idString

Optional. This purchase order (PO) information is for resellers to use for their company tracking usage. If a purchaseOrderId value is given, it appears in the API responses and shows up in the invoice. The property accepts up to 80 plain text characters. Corresponds to the JSON property purchaseOrderId

Returns:

  • (String)


830
831
832
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 830

def purchase_order_id
  @purchase_order_id
end

#suspension_reasonsArray<String>

Output only. Enumerable of all current suspension reasons for an entitlement. Corresponds to the JSON property suspensionReasons

Returns:

  • (Array<String>)


835
836
837
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 835

def suspension_reasons
  @suspension_reasons
end

#trial_settingsGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1TrialSettings

Settings for trial offers. Corresponds to the JSON property trialSettings



840
841
842
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 840

def trial_settings
  @trial_settings
end

#update_timeString

Output only. The time at which the entitlement is updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


845
846
847
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 845

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



852
853
854
855
856
857
858
859
860
861
862
863
864
865
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 852

def update!(**args)
  @association_info = args[:association_info] if args.key?(:association_info)
  @commitment_settings = args[:commitment_settings] if args.key?(:commitment_settings)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
  @offer = args[:offer] if args.key?(:offer)
  @parameters = args[:parameters] if args.key?(:parameters)
  @provisioned_service = args[:provisioned_service] if args.key?(:provisioned_service)
  @provisioning_state = args[:provisioning_state] if args.key?(:provisioning_state)
  @purchase_order_id = args[:purchase_order_id] if args.key?(:purchase_order_id)
  @suspension_reasons = args[:suspension_reasons] if args.key?(:suspension_reasons)
  @trial_settings = args[:trial_settings] if args.key?(:trial_settings)
  @update_time = args[:update_time] if args.key?(:update_time)
end