Reference documentation and code samples for the Google Cloud Channel V1 Client class Entitlement.
An entitlement is a representation of a customer's ability to use a service.
Generated from protobuf message google.cloud.channel.v1.Entitlement
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. Resource name of an entitlement in the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}.
↳ create_time
↳ update_time
↳ offer
string
Required. The offer resource name for which the entitlement is to be created. Takes the form: accounts/{account_id}/offers/{offer_id}.
↳ commitment_settings
Google\Cloud\Channel\V1\CommitmentSettings
Commitment settings for a commitment-based Offer. Required for commitment based offers.
↳ provisioning_state
int
Output only. Current provisioning state of the entitlement.
↳ provisioned_service
Google\Cloud\Channel\V1\ProvisionedService
Output only. Service provisioning details for the entitlement.
↳ suspension_reasons
array
Output only. Enumerable of all current suspension reasons for an entitlement.
↳ purchase_order_id
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.
↳ trial_settings
↳ association_info
↳ parameters
array< Google\Cloud\Channel\V1\Parameter
>
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.
↳ billing_account
string
Optional. The billing account resource name that is used to pay for this entitlement.
getName
Output only. Resource name of an entitlement in the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}.
string
setName
Output only. Resource name of an entitlement in the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}.
var
string
$this
getCreateTime
Output only. The time at which the entitlement is created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time at which the entitlement is created.
$this
getUpdateTime
Output only. The time at which the entitlement is updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The time at which the entitlement is updated.
$this
getOffer
Required. The offer resource name for which the entitlement is to be created. Takes the form: accounts/{account_id}/offers/{offer_id}.
string
setOffer
Required. The offer resource name for which the entitlement is to be created. Takes the form: accounts/{account_id}/offers/{offer_id}.
var
string
$this
getCommitmentSettings
Commitment settings for a commitment-based Offer.
Required for commitment based offers.
hasCommitmentSettings
clearCommitmentSettings
setCommitmentSettings
Commitment settings for a commitment-based Offer.
Required for commitment based offers.
$this
getProvisioningState
Output only. Current provisioning state of the entitlement.
int
setProvisioningState
Output only. Current provisioning state of the entitlement.
var
int
$this
getProvisionedService
Output only. Service provisioning details for the entitlement.
hasProvisionedService
clearProvisionedService
setProvisionedService
Output only. Service provisioning details for the entitlement.
$this
getSuspensionReasons
Output only. Enumerable of all current suspension reasons for an entitlement.
setSuspensionReasons
Output only. Enumerable of all current suspension reasons for an entitlement.
var
int[]
$this
getPurchaseOrderId
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.
string
setPurchaseOrderId
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.
var
string
$this
getTrialSettings
Output only. Settings for trial offers.
hasTrialSettings
clearTrialSettings
setTrialSettings
Output only. Settings for trial offers.
$this
getAssociationInfo
Association information to other entitlements.
hasAssociationInfo
clearAssociationInfo
setAssociationInfo
Association information to other entitlements.
$this
getParameters
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.
setParameters
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.
$this
getBillingAccount
Optional. The billing account resource name that is used to pay for this entitlement.
string
setBillingAccount
Optional. The billing account resource name that is used to pay for this entitlement.
var
string
$this