google-apis-composer_v1 0.35.0 → 0.36.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef73e31512cb0cf0f8901f1763c1b088ffa4c9d6231926f3cb191e4b5ff3e3ac
4
- data.tar.gz: 8e0bcf95931bba6defb7414752528578c44c4d022cd67258a761e3174e6eec0a
3
+ metadata.gz: ed2069b0782c3d1d476acb0f7c8e90d4a1844ffd1e5c47deea7e6d075e857691
4
+ data.tar.gz: 88b1f63ff297cff788658b6cda36b209f81bee6372dcea8eefbb4ed85e58b303
5
5
  SHA512:
6
- metadata.gz: 405f85822517994cf9bc4ffd965652e3f3f847e4be59609a045f13a09f253ada4bac3d5b2d586f35312647eec4c540bebc43ff5b2a0174996e933da955d1e677
7
- data.tar.gz: 39b471001f502f05ad2fb63a7a3ffa311720f22da821df43699a7c23de6c7c4e500a3c4626f995142684261108f384e45c381f3a5582303b7908d29442e8dea4
6
+ metadata.gz: a14120123b52d7a65b8947dc9efaaa391bc70cfbc9d61024b1bf93e8b4f816e69b346b7a852001595c17ffcd213fbc6b4a60d449bc48b9181666c462762d692d
7
+ data.tar.gz: 3184f5733c7a34c9b2660da4e407bdf0b7470fb3d3271c3950b6058631fca27f8bb9bd83675b3aca875923230f93051b4bdc1fe73bac72063479cf5eb8a7f339
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-composer_v1
2
2
 
3
+ ### v0.36.0 (2023-05-28)
4
+
5
+ * Regenerated from discovery document revision 20230516
6
+
3
7
  ### v0.35.0 (2023-04-02)
4
8
 
5
9
  * Regenerated from discovery document revision 20230323
@@ -144,6 +144,32 @@ module Google
144
144
  end
145
145
  end
146
146
 
147
+ # Request to trigger database failover (only for highly resilient environments).
148
+ class DatabaseFailoverRequest
149
+ include Google::Apis::Core::Hashable
150
+
151
+ def initialize(**args)
152
+ update!(**args)
153
+ end
154
+
155
+ # Update properties of this object
156
+ def update!(**args)
157
+ end
158
+ end
159
+
160
+ # Response for DatabaseFailoverRequest.
161
+ class DatabaseFailoverResponse
162
+ include Google::Apis::Core::Hashable
163
+
164
+ def initialize(**args)
165
+ update!(**args)
166
+ end
167
+
168
+ # Update properties of this object
169
+ def update!(**args)
170
+ end
171
+ end
172
+
147
173
  # Represents a whole or partial calendar date, such as a birthday. The time of
148
174
  # day and time zone are either specified elsewhere or are insignificant. The
149
175
  # date is relative to the Gregorian Calendar. This can represent one of the
@@ -381,6 +407,13 @@ module Google
381
407
  # @return [Google::Apis::ComposerV1::RecoveryConfig]
382
408
  attr_accessor :recovery_config
383
409
 
410
+ # Optional. Resilience mode of the Cloud Composer Environment. This field is
411
+ # supported for Cloud Composer environments in versions composer-2.2.0-airflow-*.
412
+ # *.* and newer.
413
+ # Corresponds to the JSON property `resilienceMode`
414
+ # @return [String]
415
+ attr_accessor :resilience_mode
416
+
384
417
  # Specifies the selection and configuration of software inside the environment.
385
418
  # Corresponds to the JSON property `softwareConfig`
386
419
  # @return [Google::Apis::ComposerV1::SoftwareConfig]
@@ -424,6 +457,7 @@ module Google
424
457
  @node_count = args[:node_count] if args.key?(:node_count)
425
458
  @private_environment_config = args[:private_environment_config] if args.key?(:private_environment_config)
426
459
  @recovery_config = args[:recovery_config] if args.key?(:recovery_config)
460
+ @resilience_mode = args[:resilience_mode] if args.key?(:resilience_mode)
427
461
  @software_config = args[:software_config] if args.key?(:software_config)
428
462
  @web_server_config = args[:web_server_config] if args.key?(:web_server_config)
