@daocloud-proto/ghippo 0.7.12 → 0.7.13

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.12",
3
+ "version":"0.7.13",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -13,7 +13,7 @@ export type ListGProductLicensesResponse = {
13
13
  }
14
14
 
15
15
  export type GetGProductLicensesRequest = {
16
- name?: string
16
+ id?: string
17
17
  }
18
18
 
19
19
  export type GetGProductLicensesResponse = {
@@ -29,7 +29,6 @@ export type UpdateGProductLicensesResponse = {
29
29
  }
30
30
 
31
31
  export type GetGProductLicenseYamlRequest = {
32
- name?: string
33
32
  }
34
33
 
35
34
  export type GetGProductLicenseYamlResponse = {
@@ -37,7 +36,7 @@ export type GetGProductLicenseYamlResponse = {
37
36
  }
38
37
 
39
38
  export type DeleteProductLicensesRequest = {
40
- name?: string
39
+ id?: string
41
40
  }
42
41
 
43
42
  export type DeleteProductLicensesResponse = {
@@ -58,6 +57,7 @@ export type GetGProductLicensesOverQuotaResponse = {
58
57
  }
59
58
 
60
59
  export type GProductLicense = {
60
+ id?: string
61
61
  name?: string
62
62
  module?: string
63
63
  level?: string
@@ -66,6 +66,7 @@ export type GProductLicense = {
66
66
  }
67
67
 
68
68
  export type GProductLicenseInfo = {
69
+ id?: string
69
70
  name?: string
70
71
  module?: string
71
72
  licenseKey?: string
@@ -82,7 +83,7 @@ export class GProducts {
82
83
  return fm.fetchReq<ListGProductLicensesRequest, ListGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
83
84
  }
84
85
  static GetGProductLicenses(req: GetGProductLicensesRequest, initReq?: fm.InitReq): Promise<GetGProductLicensesResponse> {
85
- return fm.fetchReq<GetGProductLicensesRequest, GetGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
86
+ return fm.fetchReq<GetGProductLicensesRequest, GetGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
86
87
  }
87
88
  static UpdateGProductLicenses(req: UpdateGProductLicensesRequest, initReq?: fm.InitReq): Promise<UpdateGProductLicensesResponse> {
88
89
  return fm.fetchReq<UpdateGProductLicensesRequest, UpdateGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses`, {...initReq, method: "PUT", body: JSON.stringify(req)})
@@ -91,7 +92,7 @@ export class GProducts {
91
92
  return fm.fetchReq<GetGProductLicenseYamlRequest, GetGProductLicenseYamlResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/yaml?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
92
93
  }
93
94
  static DeleteGProductLicenses(req: DeleteProductLicensesRequest, initReq?: fm.InitReq): Promise<DeleteProductLicensesResponse> {
94
- return fm.fetchReq<DeleteProductLicensesRequest, DeleteProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/${req["name"]}`, {...initReq, method: "DELETE"})
95
+ return fm.fetchReq<DeleteProductLicensesRequest, DeleteProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/${req["id"]}`, {...initReq, method: "DELETE"})
95
96
  }
96
97
  static GetGProductLicensesESN(req: GetGProductLicensesESNRequest, initReq?: fm.InitReq): Promise<GetGProductLicensesESNResponse> {
97
98
  return fm.fetchReq<GetGProductLicensesESNRequest, GetGProductLicensesESNResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/esn?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -11,7 +11,7 @@ export type GetLdapRequest = {
11
11
  export type GetLdapResponse = {
12
12
  id?: string
13
13
  name?: string
14
- providerType?: string
14
+ vendor?: string
15
15
  startTls?: string
16
16
  ldapProtocol?: string
17
17
  ldapHost?: string
@@ -24,7 +24,7 @@ export type GetLdapResponse = {
24
24
  }
25
25
 
26
26
  export type CreateLdapRequest = {
27
- providerType?: string
27
+ vendor?: string
28
28
  startTls?: string
29
29
  ldapProtocol?: string
30
30
  ldapHost?: string
@@ -56,7 +56,7 @@ export type TestLdapConnectionResponse = {
56
56
 
57
57
  export type UpdateLdapRequest = {
58
58
  id?: string
59
- providerType?: string
59
+ vendor?: string
60
60
  startTls?: string
61
61
  ldapProtocol?: string
62
62
  ldapHost?: string
@@ -75,7 +75,7 @@ export type SyncUsersRequest = {
75
75
  id?: string
76
76
  }
77
77
 
78
- export type SyncUserResponse = {
78
+ export type SyncUsersResponse = {
79
79
  ignored?: boolean
80
80
  added?: number
81
81
  updated?: number
@@ -91,6 +91,61 @@ export type DeleteLdapRequest = {
91
91
  export type DeleteLdapResponse = {
92
92
  }
93
93
 
94
+ export type GetLdapGroupRequest = {
95
+ id?: string
96
+ }
97
+
98
+ export type GetLdapGroupResponse = {
99
+ id?: string
100
+ groupDn?: string
101
+ groupObjectClasses?: string
102
+ groupNameLdapAttribute?: string
103
+ }
104
+
105
+ export type CreateLdapGroupRequest = {
106
+ id?: string
107
+ groupDn?: string
108
+ groupObjectClasses?: string
109
+ groupNameLdapAttribute?: string
110
+ }
111
+
112
+ export type CreateLdapGroupResponse = {
113
+ id?: string
114
+ }
115
+
116
+ export type UpdateLdapGroupRequest = {
117
+ ldapId?: string
118
+ id?: string
119
+ groupDn?: string
120
+ groupObjectClasses?: string
121
+ groupNameLdapAttribute?: string
122
+ }
123
+
124
+ export type UpdateLdapGroupResponse = {
125
+ }
126
+
127
+ export type DeleteLdapGroupRequest = {
128
+ ldapId?: string
129
+ id?: string
130
+ }
131
+
132
+ export type DeleteLdapGroupResponse = {
133
+ }
134
+
135
+ export type SyncLdapGroupsRequest = {
136
+ ldapId?: string
137
+ id?: string
138
+ }
139
+
140
+ export type SyncLdapGroupsResponse = {
141
+ ignored?: boolean
142
+ added?: number
143
+ updated?: number
144
+ removed?: number
145
+ failed?: number
146
+ status?: string
147
+ }
148
+
94
149
  export class Ldap {
95
150
  static GetLdap(req: GetLdapRequest, initReq?: fm.InitReq): Promise<GetLdapResponse> {
96
151
  return fm.fetchReq<GetLdapRequest, GetLdapResponse>(`/apis/ghippo.io/v1alpha1/ldap?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -104,10 +159,25 @@ export class Ldap {
104
159
  static UpdateLdap(req: UpdateLdapRequest, initReq?: fm.InitReq): Promise<UpdateLdapResponse> {
105
160
  return fm.fetchReq<UpdateLdapRequest, UpdateLdapResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
106
161
  }
107
- static SyncUsers(req: SyncUsersRequest, initReq?: fm.InitReq): Promise<SyncUserResponse> {
108
- return fm.fetchReq<SyncUsersRequest, SyncUserResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}/sync?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
162
+ static SyncUsers(req: SyncUsersRequest, initReq?: fm.InitReq): Promise<SyncUsersResponse> {
163
+ return fm.fetchReq<SyncUsersRequest, SyncUsersResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}/sync?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
109
164
  }
110
165
  static DeleteLdap(req: DeleteLdapRequest, initReq?: fm.InitReq): Promise<DeleteLdapResponse> {
111
166
  return fm.fetchReq<DeleteLdapRequest, DeleteLdapResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}`, {...initReq, method: "DELETE"})
112
167
  }
168
+ static GetLdapGroup(req: GetLdapGroupRequest, initReq?: fm.InitReq): Promise<GetLdapGroupResponse> {
169
+ return fm.fetchReq<GetLdapGroupRequest, GetLdapGroupResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}/group?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
170
+ }
171
+ static CreateLdapGroup(req: CreateLdapGroupRequest, initReq?: fm.InitReq): Promise<CreateLdapGroupResponse> {
172
+ return fm.fetchReq<CreateLdapGroupRequest, CreateLdapGroupResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}/group`, {...initReq, method: "POST", body: JSON.stringify(req)})
173
+ }
174
+ static UpdateLdapGroup(req: UpdateLdapGroupRequest, initReq?: fm.InitReq): Promise<UpdateLdapGroupResponse> {
175
+ return fm.fetchReq<UpdateLdapGroupRequest, UpdateLdapGroupResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["ldapId"]}/group/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
176
+ }
177
+ static DeleteLdapGroup(req: DeleteLdapGroupRequest, initReq?: fm.InitReq): Promise<DeleteLdapGroupResponse> {
178
+ return fm.fetchReq<DeleteLdapGroupRequest, DeleteLdapGroupResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["ldapId"]}/group/${req["id"]}`, {...initReq, method: "DELETE"})
179
+ }
180
+ static SyncLdapGroups(req: SyncLdapGroupsRequest, initReq?: fm.InitReq): Promise<SyncLdapGroupsResponse> {
181
+ return fm.fetchReq<SyncLdapGroupsRequest, SyncLdapGroupsResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["ldapId"]}/group/${req["id"]}/sync?${fm.renderURLSearchParams(req, ["ldapId", "id"])}`, {...initReq, method: "GET"})
182
+ }
113
183
  }
