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.



1237
1238
1239
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1237

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



1151
1152
1153
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1151

def association_info
  @association_info
end

#billing_accountString

Optional. The billing account resource name that is used to pay for this entitlement. Corresponds to the JSON property billingAccount

Returns:

  • (String)


1157
1158
1159
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1157

def 
  @billing_account
end

#commitment_settingsGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1CommitmentSettings

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



1162
1163
1164
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1162

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)


1167
1168
1169
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1167

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)


1173
1174
1175
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1173

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)


1179
1180
1181
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1179

def offer
  @offer
end

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

Extended entitlement parameters. When creating an entitlement, valid parameter names and values are defined in the Offer.parameter_definitions. For Google Workspace, the following Parameters may be accepted as input: - max_units: The maximum assignable units for a flexible offer OR - num_units: The total commitment for commitment-based offers The response may additionally include the following output-only Parameters: - assigned_units: The number of licenses assigned to users. For Google Cloud billing subaccounts, the following Parameter may be accepted as input: - display_name: The display name of the billing subaccount. Corresponds to the JSON property parameters



1192
1193
1194
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1192

def parameters
  @parameters
end

#price_reference_idString

Optional. Price reference ID for the offer. Optional field only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order. Yet to be implemented: this field is currently not evaluated in the API if populated in a request. Corresponds to the JSON property priceReferenceId

Returns:

  • (String)


1201
1202
1203
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1201

def price_reference_id
  @price_reference_id
end

#provisioned_serviceGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1ProvisionedService

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



1206
1207
1208
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1206

def provisioned_service
  @provisioned_service
end

#provisioning_stateString

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

Returns:

  • (String)


1211
1212
1213
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1211

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. This is only supported for Google Workspace entitlements. Corresponds to the JSON property purchaseOrderId

Returns:

  • (String)


1220
1221
1222
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1220

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>)


1225
1226
1227
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1225

def suspension_reasons
  @suspension_reasons
end

#trial_settingsGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1TrialSettings

Settings for trial offers. Corresponds to the JSON property trialSettings



1230
1231
1232
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1230

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)


1235
1236
1237
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1235

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1242

def update!(**args)
  @association_info = args[:association_info] if args.key?(:association_info)
  @billing_account = args[:billing_account] if args.key?(:billing_account)
  @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)
  @price_reference_id = args[:price_reference_id] if args.key?(:price_reference_id)
  @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