429
463
  @web_server_network_access_control = args[:web_server_network_access_control] if args.key?(:web_server_network_access_control)
@@ -431,6 +465,136 @@ module Google
431
465
  end
432
466
  end
433
467
 
468
+ # Execute Airflow Command request.
469
+ class ExecuteAirflowCommandRequest
470
+ include Google::Apis::Core::Hashable
471
+
472
+ # Airflow command.
473
+ # Corresponds to the JSON property `command`
474
+ # @return [String]
475
+ attr_accessor :command
476
+
477
+ # Parameters for the Airflow command/subcommand as an array of arguments. It may
478
+ # contain positional arguments like `["my-dag-id"]`, key-value parameters like `[
479
+ # "--foo=bar"]` or `["--foo","bar"]`, or other flags like `["-f"]`.
480
+ # Corresponds to the JSON property `parameters`
481
+ # @return [Array<String>]
482
+ attr_accessor :parameters
483
+
484
+ # Airflow subcommand.
485
+ # Corresponds to the JSON property `subcommand`
486
+ # @return [String]
487
+ attr_accessor :subcommand
488
+
489
+ def initialize(**args)
490
+ update!(**args)
491
+ end
492
+
493
+ # Update properties of this object
494
+ def update!(**args)
495
+ @command = args[:command] if args.key?(:command)
496
+ @parameters = args[:parameters] if args.key?(:parameters)
497
+ @subcommand = args[:subcommand] if args.key?(:subcommand)
498
+ end
499
+ end
500
+
501
+ # Response to ExecuteAirflowCommandRequest.
502
+ class ExecuteAirflowCommandResponse
503
+ include Google::Apis::Core::Hashable
504
+
505
+ # Error message. Empty if there was no error.
506
+ # Corresponds to the JSON property `error`
507
+ # @return [String]
508
+ attr_accessor :error
509
+
510
+ # The unique ID of the command execution for polling.
511
+ # Corresponds to the JSON property `executionId`
512
+ # @return [String]
513
+ attr_accessor :execution_id
514
+
515
+ # The name of the pod where the command is executed.
516
+ # Corresponds to the JSON property `pod`
517
+ # @return [String]
518
+ attr_accessor :pod
519
+
520
+ # The namespace of the pod where the command is executed.
521
+ # Corresponds to the JSON property `podNamespace`
522
+ # @return [String]
523
+ attr_accessor :pod_namespace
524
+
525
+ def initialize(**args)
526
+ update!(**args)
527
+ end
528
+
529
+ # Update properties of this object
530
+ def update!(**args)
531
+ @error = args[:error] if args.key?(:error)
532
+ @execution_id = args[:execution_id] if args.key?(:execution_id)
533
+ @pod = args[:pod] if args.key?(:pod)
534
+ @pod_namespace = args[:pod_namespace] if args.key?(:pod_namespace)
535
+ end
536
+ end
537
+
538
+ # Information about how a command ended.
539
+ class ExitInfo
540
+ include Google::Apis::Core::Hashable
541
+
542
+ # Error message. Empty if there was no error.
543
+ # Corresponds to the JSON property `error`
544
+ # @return [String]
545
+ attr_accessor :error
546
+
547
+ # The exit code from the command execution.
548
+ # Corresponds to the JSON property `exitCode`
549
+ # @return [Fixnum]
550
+ attr_accessor :exit_code
551
+
552
+ def initialize(**args)
553
+ update!(**args)
554
+ end
555
+
556
+ # Update properties of this object
557
+ def update!(**args)
558
+ @error = args[:error] if args.key?(:error)
559
+ @exit_code = args[:exit_code] if args.key?(:exit_code)
560
+ end
561
+ end
562
+
563
+ # Response for FetchDatabasePropertiesRequest.
564
+ class FetchDatabasePropertiesResponse
565
+ include Google::Apis::Core::Hashable
566
+
567
+ # The availability status of the failover replica. A false status indicates that
568
+ # the failover replica is out of sync. The primary instance can only fail over
569
+ # to the failover replica when the status is true.
570
+ # Corresponds to the JSON property `isFailoverReplicaAvailable`
571
+ # @return [Boolean]
572
+ attr_accessor :is_failover_replica_available
573
+ alias_method :is_failover_replica_available?, :is_failover_replica_available
574
+
575
+ # The Compute Engine zone that the instance is currently serving from.
576
+ # Corresponds to the JSON property `primaryGceZone`
577
+ # @return [String]
578
+ attr_accessor :primary_gce_zone
579
+
580
+ # The Compute Engine zone that the failover instance is currently serving from
581
+ # for a regional Cloud SQL instance.
582
+ # Corresponds to the JSON property `secondaryGceZone`
583
+ # @return [String]
584
+ attr_accessor :secondary_gce_zone
585
+
586
+ def initialize(**args)
587
+ update!(**args)
588
+ end
589
+
590
+ # Update properties of this object
591
+ def update!(**args)
592
+ @is_failover_replica_available = args[:is_failover_replica_available] if args.key?(:is_failover_replica_available)
593
+ @primary_gce_zone = args[:primary_gce_zone] if args.key?(:primary_gce_zone)
594
+ @secondary_gce_zone = args[:secondary_gce_zone] if args.key?(:secondary_gce_zone)
595
+ end
596
+ end
597
+
434
598
  # Configuration for controlling how IPs are allocated in the GKE cluster running