@@ -307,15 +307,36 @@ export type ListSharedResourceTypesResponse = {
307
307
  pagination?: Pagination
308
308
  }
309
309
 
310
+ export type Resource = {
311
+ resourceName?: string
312
+ resourceType?: string
313
+ resourceScope?: string
314
+ gproduct?: string
315
+ }
316
+
317
+ export type QuotaHard = {
318
+ limits?: QuotaHardResource
319
+ requests?: QuotaHardResource
320
+ }
321
+
322
+ export type QuotaHardResource = {
323
+ cpu?: string
324
+ memory?: string
325
+ }
326
+
310
327
  export type BindResourceAndSetQuotaHardToWorkspaceRequest = {
311
328
  workspaceId?: number
312
- resourceName?: string
329
+ quotaHard?: QuotaHard
330
+ resource?: Resource
313
331
  }
314
332
 
315
333
  export type BindResourceAndSetQuotaHardToWorkspaceResponse = {
316
334
  }
317
335
 
318
336
  export type SetQuotaHardForWorkspaceResourceRequest = {
337
+ workspaceResourceId?: number
338
+ limits?: QuotaHardResource
339
+ requests?: QuotaHardResource
319
340
  }
320
341
 
321
342
  export type SetQuotaHardForWorkspaceResourceResponse = {