Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Entitlement

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

Returns a new instance of GoogleCloudChannelV1alpha1Entitlement.



3541
3542
3543
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3541

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

Instance Attribute Details

#assigned_unitsFixnum

The current number of users that are assigned a license for the product defined in provisioned_service.skuId. Read-only. Deprecated: Use parameters instead. Corresponds to the JSON property assignedUnits

Returns:

  • (Fixnum)


3444
3445
3446
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3444

def assigned_units
  @assigned_units
end

#association_infoGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1AssociationInfo

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



3449
3450
3451
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3449

def association_info
  @association_info
end

#channel_partner_idString

Cloud Identity ID of a channel partner who will be the direct reseller for the customer's order. This field is generally used in 2-tier ordering, where the order is placed by a top-level distributor on behalf of their channel partner or reseller. Required for distributors. Deprecated: channel_partner_id has been moved to the Customer. Corresponds to the JSON property channelPartnerId

Returns:

  • (String)


3458
3459
3460
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3458

def channel_partner_id
  @channel_partner_id
end

#commitment_settingsGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1CommitmentSettings

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



3463
3464
3465
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3463

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)


3468
3469
3470
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3468

def create_time
  @create_time
end

#max_unitsFixnum

Maximum number of units for a non commitment-based Offer, such as Flexible, Trial or Free entitlements. For commitment-based entitlements, this is a read- only field, which only the internal support team can update. Deprecated: Use parameters instead. Corresponds to the JSON property maxUnits

Returns:

  • (Fixnum)


3476
3477
3478
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3476

def max_units
  @max_units
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)


3482
3483
3484
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3482

def name
  @name
end

#num_unitsFixnum

Number of units for a commitment-based Offer. For example, for seat-based Offers, this would be the number of seats; for license-based Offers, this would be the number of licenses. Required for creating commitment-based Offers. Deprecated: Use parameters instead. Corresponds to the JSON property numUnits

Returns:

  • (Fixnum)


3490
3491
3492
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3490

def num_units
  @num_units
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)


3496
3497
3498
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3496

def offer
  @offer
end

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

Extended entitlement parameters. When creating an entitlement, valid parameter names and values are defined in the Offer.parameter_definitions. The response may include the following output-only Parameters: - assigned_units: The number of licenses assigned to users. - max_units: The maximum assignable units for a flexible offer. - num_units: The total commitment for commitment-based offers. Corresponds to the JSON property parameters



3505
3506
3507
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3505

def parameters
  @parameters
end

#provisioned_serviceGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1ProvisionedService

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



3510
3511
3512
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3510

def provisioned_service
  @provisioned_service
end

#provisioning_stateString

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

Returns:

  • (String)


3515
3516
3517
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3515

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)


3524
3525
3526
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3524

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


3529
3530
3531
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3529

def suspension_reasons
  @suspension_reasons
end

#trial_settingsGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1TrialSettings

Settings for trial offers. Corresponds to the JSON property trialSettings



3534
3535
3536
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3534

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)


3539
3540
3541
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3539

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 3546

def update!(**args)
  @assigned_units = args[:assigned_units] if args.key?(:assigned_units)
  @association_info = args[:association_info] if args.key?(:association_info)
  @channel_partner_id = args[:channel_partner_id] if args.key?(:channel_partner_id)
  @commitment_settings = args[:commitment_settings] if args.key?(:commitment_settings)
  @create_time = args[:create_time] if args.key?(:create_time)
  @max_units = args[:max_units] if args.key?(:max_units)
  @name = args[:name] if args.key?(:name)
  @num_units = args[:num_units] if args.key?(:num_units)
  @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