435
599
  # the Apache Airflow software.
436
600
  class IpAllocationPolicy
@@ -560,6 +724,31 @@ module Google
560
724
  end
561
725
  end
562
726
 
727
+ # Contains information about a single line from logs.
728
+ class Line
729
+ include Google::Apis::Core::Hashable
730
+
731
+ # Text content of the log line.
732
+ # Corresponds to the JSON property `content`
733
+ # @return [String]
734
+ attr_accessor :content
735
+
736
+ # Number of the line.
737
+ # Corresponds to the JSON property `lineNumber`
738
+ # @return [Fixnum]
739
+ attr_accessor :line_number
740
+
741
+ def initialize(**args)
742
+ update!(**args)
743
+ end
744
+
745
+ # Update properties of this object
746
+ def update!(**args)
747
+ @content = args[:content] if args.key?(:content)
748
+ @line_number = args[:line_number] if args.key?(:line_number)
749
+ end
750
+ end
751
+
563
752
  # The environments in a project and location.
564
753
  class ListEnvironmentsResponse
565
754
  include Google::Apis::Core::Hashable
@@ -1030,6 +1219,76 @@ module Google
1030
1219
  end
1031
1220
  end
1032
1221
 
1222
+ # Poll Airflow Command request.
1223
+ class PollAirflowCommandRequest
1224
+ include Google::Apis::Core::Hashable
1225
+
1226
+ # The unique ID of the command execution.
1227
+ # Corresponds to the JSON property `executionId`
1228
+ # @return [String]
1229
+ attr_accessor :execution_id
1230
+
1231
+ # Line number from which new logs should be fetched.
1232
+ # Corresponds to the JSON property `nextLineNumber`
1233
+ # @return [Fixnum]
1234
+ attr_accessor :next_line_number
1235
+
1236
+ # The name of the pod where the command is executed.
1237
+ # Corresponds to the JSON property `pod`
1238
+ # @return [String]
1239
+ attr_accessor :pod
1240
+
1241
+ # The namespace of the pod where the command is executed.
1242
+ # Corresponds to the JSON property `podNamespace`
1243
+ # @return [String]
1244
+ attr_accessor :pod_namespace
1245
+
1246
+ def initialize(**args)
1247
+ update!(**args)
1248
+ end
1249
+
1250
+ # Update properties of this object
1251
+ def update!(**args)
1252
+ @execution_id = args[:execution_id] if args.key?(:execution_id)
1253
+ @next_line_number = args[:next_line_number] if args.key?(:next_line_number)
1254
+ @pod = args[:pod] if args.key?(:pod)
1255
+ @pod_namespace = args[:pod_namespace] if args.key?(:pod_namespace)
1256
+ end
1257
+ end
1258
+
1259
+ # Response to PollAirflowCommandRequest.
1260
+ class PollAirflowCommandResponse
1261
+ include Google::Apis::Core::Hashable
1262
+
1263
+ # Information about how a command ended.
1264
+ # Corresponds to the JSON property `exitInfo`
1265
+ # @return [Google::Apis::ComposerV1::ExitInfo]
1266
+ attr_accessor :exit_info
1267
+
1268
+ # Output from the command execution. It may not contain the full output and the
1269
+ # caller may need to poll for more lines.
1270
+ # Corresponds to the JSON property `output`
1271
+ # @return [Array<Google::Apis::ComposerV1::Line>]
1272
+ attr_accessor :output
1273
+
1274
+ # Whether the command execution has finished and there is no more output.
1275
+ # Corresponds to the JSON property `outputEnd`
1276
+ # @return [Boolean]
1277
+ attr_accessor :output_end
1278
+ alias_method :output_end?, :output_end
1279
+
1280
+ def initialize(**args)
1281
+ update!(**args)
1282
+ end
1283
+
1284
+ # Update properties of this object
1285
+ def update!(**args)
1286
+ @exit_info = args[:exit_info] if args.key?(:exit_info)
1287
+ @output = args[:output] if args.key?(:output)
1288
+ @output_end = args[:output_end] if args.key?(:output_end)
1289
+ end
1290
+ end
1291
+
1033
1292
  # Configuration options for the private GKE cluster in a Cloud Composer
