@daocloud-proto/ghippo 0.6.16 → 0.6.17

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.6.16",
3
+ "version":"0.6.17",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -27,7 +27,6 @@ export type ListOpenSourcesResponse = {
27
27
  export type OpenSource = {
28
28
  name?: string
29
29
  license?: string
30
- second?: boolean
31
30
  }
32
31
 
33
32
  export type ListGProductVersionsRequest = {
@@ -0,0 +1,82 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as fm from "../fetch.pb"
8
+ export type ListGProductLicensesRequest = {
9
+ }
10
+
11
+ export type ListGProductLicensesResponse = {
12
+ licenses?: GProductLicense[]
13
+ }
14
+
15
+ export type GetGProductLicensesRequest = {
16
+ name?: string
17
+ }
18
+
19
+ export type GetGProductLicensesResponse = {
20
+ license?: GProductLicense
21
+ }
22
+
23
+ export type UpdateGProductLicensesRequest = {
24
+ yaml?: string
25
+ }
26
+
27
+ export type UpdateGProductLicensesResponse = {
28
+ message?: string
29
+ }
30
+
31
+ export type GetGProductLicenseYamlRequest = {
32
+ name?: string
33
+ }
34
+
35
+ export type GetGProductLicenseYamlResponse = {
36
+ yaml?: string
37
+ }
38
+
39
+ export type DeleteProductLicensesRequest = {
40
+ name?: string
41
+ }
42
+
43
+ export type DeleteProductLicensesResponse = {
44
+ }
45
+
46
+ export type GetGProductLicensesESNRequest = {
47
+ }
48
+
49
+ export type GetGProductLicensesESNResponse = {
50
+ esn?: string
51
+ }
52
+
53
+ export type GProductLicense = {
54
+ meta_name?: string
55
+ license_name?: string
56
+ product_name?: string
57
+ tier?: string
58
+ status?: string
59
+ is_expired?: string
60
+ expired_at?: string
61
+ }
62
+
63
+ export class GProducts {
64
+ static ListGProductLicenses(req: ListGProductLicensesRequest, initReq?: fm.InitReq): Promise<ListGProductLicensesResponse> {
65
+ return fm.fetchReq<ListGProductLicensesRequest, ListGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
66
+ }
67
+ static GetGProductLicenses(req: GetGProductLicensesRequest, initReq?: fm.InitReq): Promise<GetGProductLicensesResponse> {
68
+ return fm.fetchReq<GetGProductLicensesRequest, GetGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
69
+ }
70
+ static UpdateGProductLicenses(req: UpdateGProductLicensesRequest, initReq?: fm.InitReq): Promise<UpdateGProductLicensesResponse> {
71
+ return fm.fetchReq<UpdateGProductLicensesRequest, UpdateGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses`, {...initReq, method: "PUT", body: JSON.stringify(req)})
72
+ }
73
+ static GetGProductLicensesYaml(req: GetGProductLicenseYamlRequest, initReq?: fm.InitReq): Promise<GetGProductLicenseYamlResponse> {
74
+ return fm.fetchReq<GetGProductLicenseYamlRequest, GetGProductLicenseYamlResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/yaml?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
75
+ }
76
+ static DeleteGProductLicenses(req: DeleteProductLicensesRequest, initReq?: fm.InitReq): Promise<DeleteProductLicensesResponse> {
77
+ return fm.fetchReq<DeleteProductLicensesRequest, DeleteProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses`, {...initReq, method: "DELETE"})
78
+ }
79
+ static GetGProductLicensesESN(req: GetGProductLicensesESNRequest, initReq?: fm.InitReq): Promise<GetGProductLicensesESNResponse> {
80
+ return fm.fetchReq<GetGProductLicensesESNRequest, GetGProductLicensesESNResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/esn?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
81
+ }
82
+ }
@@ -121,7 +121,7 @@ export type GroupSubject = {
121
121
  id?: string
122
122
  role_id?: string
123
123
  type?: string
124
- name?: string
124
+ role_name?: string
125
125
  subject_name?: string
126
126
  }
127
127
 
@@ -91,6 +91,7 @@ export type ListRoleSubjectsRequest = {
91
91
  id?: string
92
92
  offset?: number
93
93
  size?: number
94
+ search?: string
94
95
  }
95
96
 
96
97
  export type ListRoleSubjectsResponse = {
@@ -102,7 +103,7 @@ export type Subject = {
102
103
  id?: string
103
104
  role_id?: string
104
105
  type?: string
105
- name?: string
106
+ subject_name?: string
106
107
  }
107
108
 
108
109
  export class Role {
@@ -131,7 +131,7 @@ export type UserSubject = {
131
131
  id?: string
132
132
  role_id?: string
133
133
  type?: string
134
- name?: string
134
+ role_name?: string
135
135
  subject_name?: string
136
136
  }
137
137