@maxim_mazurok/gapi.client.composer-v1 0.0.20230423 → 0.0.20230516
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/index.d.ts +1140 -332
- package/package.json +1 -1
- package/tests.ts +40 -1
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230516
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -108,6 +108,7 @@ gapi.load('client', async () => {
|
|
|
108
108
|
timeZone: "Test string",
|
|
109
109
|
},
|
|
110
110
|
},
|
|
111
|
+
resilienceMode: "Test string",
|
|
111
112
|
softwareConfig: {
|
|
112
113
|
airflowConfigOverrides: {
|
|
113
114
|
A: "Test string"
|
|
@@ -163,10 +164,29 @@ gapi.load('client', async () => {
|
|
|
163
164
|
updateTime: "Test string",
|
|
164
165
|
uuid: "Test string",
|
|
165
166
|
});
|
|
167
|
+
/** Triggers database failover (only for highly resilient environments). */
|
|
168
|
+
await gapi.client.composer.projects.locations.environments.databaseFailover({
|
|
169
|
+
environment: "Test string",
|
|
170
|
+
}, {
|
|
171
|
+
});
|
|
166
172
|
/** Delete an environment. */
|
|
167
173
|
await gapi.client.composer.projects.locations.environments.delete({
|
|
168
174
|
name: "Test string",
|
|
169
175
|
});
|
|
176
|
+
/** Executes Airflow CLI command. */
|
|
177
|
+
await gapi.client.composer.projects.locations.environments.executeAirflowCommand({
|
|
178
|
+
environment: "Test string",
|
|
179
|
+
}, {
|
|
180
|
+
command: "Test string",
|
|
181
|
+
parameters: [
|
|
182
|
+
"Test string"
|
|
183
|
+
],
|
|
184
|
+
subcommand: "Test string",
|
|
185
|
+
});
|
|
186
|
+
/** Fetches database properties. */
|
|
187
|
+
await gapi.client.composer.projects.locations.environments.fetchDatabaseProperties({
|
|
188
|
+
environment: "Test string",
|
|
189
|
+
});
|
|
170
190
|
/** Get an existing environment. */
|
|
171
191
|
await gapi.client.composer.projects.locations.environments.get({
|
|
172
192
|
name: "Test string",
|
|
@@ -267,6 +287,7 @@ gapi.load('client', async () => {
|
|
|
267
287
|
timeZone: "Test string",
|
|
268
288
|
},
|
|
269
289
|
},
|
|
290
|
+
resilienceMode: "Test string",
|
|
270
291
|
softwareConfig: {
|
|
271
292
|
airflowConfigOverrides: {
|
|
272
293
|
A: "Test string"
|
|
@@ -322,12 +343,30 @@ gapi.load('client', async () => {
|
|
|
322
343
|
updateTime: "Test string",
|
|
323
344
|
uuid: "Test string",
|
|
324
345
|
});
|
|
346
|
+
/** Polls Airflow CLI command execution and fetches logs. */
|
|
347
|
+
await gapi.client.composer.projects.locations.environments.pollAirflowCommand({
|
|
348
|
+
environment: "Test string",
|
|
349
|
+
}, {
|
|
350
|
+
executionId: "Test string",
|
|
351
|
+
nextLineNumber: 42,
|
|
352
|
+
pod: "Test string",
|
|
353
|
+
podNamespace: "Test string",
|
|
354
|
+
});
|
|
325
355
|
/** Creates a snapshots of a Cloud Composer environment. As a result of this operation, snapshot of environment's state is stored in a location specified in the SaveSnapshotRequest. */
|
|
326
356
|
await gapi.client.composer.projects.locations.environments.saveSnapshot({
|
|
327
357
|
environment: "Test string",
|
|
328
358
|
}, {
|
|
329
359
|
snapshotLocation: "Test string",
|
|
330
360
|
});
|
|
361
|
+
/** Stops Airflow CLI command execution. */
|
|
362
|
+
await gapi.client.composer.projects.locations.environments.stopAirflowCommand({
|
|
363
|
+
environment: "Test string",
|
|
364
|
+
}, {
|
|
365
|
+
executionId: "Test string",
|
|
366
|
+
force: true,
|
|
367
|
+
pod: "Test string",
|
|
368
|
+
podNamespace: "Test string",
|
|
369
|
+
});
|
|
331
370
|
/** List ImageVersions for provided location. */
|
|
332
371
|
await gapi.client.composer.projects.locations.imageVersions.list({
|
|
333
372
|
includePastReleases: true,
|