1034
1293
  # environment.
1035
1294
  class PrivateClusterConfig
@@ -1437,6 +1696,71 @@ module Google
1437
1696
  end
1438
1697
  end
1439
1698
 
1699
+ # Stop Airflow Command request.
1700
+ class StopAirflowCommandRequest
1701
+ include Google::Apis::Core::Hashable
1702
+
1703
+ # The unique ID of the command execution.
1704
+ # Corresponds to the JSON property `executionId`
1705
+ # @return [String]
1706
+ attr_accessor :execution_id
1707
+
1708
+ # If true, the execution is terminated forcefully (SIGKILL). If false, the
1709
+ # execution is stopped gracefully, giving it time for cleanup.
1710
+ # Corresponds to the JSON property `force`
1711
+ # @return [Boolean]
1712
+ attr_accessor :force
1713
+ alias_method :force?, :force
1714
+
1715
+ # The name of the pod where the command is executed.
1716
+ # Corresponds to the JSON property `pod`
1717
+ # @return [String]
1718
+ attr_accessor :pod
1719
+
1720
+ # The namespace of the pod where the command is executed.
1721
+ # Corresponds to the JSON property `podNamespace`
1722
+ # @return [String]
1723
+ attr_accessor :pod_namespace
1724
+
1725
+ def initialize(**args)
1726
+ update!(**args)
1727
+ end
1728
+
1729
+ # Update properties of this object
1730
+ def update!(**args)
1731
+ @execution_id = args[:execution_id] if args.key?(:execution_id)
1732
+ @force = args[:force] if args.key?(:force)
1733
+ @pod = args[:pod] if args.key?(:pod)
1734
+ @pod_namespace = args[:pod_namespace] if args.key?(:pod_namespace)
1735
+ end
1736
+ end
1737
+
1738
+ # Response to StopAirflowCommandRequest.
1739
+ class StopAirflowCommandResponse
1740
+ include Google::Apis::Core::Hashable
1741
+
1742
+ # Whether the execution is still running.
1743
+ # Corresponds to the JSON property `isDone`
1744
+ # @return [Boolean]
1745
+ attr_accessor :is_done
1746
+ alias_method :is_done?, :is_done
1747
+
1748
+ # Output message from stopping execution request.
1749
+ # Corresponds to the JSON property `output`
1750
+ # @return [Array<String>]
1751
+ attr_accessor :output
1752
+
1753
+ def initialize(**args)
1754
+ update!(**args)
1755
+ end
1756
+
1757
+ # Update properties of this object
1758
+ def update!(**args)
1759
+ @is_done = args[:is_done] if args.key?(:is_done)
1760
+ @output = args[:output] if args.key?(:output)
1761
+ end
1762
+ end
1763
+
1440
1764
  # The configuration settings for the Airflow web server App Engine instance.
1441
1765
  # Supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.
1442
1766
  # *.*
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComposerV1
18
18
  # Version of the google-apis-composer_v1 gem
