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: String

    Output 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: String

    Required. 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: String

    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.

  • $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: String

    Optional. The billing account resource name that is used to pay for this entitlement.

  • $msg->price_reference_id() / $msg->price_reference_id($value)

    Type: String

    Optional. 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 => 0

  • ACTIVE => 1

  • SUSPENDED => 5

Enum: Entitlement::SuspensionReason

  • SUSPENSION_REASON_UNSPECIFIED => 0

  • RESELLER_INITIATED => 1

  • TRIAL_ENDED => 2

  • RENEWAL_WITH_TYPE_CANCEL => 3

  • PENDING_TOS_ACCEPTANCE => 4

  • OTHER => 100

Google::Cloud::Channel::V1::Entitlements::Parameter

Definition for extended entitlement parameters.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Name 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: Bool

    Output 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: String

    The 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: String

    Output 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: String

    Output only. The product pertaining to the provisioning resource as specified in the Offer.

  • $msg->sku_id() / $msg->sku_id($value)

    Type: String

    Output 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

Google::Cloud::Channel::V1::Entitlements::RenewalSettings

Renewal settings for renewable Offers.

Inherits from Protobuf::Message.

Accessors

  • $msg->enable_renewal() / $msg->enable_renewal($value)

    Type: Bool

    If false, the plan will be completed at the end date.

  • $msg->resize_unit_count() / $msg->resize_unit_count($value)

    Type: Bool

    If 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: Bool

    Determines 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

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: Bool

    Whether reseller is eligible to transfer the SKU.

  • $msg->description() / $msg->description($value)

    Type: String

    Localized 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 => 0

  • PENDING_TOS_ACCEPTANCE => 1

  • SKU_NOT_ELIGIBLE => 2

  • SKU_SUSPENDED => 3

  • CHANNEL_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.