@maxim_mazurok/gapi.client.composer-v1 0.0.20230510 → 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 +478 -1
- package/package.json +1 -1
- package/tests.ts +40 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://composer.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230516
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -67,6 +67,12 @@ declare namespace gapi.client {
|
|
|
67
67
|
machineType?:
|
|
68
68
|
string;
|
|
69
69
|
}
|
|
70
|
+
// tslint:disable-next-line:no-empty-interface
|
|
71
|
+
interface DatabaseFailoverRequest {
|
|
72
|
+
}
|
|
73
|
+
// tslint:disable-next-line:no-empty-interface
|
|
74
|
+
interface DatabaseFailoverResponse {
|
|
75
|
+
}
|
|
70
76
|
interface Date {
|
|
71
77
|
/** Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. */
|
|
72
78
|
day?:
|
|
@@ -173,6 +179,9 @@ declare namespace gapi.client {
|
|
|
173
179
|
/** Optional. The Recovery settings configuration of an environment. This field is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer. */
|
|
174
180
|
recoveryConfig?:
|
|
175
181
|
RecoveryConfig;
|
|
182
|
+
/** Optional. Resilience mode of the Cloud Composer Environment. This field is supported for Cloud Composer environments in versions composer-2.2.0-airflow-*.*.* and newer. */
|
|
183
|
+
resilienceMode?:
|
|
184
|
+
string;
|
|
176
185
|
/** The configuration settings for software inside the environment. */
|
|
177
186
|
softwareConfig?:
|
|
178
187
|
SoftwareConfig;
|
|
@@ -189,6 +198,56 @@ declare namespace gapi.client {
|
|
|
189
198
|
workloadsConfig?:
|
|
190
199
|
WorkloadsConfig;
|
|
191
200
|
}
|
|
201
|
+
interface ExecuteAirflowCommandRequest {
|
|
202
|
+
/** Airflow command. */
|
|
203
|
+
command?:
|
|
204
|
+
string;
|
|
205
|
+
/**
|
|
206
|
+
* Parameters for the Airflow command/subcommand as an array of arguments. It may contain positional arguments like `["my-dag-id"]`, key-value parameters like `["--foo=bar"]` or
|
|
207
|
+
* `["--foo","bar"]`, or other flags like `["-f"]`.
|
|
208
|
+
*/
|
|
209
|
+
parameters?:
|
|
210
|
+
string[];
|
|
211
|
+
/** Airflow subcommand. */
|
|
212
|
+
subcommand?:
|
|
213
|
+
string;
|
|
214
|
+
}
|
|
215
|
+
interface ExecuteAirflowCommandResponse {
|
|
216
|
+
/** Error message. Empty if there was no error. */
|
|
217
|
+
error?:
|
|
218
|
+
string;
|
|
219
|
+
/** The unique ID of the command execution for polling. */
|
|
220
|
+
executionId?:
|
|
221
|
+
string;
|
|
222
|
+
/** The name of the pod where the command is executed. */
|
|
223
|
+
pod?:
|
|
224
|
+
string;
|
|
225
|
+
/** The namespace of the pod where the command is executed. */
|
|
226
|
+
podNamespace?:
|
|
227
|
+
string;
|
|
228
|
+
}
|
|
229
|
+
interface ExitInfo {
|
|
230
|
+
/** Error message. Empty if there was no error. */
|
|
231
|
+
error?:
|
|
232
|
+
string;
|
|
233
|
+
/** The exit code from the command execution. */
|
|
234
|
+
exitCode?:
|
|
235
|
+
number;
|
|
236
|
+
}
|
|
237
|
+
interface FetchDatabasePropertiesResponse {
|
|
238
|
+
/**
|
|
239
|
+
* The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only fail over to the failover replica
|
|
240
|
+
* when the status is true.
|
|
241
|
+
*/
|
|
242
|
+
isFailoverReplicaAvailable?:
|
|
243
|
+
boolean;
|
|
244
|
+
/** The Compute Engine zone that the instance is currently serving from. */
|
|
245
|
+
primaryGceZone?:
|
|
246
|
+
string;
|
|
247
|
+
/** The Compute Engine zone that the failover instance is currently serving from for a regional Cloud SQL instance. */
|
|
248
|
+
secondaryGceZone?:
|
|
249
|
+
string;
|
|
250
|
+
}
|
|
192
251
|
interface ImageVersion {
|
|
193
252
|
/** Whether it is impossible to create an environment with the image version. */
|
|
194
253
|
creationDisabled?:
|
|
@@ -246,6 +305,14 @@ declare namespace gapi.client {
|
|
|
246
305
|
useIpAliases?:
|
|
247
306
|
boolean;
|
|
248
307
|
}
|
|
308
|
+
interface Line {
|
|
309
|
+
/** Text content of the log line. */
|
|
310
|
+
content?:
|
|
311
|
+
string;
|
|
312
|
+
/** Number of the line. */
|
|
313
|
+
lineNumber?:
|
|
314
|
+
number;
|
|
315
|
+
}
|
|
249
316
|
interface ListEnvironmentsResponse {
|
|
250
317
|
/** The list of environments returned by a ListEnvironmentsRequest. */
|
|
251
318
|
environments?:
|
|
@@ -435,6 +502,31 @@ declare namespace gapi.client {
|
|
|
435
502
|
state?:
|
|
436
503
|
string;
|
|
437
504
|
}
|
|
505
|
+
interface PollAirflowCommandRequest {
|
|
506
|
+
/** The unique ID of the command execution. */
|
|
507
|
+
executionId?:
|
|
508
|
+
string;
|
|
509
|
+
/** Line number from which new logs should be fetched. */
|
|
510
|
+
nextLineNumber?:
|
|
511
|
+
number;
|
|
512
|
+
/** The name of the pod where the command is executed. */
|
|
513
|
+
pod?:
|
|
514
|
+
string;
|
|
515
|
+
/** The namespace of the pod where the command is executed. */
|
|
516
|
+
podNamespace?:
|
|
517
|
+
string;
|
|
518
|
+
}
|
|
519
|
+
interface PollAirflowCommandResponse {
|
|
520
|
+
/** The result exit status of the command. */
|
|
521
|
+
exitInfo?:
|
|
522
|
+
ExitInfo;
|
|
523
|
+
/** Output from the command execution. It may not contain the full output and the caller may need to poll for more lines. */
|
|
524
|
+
output?:
|
|
525
|
+
Line[];
|
|
526
|
+
/** Whether the command execution has finished and there is no more output. */
|
|
527
|
+
outputEnd?:
|
|
528
|
+
boolean;
|
|
529
|
+
}
|
|
438
530
|
interface PrivateClusterConfig {
|
|
439
531
|
/** Optional. If `true`, access to the public endpoint of the GKE cluster is denied. */
|
|
440
532
|
enablePrivateEndpoint?:
|
|
@@ -604,6 +696,28 @@ declare namespace gapi.client {
|
|
|
604
696
|
message?:
|
|
605
697
|
string;
|
|
606
698
|
}
|
|
699
|
+
interface StopAirflowCommandRequest {
|
|
700
|
+
/** The unique ID of the command execution. */
|
|
701
|
+
executionId?:
|
|
702
|
+
string;
|
|
703
|
+
/** If true, the execution is terminated forcefully (SIGKILL). If false, the execution is stopped gracefully, giving it time for cleanup. */
|
|
704
|
+
force?:
|
|
705
|
+
boolean;
|
|
706
|
+
/** The name of the pod where the command is executed. */
|
|
707
|
+
pod?:
|
|
708
|
+
string;
|
|
709
|
+
/** The namespace of the pod where the command is executed. */
|
|
710
|
+
podNamespace?:
|
|
711
|
+
string;
|
|
712
|
+
}
|
|
713
|
+
interface StopAirflowCommandResponse {
|
|
714
|
+
/** Whether the execution is still running. */
|
|
715
|
+
isDone?:
|
|
716
|
+
boolean;
|
|
717
|
+
/** Output message from stopping execution request. */
|
|
718
|
+
output?:
|
|
719
|
+
string[];
|
|
720
|
+
}
|
|
607
721
|
interface WebServerConfig {
|
|
608
722
|
/**
|
|
609
723
|
* Optional. Machine type on which Airflow web server is running. It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 or composer-n1-webserver-8. If not specified,
|
|
@@ -738,6 +852,87 @@ declare namespace gapi.client {
|
|
|
738
852
|
string;
|
|
739
853
|
},
|
|
740
854
|
body: Environment): Request<Operation>;
|
|
855
|
+
/** Triggers database failover (only for highly resilient environments). */
|
|
856
|
+
databaseFailover(request: {
|
|
857
|
+
/** V1 error format. */
|
|
858
|
+
"$.xgafv"?:
|
|
859
|
+
string;
|
|
860
|
+
/** OAuth access token. */
|
|
861
|
+
access_token?:
|
|
862
|
+
string;
|
|
863
|
+
/** Data format for response. */
|
|
864
|
+
alt?:
|
|
865
|
+
string;
|
|
866
|
+
/** JSONP */
|
|
867
|
+
callback?:
|
|
868
|
+
string;
|
|
869
|
+
/** Target environment: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */
|
|
870
|
+
environment:
|
|
871
|
+
string;
|
|
872
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
873
|
+
fields?:
|
|
874
|
+
string;
|
|
875
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
876
|
+
key?:
|
|
877
|
+
string;
|
|
878
|
+
/** OAuth 2.0 token for the current user. */
|
|
879
|
+
oauth_token?:
|
|
880
|
+
string;
|
|
881
|
+
/** Returns response with indentations and line breaks. */
|
|
882
|
+
prettyPrint?:
|
|
883
|
+
boolean;
|
|
884
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
885
|
+
quotaUser?:
|
|
886
|
+
string;
|
|
887
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
888
|
+
upload_protocol?:
|
|
889
|
+
string;
|
|
890
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
891
|
+
uploadType?:
|
|
892
|
+
string;
|
|
893
|
+
/** Request body */
|
|
894
|
+
resource:
|
|
895
|
+
DatabaseFailoverRequest;
|
|
896
|
+
}): Request<Operation>;
|
|
897
|
+
databaseFailover(request: {
|
|
898
|
+
/** V1 error format. */
|
|
899
|
+
"$.xgafv"?:
|
|
900
|
+
string;
|
|
901
|
+
/** OAuth access token. */
|
|
902
|
+
access_token?:
|
|
903
|
+
string;
|
|
904
|
+
/** Data format for response. */
|
|
905
|
+
alt?:
|
|
906
|
+
string;
|
|
907
|
+
/** JSONP */
|
|
908
|
+
callback?:
|
|
909
|
+
string;
|
|
910
|
+
/** Target environment: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */
|
|
911
|
+
environment:
|
|
912
|
+
string;
|
|
913
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
914
|
+
fields?:
|
|
915
|
+
string;
|
|
916
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
917
|
+
key?:
|
|
918
|
+
string;
|
|
919
|
+
/** OAuth 2.0 token for the current user. */
|
|
920
|
+
oauth_token?:
|
|
921
|
+
string;
|
|
922
|
+
/** Returns response with indentations and line breaks. */
|
|
923
|
+
prettyPrint?:
|
|
924
|
+
boolean;
|
|
925
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
926
|
+
quotaUser?:
|
|
927
|
+
string;
|
|
928
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
929
|
+
upload_protocol?:
|
|
930
|
+
string;
|
|
931
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
932
|
+
uploadType?:
|
|
933
|
+
string;
|
|
934
|
+
},
|
|
935
|
+
body: DatabaseFailoverRequest): Request<Operation>;
|
|
741
936
|
/** Delete an environment. */
|
|
742
937
|
delete(request?: {
|
|
743
938
|
/** V1 error format. */
|
|
@@ -777,6 +972,126 @@ declare namespace gapi.client {
|
|
|
777
972
|
uploadType?:
|
|
778
973
|
string;
|
|
779
974
|
}): Request<Operation>;
|
|
975
|
+
/** Executes Airflow CLI command. */
|
|
976
|
+
executeAirflowCommand(request: {
|
|
977
|
+
/** V1 error format. */
|
|
978
|
+
"$.xgafv"?:
|
|
979
|
+
string;
|
|
980
|
+
/** OAuth access token. */
|
|
981
|
+
access_token?:
|
|
982
|
+
string;
|
|
983
|
+
/** Data format for response. */
|
|
984
|
+
alt?:
|
|
985
|
+
string;
|
|
986
|
+
/** JSONP */
|
|
987
|
+
callback?:
|
|
988
|
+
string;
|
|
989
|
+
/** The resource name of the environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}". */
|
|
990
|
+
environment:
|
|
991
|
+
string;
|
|
992
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
993
|
+
fields?:
|
|
994
|
+
string;
|
|
995
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
996
|
+
key?:
|
|
997
|
+
string;
|
|
998
|
+
/** OAuth 2.0 token for the current user. */
|
|
999
|
+
oauth_token?:
|
|
1000
|
+
string;
|
|
1001
|
+
/** Returns response with indentations and line breaks. */
|
|
1002
|
+
prettyPrint?:
|
|
1003
|
+
boolean;
|
|
1004
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1005
|
+
quotaUser?:
|
|
1006
|
+
string;
|
|
1007
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1008
|
+
upload_protocol?:
|
|
1009
|
+
string;
|
|
1010
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1011
|
+
uploadType?:
|
|
1012
|
+
string;
|
|
1013
|
+
/** Request body */
|
|
1014
|
+
resource:
|
|
1015
|
+
ExecuteAirflowCommandRequest;
|
|
1016
|
+
}): Request<ExecuteAirflowCommandResponse>;
|
|
1017
|
+
executeAirflowCommand(request: {
|
|
1018
|
+
/** V1 error format. */
|
|
1019
|
+
"$.xgafv"?:
|
|
1020
|
+
string;
|
|
1021
|
+
/** OAuth access token. */
|
|
1022
|
+
access_token?:
|
|
1023
|
+
string;
|
|
1024
|
+
/** Data format for response. */
|
|
1025
|
+
alt?:
|
|
1026
|
+
string;
|
|
1027
|
+
/** JSONP */
|
|
1028
|
+
callback?:
|
|
1029
|
+
string;
|
|
1030
|
+
/** The resource name of the environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}". */
|
|
1031
|
+
environment:
|
|
1032
|
+
string;
|
|
1033
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1034
|
+
fields?:
|
|
1035
|
+
string;
|
|
1036
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1037
|
+
key?:
|
|
1038
|
+
string;
|
|
1039
|
+
/** OAuth 2.0 token for the current user. */
|
|
1040
|
+
oauth_token?:
|
|
1041
|
+
string;
|
|
1042
|
+
/** Returns response with indentations and line breaks. */
|
|
1043
|
+
prettyPrint?:
|
|
1044
|
+
boolean;
|
|
1045
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1046
|
+
quotaUser?:
|
|
1047
|
+
string;
|
|
1048
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1049
|
+
upload_protocol?:
|
|
1050
|
+
string;
|
|
1051
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1052
|
+
uploadType?:
|
|
1053
|
+
string;
|
|
1054
|
+
},
|
|
1055
|
+
body: ExecuteAirflowCommandRequest): Request<ExecuteAirflowCommandResponse>;
|
|
1056
|
+
/** Fetches database properties. */
|
|
1057
|
+
fetchDatabaseProperties(request?: {
|
|
1058
|
+
/** V1 error format. */
|
|
1059
|
+
"$.xgafv"?:
|
|
1060
|
+
string;
|
|
1061
|
+
/** OAuth access token. */
|
|
1062
|
+
access_token?:
|
|
1063
|
+
string;
|
|
1064
|
+
/** Data format for response. */
|
|
1065
|
+
alt?:
|
|
1066
|
+
string;
|
|
1067
|
+
/** JSONP */
|
|
1068
|
+
callback?:
|
|
1069
|
+
string;
|
|
1070
|
+
/** Required. The resource name of the environment, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */
|
|
1071
|
+
environment:
|
|
1072
|
+
string;
|
|
1073
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1074
|
+
fields?:
|
|
1075
|
+
string;
|
|
1076
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1077
|
+
key?:
|
|
1078
|
+
string;
|
|
1079
|
+
/** OAuth 2.0 token for the current user. */
|
|
1080
|
+
oauth_token?:
|
|
1081
|
+
string;
|
|
1082
|
+
/** Returns response with indentations and line breaks. */
|
|
1083
|
+
prettyPrint?:
|
|
1084
|
+
boolean;
|
|
1085
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1086
|
+
quotaUser?:
|
|
1087
|
+
string;
|
|
1088
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1089
|
+
upload_protocol?:
|
|
1090
|
+
string;
|
|
1091
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1092
|
+
uploadType?:
|
|
1093
|
+
string;
|
|
1094
|
+
}): Request<FetchDatabasePropertiesResponse>;
|
|
780
1095
|
/** Get an existing environment. */
|
|
781
1096
|
get(request?: {
|
|
782
1097
|
/** V1 error format. */
|
|
@@ -1093,6 +1408,87 @@ declare namespace gapi.client {
|
|
|
1093
1408
|
string;
|
|
1094
1409
|
},
|
|
1095
1410
|
body: Environment): Request<Operation>;
|
|
1411
|
+
/** Polls Airflow CLI command execution and fetches logs. */
|
|
1412
|
+
pollAirflowCommand(request: {
|
|
1413
|
+
/** V1 error format. */
|
|
1414
|
+
"$.xgafv"?:
|
|
1415
|
+
string;
|
|
1416
|
+
/** OAuth access token. */
|
|
1417
|
+
access_token?:
|
|
1418
|
+
string;
|
|
1419
|
+
/** Data format for response. */
|
|
1420
|
+
alt?:
|
|
1421
|
+
string;
|
|
1422
|
+
/** JSONP */
|
|
1423
|
+
callback?:
|
|
1424
|
+
string;
|
|
1425
|
+
/** The resource name of the environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */
|
|
1426
|
+
environment:
|
|
1427
|
+
string;
|
|
1428
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1429
|
+
fields?:
|
|
1430
|
+
string;
|
|
1431
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1432
|
+
key?:
|
|
1433
|
+
string;
|
|
1434
|
+
/** OAuth 2.0 token for the current user. */
|
|
1435
|
+
oauth_token?:
|
|
1436
|
+
string;
|
|
1437
|
+
/** Returns response with indentations and line breaks. */
|
|
1438
|
+
prettyPrint?:
|
|
1439
|
+
boolean;
|
|
1440
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1441
|
+
quotaUser?:
|
|
1442
|
+
string;
|
|
1443
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1444
|
+
upload_protocol?:
|
|
1445
|
+
string;
|
|
1446
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1447
|
+
uploadType?:
|
|
1448
|
+
string;
|
|
1449
|
+
/** Request body */
|
|
1450
|
+
resource:
|
|
1451
|
+
PollAirflowCommandRequest;
|
|
1452
|
+
}): Request<PollAirflowCommandResponse>;
|
|
1453
|
+
pollAirflowCommand(request: {
|
|
1454
|
+
/** V1 error format. */
|
|
1455
|
+
"$.xgafv"?:
|
|
1456
|
+
string;
|
|
1457
|
+
/** OAuth access token. */
|
|
1458
|
+
access_token?:
|
|
1459
|
+
string;
|
|
1460
|
+
/** Data format for response. */
|
|
1461
|
+
alt?:
|
|
1462
|
+
string;
|
|
1463
|
+
/** JSONP */
|
|
1464
|
+
callback?:
|
|
1465
|
+
string;
|
|
1466
|
+
/** The resource name of the environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" */
|
|
1467
|
+
environment:
|
|
1468
|
+
string;
|
|
1469
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1470
|
+
fields?:
|
|
1471
|
+
string;
|
|
1472
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1473
|
+
key?:
|
|
1474
|
+
string;
|
|
1475
|
+
/** OAuth 2.0 token for the current user. */
|
|
1476
|
+
oauth_token?:
|
|
1477
|
+
string;
|
|
1478
|
+
/** Returns response with indentations and line breaks. */
|
|
1479
|
+
prettyPrint?:
|
|
1480
|
+
boolean;
|
|
1481
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1482
|
+
quotaUser?:
|
|
1483
|
+
string;
|
|
1484
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1485
|
+
upload_protocol?:
|
|
1486
|
+
string;
|
|
1487
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1488
|
+
uploadType?:
|
|
1489
|
+
string;
|
|
1490
|
+
},
|
|
1491
|
+
body: PollAirflowCommandRequest): Request<PollAirflowCommandResponse>;
|
|
1096
1492
|
/** 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. */
|
|
1097
1493
|
saveSnapshot(request: {
|
|
1098
1494
|
/** V1 error format. */
|
|
@@ -1174,6 +1570,87 @@ declare namespace gapi.client {
|
|
|
1174
1570
|
string;
|
|
1175
1571
|
},
|
|
1176
1572
|
body: SaveSnapshotRequest): Request<Operation>;
|
|
1573
|
+
/** Stops Airflow CLI command execution. */
|
|
1574
|
+
stopAirflowCommand(request: {
|
|
1575
|
+
/** V1 error format. */
|
|
1576
|
+
"$.xgafv"?:
|
|
1577
|
+
string;
|
|
1578
|
+
/** OAuth access token. */
|
|
1579
|
+
access_token?:
|
|
1580
|
+
string;
|
|
1581
|
+
/** Data format for response. */
|
|
1582
|
+
alt?:
|
|
1583
|
+
string;
|
|
1584
|
+
/** JSONP */
|
|
1585
|
+
callback?:
|
|
1586
|
+
string;
|
|
1587
|
+
/** The resource name of the environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}". */
|
|
1588
|
+
environment:
|
|
1589
|
+
string;
|
|
1590
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1591
|
+
fields?:
|
|
1592
|
+
string;
|
|
1593
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1594
|
+
key?:
|
|
1595
|
+
string;
|
|
1596
|
+
/** OAuth 2.0 token for the current user. */
|
|
1597
|
+
oauth_token?:
|
|
1598
|
+
string;
|
|
1599
|
+
/** Returns response with indentations and line breaks. */
|
|
1600
|
+
prettyPrint?:
|
|
1601
|
+
boolean;
|
|
1602
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1603
|
+
quotaUser?:
|
|
1604
|
+
string;
|
|
1605
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1606
|
+
upload_protocol?:
|
|
1607
|
+
string;
|
|
1608
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1609
|
+
uploadType?:
|
|
1610
|
+
string;
|
|
1611
|
+
/** Request body */
|
|
1612
|
+
resource:
|
|
1613
|
+
StopAirflowCommandRequest;
|
|
1614
|
+
}): Request<StopAirflowCommandResponse>;
|
|
1615
|
+
stopAirflowCommand(request: {
|
|
1616
|
+
/** V1 error format. */
|
|
1617
|
+
"$.xgafv"?:
|
|
1618
|
+
string;
|
|
1619
|
+
/** OAuth access token. */
|
|
1620
|
+
access_token?:
|
|
1621
|
+
string;
|
|
1622
|
+
/** Data format for response. */
|
|
1623
|
+
alt?:
|
|
1624
|
+
string;
|
|
1625
|
+
/** JSONP */
|
|
1626
|
+
callback?:
|
|
1627
|
+
string;
|
|
1628
|
+
/** The resource name of the environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}". */
|
|
1629
|
+
environment:
|
|
1630
|
+
string;
|
|
1631
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1632
|
+
fields?:
|
|
1633
|
+
string;
|
|
1634
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1635
|
+
key?:
|
|
1636
|
+
string;
|
|
1637
|
+
/** OAuth 2.0 token for the current user. */
|
|
1638
|
+
oauth_token?:
|
|
1639
|
+
string;
|
|
1640
|
+
/** Returns response with indentations and line breaks. */
|
|
1641
|
+
prettyPrint?:
|
|
1642
|
+
boolean;
|
|
1643
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1644
|
+
quotaUser?:
|
|
1645
|
+
string;
|
|
1646
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1647
|
+
upload_protocol?:
|
|
1648
|
+
string;
|
|
1649
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1650
|
+
uploadType?:
|
|
1651
|
+
string;
|
|
1652
|
+
},
|
|
1653
|
+
body: StopAirflowCommandRequest): Request<StopAirflowCommandResponse>;
|
|
1177
1654
|
}
|
|
1178
1655
|
interface ImageVersionsResource {
|
|
1179
1656
|
/** List ImageVersions for provided location. */
|
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,
|