class Google::Apis::CloudchannelV1::GoogleCloudChannelV1Entitlement

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

Attributes

association_info[RW]

Association links that an entitlement has to other entitlements. Corresponds to the JSON property `associationInfo` @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1AssociationInfo]

commitment_settings[RW]

Commitment settings for commitment-based offers. Corresponds to the JSON property `commitmentSettings` @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CommitmentSettings]

create_time[RW]

Output only. The time at which the entitlement is created. Corresponds to the JSON property `createTime` @return [String]

name[RW]

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` @return [String]

offer[RW]

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` @return [String]

parameters[RW]

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` @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Parameter>]

provisioned_service[RW]

Service provisioned for an entitlement. Corresponds to the JSON property `provisionedService` @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ProvisionedService]

provisioning_state[RW]

Output only. Current provisioning state of the entitlement. Corresponds to the JSON property `provisioningState` @return [String]

purchase_order_id[RW]

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` @return [String]

suspension_reasons[RW]

Output only. Enumerable of all current suspension reasons for an entitlement. Corresponds to the JSON property `suspensionReasons` @return [Array<String>]

trial_settings[RW]

Settings for trial offers. Corresponds to the JSON property `trialSettings` @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1TrialSettings]

update_time[RW]

Output only. The time at which the entitlement is updated. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudchannel_v1/classes.rb, line 848
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudchannel_v1/classes.rb, line 853
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