19
- GEM_VERSION = "0.35.0"
19
+ GEM_VERSION = "0.36.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230323"
25
+ REVISION = "20230516"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,18 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class DatabaseFailoverRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class DatabaseFailoverResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
49
61
  class Date
50
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
63
 
@@ -76,6 +88,30 @@ module Google
76
88
  include Google::Apis::Core::JsonObjectSupport
77
89
  end
78
90
 
91
+ class ExecuteAirflowCommandRequest
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ExecuteAirflowCommandResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ExitInfo
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class FetchDatabasePropertiesResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
79
115
  class IpAllocationPolicy
80
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
117
 
@@ -88,6 +124,12 @@ module Google
88
124
  include Google::Apis::Core::JsonObjectSupport
89
125
  end
90
126
 
127
+ class Line
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
91
133
  class ListEnvironmentsResponse
92
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
135
 
@@ -154,6 +196,18 @@ module Google
154
196
  include Google::Apis::Core::JsonObjectSupport
155
197
  end
156
198
 
199
+ class PollAirflowCommandRequest
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class PollAirflowCommandResponse
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
157
211
  class PrivateClusterConfig
158
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
213
 
@@ -208,6 +262,18 @@ module Google
208
262
  include Google::Apis::Core::JsonObjectSupport
209
263
  end
210
264
 
265
+ class StopAirflowCommandRequest
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class StopAirflowCommandResponse
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
211
277
  class WebServerConfig
212
278
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
279
 
@@ -272,6 +338,18 @@ module Google
272
338
  end
273
339
  end
274
340
 
341
+ class DatabaseFailoverRequest
342
+ # @private
343
+ class Representation < Google::Apis::Core::JsonRepresentation
344
+ end
345
+ end
346
+
347
+ class DatabaseFailoverResponse
348
+ # @private
349
+ class Representation < Google::Apis::Core::JsonRepresentation
350
+ end
351
+ end
352
+
275
353
  class Date
276
354
  # @private
277
355
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -331,6 +409,7 @@ module Google
331
409
 
332
410
  property :recovery_config, as: 'recoveryConfig', class: Google::Apis::ComposerV1::RecoveryConfig, decorator: Google::Apis::ComposerV1::RecoveryConfig::Representation
333
411
 
412
+ property :resilience_mode, as: 'resilienceMode'
334
413
  property :software_config, as: 'softwareConfig', class: Google::Apis::ComposerV1::SoftwareConfig, decorator: Google::Apis::ComposerV1::SoftwareConfig::Representation
335
414
 
336
415
  property :web_server_config, as: 'webServerConfig', class: Google::Apis::ComposerV1::WebServerConfig, decorator: Google::Apis::ComposerV1::WebServerConfig::Representation
@@ -342,6 +421,42 @@ module Google
342
421
  end
343
422
  end
344
423
 
424
+ class ExecuteAirflowCommandRequest
425
+ # @private
426
+ class Representation < Google::Apis::Core::JsonRepresentation
427
+ property :command, as: 'command'
428
+ collection :parameters, as: 'parameters'
429
+ property :subcommand, as: 'subcommand'
430
+ end
431
+ end
432
+
433
+ class ExecuteAirflowCommandResponse
434
+ # @private
435
+ class Representation < Google::Apis::Core::JsonRepresentation
436
+ property :error, as: 'error'
437
+ property :execution_id, as: 'executionId'
438
+ property :pod, as: 'pod'
439
+ property :pod_namespace, as: 'podNamespace'
440
+ end
441
+ end
442
+
443
+ class ExitInfo
444
+ # @private
445
+ class Representation < Google::Apis::Core::JsonRepresentation
446
+ property :error, as: 'error'
447
+ property :exit_code, as: 'exitCode'
448
+ end
449
+ end
450
+
451
+ class FetchDatabasePropertiesResponse
452
+ # @private
453
+ class Representation < Google::Apis::Core::JsonRepresentation
454
+ property :is_failover_replica_available, as: 'isFailoverReplicaAvailable'
455
+ property :primary_gce_zone, as: 'primaryGceZone'
456
+ property :secondary_gce_zone, as: 'secondaryGceZone'
457
+ end
458
+ end
459
+
345
460
  class IpAllocationPolicy
