@daocloud-proto/kairship 0.6.0-281 → 0.6.0-283
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.
|
@@ -109,6 +109,29 @@ export type ListServicesResponse = {
|
|
|
109
109
|
pagination?: KairshipIoApiTypesPage.Pagination
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
export type ListMemberClusterServicesRequest = {
|
|
113
|
+
instance?: string
|
|
114
|
+
cluster?: string
|
|
115
|
+
namespace?: string
|
|
116
|
+
page?: number
|
|
117
|
+
pageSize?: number
|
|
118
|
+
name?: string
|
|
119
|
+
sortBy?: KairshipIoApiTypesPage.SortBy
|
|
120
|
+
sortDir?: KairshipIoApiTypesPage.SortDir
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type ListMemberClusterServicesResponse = {
|
|
124
|
+
items?: Service[]
|
|
125
|
+
pagination?: KairshipIoApiTypesPage.Pagination
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export type PromoteMemberClusterServiceRequest = {
|
|
129
|
+
instance?: string
|
|
130
|
+
cluster?: string
|
|
131
|
+
namespace?: string
|
|
132
|
+
name?: string
|
|
133
|
+
}
|
|
134
|
+
|
|
112
135
|
export type GetServiceRequest = {
|
|
113
136
|
instance?: string
|
|
114
137
|
namespace?: string
|
|
@@ -106,6 +106,29 @@ export type ListInstanceIngressesResponse = {
|
|
|
106
106
|
pagination?: KairshipIoApiTypesPage.Pagination
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
+
export type ListMemberClusterIngressesRequest = {
|
|
110
|
+
instance?: string
|
|
111
|
+
cluster?: string
|
|
112
|
+
namespace?: string
|
|
113
|
+
page?: number
|
|
114
|
+
pageSize?: number
|
|
115
|
+
name?: string
|
|
116
|
+
sortBy?: KairshipIoApiTypesPage.SortBy
|
|
117
|
+
sortDir?: KairshipIoApiTypesPage.SortDir
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export type ListMemberClusterIngressesResponse = {
|
|
121
|
+
items?: Ingress[]
|
|
122
|
+
pagination?: KairshipIoApiTypesPage.Pagination
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export type PromoteMemberClusterIngressRequest = {
|
|
126
|
+
instance?: string
|
|
127
|
+
cluster?: string
|
|
128
|
+
namespace?: string
|
|
129
|
+
name?: string
|
|
130
|
+
}
|
|
131
|
+
|
|
109
132
|
export type ListIngressesRequest = {
|
|
110
133
|
instance?: string
|
|
111
134
|
namespace?: string
|
|
@@ -260,6 +260,15 @@ export class Core {
|
|
|
260
260
|
static GetServiceJSON(req: KairshipIoApiCoreV1alpha1Service.GetServiceJSONRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Service.GetServiceJSONResponse> {
|
|
261
261
|
return fm.fetchReq<KairshipIoApiCoreV1alpha1Service.GetServiceJSONRequest, KairshipIoApiCoreV1alpha1Service.GetServiceJSONResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/services/${req["name"]}/json?${fm.renderURLSearchParams(req, ["instance", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
262
262
|
}
|
|
263
|
+
static ListMemberClusterServices(req: KairshipIoApiCoreV1alpha1Service.ListMemberClusterServicesRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Service.ListMemberClusterServicesResponse> {
|
|
264
|
+
return fm.fetchReq<KairshipIoApiCoreV1alpha1Service.ListMemberClusterServicesRequest, KairshipIoApiCoreV1alpha1Service.ListMemberClusterServicesResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/member-clusters/${req["cluster"]}/namespaces/${req["namespace"]}/services?${fm.renderURLSearchParams(req, ["instance", "cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
265
|
+
}
|
|
266
|
+
static ListMemberClusterAllServices(req: KairshipIoApiCoreV1alpha1Service.ListMemberClusterServicesRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Service.ListMemberClusterServicesResponse> {
|
|
267
|
+
return fm.fetchReq<KairshipIoApiCoreV1alpha1Service.ListMemberClusterServicesRequest, KairshipIoApiCoreV1alpha1Service.ListMemberClusterServicesResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/member-clusters/${req["cluster"]}/services?${fm.renderURLSearchParams(req, ["instance", "cluster"])}`, {...initReq, method: "GET"})
|
|
268
|
+
}
|
|
269
|
+
static PromoteMemberClusterService(req: KairshipIoApiCoreV1alpha1Service.PromoteMemberClusterServiceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
270
|
+
return fm.fetchReq<KairshipIoApiCoreV1alpha1Service.PromoteMemberClusterServiceRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/member-clusters/${req["cluster"]}/namespaces/${req["namespace"]}/services/${req["name"]}:promote`, {...initReq, method: "POST"})
|
|
271
|
+
}
|
|
263
272
|
static CreateWorkloadService(req: KairshipIoApiCoreV1alpha1Service.CreateWorkloadServiceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
264
273
|
return fm.fetchReq<KairshipIoApiCoreV1alpha1Service.CreateWorkloadServiceRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/workloadservices`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
265
274
|
}
|
|
@@ -395,6 +404,15 @@ export class Networking {
|
|
|
395
404
|
static GetIngressJSON(req: KairshipIoApiNetworkingV1alpha1Ingress.GetIngressJSONRequest, initReq?: fm.InitReq): Promise<KairshipIoApiNetworkingV1alpha1Ingress.GetIngressJSONResponse> {
|
|
396
405
|
return fm.fetchReq<KairshipIoApiNetworkingV1alpha1Ingress.GetIngressJSONRequest, KairshipIoApiNetworkingV1alpha1Ingress.GetIngressJSONResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/ingresses/${req["name"]}/json?${fm.renderURLSearchParams(req, ["instance", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
397
406
|
}
|
|
407
|
+
static ListMemberClusterIngresses(req: KairshipIoApiNetworkingV1alpha1Ingress.ListMemberClusterIngressesRequest, initReq?: fm.InitReq): Promise<KairshipIoApiNetworkingV1alpha1Ingress.ListMemberClusterIngressesResponse> {
|
|
408
|
+
return fm.fetchReq<KairshipIoApiNetworkingV1alpha1Ingress.ListMemberClusterIngressesRequest, KairshipIoApiNetworkingV1alpha1Ingress.ListMemberClusterIngressesResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/member-clusters/${req["cluster"]}/namespaces/${req["namespace"]}/ingresses?${fm.renderURLSearchParams(req, ["instance", "cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
409
|
+
}
|
|
410
|
+
static ListMemberClusterAllIngresses(req: KairshipIoApiNetworkingV1alpha1Ingress.ListMemberClusterIngressesRequest, initReq?: fm.InitReq): Promise<KairshipIoApiNetworkingV1alpha1Ingress.ListMemberClusterIngressesResponse> {
|
|
411
|
+
return fm.fetchReq<KairshipIoApiNetworkingV1alpha1Ingress.ListMemberClusterIngressesRequest, KairshipIoApiNetworkingV1alpha1Ingress.ListMemberClusterIngressesResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/member-clusters/${req["cluster"]}/ingresses?${fm.renderURLSearchParams(req, ["instance", "cluster"])}`, {...initReq, method: "GET"})
|
|
412
|
+
}
|
|
413
|
+
static PromoteMemberClusterIngress(req: KairshipIoApiNetworkingV1alpha1Ingress.PromoteMemberClusterIngressRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
414
|
+
return fm.fetchReq<KairshipIoApiNetworkingV1alpha1Ingress.PromoteMemberClusterIngressRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/member-clusters/${req["cluster"]}/namespaces/${req["namespace"]}/ingresses/${req["name"]}:promote`, {...initReq, method: "POST"})
|
|
415
|
+
}
|
|
398
416
|
static CreateIngress(req: KairshipIoApiNetworkingV1alpha1Ingress.CreateIngressRequest, initReq?: fm.InitReq): Promise<KairshipIoApiNetworkingV1alpha1Ingress.CreateIngressResponse> {
|
|
399
417
|
return fm.fetchReq<KairshipIoApiNetworkingV1alpha1Ingress.CreateIngressRequest, KairshipIoApiNetworkingV1alpha1Ingress.CreateIngressResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/ingresses`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
400
418
|
}
|