NAME
Google::Cloud::Channel::V1::Entitlements - Compiled Protocol Buffers messages for google/cloud/channel/v1/entitlements.proto
SYNOPSIS
use Google::Cloud::Channel::V1::Entitlements;
my $msg = Google::Cloud::Channel::V1::Entitlements::Entitlement->new({
name => $name,
create_time => $create_time,
update_time => $update_time,
offer => $offer,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Channel::V1::Entitlements::Entitlement->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/channel/v1/entitlements.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Channel::V1::Entitlements::Entitlement
An entitlement is a representation of a customer's ability to use a service.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Resource name of an entitlement in the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which the entitlement is created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which the entitlement is updated.
$msg->offer()/$msg->offer($value)Type:
StringRequired. The offer resource name for which the entitlement is to be created. Takes the form: accounts/{account_id}/offers/{offer_id}.
$msg->commitment_settings()/$msg->commitment_settings($value)Type:
Message(Google::Cloud::Channel::V1::Entitlements::CommitmentSettings)Commitment settings for a commitment-based Offer. Required for commitment based offers.
$msg->provisioning_state()/$msg->provisioning_state($value)Type:
Enum(Google::Cloud::Channel::V1::Entitlement::ProvisioningState)Output only. Current provisioning state of the entitlement.
$msg->provisioned_service()/$msg->provisioned_service($value)Type:
Message(Google::Cloud::Channel::V1::Entitlements::ProvisionedService)Output only. Service provisioning details for the entitlement.
$msg->suspension_reasons()/$msg->suspension_reasons($value)Type:
Enum(Google::Cloud::Channel::V1::Entitlement::SuspensionReason)Output only. Enumerable of all current suspension reasons for an entitlement.
$msg->purchase_order_id()/$msg->purchase_order_id($value)Type:
StringOptional. 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.
$msg->trial_settings()/$msg->trial_settings($value)Type:
Message(Google::Cloud::Channel::V1::Entitlements::TrialSettings)Output only. Settings for trial offers.
$msg->association_info()/$msg->association_info($value)Type:
Message(Google::Cloud::Channel::V1::Entitlements::AssociationInfo)Association information to other entitlements.
$msg->parameters()/$msg->parameters($value)Type:
Message(Google::Cloud::Channel::V1::Entitlements::Parameter)Extended entitlement parameters. When creating an entitlement, valid parameter names and values are defined in the [Offer.parameter_definitions][google.cloud.channel.v1.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.
$msg->billing_account()/$msg->billing_account($value)Type:
StringOptional. The billing account resource name that is used to pay for this entitlement.
$msg->price_reference_id()/$msg->price_reference_id($value)Type:
StringOptional. Price reference ID for the offer. Only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order.
Enum: Entitlement::ProvisioningState
PROVISIONING_STATE_UNSPECIFIED=>0ACTIVE=>1SUSPENDED=>5
Enum: Entitlement::SuspensionReason
SUSPENSION_REASON_UNSPECIFIED=>0RESELLER_INITIATED=>1TRIAL_ENDED=>2RENEWAL_WITH_TYPE_CANCEL=>3PENDING_TOS_ACCEPTANCE=>4OTHER=>100
Google::Cloud::Channel::V1::Entitlements::Parameter
Definition for extended entitlement parameters.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringName of the parameter.
$msg->value()/$msg->value($value)Type:
Message(Google::Cloud::Channel::V1::Common::Value)Value of the parameter.
$msg->editable()/$msg->editable($value)Type:
BoolOutput only. Specifies whether this parameter is allowed to be changed. For example, for a Google Workspace Business Starter entitlement in commitment plan, num_units is editable when entitlement is active.
Google::Cloud::Channel::V1::Entitlements::AssociationInfo
Association links that an entitlement has to other entitlements.
Inherits from Protobuf::Message.
Accessors
$msg->base_entitlement()/$msg->base_entitlement($value)Type:
StringThe name of the base entitlement, for which this entitlement is an add-on.
Google::Cloud::Channel::V1::Entitlements::ProvisionedService
Service provisioned for an entitlement.
Inherits from Protobuf::Message.
Accessors
$msg->provisioning_id()/$msg->provisioning_id($value)Type:
StringOutput only. Provisioning ID of the entitlement. For Google Workspace, this is the underlying Subscription ID. For Google Cloud, this is the Billing Account ID of the billing subaccount.
$msg->product_id()/$msg->product_id($value)Type:
StringOutput only. The product pertaining to the provisioning resource as specified in the Offer.
$msg->sku_id()/$msg->sku_id($value)Type:
StringOutput only. The SKU pertaining to the provisioning resource as specified in the Offer.
Google::Cloud::Channel::V1::Entitlements::CommitmentSettings
Commitment settings for commitment-based offers.
Inherits from Protobuf::Message.
Accessors
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Commitment start timestamp.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Commitment end timestamp.
$msg->renewal_settings()/$msg->renewal_settings($value)Type:
Message(Google::Cloud::Channel::V1::Entitlements::RenewalSettings)Optional. Renewal settings applicable for a commitment-based Offer.
Google::Cloud::Channel::V1::Entitlements::RenewalSettings
Renewal settings for renewable Offers.
Inherits from Protobuf::Message.
Accessors
$msg->enable_renewal()/$msg->enable_renewal($value)Type:
BoolIf false, the plan will be completed at the end date.
$msg->resize_unit_count()/$msg->resize_unit_count($value)Type:
BoolIf true and enable_renewal = true, the unit (for example seats or licenses) will be set to the number of active units at renewal time.
$msg->payment_plan()/$msg->payment_plan($value)Type:
Enum(Google::Cloud::Channel::V1::PaymentPlan)Describes how a reseller will be billed.
$msg->payment_cycle()/$msg->payment_cycle($value)Type:
Message(Google::Cloud::Channel::V1::Offers::Period)Describes how frequently the reseller will be billed, such as once per month.
Google::Cloud::Channel::V1::Entitlements::TrialSettings
Settings for trial offers.
Inherits from Protobuf::Message.
Accessors
$msg->trial()/$msg->trial($value)Type:
BoolDetermines if the entitlement is in a trial or not:
* `true` - The entitlement is in trial. * `false` - The entitlement is not in trial.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example [Epoch converter](https://www.epochconverter.com).
Google::Cloud::Channel::V1::Entitlements::TransferableSku
TransferableSku represents information a reseller needs to view existing provisioned services for a customer that they do not own. Read-only.
Inherits from Protobuf::Message.
Accessors
$msg->transfer_eligibility()/$msg->transfer_eligibility($value)Type:
Message(Google::Cloud::Channel::V1::Entitlements::TransferEligibility)Describes the transfer eligibility of a SKU.
$msg->sku()/$msg->sku($value)Type:
Message(Google::Cloud::Channel::V1::Products::Sku)The SKU pertaining to the provisioning resource as specified in the Offer.
$msg->legacy_sku()/$msg->legacy_sku($value)Type:
Message(Google::Cloud::Channel::V1::Products::Sku)Optional. The customer to transfer has an entitlement with the populated legacy SKU.
Google::Cloud::Channel::V1::Entitlements::TransferEligibility
Specifies transfer eligibility of a SKU.
Inherits from Protobuf::Message.
Accessors
$msg->is_eligible()/$msg->is_eligible($value)Type:
BoolWhether reseller is eligible to transfer the SKU.
$msg->description()/$msg->description($value)Type:
StringLocalized description if reseller is not eligible to transfer the SKU.
$msg->ineligibility_reason()/$msg->ineligibility_reason($value)Type:
Enum(Google::Cloud::Channel::V1::TransferEligibility::Reason)Specified the reason for ineligibility.
Enum: TransferEligibility::Reason
REASON_UNSPECIFIED=>0PENDING_TOS_ACCEPTANCE=>1SKU_NOT_ELIGIBLE=>2SKU_SUSPENDED=>3CHANNEL_PARTNER_NOT_AUTHORIZED_FOR_SKU=>4
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Channel::V1::Entitlements::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.