google-cloud-orchestration-airflow-service-v1 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/orchestration/airflow/service/v1/environments/client.rb +499 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest/client.rb +377 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest/service_stub.rb +299 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/environments_pb.rb +14 -1
- data/lib/google/cloud/orchestration/airflow/service/v1/environments_services_pb.rb +10 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/operations_pb.rb +1 -1
- data/lib/google/cloud/orchestration/airflow/service/v1/version.rb +1 -1
- data/proto_docs/google/cloud/orchestration/airflow/service/v1/environments.rb +197 -0
- data/proto_docs/google/cloud/orchestration/airflow/service/v1/operations.rb +4 -0
- metadata +2 -2
@@ -223,6 +223,143 @@ module Google
|
|
223
223
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
224
224
|
end
|
225
225
|
|
226
|
+
# Execute Airflow Command request.
|
227
|
+
# @!attribute [rw] environment
|
228
|
+
# @return [::String]
|
229
|
+
# The resource name of the environment in the form:
|
230
|
+
# "projects/\\{projectId}/locations/\\{locationId}/environments/\\{environmentId}".
|
231
|
+
# @!attribute [rw] command
|
232
|
+
# @return [::String]
|
233
|
+
# Airflow command.
|
234
|
+
# @!attribute [rw] subcommand
|
235
|
+
# @return [::String]
|
236
|
+
# Airflow subcommand.
|
237
|
+
# @!attribute [rw] parameters
|
238
|
+
# @return [::Array<::String>]
|
239
|
+
# Parameters for the Airflow command/subcommand as an array of arguments.
|
240
|
+
# It may contain positional arguments like `["my-dag-id"]`, key-value
|
241
|
+
# parameters like `["--foo=bar"]` or `["--foo","bar"]`,
|
242
|
+
# or other flags like `["-f"]`.
|
243
|
+
class ExecuteAirflowCommandRequest
|
244
|
+
include ::Google::Protobuf::MessageExts
|
245
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
246
|
+
end
|
247
|
+
|
248
|
+
# Response to ExecuteAirflowCommandRequest.
|
249
|
+
# @!attribute [rw] execution_id
|
250
|
+
# @return [::String]
|
251
|
+
# The unique ID of the command execution for polling.
|
252
|
+
# @!attribute [rw] pod
|
253
|
+
# @return [::String]
|
254
|
+
# The name of the pod where the command is executed.
|
255
|
+
# @!attribute [rw] pod_namespace
|
256
|
+
# @return [::String]
|
257
|
+
# The namespace of the pod where the command is executed.
|
258
|
+
# @!attribute [rw] error
|
259
|
+
# @return [::String]
|
260
|
+
# Error message. Empty if there was no error.
|
261
|
+
class ExecuteAirflowCommandResponse
|
262
|
+
include ::Google::Protobuf::MessageExts
|
263
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
264
|
+
end
|
265
|
+
|
266
|
+
# Stop Airflow Command request.
|
267
|
+
# @!attribute [rw] environment
|
268
|
+
# @return [::String]
|
269
|
+
# The resource name of the environment in the form:
|
270
|
+
# "projects/\\{projectId}/locations/\\{locationId}/environments/\\{environmentId}".
|
271
|
+
# @!attribute [rw] execution_id
|
272
|
+
# @return [::String]
|
273
|
+
# The unique ID of the command execution.
|
274
|
+
# @!attribute [rw] pod
|
275
|
+
# @return [::String]
|
276
|
+
# The name of the pod where the command is executed.
|
277
|
+
# @!attribute [rw] pod_namespace
|
278
|
+
# @return [::String]
|
279
|
+
# The namespace of the pod where the command is executed.
|
280
|
+
# @!attribute [rw] force
|
281
|
+
# @return [::Boolean]
|
282
|
+
# If true, the execution is terminated forcefully (SIGKILL). If false, the
|
283
|
+
# execution is stopped gracefully, giving it time for cleanup.
|
284
|
+
class StopAirflowCommandRequest
|
285
|
+
include ::Google::Protobuf::MessageExts
|
286
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
287
|
+
end
|
288
|
+
|
289
|
+
# Response to StopAirflowCommandRequest.
|
290
|
+
# @!attribute [rw] is_done
|
291
|
+
# @return [::Boolean]
|
292
|
+
# Whether the execution is still running.
|
293
|
+
# @!attribute [rw] output
|
294
|
+
# @return [::Array<::String>]
|
295
|
+
# Output message from stopping execution request.
|
296
|
+
class StopAirflowCommandResponse
|
297
|
+
include ::Google::Protobuf::MessageExts
|
298
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
299
|
+
end
|
300
|
+
|
301
|
+
# Poll Airflow Command request.
|
302
|
+
# @!attribute [rw] environment
|
303
|
+
# @return [::String]
|
304
|
+
# The resource name of the environment in the form:
|
305
|
+
# "projects/\\{projectId}/locations/\\{locationId}/environments/\\{environmentId}"
|
306
|
+
# @!attribute [rw] execution_id
|
307
|
+
# @return [::String]
|
308
|
+
# The unique ID of the command execution.
|
309
|
+
# @!attribute [rw] pod
|
310
|
+
# @return [::String]
|
311
|
+
# The name of the pod where the command is executed.
|
312
|
+
# @!attribute [rw] pod_namespace
|
313
|
+
# @return [::String]
|
314
|
+
# The namespace of the pod where the command is executed.
|
315
|
+
# @!attribute [rw] next_line_number
|
316
|
+
# @return [::Integer]
|
317
|
+
# Line number from which new logs should be fetched.
|
318
|
+
class PollAirflowCommandRequest
|
319
|
+
include ::Google::Protobuf::MessageExts
|
320
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
321
|
+
end
|
322
|
+
|
323
|
+
# Response to PollAirflowCommandRequest.
|
324
|
+
# @!attribute [rw] output
|
325
|
+
# @return [::Array<::Google::Cloud::Orchestration::Airflow::Service::V1::PollAirflowCommandResponse::Line>]
|
326
|
+
# Output from the command execution. It may not contain the full output
|
327
|
+
# and the caller may need to poll for more lines.
|
328
|
+
# @!attribute [rw] output_end
|
329
|
+
# @return [::Boolean]
|
330
|
+
# Whether the command execution has finished and there is no more output.
|
331
|
+
# @!attribute [rw] exit_info
|
332
|
+
# @return [::Google::Cloud::Orchestration::Airflow::Service::V1::PollAirflowCommandResponse::ExitInfo]
|
333
|
+
# The result exit status of the command.
|
334
|
+
class PollAirflowCommandResponse
|
335
|
+
include ::Google::Protobuf::MessageExts
|
336
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
337
|
+
|
338
|
+
# Contains information about a single line from logs.
|
339
|
+
# @!attribute [rw] line_number
|
340
|
+
# @return [::Integer]
|
341
|
+
# Number of the line.
|
342
|
+
# @!attribute [rw] content
|
343
|
+
# @return [::String]
|
344
|
+
# Text content of the log line.
|
345
|
+
class Line
|
346
|
+
include ::Google::Protobuf::MessageExts
|
347
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
348
|
+
end
|
349
|
+
|
350
|
+
# Information about how a command ended.
|
351
|
+
# @!attribute [rw] exit_code
|
352
|
+
# @return [::Integer]
|
353
|
+
# The exit code from the command execution.
|
354
|
+
# @!attribute [rw] error
|
355
|
+
# @return [::String]
|
356
|
+
# Error message. Empty if there was no error.
|
357
|
+
class ExitInfo
|
358
|
+
include ::Google::Protobuf::MessageExts
|
359
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
360
|
+
end
|
361
|
+
end
|
362
|
+
|
226
363
|
# Request to create a snapshot of a Cloud Composer environment.
|
227
364
|
# @!attribute [rw] environment
|
228
365
|
# @return [::String]
|
@@ -285,6 +422,51 @@ module Google
|
|
285
422
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
286
423
|
end
|
287
424
|
|
425
|
+
# Request to trigger database failover (only for highly resilient
|
426
|
+
# environments).
|
427
|
+
# @!attribute [rw] environment
|
428
|
+
# @return [::String]
|
429
|
+
# Target environment:
|
430
|
+
# "projects/\\{projectId}/locations/\\{locationId}/environments/\\{environmentId}"
|
431
|
+
class DatabaseFailoverRequest
|
432
|
+
include ::Google::Protobuf::MessageExts
|
433
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
434
|
+
end
|
435
|
+
|
436
|
+
# Response for DatabaseFailoverRequest.
|
437
|
+
class DatabaseFailoverResponse
|
438
|
+
include ::Google::Protobuf::MessageExts
|
439
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
440
|
+
end
|
441
|
+
|
442
|
+
# Request to fetch properties of environment's database.
|
443
|
+
# @!attribute [rw] environment
|
444
|
+
# @return [::String]
|
445
|
+
# Required. The resource name of the environment, in the form:
|
446
|
+
# "projects/\\{projectId}/locations/\\{locationId}/environments/\\{environmentId}"
|
447
|
+
class FetchDatabasePropertiesRequest
|
448
|
+
include ::Google::Protobuf::MessageExts
|
449
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
450
|
+
end
|
451
|
+
|
452
|
+
# Response for FetchDatabasePropertiesRequest.
|
453
|
+
# @!attribute [rw] primary_gce_zone
|
454
|
+
# @return [::String]
|
455
|
+
# The Compute Engine zone that the instance is currently serving from.
|
456
|
+
# @!attribute [rw] secondary_gce_zone
|
457
|
+
# @return [::String]
|
458
|
+
# The Compute Engine zone that the failover instance is currently serving
|
459
|
+
# from for a regional Cloud SQL instance.
|
460
|
+
# @!attribute [rw] is_failover_replica_available
|
461
|
+
# @return [::Boolean]
|
462
|
+
# The availability status of the failover replica. A false status indicates
|
463
|
+
# that the failover replica is out of sync. The primary instance can only
|
464
|
+
# fail over to the failover replica when the status is true.
|
465
|
+
class FetchDatabasePropertiesResponse
|
466
|
+
include ::Google::Protobuf::MessageExts
|
467
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
468
|
+
end
|
469
|
+
|
288
470
|
# Configuration information for an environment.
|
289
471
|
# @!attribute [rw] gke_cluster
|
290
472
|
# @return [::String]
|
@@ -384,6 +566,12 @@ module Google
|
|
384
566
|
#
|
385
567
|
# This field is supported for Cloud Composer environments in versions
|
386
568
|
# composer-2.*.*-airflow-*.*.* and newer.
|
569
|
+
# @!attribute [rw] resilience_mode
|
570
|
+
# @return [::Google::Cloud::Orchestration::Airflow::Service::V1::EnvironmentConfig::ResilienceMode]
|
571
|
+
# Optional. Resilience mode of the Cloud Composer Environment.
|
572
|
+
#
|
573
|
+
# This field is supported for Cloud Composer environments in versions
|
574
|
+
# composer-2.2.0-airflow-*.*.* and newer.
|
387
575
|
class EnvironmentConfig
|
388
576
|
include ::Google::Protobuf::MessageExts
|
389
577
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -402,6 +590,15 @@ module Google
|
|
402
590
|
# The environment size is large.
|
403
591
|
ENVIRONMENT_SIZE_LARGE = 3
|
404
592
|
end
|
593
|
+
|
594
|
+
# Resilience mode of the Cloud Composer Environment.
|
595
|
+
module ResilienceMode
|
596
|
+
# Default mode doesn't change environment parameters.
|
597
|
+
RESILIENCE_MODE_UNSPECIFIED = 0
|
598
|
+
|
599
|
+
# Enabled High Resilience mode, including Cloud SQL HA.
|
600
|
+
HIGH_RESILIENCE = 1
|
601
|
+
end
|
405
602
|
end
|
406
603
|
|
407
604
|
# Network-level access control policy for the Airflow web server.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-orchestration-airflow-service-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|