You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="firstline">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.</p>
"timeZone": "A String", # Optional. Time zone that sets the context to interpret snapshot_creation_schedule.
193
208
},
194
209
},
210
+
"resilienceMode": "A String", # 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.
195
211
"softwareConfig": { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
196
212
"airflowConfigOverrides": { # Optional. Apache Airflow configuration properties to override. Property keys contain the section and property names, separated by a hyphen, for example "core-dags_are_paused_at_creation". Section names must not contain hyphens ("-"), opening square brackets ("["), or closing square brackets ("]"). The property name must not be empty and must not contain an equals sign ("=") or semicolon (";"). Section and property names must not contain a period ("."). Apache Airflow configuration property names must be written in [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can contain any character, and can be written in any lower/upper case format. Certain Apache Airflow configuration property values are [blocked](/composer/docs/concepts/airflow-configurations), and cannot be overridden.
{ # Request to trigger database failover (only for highly resilient environments).
306
+
}
307
+
308
+
x__xgafv: string, V1 error format.
309
+
Allowed values
310
+
1 - v1 error format
311
+
2 - v2 error format
312
+
313
+
Returns:
314
+
An object of the form:
315
+
316
+
{ # This resource represents a long-running operation that is the result of a network API call.
317
+
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
318
+
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
319
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
320
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
321
+
{
322
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
323
+
},
324
+
],
325
+
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
326
+
},
327
+
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
328
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
329
+
},
330
+
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
331
+
"response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
332
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
environment: string, The resource name of the environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}". (required)
"parameters": [ # 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 `["--foo","bar"]`, or other flags like `["-f"]`.
environment: string, Required. The resource name of the environment, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" (required)
411
+
x__xgafv: string, V1 error format.
412
+
Allowed values
413
+
1 - v1 error format
414
+
2 - v2 error format
415
+
416
+
Returns:
417
+
An object of the form:
418
+
419
+
{ # Response for FetchDatabasePropertiesRequest.
420
+
"isFailoverReplicaAvailable": True or False, # 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 when the status is true.
421
+
"primaryGceZone": "A String", # The Compute Engine zone that the instance is currently serving from.
422
+
"secondaryGceZone": "A String", # The Compute Engine zone that the failover instance is currently serving from for a regional Cloud SQL instance.
"timeZone": "A String", # Optional. Time zone that sets the context to interpret snapshot_creation_schedule.
403
514
},
404
515
},
516
+
"resilienceMode": "A String", # 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.
405
517
"softwareConfig": { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
406
518
"airflowConfigOverrides": { # Optional. Apache Airflow configuration properties to override. Property keys contain the section and property names, separated by a hyphen, for example "core-dags_are_paused_at_creation". Section names must not contain hyphens ("-"), opening square brackets ("["), or closing square brackets ("]"). The property name must not be empty and must not contain an equals sign ("=") or semicolon (";"). Section and property names must not contain a period ("."). Apache Airflow configuration property names must be written in [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can contain any character, and can be written in any lower/upper case format. Certain Apache Airflow configuration property values are [blocked](/composer/docs/concepts/airflow-configurations), and cannot be overridden.
407
519
"a_key": "A String",
@@ -553,6 +665,7 @@ <h3>Method Details</h3>
553
665
"timeZone": "A String", # Optional. Time zone that sets the context to interpret snapshot_creation_schedule.
554
666
},
555
667
},
668
+
"resilienceMode": "A String", # 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.
556
669
"softwareConfig": { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
557
670
"airflowConfigOverrides": { # Optional. Apache Airflow configuration properties to override. Property keys contain the section and property names, separated by a hyphen, for example "core-dags_are_paused_at_creation". Section names must not contain hyphens ("-"), opening square brackets ("["), or closing square brackets ("]"). The property name must not be empty and must not contain an equals sign ("=") or semicolon (";"). Section and property names must not contain a period ("."). Apache Airflow configuration property names must be written in [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can contain any character, and can be written in any lower/upper case format. Certain Apache Airflow configuration property values are [blocked](/composer/docs/concepts/airflow-configurations), and cannot be overridden.
558
671
"a_key": "A String",
@@ -758,6 +871,7 @@ <h3>Method Details</h3>
758
871
"timeZone": "A String", # Optional. Time zone that sets the context to interpret snapshot_creation_schedule.
759
872
},
760
873
},
874
+
"resilienceMode": "A String", # 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.
761
875
"softwareConfig": { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
762
876
"airflowConfigOverrides": { # Optional. Apache Airflow configuration properties to override. Property keys contain the section and property names, separated by a hyphen, for example "core-dags_are_paused_at_creation". Section names must not contain hyphens ("-"), opening square brackets ("["), or closing square brackets ("]"). The property name must not be empty and must not contain an equals sign ("=") or semicolon (";"). Section and property names must not contain a period ("."). Apache Airflow configuration property names must be written in [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can contain any character, and can be written in any lower/upper case format. Certain Apache Airflow configuration property values are [blocked](/composer/docs/concepts/airflow-configurations), and cannot be overridden.
<pre>Polls Airflow CLI command execution and fetches logs.
964
+
965
+
Args:
966
+
environment: string, The resource name of the environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" (required)
967
+
body: object, The request body.
968
+
The object takes the form of:
969
+
970
+
{ # Poll Airflow Command request.
971
+
"executionId": "A String", # The unique ID of the command execution.
972
+
"nextLineNumber": 42, # Line number from which new logs should be fetched.
973
+
"pod": "A String", # The name of the pod where the command is executed.
974
+
"podNamespace": "A String", # The namespace of the pod where the command is executed.
975
+
}
976
+
977
+
x__xgafv: string, V1 error format.
978
+
Allowed values
979
+
1 - v1 error format
980
+
2 - v2 error format
981
+
982
+
Returns:
983
+
An object of the form:
984
+
985
+
{ # Response to PollAirflowCommandRequest.
986
+
"exitInfo": { # Information about how a command ended. # The result exit status of the command.
987
+
"error": "A String", # Error message. Empty if there was no error.
988
+
"exitCode": 42, # The exit code from the command execution.
989
+
},
990
+
"output": [ # Output from the command execution. It may not contain the full output and the caller may need to poll for more lines.
991
+
{ # Contains information about a single line from logs.
992
+
"content": "A String", # Text content of the log line.
993
+
"lineNumber": 42, # Number of the line.
994
+
},
995
+
],
996
+
"outputEnd": True or False, # Whether the command execution has finished and there is no more output.
<pre>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.
environment: string, The resource name of the environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}". (required)
1048
+
body: object, The request body.
1049
+
The object takes the form of:
1050
+
1051
+
{ # Stop Airflow Command request.
1052
+
"executionId": "A String", # The unique ID of the command execution.
1053
+
"force": True or False, # If true, the execution is terminated forcefully (SIGKILL). If false, the execution is stopped gracefully, giving it time for cleanup.
1054
+
"pod": "A String", # The name of the pod where the command is executed.
1055
+
"podNamespace": "A String", # The namespace of the pod where the command is executed.
1056
+
}
1057
+
1058
+
x__xgafv: string, V1 error format.
1059
+
Allowed values
1060
+
1 - v1 error format
1061
+
2 - v2 error format
1062
+
1063
+
Returns:
1064
+
An object of the form:
1065
+
1066
+
{ # Response to StopAirflowCommandRequest.
1067
+
"isDone": True or False, # Whether the execution is still running.
1068
+
"output": [ # Output message from stopping execution request.
<pclass="firstline">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.</p>
"timeZone": "A String", # Optional. Time zone that sets the context to interpret snapshot_creation_schedule.
242
257
},
243
258
},
259
+
"resilienceMode": "A String", # 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.
244
260
"softwareConfig": { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
245
261
"airflowConfigOverrides": { # Optional. Apache Airflow configuration properties to override. Property keys contain the section and property names, separated by a hyphen, for example "core-dags_are_paused_at_creation". Section names must not contain hyphens ("-"), opening square brackets ("["), or closing square brackets ("]"). The property name must not be empty and must not contain an equals sign ("=") or semicolon (";"). Section and property names must not contain a period ("."). Apache Airflow configuration property names must be written in [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can contain any character, and can be written in any lower/upper case format. Certain Apache Airflow configuration property values are [blocked](/composer/docs/concepts/airflow-configurations), and cannot be overridden.
{ # Request to trigger database failover (only for highly resilient environments).
363
+
}
364
+
365
+
x__xgafv: string, V1 error format.
366
+
Allowed values
367
+
1 - v1 error format
368
+
2 - v2 error format
369
+
370
+
Returns:
371
+
An object of the form:
372
+
373
+
{ # This resource represents a long-running operation that is the result of a network API call.
374
+
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
375
+
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
376
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
377
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
378
+
{
379
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
380
+
},
381
+
],
382
+
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
383
+
},
384
+
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
385
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
386
+
},
387
+
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
388
+
"response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
389
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
environment: string, The resource name of the environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}". (required)
"parameters": [ # 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 `["--foo","bar"]`, or other flags like `["-f"]`.
environment: string, Required. The resource name of the environment, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" (required)
468
+
x__xgafv: string, V1 error format.
469
+
Allowed values
470
+
1 - v1 error format
471
+
2 - v2 error format
472
+
473
+
Returns:
474
+
An object of the form:
475
+
476
+
{ # Response for FetchDatabasePropertiesRequest.
477
+
"isFailoverReplicaAvailable": True or False, # 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 when the status is true.
478
+
"primaryGceZone": "A String", # The Compute Engine zone that the instance is currently serving from.
479
+
"secondaryGceZone": "A String", # The Compute Engine zone that the failover instance is currently serving from for a regional Cloud SQL instance.
"timeZone": "A String", # Optional. Time zone that sets the context to interpret snapshot_creation_schedule.
461
572
},
462
573
},
574
+
"resilienceMode": "A String", # 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.
463
575
"softwareConfig": { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
464
576
"airflowConfigOverrides": { # Optional. Apache Airflow configuration properties to override. Property keys contain the section and property names, separated by a hyphen, for example "core-dags_are_paused_at_creation". Section names must not contain hyphens ("-"), opening square brackets ("["), or closing square brackets ("]"). The property name must not be empty and must not contain an equals sign ("=") or semicolon (";"). Section and property names must not contain a period ("."). Apache Airflow configuration property names must be written in [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can contain any character, and can be written in any lower/upper case format. Certain Apache Airflow configuration property values are [blocked](/composer/docs/concepts/airflow-configurations), and cannot be overridden.
465
577
"a_key": "A String",
@@ -620,6 +732,7 @@ <h3>Method Details</h3>
620
732
"timeZone": "A String", # Optional. Time zone that sets the context to interpret snapshot_creation_schedule.
621
733
},
622
734
},
735
+
"resilienceMode": "A String", # 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.
623
736
"softwareConfig": { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
624
737
"airflowConfigOverrides": { # Optional. Apache Airflow configuration properties to override. Property keys contain the section and property names, separated by a hyphen, for example "core-dags_are_paused_at_creation". Section names must not contain hyphens ("-"), opening square brackets ("["), or closing square brackets ("]"). The property name must not be empty and must not contain an equals sign ("=") or semicolon (";"). Section and property names must not contain a period ("."). Apache Airflow configuration property names must be written in [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can contain any character, and can be written in any lower/upper case format. Certain Apache Airflow configuration property values are [blocked](/composer/docs/concepts/airflow-configurations), and cannot be overridden.
625
738
"a_key": "A String",
@@ -834,6 +947,7 @@ <h3>Method Details</h3>
834
947
"timeZone": "A String", # Optional. Time zone that sets the context to interpret snapshot_creation_schedule.
835
948
},
836
949
},
950
+
"resilienceMode": "A String", # 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.
837
951
"softwareConfig": { # Specifies the selection and configuration of software inside the environment. # The configuration settings for software inside the environment.
838
952
"airflowConfigOverrides": { # Optional. Apache Airflow configuration properties to override. Property keys contain the section and property names, separated by a hyphen, for example "core-dags_are_paused_at_creation". Section names must not contain hyphens ("-"), opening square brackets ("["), or closing square brackets ("]"). The property name must not be empty and must not contain an equals sign ("=") or semicolon (";"). Section and property names must not contain a period ("."). Apache Airflow configuration property names must be written in [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can contain any character, and can be written in any lower/upper case format. Certain Apache Airflow configuration property values are [blocked](/composer/docs/concepts/airflow-configurations), and cannot be overridden.
<pre>Polls Airflow CLI command execution and fetches logs.
1048
+
1049
+
Args:
1050
+
environment: string, The resource name of the environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}" (required)
1051
+
body: object, The request body.
1052
+
The object takes the form of:
1053
+
1054
+
{ # Poll Airflow Command request.
1055
+
"executionId": "A String", # The unique ID of the command execution.
1056
+
"nextLineNumber": 42, # Line number from which new logs should be fetched.
1057
+
"pod": "A String", # The name of the pod where the command is executed.
1058
+
"podNamespace": "A String", # The namespace of the pod where the command is executed.
1059
+
}
1060
+
1061
+
x__xgafv: string, V1 error format.
1062
+
Allowed values
1063
+
1 - v1 error format
1064
+
2 - v2 error format
1065
+
1066
+
Returns:
1067
+
An object of the form:
1068
+
1069
+
{ # Response to PollAirflowCommandRequest.
1070
+
"exitInfo": { # Information about how a command ended. # The result exit status of the command.
1071
+
"error": "A String", # Error message. Empty if there was no error.
1072
+
"exitCode": 42, # The exit code from the command execution.
1073
+
},
1074
+
"output": [ # Output from the command execution. It may not contain the full output and the caller may need to poll for more lines.
1075
+
{ # Contains information about a single line from logs.
1076
+
"content": "A String", # Text content of the log line.
1077
+
"lineNumber": 42, # Number of the line.
1078
+
},
1079
+
],
1080
+
"outputEnd": True or False, # Whether the command execution has finished and there is no more output.
environment: string, The resource name of the environment in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}". (required)
1173
+
body: object, The request body.
1174
+
The object takes the form of:
1175
+
1176
+
{ # Stop Airflow Command request.
1177
+
"executionId": "A String", # The unique ID of the command execution.
1178
+
"force": True or False, # If true, the execution is terminated forcefully (SIGKILL). If false, the execution is stopped gracefully, giving it time for cleanup.
1179
+
"pod": "A String", # The name of the pod where the command is executed.
1180
+
"podNamespace": "A String", # The namespace of the pod where the command is executed.
1181
+
}
1182
+
1183
+
x__xgafv: string, V1 error format.
1184
+
Allowed values
1185
+
1 - v1 error format
1186
+
2 - v2 error format
1187
+
1188
+
Returns:
1189
+
An object of the form:
1190
+
1191
+
{ # Response to StopAirflowCommandRequest.
1192
+
"isDone": True or False, # Whether the execution is still running.
1193
+
"output": [ # Output message from stopping execution request.
"description": "Required. The resource name of the environment, in the form: \"projects/{projectId}/locations/{locationId}/environments/{environmentId}\"",
"description": "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.",
"description": "Request to trigger database failover (only for highly resilient environments).",
691
+
"id": "DatabaseFailoverRequest",
692
+
"properties": {},
693
+
"type": "object"
694
+
},
695
+
"DatabaseFailoverResponse": {
696
+
"description": "Response for DatabaseFailoverRequest.",
697
+
"id": "DatabaseFailoverResponse",
698
+
"properties": {},
699
+
"type": "object"
700
+
},
552
701
"Date": {
553
702
"description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp",
554
703
"id": "Date",
@@ -714,6 +863,18 @@
714
863
"$ref": "RecoveryConfig",
715
864
"description": "Optional. The Recovery settings configuration of an environment. This field is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer."
716
865
},
866
+
"resilienceMode": {
867
+
"description": "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.",
"description": "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 `[\"--foo\",\"bar\"]`, or other flags like `[\"-f\"]`.",
907
+
"items": {
908
+
"type": "string"
909
+
},
910
+
"type": "array"
911
+
},
912
+
"subcommand": {
913
+
"description": "Airflow subcommand.",
914
+
"type": "string"
915
+
}
916
+
},
917
+
"type": "object"
918
+
},
919
+
"ExecuteAirflowCommandResponse": {
920
+
"description": "Response to ExecuteAirflowCommandRequest.",
921
+
"id": "ExecuteAirflowCommandResponse",
922
+
"properties": {
923
+
"error": {
924
+
"description": "Error message. Empty if there was no error.",
925
+
"type": "string"
926
+
},
927
+
"executionId": {
928
+
"description": "The unique ID of the command execution for polling.",
929
+
"type": "string"
930
+
},
931
+
"pod": {
932
+
"description": "The name of the pod where the command is executed.",
933
+
"type": "string"
934
+
},
935
+
"podNamespace": {
936
+
"description": "The namespace of the pod where the command is executed.",
937
+
"type": "string"
938
+
}
939
+
},
940
+
"type": "object"
941
+
},
942
+
"ExitInfo": {
943
+
"description": "Information about how a command ended.",
944
+
"id": "ExitInfo",
945
+
"properties": {
946
+
"error": {
947
+
"description": "Error message. Empty if there was no error.",
948
+
"type": "string"
949
+
},
950
+
"exitCode": {
951
+
"description": "The exit code from the command execution.",
952
+
"format": "int32",
953
+
"type": "integer"
954
+
}
955
+
},
956
+
"type": "object"
957
+
},
958
+
"FetchDatabasePropertiesResponse": {
959
+
"description": "Response for FetchDatabasePropertiesRequest.",
960
+
"id": "FetchDatabasePropertiesResponse",
961
+
"properties": {
962
+
"isFailoverReplicaAvailable": {
963
+
"description": "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 when the status is true.",
964
+
"type": "boolean"
965
+
},
966
+
"primaryGceZone": {
967
+
"description": "The Compute Engine zone that the instance is currently serving from.",
968
+
"type": "string"
969
+
},
970
+
"secondaryGceZone": {
971
+
"description": "The Compute Engine zone that the failover instance is currently serving from for a regional Cloud SQL instance.",
972
+
"type": "string"
973
+
}
974
+
},
975
+
"type": "object"
976
+
},
736
977
"IPAllocationPolicy": {
737
978
"description": "Configuration for controlling how IPs are allocated in the GKE cluster running the Apache Airflow software.",
738
979
"id": "IPAllocationPolicy",
@@ -794,6 +1035,22 @@
794
1035
},
795
1036
"type": "object"
796
1037
},
1038
+
"Line": {
1039
+
"description": "Contains information about a single line from logs.",
1040
+
"id": "Line",
1041
+
"properties": {
1042
+
"content": {
1043
+
"description": "Text content of the log line.",
1044
+
"type": "string"
1045
+
},
1046
+
"lineNumber": {
1047
+
"description": "Number of the line.",
1048
+
"format": "int32",
1049
+
"type": "integer"
1050
+
}
1051
+
},
1052
+
"type": "object"
1053
+
},
797
1054
"ListEnvironmentsResponse": {
798
1055
"description": "The environments in a project and location.",
799
1056
"id": "ListEnvironmentsResponse",
@@ -1053,7 +1310,8 @@
1053
1310
"UPDATE",
1054
1311
"CHECK",
1055
1312
"SAVE_SNAPSHOT",
1056
-
"LOAD_SNAPSHOT"
1313
+
"LOAD_SNAPSHOT",
1314
+
"DATABASE_FAILOVER"
1057
1315
],
1058
1316
"enumDescriptions": [
1059
1317
"Unused.",
@@ -1062,7 +1320,8 @@
1062
1320
"A resource update operation.",
1063
1321
"A resource check operation.",
1064
1322
"Saves snapshot of the resource operation.",
1065
-
"Loads snapshot of the resource operation."
1323
+
"Loads snapshot of the resource operation.",
1324
+
"Triggers failover of environment's Cloud SQL instance (only for highly resilient environments)."
1066
1325
],
1067
1326
"type": "string"
1068
1327
},
@@ -1097,6 +1356,52 @@
1097
1356
},
1098
1357
"type": "object"
1099
1358
},
1359
+
"PollAirflowCommandRequest": {
1360
+
"description": "Poll Airflow Command request.",
1361
+
"id": "PollAirflowCommandRequest",
1362
+
"properties": {
1363
+
"executionId": {
1364
+
"description": "The unique ID of the command execution.",
1365
+
"type": "string"
1366
+
},
1367
+
"nextLineNumber": {
1368
+
"description": "Line number from which new logs should be fetched.",
1369
+
"format": "int32",
1370
+
"type": "integer"
1371
+
},
1372
+
"pod": {
1373
+
"description": "The name of the pod where the command is executed.",
1374
+
"type": "string"
1375
+
},
1376
+
"podNamespace": {
1377
+
"description": "The namespace of the pod where the command is executed.",
1378
+
"type": "string"
1379
+
}
1380
+
},
1381
+
"type": "object"
1382
+
},
1383
+
"PollAirflowCommandResponse": {
1384
+
"description": "Response to PollAirflowCommandRequest.",
1385
+
"id": "PollAirflowCommandResponse",
1386
+
"properties": {
1387
+
"exitInfo": {
1388
+
"$ref": "ExitInfo",
1389
+
"description": "The result exit status of the command."
1390
+
},
1391
+
"output": {
1392
+
"description": "Output from the command execution. It may not contain the full output and the caller may need to poll for more lines.",
1393
+
"items": {
1394
+
"$ref": "Line"
1395
+
},
1396
+
"type": "array"
1397
+
},
1398
+
"outputEnd": {
1399
+
"description": "Whether the command execution has finished and there is no more output.",
1400
+
"type": "boolean"
1401
+
}
1402
+
},
1403
+
"type": "object"
1404
+
},
1100
1405
"PrivateClusterConfig": {
1101
1406
"description": "Configuration options for the private GKE cluster in a Cloud Composer environment.",
1102
1407
"id": "PrivateClusterConfig",
@@ -1317,6 +1622,47 @@
1317
1622
},
1318
1623
"type": "object"
1319
1624
},
1625
+
"StopAirflowCommandRequest": {
1626
+
"description": "Stop Airflow Command request.",
1627
+
"id": "StopAirflowCommandRequest",
1628
+
"properties": {
1629
+
"executionId": {
1630
+
"description": "The unique ID of the command execution.",
1631
+
"type": "string"
1632
+
},
1633
+
"force": {
1634
+
"description": "If true, the execution is terminated forcefully (SIGKILL). If false, the execution is stopped gracefully, giving it time for cleanup.",
1635
+
"type": "boolean"
1636
+
},
1637
+
"pod": {
1638
+
"description": "The name of the pod where the command is executed.",
1639
+
"type": "string"
1640
+
},
1641
+
"podNamespace": {
1642
+
"description": "The namespace of the pod where the command is executed.",
1643
+
"type": "string"
1644
+
}
1645
+
},
1646
+
"type": "object"
1647
+
},
1648
+
"StopAirflowCommandResponse": {
1649
+
"description": "Response to StopAirflowCommandRequest.",
1650
+
"id": "StopAirflowCommandResponse",
1651
+
"properties": {
1652
+
"isDone": {
1653
+
"description": "Whether the execution is still running.",
1654
+
"type": "boolean"
1655
+
},
1656
+
"output": {
1657
+
"description": "Output message from stopping execution request.",
1658
+
"items": {
1659
+
"type": "string"
1660
+
},
1661
+
"type": "array"
1662
+
}
1663
+
},
1664
+
"type": "object"
1665
+
},
1320
1666
"WebServerConfig": {
1321
1667
"description": "The configuration settings for the Airflow web server App Engine instance. Supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*",
"description": "Required. The resource name of the environment, in the form: \"projects/{projectId}/locations/{locationId}/environments/{environmentId}\"",
"description": "Request to trigger database failover (only for highly resilient environments).",
769
+
"id": "DatabaseFailoverRequest",
770
+
"properties": {},
771
+
"type": "object"
772
+
},
773
+
"DatabaseFailoverResponse": {
774
+
"description": "Response for DatabaseFailoverRequest.",
775
+
"id": "DatabaseFailoverResponse",
776
+
"properties": {},
777
+
"type": "object"
778
+
},
630
779
"Date": {
631
780
"description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp",
632
781
"id": "Date",
@@ -798,6 +947,18 @@
798
947
"$ref": "RecoveryConfig",
799
948
"description": "Optional. The Recovery settings configuration of an environment. This field is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer."
800
949
},
950
+
"resilienceMode": {
951
+
"description": "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.",
"description": "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 `[\"--foo\",\"bar\"]`, or other flags like `[\"-f\"]`.",
991
+
"items": {
992
+
"type": "string"
993
+
},
994
+
"type": "array"
995
+
},
996
+
"subcommand": {
997
+
"description": "Airflow subcommand.",
998
+
"type": "string"
999
+
}
1000
+
},
1001
+
"type": "object"
1002
+
},
820
1003
"ExecuteAirflowCommandResponse": {
821
1004
"description": "Response to ExecuteAirflowCommandRequest.",
822
1005
"id": "ExecuteAirflowCommandResponse",
@@ -856,6 +1039,25 @@
856
1039
},
857
1040
"type": "object"
858
1041
},
1042
+
"FetchDatabasePropertiesResponse": {
1043
+
"description": "Response for FetchDatabasePropertiesRequest.",
1044
+
"id": "FetchDatabasePropertiesResponse",
1045
+
"properties": {
1046
+
"isFailoverReplicaAvailable": {
1047
+
"description": "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 when the status is true.",
1048
+
"type": "boolean"
1049
+
},
1050
+
"primaryGceZone": {
1051
+
"description": "The Compute Engine zone that the instance is currently serving from.",
1052
+
"type": "string"
1053
+
},
1054
+
"secondaryGceZone": {
1055
+
"description": "The Compute Engine zone that the failover instance is currently serving from for a regional Cloud SQL instance.",
1056
+
"type": "string"
1057
+
}
1058
+
},
1059
+
"type": "object"
1060
+
},
859
1061
"IPAllocationPolicy": {
860
1062
"description": "Configuration for controlling how IPs are allocated in the GKE cluster.",
861
1063
"id": "IPAllocationPolicy",
@@ -1197,7 +1399,8 @@
1197
1399
"UPDATE",
1198
1400
"CHECK",
1199
1401
"SAVE_SNAPSHOT",
1200
-
"LOAD_SNAPSHOT"
1402
+
"LOAD_SNAPSHOT",
1403
+
"DATABASE_FAILOVER"
1201
1404
],
1202
1405
"enumDescriptions": [
1203
1406
"Unused.",
@@ -1206,7 +1409,8 @@
1206
1409
"A resource update operation.",
1207
1410
"A resource check operation.",
1208
1411
"Saves snapshot of the resource operation.",
1209
-
"Loads snapshot of the resource operation."
1412
+
"Loads snapshot of the resource operation.",
1413
+
"Triggers failover of environment's Cloud SQL instance (only for highly resilient environments)."
1210
1414
],
1211
1415
"type": "string"
1212
1416
},
@@ -1239,6 +1443,30 @@
1239
1443
},
1240
1444
"type": "object"
1241
1445
},
1446
+
"PollAirflowCommandRequest": {
1447
+
"description": "Poll Airflow Command request.",
1448
+
"id": "PollAirflowCommandRequest",
1449
+
"properties": {
1450
+
"executionId": {
1451
+
"description": "The unique ID of the command execution.",
1452
+
"type": "string"
1453
+
},
1454
+
"nextLineNumber": {
1455
+
"description": "Line number from which new logs should be fetched.",
1456
+
"format": "int32",
1457
+
"type": "integer"
1458
+
},
1459
+
"pod": {
1460
+
"description": "The name of the pod where the command is executed.",
1461
+
"type": "string"
1462
+
},
1463
+
"podNamespace": {
1464
+
"description": "The namespace of the pod where the command is executed.",
1465
+
"type": "string"
1466
+
}
1467
+
},
1468
+
"type": "object"
1469
+
},
1242
1470
"PollAirflowCommandResponse": {
1243
1471
"description": "Response to PollAirflowCommandRequest.",
1244
1472
"id": "PollAirflowCommandResponse",
@@ -1491,6 +1719,47 @@
1491
1719
},
1492
1720
"type": "object"
1493
1721
},
1722
+
"StopAirflowCommandRequest": {
1723
+
"description": "Stop Airflow Command request.",
1724
+
"id": "StopAirflowCommandRequest",
1725
+
"properties": {
1726
+
"executionId": {
1727
+
"description": "The unique ID of the command execution.",
1728
+
"type": "string"
1729
+
},
1730
+
"force": {
1731
+
"description": "If true, the execution is terminated forcefully (SIGKILL). If false, the execution is stopped gracefully, giving it time for cleanup.",
1732
+
"type": "boolean"
1733
+
},
1734
+
"pod": {
1735
+
"description": "The name of the pod where the command is executed.",
1736
+
"type": "string"
1737
+
},
1738
+
"podNamespace": {
1739
+
"description": "The namespace of the pod where the command is executed.",
1740
+
"type": "string"
1741
+
}
1742
+
},
1743
+
"type": "object"
1744
+
},
1745
+
"StopAirflowCommandResponse": {
1746
+
"description": "Response to StopAirflowCommandRequest.",
1747
+
"id": "StopAirflowCommandResponse",
1748
+
"properties": {
1749
+
"isDone": {
1750
+
"description": "Whether the execution is still running.",
1751
+
"type": "boolean"
1752
+
},
1753
+
"output": {
1754
+
"description": "Output message from stopping execution request.",
1755
+
"items": {
1756
+
"type": "string"
1757
+
},
1758
+
"type": "array"
1759
+
}
1760
+
},
1761
+
"type": "object"
1762
+
},
1494
1763
"TriggererResource": {
1495
1764
"description": "Configuration for resources used by Airflow triggerers.",
0 commit comments