import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Returns the requested Entitlement resource. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer entitlement was not found. Return value: The requested Entitlement resource. */ export declare function getEntitlement(args: GetEntitlementArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetEntitlementArgs { accountId: string; customerId: string; entitlementId: string; } export interface GetEntitlementResult { /** * Association information to other entitlements. */ readonly associationInfo: outputs.cloudchannel.v1.GoogleCloudChannelV1AssociationInfoResponse; /** * Optional. The billing account resource name that is used to pay for this entitlement. */ readonly billingAccount: string; /** * Commitment settings for a commitment-based Offer. Required for commitment based offers. */ readonly commitmentSettings: outputs.cloudchannel.v1.GoogleCloudChannelV1CommitmentSettingsResponse; /** * The time at which the entitlement is created. */ readonly createTime: string; /** * Resource name of an entitlement in the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}. */ readonly name: string; /** * The offer resource name for which the entitlement is to be created. Takes the form: accounts/{account_id}/offers/{offer_id}. */ readonly offer: string; /** * 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. */ readonly parameters: outputs.cloudchannel.v1.GoogleCloudChannelV1ParameterResponse[]; /** * Service provisioning details for the entitlement. */ readonly provisionedService: outputs.cloudchannel.v1.GoogleCloudChannelV1ProvisionedServiceResponse; /** * Current provisioning state of the entitlement. */ readonly provisioningState: 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. */ readonly purchaseOrderId: string; /** * Enumerable of all current suspension reasons for an entitlement. */ readonly suspensionReasons: string[]; /** * Settings for trial offers. */ readonly trialSettings: outputs.cloudchannel.v1.GoogleCloudChannelV1TrialSettingsResponse; /** * The time at which the entitlement is updated. */ readonly updateTime: string; } /** * Returns the requested Entitlement resource. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer entitlement was not found. Return value: The requested Entitlement resource. */ export declare function getEntitlementOutput(args: GetEntitlementOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetEntitlementOutputArgs { accountId: pulumi.Input; customerId: pulumi.Input; entitlementId: pulumi.Input; }