REST Resource: billingAccounts.billingAccountLicenseConfigs

资源:BillingAccountLicenseConfig

结算账号级许可配置的相关信息。

JSON 表示法
{
  "name": string,
  "licenseCount": string,
  "licenseConfigDistributions": {
    string: string,
    ...
  },
  "subscriptionName": string,
  "subscriptionTier": enum (SubscriptionTier),
  "subscriptionTerm": enum (SubscriptionTerm),
  "startDate": {
    object (Date)
  },
  "endDate": {
    object (Date)
  },
  "state": enum (State),
  "autoRenew": boolean,
  "procurementEntitlementId": string,
  "subscriptionDisplayName": string,
  "geminiBundle": boolean,
  "earlyTerminated": boolean,
  "earlyTerminationDate": {
    object (Date)
  }
}
字段
name

string

不可变。标识符。结算账号许可配置的完全限定资源名称。格式:billingAccounts/{billingAccount}/billingAccountLicenseConfigs/{billingAccountLicenseConfig}

licenseCount

string (int64 format)

必需。相应结算账号许可配置下购买的许可数量。

licenseConfigDistributions

map (key: string, value: string (int64 format))

LicenseConfig 名称与分配给每个 LicenseConfig 的许可数量的对应情况。

键是 LicenseConfig 的完整资源名称,例如 projects/{project}/locations/{location}/licenseConfigs/{licenseConfig}。该值是为其分配的许可数量。

subscriptionName

string

仅限输出。相应的 SubV3 订阅名称。

subscriptionTier

enum (SubscriptionTier)

必需。订阅层级。

subscriptionTerm

enum (SubscriptionTerm)

必需。订阅期。

startDate

object (Date)

必需。订阅开始日期。

endDate

object (Date)

可选。计划的订阅结束日期。

state

enum (State)

仅限输出。BillingAccountLicenseConfig 的状态。

autoRenew

boolean

BillingAccountLicenseConfig 在达到结束日期时是否会自动续订。

procurementEntitlementId

string

相应订阅的采购使用权 ID。

subscriptionDisplayName

string

订阅显示名称。

geminiBundle

boolean

许可配置是否适用于 Gemini 软件包。

earlyTerminated

boolean

表示订阅是否在到期日期之前终止。一旦订阅从 subsv3 终止,流水线通常会终止订阅。

earlyTerminationDate

object (Date)

订阅提前终止的日期(早于到期日期)。

BillingAccountLicenseConfig 状态枚举。

枚举
STATE_UNSPECIFIED BillingAccountLicenseConfig 不存在。默认值。请勿使用。
ACTIVE BillingAccountLicenseConfig 处于有效状态且正在使用中。
EXPIRED BillingAccountLicenseConfig 已过期。
NOT_STARTED BillingAccountLicenseConfig 尚未开始,且其开始日期是将来的日期。
DEACTIVATING 许可配置在到期日期之前终止,并且正在停用。客户在此状态下仍可访问。在停用期结束(14 天)或达到结束日期后,许可配置将转换为“已过期”状态,以先到者为准。

方法

distributeLicenseConfig

将结算账号级级的 LicenseConfig 分配到项目级。

get

获取 BillingAccountLicenseConfig

list

列出指定结算账号的所有 BillingAccountLicenseConfig

retractLicenseConfig

此方法从结算账号端调用,用于将 LicenseConfig 从指定项目撤回到结算账号。