REST Resource: projects.locations.licenseConfigs

資源:LicenseConfig

使用者的授權相關資訊。

JSON 表示法
{
  "name": string,
  "licenseCount": string,
  "subscriptionTier": enum (SubscriptionTier),
  "state": enum (State),
  "autoRenew": boolean,
  "startDate": {
    object (Date)
  },
  "endDate": {
    object (Date)
  },
  "subscriptionTerm": enum (SubscriptionTerm),
  "freeTrial": boolean,
  "alertPolicyResourceConfig": {
    object (AlertPolicyResourceConfig)
  },
  "geminiBundle": boolean
}
欄位
name

string

不可變更。ID。授權設定的完整資源名稱。格式:projects/{project}/locations/{location}/licenseConfigs/{licenseConfig}

licenseCount

string (int64 format)

這是必要旗標,購買的授權數量。

subscriptionTier

enum (SubscriptionTier)

這是必要旗標,授權設定的訂閱級別資訊。

state

enum (State)

僅供輸出。授權設定的狀態。

autoRenew

boolean

(選用步驟) 授權設定是否應在到期時自動續訂。

startDate

object (Date)

這是必要旗標,開始日期。

endDate

object (Date)

(選用步驟) 預定結束日期。

subscriptionTerm

enum (SubscriptionTerm)

這是必要旗標,訂閱約期。

freeTrial

boolean

(選用步驟) 授權設定是否適用於免費試用。

alertPolicyResourceConfig

object (AlertPolicyResourceConfig)

(選用步驟) 這項授權設定的警告政策設定。

geminiBundle

boolean

僅供輸出。授權設定是否適用於 Gemini 套裝組合。

狀態

授權設定狀態列舉。

列舉
STATE_UNSPECIFIED 預設值。授權設定不存在。
ACTIVE 授權設定有效且正在使用中。
EXPIRED 授權設定已過期。
NOT_STARTED 授權設定尚未開始,開始日期為未來的時間。

AlertPolicyResourceConfig

資源層級快訊設定。適用於:* UserLicense * EngineUserData 資料連接器中的 AlertPolicyConfig 用途相同。無法輕鬆遷移。

JSON 表示法
{
  "alertPolicy": string,
  "alertEnrollments": [
    {
      object (AlertEnrollment)
    }
  ],
  "contactDetails": [
    {
      object (ContactDetails)
    }
  ],
  "languageCode": string
}
欄位
alertPolicy

string

不可變更。AlertPolicy 的完整資源名稱。

alertEnrollments[]

object (AlertEnrollment)

(選用步驟) 每則快訊的註冊狀態。

contactDetails[]

object (ContactDetails)

(選用步驟) 每項警告政策的聯絡人詳細資料。

languageCode

string

(選用步驟) 通知使用的語言代碼

AlertEnrollment

快訊註冊狀態。

JSON 表示法
{
  "alertId": string,
  "enrollState": enum (EnrollState),
  "notificationParams": {
    string: string,
    ...
  }
}
欄位
alertId

string

不可變更。快訊的 ID。

enrollState

enum (EnrollState)

這是必要旗標,客戶的註冊狀態。

notificationParams

map (key: string, value: string)

(選用步驟) 用於例項化通知的參數。用於在註冊時觸發的通知。不會儲存。* Gemini Business 歡迎電子郵件。* Gemini Business 使用者邀請電子郵件。

EnrollState

快訊的註冊狀態列舉。

列舉
ENROLL_STATE_UNSPECIFIED 預設值。適用於尚未回應快訊政策的客戶。
ENROLLED 客戶已註冊這項政策。
DECLINED 顧客拒絕這項政策。

ContactDetails

儲存在資源層級的聯絡資訊。如果專案層級和資源層級都填寫了聯絡資訊,系統會優先採用資源層級的聯絡資訊。

JSON 表示法
{
  "emailAddress": string
}
欄位
emailAddress

string

(選用步驟) 聯絡人的電子郵件地址。

方法

create

建立 LicenseConfig

get

取得 LicenseConfig

patch

更新 LicenseConfig