google-cloud-orchestration-airflow-service-v1 0.6.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ module Google
23
23
  module Airflow
24
24
  module Service
25
25
  module V1
26
- VERSION = "0.6.1"
26
+ VERSION = "0.8.0"
27
27
  end
28
28
  end
29
29
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
@@ -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.
@@ -90,6 +90,10 @@ module Google
90
90
 
91
91
  # Loads snapshot of the resource operation.
92
92
  LOAD_SNAPSHOT = 6
93
+
94
+ # Triggers failover of environment's Cloud SQL instance (only for highly
95
+ # resilient environments).
96
+ DATABASE_FAILOVER = 7
93
97
  end
94
98
  end
95
99
  end
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.6.1
4
+ version: 0.8.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-06 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  - !ruby/object:Gem::Version
232
232
  version: '0'
233
233
  requirements: []
234
- rubygems_version: 3.4.2
234
+ rubygems_version: 3.4.19
235
235
  signing_key:
236
236
  specification_version: 4
237
237
  summary: Manages Apache Airflow environments on Google Cloud Platform.