346
461
  # @private
347
462
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -366,6 +481,14 @@ module Google
366
481
  end
367
482
  end
368
483
 
484
+ class Line
485
+ # @private
486
+ class Representation < Google::Apis::Core::JsonRepresentation
487
+ property :content, as: 'content'
488
+ property :line_number, as: 'lineNumber'
489
+ end
490
+ end
491
+
369
492
  class ListEnvironmentsResponse
370
493
  # @private
371
494
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -476,6 +599,27 @@ module Google
476
599
  end
477
600
  end
478
601
 
602
+ class PollAirflowCommandRequest
603
+ # @private
604
+ class Representation < Google::Apis::Core::JsonRepresentation
605
+ property :execution_id, as: 'executionId'
606
+ property :next_line_number, as: 'nextLineNumber'
607
+ property :pod, as: 'pod'
608
+ property :pod_namespace, as: 'podNamespace'
609
+ end
610
+ end
611
+
612
+ class PollAirflowCommandResponse
613
+ # @private
614
+ class Representation < Google::Apis::Core::JsonRepresentation
615
+ property :exit_info, as: 'exitInfo', class: Google::Apis::ComposerV1::ExitInfo, decorator: Google::Apis::ComposerV1::ExitInfo::Representation
616
+
617
+ collection :output, as: 'output', class: Google::Apis::ComposerV1::Line, decorator: Google::Apis::ComposerV1::Line::Representation
618
+
619
+ property :output_end, as: 'outputEnd'
620
+ end
621
+ end
622
+
479
623
  class PrivateClusterConfig
480
624
  # @private
481
625
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -566,6 +710,24 @@ module Google
566
710
  end
567
711
  end
568
712
 
713
+ class StopAirflowCommandRequest
714
+ # @private
715
+ class Representation < Google::Apis::Core::JsonRepresentation
716
+ property :execution_id, as: 'executionId'
717
+ property :force, as: 'force'
718
+ property :pod, as: 'pod'
719
+ property :pod_namespace, as: 'podNamespace'
720
+ end
721
+ end
722
+
723
+ class StopAirflowCommandResponse
724
+ # @private
725
+ class Representation < Google::Apis::Core::JsonRepresentation
726
+ property :is_done, as: 'isDone'
727
+ collection :output, as: 'output'
728
+ end
729
+ end
730
+
569
731
  class WebServerConfig
570
732
  # @private
571
733
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -82,6 +82,40 @@ module Google
82
82
  execute_or_queue_command(command, &block)
83
83
  end
84
84
 
