@daocloud-proto/ghippo 0.7.34 → 0.7.37
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 +1 -1
- package/v1alpha1/ldap.pb.ts +4 -4
- package/v1alpha1/securitypolicy.pb.ts +26 -0
- package/v1alpha1/workspace.pb.ts +13 -0
package/package.json
CHANGED
package/v1alpha1/ldap.pb.ts
CHANGED
|
@@ -54,7 +54,7 @@ export type TestLdapConnectionRequest = {
|
|
|
54
54
|
export type TestLdapConnectionResponse = {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
export type
|
|
57
|
+
export type TestLdapAuthenticationRequest = {
|
|
58
58
|
bindDn?: string
|
|
59
59
|
bindCredential?: string
|
|
60
60
|
connectionUrl?: string
|
|
@@ -65,7 +65,7 @@ export type TestLdaptestAuthenticationRequest = {
|
|
|
65
65
|
componentId?: string
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
export type
|
|
68
|
+
export type TestLdapAuthenticationResponse = {
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
export type UpdateLdapRequest = {
|
|
@@ -170,8 +170,8 @@ export class Ldap {
|
|
|
170
170
|
static TestLdapConnection(req: TestLdapConnectionRequest, initReq?: fm.InitReq): Promise<TestLdapConnectionResponse> {
|
|
171
171
|
return fm.fetchReq<TestLdapConnectionRequest, TestLdapConnectionResponse>(`/apis/ghippo.io/v1alpha1/testLdapConnection`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
172
172
|
}
|
|
173
|
-
static TestLdapAuthentication(req:
|
|
174
|
-
return fm.fetchReq<
|
|
173
|
+
static TestLdapAuthentication(req: TestLdapAuthenticationRequest, initReq?: fm.InitReq): Promise<TestLdapAuthenticationResponse> {
|
|
174
|
+
return fm.fetchReq<TestLdapAuthenticationRequest, TestLdapAuthenticationResponse>(`/apis/ghippo.io/v1alpha1/testLdapAuthentication`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
175
175
|
}
|
|
176
176
|
static UpdateLdap(req: UpdateLdapRequest, initReq?: fm.InitReq): Promise<UpdateLdapResponse> {
|
|
177
177
|
return fm.fetchReq<UpdateLdapRequest, UpdateLdapResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
@@ -37,6 +37,26 @@ export type SetPasswordPolicyRequest = {
|
|
|
37
37
|
export type SetPasswordPolicyResponse = {
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
export type GetLoginPolicyRequest = {
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type GetLoginPolicyResponse = {
|
|
44
|
+
enabled?: boolean
|
|
45
|
+
maxLoginFailures?: number
|
|
46
|
+
maxFailuresWaitSeconds?: number
|
|
47
|
+
failureResetSeconds?: number
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type SetLoginPolicyRequest = {
|
|
51
|
+
enabled?: boolean
|
|
52
|
+
maxLoginFailures?: number
|
|
53
|
+
maxFailuresWaitSeconds?: number
|
|
54
|
+
failureResetSeconds?: number
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type SetLoginPolicyResponse = {
|
|
58
|
+
}
|
|
59
|
+
|
|
40
60
|
export class SecurityPolicy {
|
|
41
61
|
static GetPasswordPolicy(req: GetPasswordPolicyRequest, initReq?: fm.InitReq): Promise<GetPasswordPolicyResponse> {
|
|
42
62
|
return fm.fetchReq<GetPasswordPolicyRequest, GetPasswordPolicyResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/password?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -44,4 +64,10 @@ export class SecurityPolicy {
|
|
|
44
64
|
static SetPasswordPolicy(req: SetPasswordPolicyRequest, initReq?: fm.InitReq): Promise<SetPasswordPolicyResponse> {
|
|
45
65
|
return fm.fetchReq<SetPasswordPolicyRequest, SetPasswordPolicyResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/password`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
46
66
|
}
|
|
67
|
+
static GetLoginPolicy(req: GetLoginPolicyRequest, initReq?: fm.InitReq): Promise<GetLoginPolicyResponse> {
|
|
68
|
+
return fm.fetchReq<GetLoginPolicyRequest, GetLoginPolicyResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/login?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
69
|
+
}
|
|
70
|
+
static SetLoginPolicy(req: SetLoginPolicyRequest, initReq?: fm.InitReq): Promise<SetLoginPolicyResponse> {
|
|
71
|
+
return fm.fetchReq<SetLoginPolicyRequest, SetLoginPolicyResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/login`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
72
|
+
}
|
|
47
73
|
}
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -314,6 +314,16 @@ export type ListResourceQuotaTypesResponse = {
|
|
|
314
314
|
items?: string[]
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
+
export type GetWorkspaceResourceQuotaAllocatableRequest = {
|
|
318
|
+
workspaceId?: number
|
|
319
|
+
cluster?: string
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export type GetWorkspaceResourceQuotaAllocatableResponse = {
|
|
323
|
+
setting?: {[key: string]: string}
|
|
324
|
+
allocatable?: {[key: string]: string}
|
|
325
|
+
}
|
|
326
|
+
|
|
317
327
|
export class Workspace {
|
|
318
328
|
static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
319
329
|
return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -390,4 +400,7 @@ export class Workspace {
|
|
|
390
400
|
static ListResourceQuotaTypes(req: ListResourceQuotaTypesRequest, initReq?: fm.InitReq): Promise<ListResourceQuotaTypesResponse> {
|
|
391
401
|
return fm.fetchReq<ListResourceQuotaTypesRequest, ListResourceQuotaTypesResponse>(`/apis/ghippo.io/v1alpha1/resourcequota-types?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
392
402
|
}
|
|
403
|
+
static GetWorkspaceResourceQuotaAllocatable(req: GetWorkspaceResourceQuotaAllocatableRequest, initReq?: fm.InitReq): Promise<GetWorkspaceResourceQuotaAllocatableResponse> {
|
|
404
|
+
return fm.fetchReq<GetWorkspaceResourceQuotaAllocatableRequest, GetWorkspaceResourceQuotaAllocatableResponse>(`/apis/ghippo.io/v1alpha1/workspaceresource-quota-allocatable?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
405
|
+
}
|
|
393
406
|
}
|