@scaleway/sdk-k8s 2.15.0 → 2.16.0
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/LICENSE +191 -0
- package/package.json +9 -8
- package/dist/.vite/license.md +0 -3
- package/dist/_virtual/_rolldown/runtime.js +0 -13
- package/dist/index.gen.d.ts +0 -5
- package/dist/index.gen.js +0 -2
- package/dist/metadata.gen.d.ts +0 -12
- package/dist/metadata.gen.js +0 -13
- package/dist/v1/api.gen.d.ts +0 -291
- package/dist/v1/api.gen.js +0 -210
- package/dist/v1/api.utils.d.ts +0 -11
- package/dist/v1/api.utils.js +0 -10
- package/dist/v1/content.gen.d.ts +0 -7
- package/dist/v1/content.gen.js +0 -24
- package/dist/v1/index.d.ts +0 -4
- package/dist/v1/index.gen.d.ts +0 -5
- package/dist/v1/index.gen.js +0 -5
- package/dist/v1/index.js +0 -14
- package/dist/v1/marshalling.gen.d.ts +0 -30
- package/dist/v1/marshalling.gen.js +0 -480
- package/dist/v1/metadata.gen.d.ts +0 -149
- package/dist/v1/metadata.gen.js +0 -166
- package/dist/v1/types.gen.d.ts +0 -1690
- package/dist/v1/types.gen.js +0 -0
- package/dist/v1/utils-metadata.d.ts +0 -18
- package/dist/v1/utils-metadata.js +0 -21
- package/dist/v1/validation-rules.gen.d.ts +0 -166
- package/dist/v1/validation-rules.gen.js +0 -119
package/LICENSE
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
https://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
Copyright 2019 Scaleway.
|
|
180
|
+
|
|
181
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
|
+
you may not use this file except in compliance with the License.
|
|
183
|
+
You may obtain a copy of the License at
|
|
184
|
+
|
|
185
|
+
https://www.apache.org/licenses/LICENSE-2.0
|
|
186
|
+
|
|
187
|
+
Unless required by applicable law or agreed to in writing, software
|
|
188
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
189
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
190
|
+
See the License for the specific language governing permissions and
|
|
191
|
+
limitations under the License.
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-k8s",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"description": "Scaleway SDK k8s",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
+
"url": "https://github.com/scaleway/scaleway-sdk-js.git",
|
|
8
9
|
"directory": "packages_generated/k8s"
|
|
9
10
|
},
|
|
10
11
|
"files": [
|
|
@@ -31,23 +32,23 @@
|
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@scaleway/random-name": "
|
|
35
|
-
"@scaleway/sdk-std": "2.4.
|
|
35
|
+
"@scaleway/random-name": "6.0.2",
|
|
36
|
+
"@scaleway/sdk-std": "2.4.4"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
39
|
+
"@repo/configs": "^0.1.1",
|
|
40
|
+
"@scaleway/sdk-client": "^2.5.0"
|
|
40
41
|
},
|
|
41
42
|
"peerDependencies": {
|
|
42
|
-
"@scaleway/sdk-client": "^2.
|
|
43
|
+
"@scaleway/sdk-client": "^2.5.0"
|
|
43
44
|
},
|
|
44
45
|
"engines": {
|
|
45
46
|
"node": ">=20.20.2"
|
|
46
47
|
},
|
|
47
48
|
"scripts": {
|
|
48
49
|
"package:check": "pnpm publint",
|
|
49
|
-
"typecheck": "
|
|
50
|
-
"type:generate": "
|
|
50
|
+
"typecheck": "tsc --noEmit",
|
|
51
|
+
"type:generate": "tsc --declaration -p tsconfig.build.json",
|
|
51
52
|
"build": "vite build --config vite.config.ts && pnpm run type:generate",
|
|
52
53
|
"build:profile": "npx vite-bundle-visualizer -c vite.config.ts"
|
|
53
54
|
}
|
package/dist/.vite/license.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __exportAll = (all, no_symbols) => {
|
|
4
|
-
let target = {};
|
|
5
|
-
for (var name in all) __defProp(target, name, {
|
|
6
|
-
get: all[name],
|
|
7
|
-
enumerable: true
|
|
8
|
-
});
|
|
9
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
-
return target;
|
|
11
|
-
};
|
|
12
|
-
//#endregion
|
|
13
|
-
export { __exportAll };
|
package/dist/index.gen.d.ts
DELETED
package/dist/index.gen.js
DELETED
package/dist/metadata.gen.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is automatically generated
|
|
3
|
-
* PLEASE DO NOT EDIT HERE
|
|
4
|
-
*/
|
|
5
|
-
export declare const pkgMetadata: {
|
|
6
|
-
readonly name: "@scaleway/sdk-k8s";
|
|
7
|
-
readonly namespace: "k8s";
|
|
8
|
-
readonly displayName: "K8S";
|
|
9
|
-
readonly versions: readonly ["v1"];
|
|
10
|
-
};
|
|
11
|
-
export type Metadata = typeof pkgMetadata;
|
|
12
|
-
export default pkgMetadata;
|
package/dist/metadata.gen.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//#region src/metadata.gen.ts
|
|
2
|
-
/**
|
|
3
|
-
* This file is automatically generated
|
|
4
|
-
* PLEASE DO NOT EDIT HERE
|
|
5
|
-
*/
|
|
6
|
-
const pkgMetadata = {
|
|
7
|
-
name: "@scaleway/sdk-k8s",
|
|
8
|
-
namespace: "k8s",
|
|
9
|
-
displayName: "K8S",
|
|
10
|
-
versions: ["v1"]
|
|
11
|
-
};
|
|
12
|
-
//#endregion
|
|
13
|
-
export { pkgMetadata as default, pkgMetadata };
|
package/dist/v1/api.gen.d.ts
DELETED
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
|
-
import type { WaitForOptions, ApiLocality } from '@scaleway/sdk-client';
|
|
3
|
-
import type { AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExternalNodeRequest, Cluster, CreateClusterRequest, CreatePoolRequest, DeleteACLRuleRequest, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNodeAuth, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeMetadataRequest, GetNodeRequest, GetPoolRequest, GetVersionRequest, ListClusterACLRulesRequest, ListClusterACLRulesResponse, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersResponse, ListNodesRequest, ListNodesResponse, ListPoolsRequest, ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, Node, NodeMetadata, Pool, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, SetClusterACLRulesRequest, SetClusterACLRulesResponse, SetClusterTypeRequest, SetPoolLabelsRequest, SetPoolStartupTaintsRequest, SetPoolTaintsRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest, Version } from './types.gen.js';
|
|
4
|
-
/**
|
|
5
|
-
* Kubernetes API.
|
|
6
|
-
|
|
7
|
-
This API allows you to manage Kubernetes Kapsule and Kosmos clusters.
|
|
8
|
-
*/
|
|
9
|
-
export declare class API extends ParentAPI {
|
|
10
|
-
/**
|
|
11
|
-
* Locality of this API.
|
|
12
|
-
* type ∈ {'zone','region','global','unspecified'}
|
|
13
|
-
*/
|
|
14
|
-
static readonly LOCALITY: ApiLocality;
|
|
15
|
-
protected pageOfListClusters: (request?: Readonly<ListClustersRequest>) => Promise<ListClustersResponse>;
|
|
16
|
-
/**
|
|
17
|
-
* List Clusters. List all existing Kubernetes clusters in a specific region.
|
|
18
|
-
*
|
|
19
|
-
* @param request - The request {@link ListClustersRequest}
|
|
20
|
-
* @returns A Promise of ListClustersResponse
|
|
21
|
-
*/
|
|
22
|
-
listClusters: (request?: Readonly<ListClustersRequest>) => Promise<ListClustersResponse> & {
|
|
23
|
-
all: () => Promise<Cluster[]>;
|
|
24
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<Cluster[], void, void>;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Create a new Cluster. Create a new Kubernetes cluster in a Scaleway region.
|
|
28
|
-
*
|
|
29
|
-
* @param request - The request {@link CreateClusterRequest}
|
|
30
|
-
* @returns A Promise of Cluster
|
|
31
|
-
*/
|
|
32
|
-
createCluster: (request: Readonly<CreateClusterRequest>) => Promise<Cluster>;
|
|
33
|
-
/**
|
|
34
|
-
* Get a Cluster. Retrieve information about a specific Kubernetes cluster.
|
|
35
|
-
*
|
|
36
|
-
* @param request - The request {@link GetClusterRequest}
|
|
37
|
-
* @returns A Promise of Cluster
|
|
38
|
-
*/
|
|
39
|
-
getCluster: (request: Readonly<GetClusterRequest>) => Promise<Cluster>;
|
|
40
|
-
/**
|
|
41
|
-
* Waits for {@link Cluster} to be in a final state.
|
|
42
|
-
*
|
|
43
|
-
* @param request - The request {@link GetClusterRequest}
|
|
44
|
-
* @param options - The waiting options
|
|
45
|
-
* @returns A Promise of Cluster
|
|
46
|
-
*/
|
|
47
|
-
waitForCluster: (request: Readonly<GetClusterRequest>, options?: Readonly<WaitForOptions<Cluster>>) => Promise<Cluster>;
|
|
48
|
-
/**
|
|
49
|
-
* Update a Cluster. Update information on a specific Kubernetes cluster. You can update details such as its name, description, tags and configuration. To upgrade a cluster, you will need to use the dedicated endpoint.
|
|
50
|
-
*
|
|
51
|
-
* @param request - The request {@link UpdateClusterRequest}
|
|
52
|
-
* @returns A Promise of Cluster
|
|
53
|
-
*/
|
|
54
|
-
updateCluster: (request: Readonly<UpdateClusterRequest>) => Promise<Cluster>;
|
|
55
|
-
/**
|
|
56
|
-
* Delete a Cluster. Delete a specific Kubernetes cluster and all its associated pools and nodes, and possibly its associated Load Balancers or Block Volumes.
|
|
57
|
-
*
|
|
58
|
-
* @param request - The request {@link DeleteClusterRequest}
|
|
59
|
-
* @returns A Promise of Cluster
|
|
60
|
-
*/
|
|
61
|
-
deleteCluster: (request: Readonly<DeleteClusterRequest>) => Promise<Cluster>;
|
|
62
|
-
/**
|
|
63
|
-
* Upgrade a Cluster. Upgrade a specific Kubernetes cluster and possibly its associated pools to a specific and supported Kubernetes version.
|
|
64
|
-
*
|
|
65
|
-
* @param request - The request {@link UpgradeClusterRequest}
|
|
66
|
-
* @returns A Promise of Cluster
|
|
67
|
-
*/
|
|
68
|
-
upgradeCluster: (request: Readonly<UpgradeClusterRequest>) => Promise<Cluster>;
|
|
69
|
-
/**
|
|
70
|
-
* Change the Cluster type. Change the type of a specific Kubernetes cluster. To see the possible values you can enter for the `type` field, [list available cluster types](#list-available-cluster-types-for-a-cluster).
|
|
71
|
-
*
|
|
72
|
-
* @param request - The request {@link SetClusterTypeRequest}
|
|
73
|
-
* @returns A Promise of Cluster
|
|
74
|
-
*/
|
|
75
|
-
setClusterType: (request: Readonly<SetClusterTypeRequest>) => Promise<Cluster>;
|
|
76
|
-
/**
|
|
77
|
-
* List available versions for a Cluster. List the versions that a specific Kubernetes cluster is allowed to upgrade to. Results will include every patch version greater than the current patch, as well as one minor version ahead of the current version. Any upgrade skipping a minor version will not work.
|
|
78
|
-
*
|
|
79
|
-
* @param request - The request {@link ListClusterAvailableVersionsRequest}
|
|
80
|
-
* @returns A Promise of ListClusterAvailableVersionsResponse
|
|
81
|
-
*/
|
|
82
|
-
listClusterAvailableVersions: (request: Readonly<ListClusterAvailableVersionsRequest>) => Promise<ListClusterAvailableVersionsResponse>;
|
|
83
|
-
/**
|
|
84
|
-
* List available cluster types for a cluster. List the cluster types that a specific Kubernetes cluster is allowed to switch to.
|
|
85
|
-
*
|
|
86
|
-
* @param request - The request {@link ListClusterAvailableTypesRequest}
|
|
87
|
-
* @returns A Promise of ListClusterAvailableTypesResponse
|
|
88
|
-
*/
|
|
89
|
-
listClusterAvailableTypes: (request: Readonly<ListClusterAvailableTypesRequest>) => Promise<ListClusterAvailableTypesResponse>;
|
|
90
|
-
protected _getClusterKubeConfig: (request: Readonly<GetClusterKubeConfigRequest>) => Promise<Blob>;
|
|
91
|
-
/**
|
|
92
|
-
* Reset the admin token of a Cluster. Reset the admin token for a specific Kubernetes cluster. This will revoke the old admin token (which will not be usable afterwards) and create a new one. Note that you will need to download the kubeconfig again to keep interacting with the cluster.
|
|
93
|
-
*
|
|
94
|
-
* @param request - The request {@link ResetClusterAdminTokenRequest}
|
|
95
|
-
*/
|
|
96
|
-
resetClusterAdminToken: (request: Readonly<ResetClusterAdminTokenRequest>) => Promise<void>;
|
|
97
|
-
protected pageOfListClusterACLRules: (request: Readonly<ListClusterACLRulesRequest>) => Promise<ListClusterACLRulesResponse>;
|
|
98
|
-
/**
|
|
99
|
-
* List ACLs. List ACLs for a specific cluster.
|
|
100
|
-
*
|
|
101
|
-
* @param request - The request {@link ListClusterACLRulesRequest}
|
|
102
|
-
* @returns A Promise of ListClusterACLRulesResponse
|
|
103
|
-
*/
|
|
104
|
-
listClusterACLRules: (request: Readonly<ListClusterACLRulesRequest>) => Promise<ListClusterACLRulesResponse> & {
|
|
105
|
-
all: () => Promise<import("./types.gen.js").ACLRule[]>;
|
|
106
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen.js").ACLRule[], void, void>;
|
|
107
|
-
};
|
|
108
|
-
/**
|
|
109
|
-
* Add new ACLs. Add new ACL rules for a specific cluster.
|
|
110
|
-
*
|
|
111
|
-
* @param request - The request {@link AddClusterACLRulesRequest}
|
|
112
|
-
* @returns A Promise of AddClusterACLRulesResponse
|
|
113
|
-
*/
|
|
114
|
-
addClusterACLRules: (request: Readonly<AddClusterACLRulesRequest>) => Promise<AddClusterACLRulesResponse>;
|
|
115
|
-
/**
|
|
116
|
-
* Set new ACLs. Set new ACL rules for a specific cluster.
|
|
117
|
-
*
|
|
118
|
-
* @param request - The request {@link SetClusterACLRulesRequest}
|
|
119
|
-
* @returns A Promise of SetClusterACLRulesResponse
|
|
120
|
-
*/
|
|
121
|
-
setClusterACLRules: (request: Readonly<SetClusterACLRulesRequest>) => Promise<SetClusterACLRulesResponse>;
|
|
122
|
-
/**
|
|
123
|
-
* Delete an existing ACL.
|
|
124
|
-
*
|
|
125
|
-
* @param request - The request {@link DeleteACLRuleRequest}
|
|
126
|
-
*/
|
|
127
|
-
deleteACLRule: (request: Readonly<DeleteACLRuleRequest>) => Promise<void>;
|
|
128
|
-
protected pageOfListPools: (request: Readonly<ListPoolsRequest>) => Promise<ListPoolsResponse>;
|
|
129
|
-
/**
|
|
130
|
-
* List Pools in a Cluster. List all the existing pools for a specific Kubernetes cluster.
|
|
131
|
-
*
|
|
132
|
-
* @param request - The request {@link ListPoolsRequest}
|
|
133
|
-
* @returns A Promise of ListPoolsResponse
|
|
134
|
-
*/
|
|
135
|
-
listPools: (request: Readonly<ListPoolsRequest>) => Promise<ListPoolsResponse> & {
|
|
136
|
-
all: () => Promise<Pool[]>;
|
|
137
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<Pool[], void, void>;
|
|
138
|
-
};
|
|
139
|
-
/**
|
|
140
|
-
* Create a new Pool in a Cluster. Create a new pool in a specific Kubernetes cluster.
|
|
141
|
-
*
|
|
142
|
-
* @param request - The request {@link CreatePoolRequest}
|
|
143
|
-
* @returns A Promise of Pool
|
|
144
|
-
*/
|
|
145
|
-
createPool: (request: Readonly<CreatePoolRequest>) => Promise<Pool>;
|
|
146
|
-
/**
|
|
147
|
-
* Get a Pool in a Cluster. Retrieve details about a specific pool in a Kubernetes cluster.
|
|
148
|
-
*
|
|
149
|
-
* @param request - The request {@link GetPoolRequest}
|
|
150
|
-
* @returns A Promise of Pool
|
|
151
|
-
*/
|
|
152
|
-
getPool: (request: Readonly<GetPoolRequest>) => Promise<Pool>;
|
|
153
|
-
/**
|
|
154
|
-
* Waits for {@link Pool} to be in a final state.
|
|
155
|
-
*
|
|
156
|
-
* @param request - The request {@link GetPoolRequest}
|
|
157
|
-
* @param options - The waiting options
|
|
158
|
-
* @returns A Promise of Pool
|
|
159
|
-
*/
|
|
160
|
-
waitForPool: (request: Readonly<GetPoolRequest>, options?: Readonly<WaitForOptions<Pool>>) => Promise<Pool>;
|
|
161
|
-
/**
|
|
162
|
-
* Upgrade a Pool in a Cluster. Upgrade the Kubernetes version of a specific pool. Note that it only works if the targeted version matches the cluster's version.
|
|
163
|
-
This will drain and replace the nodes in that pool.
|
|
164
|
-
*
|
|
165
|
-
* @param request - The request {@link UpgradePoolRequest}
|
|
166
|
-
* @returns A Promise of Pool
|
|
167
|
-
*/
|
|
168
|
-
upgradePool: (request: Readonly<UpgradePoolRequest>) => Promise<Pool>;
|
|
169
|
-
/**
|
|
170
|
-
* Update a Pool in a Cluster. Update the attributes of a specific pool, such as its desired size, autoscaling settings, and tags. To upgrade a pool, you will need to use the dedicated endpoint.
|
|
171
|
-
*
|
|
172
|
-
* @param request - The request {@link UpdatePoolRequest}
|
|
173
|
-
* @returns A Promise of Pool
|
|
174
|
-
*/
|
|
175
|
-
updatePool: (request: Readonly<UpdatePoolRequest>) => Promise<Pool>;
|
|
176
|
-
/**
|
|
177
|
-
* Delete a Pool in a Cluster. Delete a specific pool from a cluster. Note that all the pool's nodes will also be deleted.
|
|
178
|
-
*
|
|
179
|
-
* @param request - The request {@link DeletePoolRequest}
|
|
180
|
-
* @returns A Promise of Pool
|
|
181
|
-
*/
|
|
182
|
-
deletePool: (request: Readonly<DeletePoolRequest>) => Promise<Pool>;
|
|
183
|
-
/**
|
|
184
|
-
* Set a list of taints for a specific pool. Apply a list of taints to all nodes of the pool which will be periodically reconciled by scaleway.
|
|
185
|
-
*
|
|
186
|
-
* @param request - The request {@link SetPoolTaintsRequest}
|
|
187
|
-
* @returns A Promise of Pool
|
|
188
|
-
*/
|
|
189
|
-
setPoolTaints: (request: Readonly<SetPoolTaintsRequest>) => Promise<Pool>;
|
|
190
|
-
/**
|
|
191
|
-
* Set a list of startup taints for a specific pool. Apply a list of taints to new nodes of the pool which would not be reconciled by scaleway.
|
|
192
|
-
*
|
|
193
|
-
* @param request - The request {@link SetPoolStartupTaintsRequest}
|
|
194
|
-
* @returns A Promise of Pool
|
|
195
|
-
*/
|
|
196
|
-
setPoolStartupTaints: (request: Readonly<SetPoolStartupTaintsRequest>) => Promise<Pool>;
|
|
197
|
-
/**
|
|
198
|
-
* Set a list of labels for a specific pool. Apply a list of taints to all nodes of the pool (only apply to labels which was set through scaleway api).
|
|
199
|
-
*
|
|
200
|
-
* @param request - The request {@link SetPoolLabelsRequest}
|
|
201
|
-
* @returns A Promise of Pool
|
|
202
|
-
*/
|
|
203
|
-
setPoolLabels: (request: Readonly<SetPoolLabelsRequest>) => Promise<Pool>;
|
|
204
|
-
/**
|
|
205
|
-
* Fetch node metadata. Rerieve metadata to instantiate a Kapsule/Kosmos node. This method is not intended to be called by end users but rather programmatically by the node-installer.
|
|
206
|
-
*
|
|
207
|
-
* @param request - The request {@link GetNodeMetadataRequest}
|
|
208
|
-
* @returns A Promise of NodeMetadata
|
|
209
|
-
*/
|
|
210
|
-
getNodeMetadata: (request?: Readonly<GetNodeMetadataRequest>) => Promise<NodeMetadata>;
|
|
211
|
-
/**
|
|
212
|
-
* Authenticate Kosmos external node. Creates a newer Kosmos node and returns its token. This method is not intended to be called by end users but rather programmatically by the node-installer.
|
|
213
|
-
*
|
|
214
|
-
* @param request - The request {@link AuthExternalNodeRequest}
|
|
215
|
-
* @returns A Promise of ExternalNodeAuth
|
|
216
|
-
*/
|
|
217
|
-
authExternalNode: (request: Readonly<AuthExternalNodeRequest>) => Promise<ExternalNodeAuth>;
|
|
218
|
-
protected pageOfListNodes: (request: Readonly<ListNodesRequest>) => Promise<ListNodesResponse>;
|
|
219
|
-
/**
|
|
220
|
-
* List Nodes in a Cluster. List all the existing nodes for a specific Kubernetes cluster.
|
|
221
|
-
*
|
|
222
|
-
* @param request - The request {@link ListNodesRequest}
|
|
223
|
-
* @returns A Promise of ListNodesResponse
|
|
224
|
-
*/
|
|
225
|
-
listNodes: (request: Readonly<ListNodesRequest>) => Promise<ListNodesResponse> & {
|
|
226
|
-
all: () => Promise<Node[]>;
|
|
227
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<Node[], void, void>;
|
|
228
|
-
};
|
|
229
|
-
/**
|
|
230
|
-
* Get a Node in a Cluster. Retrieve details about a specific Kubernetes Node.
|
|
231
|
-
*
|
|
232
|
-
* @param request - The request {@link GetNodeRequest}
|
|
233
|
-
* @returns A Promise of Node
|
|
234
|
-
*/
|
|
235
|
-
getNode: (request: Readonly<GetNodeRequest>) => Promise<Node>;
|
|
236
|
-
/**
|
|
237
|
-
* Waits for {@link Node} to be in a final state.
|
|
238
|
-
*
|
|
239
|
-
* @param request - The request {@link GetNodeRequest}
|
|
240
|
-
* @param options - The waiting options
|
|
241
|
-
* @returns A Promise of Node
|
|
242
|
-
*/
|
|
243
|
-
waitForNode: (request: Readonly<GetNodeRequest>, options?: Readonly<WaitForOptions<Node>>) => Promise<Node>;
|
|
244
|
-
/**
|
|
245
|
-
* Replace a Node in a Cluster. Replace a specific Node. The node will first be drained and pods will be rescheduled onto another node. Note that when there is not enough space to reschedule all the pods (such as in a one-node cluster, or with specific constraints), disruption of your applications may occur.
|
|
246
|
-
*
|
|
247
|
-
* @deprecated
|
|
248
|
-
* @param request - The request {@link ReplaceNodeRequest}
|
|
249
|
-
* @returns A Promise of Node
|
|
250
|
-
*/
|
|
251
|
-
replaceNode: (request: Readonly<ReplaceNodeRequest>) => Promise<Node>;
|
|
252
|
-
/**
|
|
253
|
-
* Reboot a Node in a Cluster. Reboot a specific Node. The node will first be drained and pods will be rescheduled onto another node. Note that when there is not enough space to reschedule all the pods (such as in a one-node cluster, or with specific constraints), disruption of your applications may occur.
|
|
254
|
-
*
|
|
255
|
-
* @param request - The request {@link RebootNodeRequest}
|
|
256
|
-
* @returns A Promise of Node
|
|
257
|
-
*/
|
|
258
|
-
rebootNode: (request: Readonly<RebootNodeRequest>) => Promise<Node>;
|
|
259
|
-
/**
|
|
260
|
-
* Delete a Node in a Cluster. Delete a specific Node. The node will first be drained and pods will be rescheduled onto another node. Note that when there is not enough space to reschedule all the pods (such as in a one-node cluster, or with specific constraints), disruption of your applications may occur.
|
|
261
|
-
*
|
|
262
|
-
* @param request - The request {@link DeleteNodeRequest}
|
|
263
|
-
* @returns A Promise of Node
|
|
264
|
-
*/
|
|
265
|
-
deleteNode: (request: Readonly<DeleteNodeRequest>) => Promise<Node>;
|
|
266
|
-
/**
|
|
267
|
-
* List all available Versions. List all available versions for the creation of a new Kubernetes cluster.
|
|
268
|
-
*
|
|
269
|
-
* @param request - The request {@link ListVersionsRequest}
|
|
270
|
-
* @returns A Promise of ListVersionsResponse
|
|
271
|
-
*/
|
|
272
|
-
listVersions: (request?: Readonly<ListVersionsRequest>) => Promise<ListVersionsResponse>;
|
|
273
|
-
/**
|
|
274
|
-
* Get a Version. Retrieve a specific Kubernetes version and its details.
|
|
275
|
-
*
|
|
276
|
-
* @param request - The request {@link GetVersionRequest}
|
|
277
|
-
* @returns A Promise of Version
|
|
278
|
-
*/
|
|
279
|
-
getVersion: (request: Readonly<GetVersionRequest>) => Promise<Version>;
|
|
280
|
-
protected pageOfListClusterTypes: (request?: Readonly<ListClusterTypesRequest>) => Promise<ListClusterTypesResponse>;
|
|
281
|
-
/**
|
|
282
|
-
* List cluster types. List available cluster types and their technical details.
|
|
283
|
-
*
|
|
284
|
-
* @param request - The request {@link ListClusterTypesRequest}
|
|
285
|
-
* @returns A Promise of ListClusterTypesResponse
|
|
286
|
-
*/
|
|
287
|
-
listClusterTypes: (request?: Readonly<ListClusterTypesRequest>) => Promise<ListClusterTypesResponse> & {
|
|
288
|
-
all: () => Promise<import("./types.gen.js").ClusterType[]>;
|
|
289
|
-
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen.js").ClusterType[], void, void>;
|
|
290
|
-
};
|
|
291
|
-
}
|