85
+ # Triggers database failover (only for highly resilient environments).
86
+ # @param [String] environment
87
+ # Target environment: "projects/`projectId`/locations/`locationId`/environments/`
88
+ # environmentId`"
89
+ # @param [Google::Apis::ComposerV1::DatabaseFailoverRequest] database_failover_request_object
90
+ # @param [String] fields
91
+ # Selector specifying which fields to include in a partial response.
92
+ # @param [String] quota_user
93
+ # Available to use for quota purposes for server-side applications. Can be any
94
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
95
+ # @param [Google::Apis::RequestOptions] options
96
+ # Request-specific options
97
+ #
98
+ # @yield [result, err] Result & error if block supplied
99
+ # @yieldparam result [Google::Apis::ComposerV1::Operation] parsed result object
100
+ # @yieldparam err [StandardError] error object if request failed
101
+ #
102
+ # @return [Google::Apis::ComposerV1::Operation]
103
+ #
104
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
105
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
106
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
107
+ def database_environment_failover(environment, database_failover_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
108
+ command = make_simple_command(:post, 'v1/{+environment}:databaseFailover', options)
109
+ command.request_representation = Google::Apis::ComposerV1::DatabaseFailoverRequest::Representation
110
+ command.request_object = database_failover_request_object
111
+ command.response_representation = Google::Apis::ComposerV1::Operation::Representation
112
+ command.response_class = Google::Apis::ComposerV1::Operation
113
+ command.params['environment'] = environment unless environment.nil?
114
+ command.query['fields'] = fields unless fields.nil?
115
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
116
+ execute_or_queue_command(command, &block)
117
+ end
118
+
85
119
  # Delete an environment.
86
120
  # @param [String] name
87
121
  # The environment to delete, in the form: "projects/`projectId`/locations/`
@@ -113,6 +147,71 @@ module Google
113
147
  execute_or_queue_command(command, &block)
114
148
  end
115
149
 
150
+ # Executes Airflow CLI command.
151
+ # @param [String] environment
152
+ # The resource name of the environment in the form: "projects/`projectId`/
153
+ # locations/`locationId`/environments/`environmentId`".
154
+ # @param [Google::Apis::ComposerV1::ExecuteAirflowCommandRequest] execute_airflow_command_request_object
155
+ # @param [String] fields
156
+ # Selector specifying which fields to include in a partial response.
157
+ # @param [String] quota_user
158
+ # Available to use for quota purposes for server-side applications. Can be any
159
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
160
+ # @param [Google::Apis::RequestOptions] options
161
+ # Request-specific options
162
+ #
163
+ # @yield [result, err] Result & error if block supplied
164
+ # @yieldparam result [Google::Apis::ComposerV1::ExecuteAirflowCommandResponse] parsed result object
165
+ # @yieldparam err [StandardError] error object if request failed
166
+ #
167
+ # @return [Google::Apis::ComposerV1::ExecuteAirflowCommandResponse]
168
+ #
169
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
170
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
171
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
172
+ def execute_environment_airflow_command(environment, execute_airflow_command_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
173
+ command = make_simple_command(:post, 'v1/{+environment}:executeAirflowCommand', options)
174
+ command.request_representation = Google::Apis::ComposerV1::ExecuteAirflowCommandRequest::Representation
175
+ command.request_object = execute_airflow_command_request_object
176
+ command.response_representation = Google::Apis::ComposerV1::ExecuteAirflowCommandResponse::Representation
177
+ command.response_class = Google::Apis::ComposerV1::ExecuteAirflowCommandResponse
178
+ command.params['environment'] = environment unless environment.nil?
179
+ command.query['fields'] = fields unless fields.nil?
180
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
181
+ execute_or_queue_command(command, &block)
182
+ end
183
+
184
+ # Fetches database properties.
185
+ # @param [String] environment
186
+ # Required. The resource name of the environment, in the form: "projects/`
187
+ # projectId`/locations/`locationId`/environments/`environmentId`"
188
+ # @param [String] fields
189
+ # Selector specifying which fields to include in a partial response.
190
+ # @param [String] quota_user
191
+ # Available to use for quota purposes for server-side applications. Can be any
192
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
193
+ # @param [Google::Apis::RequestOptions] options
194
+ # Request-specific options
195
+ #
196
+ # @yield [result, err] Result & error if block supplied
197
+ # @yieldparam result [Google::Apis::ComposerV1::FetchDatabasePropertiesResponse] parsed result object
198
+ # @yieldparam err [StandardError] error object if request failed
199
+ #
200
+ # @return [Google::Apis::ComposerV1::FetchDatabasePropertiesResponse]
201
+ #
202
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
203
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
204
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
205
+ def fetch_project_location_environment_database_properties(environment, fields: nil, quota_user: nil, options: nil, &block)
206
+ command = make_simple_command(:get, 'v1/{+environment}:fetchDatabaseProperties', options)
207
+ command.response_representation = Google::Apis::ComposerV1::FetchDatabasePropertiesResponse::Representation
208
+ command.response_class = Google::Apis::ComposerV1::FetchDatabasePropertiesResponse
209
+ command.params['environment'] = environment unless environment.nil?
210
+ command.query['fields'] = fields unless fields.nil?
211
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
212
+ execute_or_queue_command(command, &block)
213
+ end
214
+
116
215
  # Get an existing environment.
117
216
  # @param [String] name
118
217
  # The resource name of the environment to get, in the form: "projects/`projectId`
@@ -322,6 +421,40 @@ module Google
322
421
  execute_or_queue_command(command, &block)
323
422
  end
324
423
 
424
+ # Polls Airflow CLI command execution and fetches logs.
425
+ # @param [String] environment
426
+ # The resource name of the environment in the form: "projects/`projectId`/
427
+ # locations/`locationId`/environments/`environmentId`"
428
+ # @param [Google::Apis::ComposerV1::PollAirflowCommandRequest] poll_airflow_command_request_object
429
+ # @param [String] fields
430
+ # Selector specifying which fields to include in a partial response.
431
+ # @param [String] quota_user
432
+ # Available to use for quota purposes for server-side applications. Can be any
433
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
434
+ # @param [Google::Apis::RequestOptions] options
435
+ # Request-specific options
436
+ #
437
+ # @yield [result, err] Result & error if block supplied
438
+ # @yieldparam result [Google::Apis::ComposerV1::PollAirflowCommandResponse] parsed result object
439
+ # @yieldparam err [StandardError] error object if request failed
440
+ #
441
+ # @return [Google::Apis::ComposerV1::PollAirflowCommandResponse]
442
+ #
443
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
444
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
445
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
446
+ def poll_environment_airflow_command(environment, poll_airflow_command_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
447
+ command = make_simple_command(:post, 'v1/{+environment}:pollAirflowCommand', options)
448
+ command.request_representation = Google::Apis::ComposerV1::PollAirflowCommandRequest::Representation
449
+ command.request_object = poll_airflow_command_request_object
450
+ command.response_representation = Google::Apis::ComposerV1::PollAirflowCommandResponse::Representation
451
+ command.response_class = Google::Apis::ComposerV1::PollAirflowCommandResponse
452
+ command.params['environment'] = environment unless environment.nil?
453
+ command.query['fields'] = fields unless fields.nil?
454
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
455
+ execute_or_queue_command(command, &block)
456
+ end
457
+
325
458
  # Creates a snapshots of a Cloud Composer environment. As a result of this
326
459
  # operation, snapshot of environment's state is stored in a location specified
327
460
  # in the SaveSnapshotRequest.
@@ -358,6 +491,40 @@ module Google
358
491
  execute_or_queue_command(command, &block)
359
492
  end
360
493
 
494
+ # Stops Airflow CLI command execution.
495
+ # @param [String] environment
496
+ # The resource name of the environment in the form: "projects/`projectId`/
497
+ # locations/`locationId`/environments/`environmentId`".
498
+ # @param [Google::Apis::ComposerV1::StopAirflowCommandRequest] stop_airflow_command_request_object
499
+ # @param [String] fields
500
+ # Selector specifying which fields to include in a partial response.
501
+ # @param [String] quota_user
502
+ # Available to use for quota purposes for server-side applications. Can be any
503
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
504
+ # @param [Google::Apis::RequestOptions] options
505
+ # Request-specific options
506
+ #
507
+ # @yield [result, err] Result & error if block supplied
508
+ # @yieldparam result [Google::Apis::ComposerV1::StopAirflowCommandResponse] parsed result object
509
+ # @yieldparam err [StandardError] error object if request failed
510
+ #
511
+ # @return [Google::Apis::ComposerV1::StopAirflowCommandResponse]
512
+ #
513
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
514
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
515
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
516
+ def stop_environment_airflow_command(environment, stop_airflow_command_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
517
+ command = make_simple_command(:post, 'v1/{+environment}:stopAirflowCommand', options)
518
+ command.request_representation = Google::Apis::ComposerV1::StopAirflowCommandRequest::Representation
519
+ command.request_object = stop_airflow_command_request_object
520
+ command.response_representation = Google::Apis::ComposerV1::StopAirflowCommandResponse::Representation
521
+ command.response_class = Google::Apis::ComposerV1::StopAirflowCommandResponse
522
+ command.params['environment'] = environment unless environment.nil?
523
+ command.query['fields'] = fields unless fields.nil?
524
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
525
+ execute_or_queue_command(command, &block)
526
+ end
527
+
361
528
  # List ImageVersions for provided location.
362
529
  # @param [String] parent
363
530
  # List ImageVersions in the given project and location, in the form: "projects/`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-composer_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.0
4
+ version: 0.36.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-04-02 00:00:00.000000000 Z
11
+ date: 2023-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-composer_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1/v0.35.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1/v0.36.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-composer_v1
63
63
  post_install_message:
64
64
  rdoc_options: []