@daocloud-proto/ghippo 0.7.4 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/ghippo",
3
- "version":"0.7.4",
3
+ "version":"0.7.5",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -17,7 +17,7 @@ export type GetGProductLicensesRequest = {
17
17
  }
18
18
 
19
19
  export type GetGProductLicensesResponse = {
20
- license?: GProductLicense
20
+ license?: GProductLicenseInfo
21
21
  }
22
22
 
23
23
  export type UpdateGProductLicensesRequest = {
@@ -50,15 +50,33 @@ export type GetGProductLicensesESNResponse = {
50
50
  esn?: string
51
51
  }
52
52
 
53
+ export type GetGProductLicensesOverQuotaRequest = {
54
+ }
55
+
56
+ export type GetGProductLicensesOverQuotaResponse = {
57
+ licenses?: GProductLicense[]
58
+ }
59
+
53
60
  export type GProductLicense = {
54
61
  name?: string
55
- alias?: string
56
- productName?: string
57
- tier?: string
62
+ module?: string
63
+ level?: string
58
64
  status?: string
59
65
  expiredAt?: string
60
66
  }
61
67
 
68
+ export type GProductLicenseInfo = {
69
+ name?: string
70
+ module?: string
71
+ licenseKey?: string
72
+ licenseLevel?: string
73
+ physicalUsedCpu?: string
74
+ physicalMaxCpu?: string
75
+ virtualUsedCpu?: string
76
+ virtualMaxCpu?: string
77
+ expiredAt?: string
78
+ }
79
+
62
80
  export class GProducts {
63
81
  static ListGProductLicenses(req: ListGProductLicensesRequest, initReq?: fm.InitReq): Promise<ListGProductLicensesResponse> {
64
82
  return fm.fetchReq<ListGProductLicensesRequest, ListGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})