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.
0 commit comments