@daocloud-proto/kairship 0.0.6 → 0.0.7-6

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.
@@ -0,0 +1,44 @@
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 KairshipIoApiTypesObjectmeta from "../../types/objectmeta.pb"
8
+ export type KarmadaDeployment = {
9
+ metadata?: KairshipIoApiTypesObjectmeta.ObjectMeta
10
+ spec?: KarmadaDeploymentSpec
11
+ status?: KarmadaDeploymentStatus
12
+ }
13
+
14
+ export type KarmadaDeploymentSpec = {
15
+ mode?: string
16
+ images?: Images
17
+ secretRef?: SecretRef
18
+ }
19
+
20
+ export type SecretRef = {
21
+ name?: string
22
+ namespace?: string
23
+ }
24
+
25
+ export type Images = {
26
+ karmadaRegistry?: string
27
+ karmadaVersion?: string
28
+ kubeResgistry?: string
29
+ kubeVersion?: string
30
+ }
31
+
32
+ export type KarmadaDeploymentStatus = {
33
+ phase?: string
34
+ controlPlaneReady?: boolean
35
+ }
36
+
37
+ export type CreateKarmadaDeploymentRequest = {
38
+ cluster?: string
39
+ data?: KarmadaDeployment
40
+ }
41
+
42
+ export type GetOrDeleteKarmadaDeploymentRequest = {
43
+ name?: string
44
+ }
@@ -8,14 +8,9 @@ import * as fm from "../../../fetch.pb"
8
8
  import * as GoogleProtobufEmpty from "../../../google/api/empty.pb"
9
9
  import * as KairshipIoApiAppsV1alpha1Deployment from "../apps/v1alpha1/deployment.pb"
10
10
  import * as KairshipIoApiClusterV1alpha1Cluster from "../cluster/v1alpha1/cluster.pb"
11
- import * as KairshipIoApiGuestbookV1alpha1Guestbook from "../guestbook/v1alpha1/guestbook.pb"
11
+ import * as KairshipIoApiInstallV1alpha1Karmadadeployment from "../install/v1alpha1/karmadadeployment.pb"
12
12
  import * as KairshipIoApiPolicyV1alpha1Overridepolicy from "../policy/v1alpha1/overridepolicy.pb"
13
13
  import * as KairshipIoApiPolicyV1alpha1Pp from "../policy/v1alpha1/pp.pb"
14
- export class example {
15
- static GetGuestBook(req: KairshipIoApiGuestbookV1alpha1Guestbook.GetGuestBookRequest, initReq?: fm.InitReq): Promise<KairshipIoApiGuestbookV1alpha1Guestbook.GuestBook> {
16
- return fm.fetchReq<KairshipIoApiGuestbookV1alpha1Guestbook.GetGuestBookRequest, KairshipIoApiGuestbookV1alpha1Guestbook.GuestBook>(`/apis/kairship.io/v1alpha1/guestbooks/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
17
- }
18
- }
19
14
  export class Policy {
20
15
  static ListPropagationPolicies(req: KairshipIoApiPolicyV1alpha1Pp.ListAllPropagationPoliciesRequest, initReq?: fm.InitReq): Promise<KairshipIoApiPolicyV1alpha1Pp.ListPropagationPoliciesResponse> {
21
16
  return fm.fetchReq<KairshipIoApiPolicyV1alpha1Pp.ListAllPropagationPoliciesRequest, KairshipIoApiPolicyV1alpha1Pp.ListPropagationPoliciesResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/propagationpolicies?${fm.renderURLSearchParams(req, ["instance", "namespace"])}`, {...initReq, method: "GET"})
@@ -90,4 +85,15 @@ export class Apps {
90
85
  static RestartDeployment(req: KairshipIoApiAppsV1alpha1Deployment.RestartDeploymentRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAppsV1alpha1Deployment.RestartDeploymentResponse> {
91
86
  return fm.fetchReq<KairshipIoApiAppsV1alpha1Deployment.RestartDeploymentRequest, KairshipIoApiAppsV1alpha1Deployment.RestartDeploymentResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}:restart`, {...initReq, method: "POST"})
92
87
  }
88
+ }
89
+ export class Install {
90
+ static CreateKarmadaDeployment(req: KairshipIoApiInstallV1alpha1Karmadadeployment.CreateKarmadaDeploymentRequest, initReq?: fm.InitReq): Promise<KairshipIoApiInstallV1alpha1Karmadadeployment.KarmadaDeployment> {
91
+ return fm.fetchReq<KairshipIoApiInstallV1alpha1Karmadadeployment.CreateKarmadaDeploymentRequest, KairshipIoApiInstallV1alpha1Karmadadeployment.KarmadaDeployment>(`/apis/kairship.io/v1alpha1/karmadadeployments`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
92
+ }
93
+ static GetKarmadaDeployment(req: KairshipIoApiInstallV1alpha1Karmadadeployment.GetOrDeleteKarmadaDeploymentRequest, initReq?: fm.InitReq): Promise<KairshipIoApiInstallV1alpha1Karmadadeployment.KarmadaDeployment> {
94
+ return fm.fetchReq<KairshipIoApiInstallV1alpha1Karmadadeployment.GetOrDeleteKarmadaDeploymentRequest, KairshipIoApiInstallV1alpha1Karmadadeployment.KarmadaDeployment>(`/apis/kairship.io/v1alpha1/karmadadeployments/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
95
+ }
96
+ static DeleteKarmadaDeployment(req: KairshipIoApiInstallV1alpha1Karmadadeployment.GetOrDeleteKarmadaDeploymentRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
97
+ return fm.fetchReq<KairshipIoApiInstallV1alpha1Karmadadeployment.GetOrDeleteKarmadaDeploymentRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/karmadadeployments/${req["name"]}`, {...initReq, method: "DELETE"})
98
+ }
93
99
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kairship",
3
- "version":"0.0.6",
3
+ "version":"0.0.7-6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,14 +0,0 @@
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 KairshipIoApiTypesObjectmeta from "../../types/objectmeta.pb"
8
- export type GuestBook = {
9
- metadata?: KairshipIoApiTypesObjectmeta.ObjectMeta
10
- }
11
-
12
- export type GetGuestBookRequest = {
13
- name?: string
14
- }