## billing.gdc.goog/v1

Contains API Schema definitions for Billing Account related APIs.

Package v1 contains API Schema definitions for the billing.gdc.goog v1 API group

### BillingAccount

Represents a Billing Account.
The identifier of the `BillingAccount` will be the "namespaced name",
. It will appear on the Invoices for this Billing Account, and be on the selectors for querying billing data in Dashboards.   
Limited access: This field might not be available as it may not be accredited for use in your deployment. You can access it when it's approved.

*Appears in:*
- [BillingAccountList](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#billingaccountlist)

| Field | Description |
|---|---|
| `apiVersion` *string* | `billing.gdc.goog/v1` |
| `kind` *string* | `BillingAccount` |
| `metadata` *[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#objectmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |
| `spec` *[BillingAccountSpec](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#billingaccountspec)* |   |
| `status` *[BillingAccountStatus](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#billingaccountstatus)* |   |

### BillingAccountBinding

Represents the link between a Billing Account and
a Project or the Organization.
Limited access: This field might not be available as it may not be
accredited for use in your deployment. You can access it when it's approved.

*Appears in:*
- [BillingAccountBindingList](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#billingaccountbindinglist)

| Field | Description |
|---|---|
| `apiVersion` *string* | `billing.gdc.goog/v1` |
| `kind` *string* | `BillingAccountBinding` |
| `metadata` *[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#objectmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |
| `spec` *[BillingAccountBindingSpec](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#billingaccountbindingspec)* |   |
| `status` *[BillingAccountBindingStatus](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#billingaccountbindingstatus)* |   |

### BillingAccountBindingList

Contains a list of BillingAccountBinding

| Field | Description |
|---|---|
| `apiVersion` *string* | `billing.gdc.goog/v1` |
| `kind` *string* | `BillingAccountBindingList` |
| `metadata` *[ListMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#listmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |
| `items` *[BillingAccountBinding](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#billingaccountbinding) array* |   |

### BillingAccountBindingSpec

Defines the spec of a BillingAccountBinding.

*Appears in:*
- [BillingAccountBinding](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#billingaccountbinding)

| Field | Description |
|---|---|
| `billingAccountRef` *[NamespacedName](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#namespacedname)* | The Billing Account to use. Required. |

### BillingAccountBindingStatus

Shows the status of the BillingAccountBinding.

*Appears in:*
- [BillingAccountBinding](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#billingaccountbinding)

| Field | Description |
|---|---|
| `conditions` *[Condition](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#condition-v1-meta) array* | Conditions contains the latest time and state when Billing Platform processed the binding. If the `Effective` condition is `true`, the binding in the `ObservedGeneration` of the object is effective, otherwise, the previous binding, or no binding is effective. |
| `bindingHistory` *[BindingHistoryRecord](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#bindinghistoryrecord) array* | BindingHistory keeps an append-only ledger of all past active billing account bindings. |

### BillingAccountList

Contains a list of BillingAccounts

| Field | Description |
|---|---|
| `apiVersion` *string* | `billing.gdc.goog/v1` |
| `kind` *string* | `BillingAccountList` |
| `metadata` *[ListMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#listmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |
| `items` *[BillingAccount](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#billingaccount) array* |   |

### BillingAccountSpec

Defines the metadata of a Billing Account.

*Appears in:*
- [BillingAccount](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#billingaccount)

| Field | Description |
|---|---|
| `displayName` *string* | A human readable name or description of this Billing Account. This name will be a selector for querying billing data in dashboards. |
| `paymentSystemConfig` *[PaymentSystemConfig](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#paymentsystemconfig)* | The link to an external payment account. |

### BillingAccountStatus

Provides the status of a BillingAccount.

*Appears in:*
- [BillingAccount](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#billingaccount)

| Field | Description |
|---|---|
| `conditions` *[Condition](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#condition-v1-meta) array* | Conditions contains the latest time and state when Billing Platform processes the BillingAccount. |

### BindingHistoryRecord

BindingHistoryRecord represents a historic binding point of a billing account to a project or organization.

*Appears in:*
- [BillingAccountBindingStatus](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#billingaccountbindingstatus)

| Field | Description |
|---|---|
| `billingAccountRef` *[NamespacedName](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#namespacedname)* |   |
| `effectiveTime` *[Time](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#time-v1-meta)* |   |

### Money

Money represents an amount of money with its currency type.

*Appears in:*
- [Price](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#price)
- [PriceTier](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#pricetier)

| Field | Description |
|---|---|
| `currencyCode` *string* |   |
| `units` *integer* | Units is the whole units of the amount. For example if `CurrencyCode` is `"USD"`, then 1 unit is one US dollar. |
| `nanos` *integer* | Nanos is the number of nano (10\^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `Units` is positive, `nanos` must be positive or zero. If `Units` is zero, `nanos` can be positive, zero, or negative. If `Units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `Units`=-1 and `Nanos`=-750,000,000. |

### PaymentSystemCloudBillingConfig

Stores the config for a Cloud Billing account.

*Appears in:*
- [PaymentSystemConfig](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#paymentsystemconfig)

| Field | Description |
|---|---|
| `accountID` *string* | The Cloud Billing account ID. |

### PaymentSystemConfig

Stores the link to an external payment account.
Fields are one-of.

*Appears in:*
- [BillingAccountSpec](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#billingaccountspec)

| Field | Description |
|---|---|
| `customConfig` *object (keys:string, values:string)* | A link to a customized account defined by Infrastructure Operators (IO). To configure the customized account using `CustomConfig`: - It should include a key `payment-config-type`, with value defined by IO. - It should list the names of identifiers of the account in keys, and values in values. Example: "payment-config-type": "Example" "account-id": "test-account-id-1" |
| `cloudBillingConfig` *[PaymentSystemCloudBillingConfig](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#paymentsystemcloudbillingconfig)* | A link to a Cloud Billing account. |

### Price

Price represents the pricing details for a SKU at a specific point in time.

*Appears in:*
- [SKUDescription](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#skudescription)

| Field | Description |
|---|---|
| `usageUnit` *string* | The unit of usage in which price is defined. Eg: "10 TiB month". |
| `effectiveTime` *[Time](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#time-v1-meta)* | EffectiveTime represents the timestamp after which the Price becomes effective. |
| `pricingStructure` *[PricingStructure](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#pricingstructure)* | PricingStructure defines the model to use. Defaults to "SINGLE_RATE" if not set. Can be "SINGLE_RATE" or "TIERED". |
| `unitPrice` *[Money](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#money)* | UnitPrice is the single, flat-rate price. Used when PricingStructure is "SINGLE_RATE". |
| `tiers` *[PriceTier](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#pricetier) array* | Tiers is the list of pricing tiers. Used when PricingStructure is "TIERED". |

### PriceTier

PriceTier defines a single tier in a tiered pricing model.

*Appears in:*
- [Price](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#price)

| Field | Description |
|---|---|
| `fromUsage` *string* | FromUsage is the start of the usage range (inclusive). For the first tier, this must be 0. |
| `displayFromUsage` *string* | DisplayFromUsage is an optional, human-readable string for UI display, e.g., "50 TB". |
| `unitPrice` *[Money](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#money)* | UnitPrice is the price per unit for this tier. |

### PricingStructure

*Underlying type:* `string`
PricingStructure defines the type of rate structure for a price entry.

*Appears in:*
- [Price](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#price)

### SKUCategory

*Underlying type:* `string`
SKUCategory is the classification of a SKU into a category.

*Appears in:*
- [SKUDescription](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#skudescription)

### SKUDescription

SKUDescription is the Schema for the skudescriptions API.

*Appears in:*
- [SKUDescriptionList](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#skudescriptionlist)

| Field | Description |
|---|---|
| `apiVersion` *string* | `billing.gdc.goog/v1` |
| `kind` *string* | `SKUDescription` |
| `metadata` *[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#objectmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |
| `status` *[SKUDescriptionStatus](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#skudescriptionstatus)* |   |
| `skuID` *string* | SKUID is the unique ID for the SKU. Example: "AA95-CD31-42FE" |
| `invoiceDescription` *string* | InvoiceDescription is a human readable description of what the SKU is. |
| `description` *string* | Description is a a long human readable description of what the SKU is. |
| `category` *[SKUCategory](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#skucategory)* | Category is the classification of a SKU into a similar grouping of SKUs. |
| `deprecationTime` *[Time](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#time-v1-meta)* | DeprecationTime represents the timestamp after which the SKU becomes deprecated. |
| `pricingInfo` *[Price](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#price) array* | PricingInfo contains a list of Price object, which represents the pricing history. |

### SKUDescriptionList

SKUDescriptionList contains a list of SKUDescription.

| Field | Description |
|---|---|
| `apiVersion` *string* | `billing.gdc.goog/v1` |
| `kind` *string* | `SKUDescriptionList` |
| `metadata` *[ListMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#listmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |
| `items` *[SKUDescription](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#skudescription) array* |   |

### SKUDescriptionStatus

*Appears in:*
- [SKUDescription](https://docs.cloud.google.com/distributed-cloud/hosted/docs/1.16/gdcag/apis/service/billing/v1/billing-v1#skudescription)

| Field | Description |
|---|---|
| `conditions` *[Condition](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#condition-v1-meta) array* | Conditions contains the latest time and state when Billing Platform processes the SKUDescription. |