google-apis-composer_v1beta1 0.34.0 → 0.35.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: ea275e3933a267c1e52481b823fe3a371eefb3e51168b4fa6727c7c3cc495175
4
- data.tar.gz: 83f3b65bd6a88f8fc556be0f7c86e68151323e6837e710ce184affd6ca94cf49
3
+ metadata.gz: badf61b6d246109225188d7090a722129a91a08b759b9e575f46152b4f8d5aa0
4
+ data.tar.gz: 39f3347a9a016d85f65944b3ed842aabbfaa56c1c4c061887af475063c02a564
5
5
  SHA512:
6
- metadata.gz: 8a03b847c8739b3932dcd27f6b14548291c85ab79c0329f7617d8e6aa12249639de761fd5cc0d1a860d746d8acf8e85dfa4da47117c7f05b4b4a82e7c2650aa1
7
- data.tar.gz: e6868e5670829c8986d16677f19167821c946bae54385d51df090f45e125f6c963c7af12f0b1cf6cd4132fd98054990eb0fa111ae0643b11b43bb4fedf5b568e
6
+ metadata.gz: 46d3f14d9e6dcddd4846ea57a867539f70e59bf739f92dcdec96329b9dd5e3b8b62e58a93ec1be56beb8ad49a12e0e37e90b07c799373ad3d0c29a289e30136e
7
+ data.tar.gz: c056ff9b1334f3858a6cc84cd7a8793a4c88e2e92e947369be3dde818f868cecb21869ff096b589bccd2acc951aebabbd08cbbc2fbf95c52ad22618e5feb739d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-composer_v1beta1
2
2
 
3
+ ### v0.35.0 (2023-05-28)
4
+
5
+ * Regenerated from discovery document revision 20230516
6
+
3
7
  ### v0.34.0 (2023-05-14)
4
8
 
5
9
  * Regenerated from discovery document revision 20230510
@@ -200,6 +200,32 @@ module Google
200
200
  end
201
201
  end
202
202
 
203
+ # Request to trigger database failover (only for highly resilient environments).
204
+ class DatabaseFailoverRequest
205
+ include Google::Apis::Core::Hashable
206
+
207
+ def initialize(**args)
208
+ update!(**args)
209
+ end
210
+
211
+ # Update properties of this object
212
+ def update!(**args)
213
+ end
214
+ end
215
+
216
+ # Response for DatabaseFailoverRequest.
217
+ class DatabaseFailoverResponse
218
+ include Google::Apis::Core::Hashable
219
+
220
+ def initialize(**args)
221
+ update!(**args)
222
+ end
223
+
224
+ # Update properties of this object
225
+ def update!(**args)
226
+ end
227
+ end
228
+
203
229
  # Represents a whole or partial calendar date, such as a birthday. The time of
204
230
  # day and time zone are either specified elsewhere or are insignificant. The
205
231
  # date is relative to the Gregorian Calendar. This can represent one of the
@@ -437,6 +463,13 @@ module Google
437
463
  # @return [Google::Apis::ComposerV1beta1::RecoveryConfig]
438
464
  attr_accessor :recovery_config
439
465
 
466
+ # Optional. Resilience mode of the Cloud Composer Environment. This field is
467
+ # supported for Cloud Composer environments in versions composer-2.2.0-airflow-*.
468
+ # *.* and newer.
469
+ # Corresponds to the JSON property `resilienceMode`
470
+ # @return [String]
471
+ attr_accessor :resilience_mode
472
+
440
473
  # Specifies the selection and configuration of software inside the environment.
441
474
  # Corresponds to the JSON property `softwareConfig`
442
475
  # @return [Google::Apis::ComposerV1beta1::SoftwareConfig]
@@ -480,6 +513,7 @@ module Google
480
513
  @node_count = args[:node_count] if args.key?(:node_count)
481
514
  @private_environment_config = args[:private_environment_config] if args.key?(:private_environment_config)
482
515
  @recovery_config = args[:recovery_config] if args.key?(:recovery_config)
516
+ @resilience_mode = args[:resilience_mode] if args.key?(:resilience_mode)
483
517
  @software_config = args[:software_config] if args.key?(:software_config)
484
518
  @web_server_config = args[:web_server_config] if args.key?(:web_server_config)
485
519
  @web_server_network_access_control = args[:web_server_network_access_control] if args.key?(:web_server_network_access_control)
@@ -487,6 +521,136 @@ module Google
487
521
  end
488
522
  end
489
523
 
524
+ # Execute Airflow Command request.
525
+ class ExecuteAirflowCommandRequest
526
+ include Google::Apis::Core::Hashable
527
+
528
+ # Airflow command.
529
+ # Corresponds to the JSON property `command`
530
+ # @return [String]
531
+ attr_accessor :command
532
+
533
+ # Parameters for the Airflow command/subcommand as an array of arguments. It may
534
+ # contain positional arguments like `["my-dag-id"]`, key-value parameters like `[
535
+ # "--foo=bar"]` or `["--foo","bar"]`, or other flags like `["-f"]`.
536
+ # Corresponds to the JSON property `parameters`
537
+ # @return [Array<String>]
538
+ attr_accessor :parameters
539
+
540
+ # Airflow subcommand.
541
+ # Corresponds to the JSON property `subcommand`
542
+ # @return [String]
543
+ attr_accessor :subcommand
544
+
545
+ def initialize(**args)
546
+ update!(**args)
547
+ end
548
+
549
+ # Update properties of this object
550
+ def update!(**args)
551
+ @command = args[:command] if args.key?(:command)
552
+ @parameters = args[:parameters] if args.key?(:parameters)
553
+ @subcommand = args[:subcommand] if args.key?(:subcommand)
554
+ end
555
+ end
556
+
557
+ # Response to ExecuteAirflowCommandRequest.
558
+ class ExecuteAirflowCommandResponse
559
+ include Google::Apis::Core::Hashable
560
+
561
+ # Error message. Empty if there was no error.
562
+ # Corresponds to the JSON property `error`
563
+ # @return [String]
564
+ attr_accessor :error
565
+
566
+ # The unique ID of the command execution for polling.
567
+ # Corresponds to the JSON property `executionId`
568
+ # @return [String]
569
+ attr_accessor :execution_id
570
+
571
+ # The name of the pod where the command is executed.
572
+ # Corresponds to the JSON property `pod`
573
+ # @return [String]
574
+ attr_accessor :pod
575
+
576
+ # The namespace of the pod where the command is executed.
577
+ # Corresponds to the JSON property `podNamespace`
578
+ # @return [String]
579
+ attr_accessor :pod_namespace
580
+
581
+ def initialize(**args)
582
+ update!(**args)
583
+ end
584
+
585
+ # Update properties of this object
586
+ def update!(**args)
587
+ @error = args[:error] if args.key?(:error)
588
+ @execution_id = args[:execution_id] if args.key?(:execution_id)
589
+ @pod = args[:pod] if args.key?(:pod)
590
+ @pod_namespace = args[:pod_namespace] if args.key?(:pod_namespace)
591
+ end
592
+ end
593
+
594
+ # Information about how a command ended.
595
+ class ExitInfo
596
+ include Google::Apis::Core::Hashable
597
+
598
+ # Error message. Empty if there was no error.
599
+ # Corresponds to the JSON property `error`
600
+ # @return [String]
601
+ attr_accessor :error
602
+
603
+ # The exit code from the command execution.
604
+ # Corresponds to the JSON property `exitCode`
605
+ # @return [Fixnum]
606
+ attr_accessor :exit_code
607
+
608
+ def initialize(**args)
609
+ update!(**args)
610
+ end
611
+
612
+ # Update properties of this object
613
+ def update!(**args)
614
+ @error = args[:error] if args.key?(:error)
615
+ @exit_code = args[:exit_code] if args.key?(:exit_code)
616
+ end
617
+ end
618
+
619
+ # Response for FetchDatabasePropertiesRequest.
620
+ class FetchDatabasePropertiesResponse
621
+ include Google::Apis::Core::Hashable
622
+
623
+ # The availability status of the failover replica. A false status indicates that
624
+ # the failover replica is out of sync. The primary instance can only fail over
625
+ # to the failover replica when the status is true.
626
+ # Corresponds to the JSON property `isFailoverReplicaAvailable`
627
+ # @return [Boolean]
628
+ attr_accessor :is_failover_replica_available
629
+ alias_method :is_failover_replica_available?, :is_failover_replica_available
630
+
631
+ # The Compute Engine zone that the instance is currently serving from.
632
+ # Corresponds to the JSON property `primaryGceZone`
633
+ # @return [String]
634
+ attr_accessor :primary_gce_zone
635
+
636
+ # The Compute Engine zone that the failover instance is currently serving from
637
+ # for a regional Cloud SQL instance.
638
+ # Corresponds to the JSON property `secondaryGceZone`
639
+ # @return [String]
640
+ attr_accessor :secondary_gce_zone
641
+
642
+ def initialize(**args)
643
+ update!(**args)
644
+ end
645
+
646
+ # Update properties of this object
647
+ def update!(**args)
648
+ @is_failover_replica_available = args[:is_failover_replica_available] if args.key?(:is_failover_replica_available)
649
+ @primary_gce_zone = args[:primary_gce_zone] if args.key?(:primary_gce_zone)
650
+ @secondary_gce_zone = args[:secondary_gce_zone] if args.key?(:secondary_gce_zone)
651
+ end
652
+ end
653
+
490
654
  # Configuration for controlling how IPs are allocated in the GKE cluster.
491
655
  class IpAllocationPolicy
492
656
  include Google::Apis::Core::Hashable
@@ -620,6 +784,31 @@ module Google
620
784
  end
621
785
  end
622
786
 
787
+ # Contains information about a single line from logs.
788
+ class Line
789
+ include Google::Apis::Core::Hashable
790
+
791
+ # Text content of the log line.
792
+ # Corresponds to the JSON property `content`
793
+ # @return [String]
794
+ attr_accessor :content
795
+
796
+ # Number of the line.
797
+ # Corresponds to the JSON property `lineNumber`
798
+ # @return [Fixnum]
799
+ attr_accessor :line_number
800
+
801
+ def initialize(**args)
802
+ update!(**args)
803
+ end
804
+
805
+ # Update properties of this object
806
+ def update!(**args)
807
+ @content = args[:content] if args.key?(:content)
808
+ @line_number = args[:line_number] if args.key?(:line_number)
809
+ end
810
+ end
811
+
623
812
  # The environments in a project and location.
624
813
  class ListEnvironmentsResponse
625
814
  include Google::Apis::Core::Hashable
@@ -1103,6 +1292,76 @@ module Google
1103
1292
  end
1104
1293
  end
1105
1294
 
1295
+ # Poll Airflow Command request.
1296
+ class PollAirflowCommandRequest
1297
+ include Google::Apis::Core::Hashable
1298
+
1299
+ # The unique ID of the command execution.
1300
+ # Corresponds to the JSON property `executionId`
1301
+ # @return [String]
1302
+ attr_accessor :execution_id
1303
+
1304
+ # Line number from which new logs should be fetched.
1305
+ # Corresponds to the JSON property `nextLineNumber`
1306
+ # @return [Fixnum]
1307
+ attr_accessor :next_line_number
1308
+
1309
+ # The name of the pod where the command is executed.
1310
+ # Corresponds to the JSON property `pod`
1311
+ # @return [String]
1312
+ attr_accessor :pod
1313
+
1314
+ # The namespace of the pod where the command is executed.
1315
+ # Corresponds to the JSON property `podNamespace`
1316
+ # @return [String]
1317
+ attr_accessor :pod_namespace
1318
+
1319
+ def initialize(**args)
1320
+ update!(**args)
1321
+ end
1322
+
1323
+ # Update properties of this object
1324
+ def update!(**args)
1325
+ @execution_id = args[:execution_id] if args.key?(:execution_id)
1326
+ @next_line_number = args[:next_line_number] if args.key?(:next_line_number)
1327
+ @pod = args[:pod] if args.key?(:pod)
1328
+ @pod_namespace = args[:pod_namespace] if args.key?(:pod_namespace)
1329
+ end
1330
+ end
1331
+
1332
+ # Response to PollAirflowCommandRequest.
1333
+ class PollAirflowCommandResponse
1334
+ include Google::Apis::Core::Hashable
1335
+
1336
+ # Information about how a command ended.
1337
+ # Corresponds to the JSON property `exitInfo`
1338
+ # @return [Google::Apis::ComposerV1beta1::ExitInfo]
1339
+ attr_accessor :exit_info
1340
+
1341
+ # Output from the command execution. It may not contain the full output and the
1342
+ # caller may need to poll for more lines.
1343
+ # Corresponds to the JSON property `output`
1344
+ # @return [Array<Google::Apis::ComposerV1beta1::Line>]
1345
+ attr_accessor :output
1346
+
1347
+ # Whether the command execution has finished and there is no more output.
1348
+ # Corresponds to the JSON property `outputEnd`
1349
+ # @return [Boolean]
1350
+ attr_accessor :output_end
1351
+ alias_method :output_end?, :output_end
1352
+
1353
+ def initialize(**args)
1354
+ update!(**args)
1355
+ end
1356
+
1357
+ # Update properties of this object
1358
+ def update!(**args)
1359
+ @exit_info = args[:exit_info] if args.key?(:exit_info)
1360
+ @output = args[:output] if args.key?(:output)
1361
+ @output_end = args[:output_end] if args.key?(:output_end)
1362
+ end
1363
+ end
1364
+
1106
1365
  # Configuration options for the private GKE cluster in a Cloud Composer
1107
1366
  # environment.
1108
1367
  class PrivateClusterConfig
@@ -1529,6 +1788,71 @@ module Google
1529
1788
  end
1530
1789
  end
1531
1790
 
1791
+ # Stop Airflow Command request.
1792
+ class StopAirflowCommandRequest
1793
+ include Google::Apis::Core::Hashable
1794
+
1795
+ # The unique ID of the command execution.
1796
+ # Corresponds to the JSON property `executionId`
1797
+ # @return [String]
1798
+ attr_accessor :execution_id
1799
+
1800
+ # If true, the execution is terminated forcefully (SIGKILL). If false, the
1801
+ # execution is stopped gracefully, giving it time for cleanup.
1802
+ # Corresponds to the JSON property `force`
1803
+ # @return [Boolean]
1804
+ attr_accessor :force
1805
+ alias_method :force?, :force
1806
+
1807
+ # The name of the pod where the command is executed.
1808
+ # Corresponds to the JSON property `pod`
1809
+ # @return [String]
1810
+ attr_accessor :pod
1811
+
1812
+ # The namespace of the pod where the command is executed.
1813
+ # Corresponds to the JSON property `podNamespace`
1814
+ # @return [String]
1815
+ attr_accessor :pod_namespace
1816
+
1817
+ def initialize(**args)
1818
+ update!(**args)
1819
+ end
1820
+
1821
+ # Update properties of this object
1822
+ def update!(**args)
1823
+ @execution_id = args[:execution_id] if args.key?(:execution_id)
1824
+ @force = args[:force] if args.key?(:force)
1825
+ @pod = args[:pod] if args.key?(:pod)
1826
+ @pod_namespace = args[:pod_namespace] if args.key?(:pod_namespace)
1827
+ end
1828
+ end
1829
+
1830
+ # Response to StopAirflowCommandRequest.
1831
+ class StopAirflowCommandResponse
1832
+ include Google::Apis::Core::Hashable
1833
+
1834
+ # Whether the execution is still running.
1835
+ # Corresponds to the JSON property `isDone`
1836
+ # @return [Boolean]
1837
+ attr_accessor :is_done
1838
+ alias_method :is_done?, :is_done
1839
+
1840
+ # Output message from stopping execution request.
1841
+ # Corresponds to the JSON property `output`
1842
+ # @return [Array<String>]
1843
+ attr_accessor :output
1844
+
1845
+ def initialize(**args)
1846
+ update!(**args)
1847
+ end
1848
+
1849
+ # Update properties of this object
1850
+ def update!(**args)
1851
+ @is_done = args[:is_done] if args.key?(:is_done)
1852
+ @output = args[:output] if args.key?(:output)
1853
+ end
1854
+ end
1855
+
1532
1856
  # Configuration for resources used by Airflow triggerers.
1533
1857
  class TriggererResource
1534
1858
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComposerV1beta1
18
18
  # Version of the google-apis-composer_v1beta1 gem
19
- GEM_VERSION = "0.34.0"
19
+ GEM_VERSION = "0.35.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 = "20230510"
25
+ REVISION = "20230516"
26
26
  end
27
27
  end
28
28
  end
@@ -58,6 +58,18 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class DatabaseFailoverRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class DatabaseFailoverResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
61
73
  class Date
62
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
75
 
@@ -88,6 +100,30 @@ module Google
88
100
  include Google::Apis::Core::JsonObjectSupport
89
101
  end
90
102
 
103
+ class ExecuteAirflowCommandRequest
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ExecuteAirflowCommandResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ExitInfo
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class FetchDatabasePropertiesResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
91
127
  class IpAllocationPolicy
92
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
129
 
@@ -100,6 +136,12 @@ module Google
100
136
  include Google::Apis::Core::JsonObjectSupport
101
137
  end
102
138
 
139
+ class Line
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
103
145
  class ListEnvironmentsResponse
104
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
147
 
@@ -166,6 +208,18 @@ module Google
166
208
  include Google::Apis::Core::JsonObjectSupport
167
209
  end
168
210
 
211
+ class PollAirflowCommandRequest
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class PollAirflowCommandResponse
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
169
223
  class PrivateClusterConfig
170
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
225
 
@@ -226,6 +280,18 @@ module Google
226
280
  include Google::Apis::Core::JsonObjectSupport
227
281
  end
228
282
 
283
+ class StopAirflowCommandRequest
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class StopAirflowCommandResponse
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
229
295
  class TriggererResource
230
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
297
 
@@ -310,6 +376,18 @@ module Google
310
376
  end
311
377
  end
312
378
 
379
+ class DatabaseFailoverRequest
380
+ # @private
381
+ class Representation < Google::Apis::Core::JsonRepresentation
382
+ end
383
+ end
384
+
385
+ class DatabaseFailoverResponse
386
+ # @private
387
+ class Representation < Google::Apis::Core::JsonRepresentation
388
+ end
389
+ end
390
+
313
391
  class Date
314
392
  # @private
315
393
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -369,6 +447,7 @@ module Google
369
447
 
370
448
  property :recovery_config, as: 'recoveryConfig', class: Google::Apis::ComposerV1beta1::RecoveryConfig, decorator: Google::Apis::ComposerV1beta1::RecoveryConfig::Representation
371
449
 
450
+ property :resilience_mode, as: 'resilienceMode'
372
451
  property :software_config, as: 'softwareConfig', class: Google::Apis::ComposerV1beta1::SoftwareConfig, decorator: Google::Apis::ComposerV1beta1::SoftwareConfig::Representation
373
452
 
374
453
  property :web_server_config, as: 'webServerConfig', class: Google::Apis::ComposerV1beta1::WebServerConfig, decorator: Google::Apis::ComposerV1beta1::WebServerConfig::Representation
@@ -380,6 +459,42 @@ module Google
380
459
  end
381
460
  end
382
461
 
462
+ class ExecuteAirflowCommandRequest
463
+ # @private
464
+ class Representation < Google::Apis::Core::JsonRepresentation
465
+ property :command, as: 'command'
466
+ collection :parameters, as: 'parameters'
467
+ property :subcommand, as: 'subcommand'
468
+ end
469
+ end
470
+
471
+ class ExecuteAirflowCommandResponse
472
+ # @private
473
+ class Representation < Google::Apis::Core::JsonRepresentation
474
+ property :error, as: 'error'
475
+ property :execution_id, as: 'executionId'
476
+ property :pod, as: 'pod'
477
+ property :pod_namespace, as: 'podNamespace'
478
+ end
479
+ end
480
+
481
+ class ExitInfo
482
+ # @private
483
+ class Representation < Google::Apis::Core::JsonRepresentation
484
+ property :error, as: 'error'
485
+ property :exit_code, as: 'exitCode'
486
+ end
487
+ end
488
+
489
+ class FetchDatabasePropertiesResponse
490
+ # @private
491
+ class Representation < Google::Apis::Core::JsonRepresentation
492
+ property :is_failover_replica_available, as: 'isFailoverReplicaAvailable'
493
+ property :primary_gce_zone, as: 'primaryGceZone'
494
+ property :secondary_gce_zone, as: 'secondaryGceZone'
495
+ end
496
+ end
497
+
383
498
  class IpAllocationPolicy
384
499
  # @private
385
500
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -404,6 +519,14 @@ module Google
404
519
  end
405
520
  end
406
521
 
522
+ class Line
523
+ # @private
524
+ class Representation < Google::Apis::Core::JsonRepresentation
525
+ property :content, as: 'content'
526
+ property :line_number, as: 'lineNumber'
527
+ end
528
+ end
529
+
407
530
  class ListEnvironmentsResponse
408
531
  # @private
409
532
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -515,6 +638,27 @@ module Google
515
638
  end
516
639
  end
517
640
 
641
+ class PollAirflowCommandRequest
642
+ # @private
643
+ class Representation < Google::Apis::Core::JsonRepresentation
644
+ property :execution_id, as: 'executionId'
645
+ property :next_line_number, as: 'nextLineNumber'
646
+ property :pod, as: 'pod'
647
+ property :pod_namespace, as: 'podNamespace'
648
+ end
649
+ end
650
+
651
+ class PollAirflowCommandResponse
652
+ # @private
653
+ class Representation < Google::Apis::Core::JsonRepresentation
654
+ property :exit_info, as: 'exitInfo', class: Google::Apis::ComposerV1beta1::ExitInfo, decorator: Google::Apis::ComposerV1beta1::ExitInfo::Representation
655
+
656
+ collection :output, as: 'output', class: Google::Apis::ComposerV1beta1::Line, decorator: Google::Apis::ComposerV1beta1::Line::Representation
657
+
658
+ property :output_end, as: 'outputEnd'
659
+ end
660
+ end
661
+
518
662
  class PrivateClusterConfig
519
663
  # @private
520
664
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -613,6 +757,24 @@ module Google
613
757
  end
614
758
  end
615
759
 
760
+ class StopAirflowCommandRequest
761
+ # @private
762
+ class Representation < Google::Apis::Core::JsonRepresentation
763
+ property :execution_id, as: 'executionId'
764
+ property :force, as: 'force'
765
+ property :pod, as: 'pod'
766
+ property :pod_namespace, as: 'podNamespace'
767
+ end
768
+ end
769
+
770
+ class StopAirflowCommandResponse
771
+ # @private
772
+ class Representation < Google::Apis::Core::JsonRepresentation
773
+ property :is_done, as: 'isDone'
774
+ collection :output, as: 'output'
775
+ end
776
+ end
777
+
616
778
  class TriggererResource
617
779
  # @private
618
780
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -117,6 +117,40 @@ module Google
117
117
  execute_or_queue_command(command, &block)
118
118
  end
119
119
 
120
+ # Triggers database failover (only for highly resilient environments).
121
+ # @param [String] environment
122
+ # Target environment: "projects/`projectId`/locations/`locationId`/environments/`
123
+ # environmentId`"
124
+ # @param [Google::Apis::ComposerV1beta1::DatabaseFailoverRequest] database_failover_request_object
125
+ # @param [String] fields
126
+ # Selector specifying which fields to include in a partial response.
127
+ # @param [String] quota_user
128
+ # Available to use for quota purposes for server-side applications. Can be any
129
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
130
+ # @param [Google::Apis::RequestOptions] options
131
+ # Request-specific options
132
+ #
133
+ # @yield [result, err] Result & error if block supplied
134
+ # @yieldparam result [Google::Apis::ComposerV1beta1::Operation] parsed result object
135
+ # @yieldparam err [StandardError] error object if request failed
136
+ #
137
+ # @return [Google::Apis::ComposerV1beta1::Operation]
138
+ #
139
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
140
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
141
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
142
+ def database_environment_failover(environment, database_failover_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
143
+ command = make_simple_command(:post, 'v1beta1/{+environment}:databaseFailover', options)
144
+ command.request_representation = Google::Apis::ComposerV1beta1::DatabaseFailoverRequest::Representation
145
+ command.request_object = database_failover_request_object
146
+ command.response_representation = Google::Apis::ComposerV1beta1::Operation::Representation
147
+ command.response_class = Google::Apis::ComposerV1beta1::Operation
148
+ command.params['environment'] = environment unless environment.nil?
149
+ command.query['fields'] = fields unless fields.nil?
150
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
151
+ execute_or_queue_command(command, &block)
152
+ end
153
+
120
154
  # Delete an environment.
121
155
  # @param [String] name
122
156
  # The environment to delete, in the form: "projects/`projectId`/locations/`
@@ -148,6 +182,71 @@ module Google
148
182
  execute_or_queue_command(command, &block)
149
183
  end
150
184
 
185
+ # Executes Airflow CLI command.
186
+ # @param [String] environment
187
+ # The resource name of the environment in the form: "projects/`projectId`/
188
+ # locations/`locationId`/environments/`environmentId`".
189
+ # @param [Google::Apis::ComposerV1beta1::ExecuteAirflowCommandRequest] execute_airflow_command_request_object
190
+ # @param [String] fields
191
+ # Selector specifying which fields to include in a partial response.
192
+ # @param [String] quota_user
193
+ # Available to use for quota purposes for server-side applications. Can be any
194
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
195
+ # @param [Google::Apis::RequestOptions] options
196
+ # Request-specific options
197
+ #
198
+ # @yield [result, err] Result & error if block supplied
199
+ # @yieldparam result [Google::Apis::ComposerV1beta1::ExecuteAirflowCommandResponse] parsed result object
200
+ # @yieldparam err [StandardError] error object if request failed
201
+ #
202
+ # @return [Google::Apis::ComposerV1beta1::ExecuteAirflowCommandResponse]
203
+ #
204
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
205
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
206
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
207
+ def execute_environment_airflow_command(environment, execute_airflow_command_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
208
+ command = make_simple_command(:post, 'v1beta1/{+environment}:executeAirflowCommand', options)
209
+ command.request_representation = Google::Apis::ComposerV1beta1::ExecuteAirflowCommandRequest::Representation
210
+ command.request_object = execute_airflow_command_request_object
211
+ command.response_representation = Google::Apis::ComposerV1beta1::ExecuteAirflowCommandResponse::Representation
212
+ command.response_class = Google::Apis::ComposerV1beta1::ExecuteAirflowCommandResponse
213
+ command.params['environment'] = environment unless environment.nil?
214
+ command.query['fields'] = fields unless fields.nil?
215
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
216
+ execute_or_queue_command(command, &block)
217
+ end
218
+
219
+ # Fetches database properties.
220
+ # @param [String] environment
221
+ # Required. The resource name of the environment, in the form: "projects/`
222
+ # projectId`/locations/`locationId`/environments/`environmentId`"
223
+ # @param [String] fields
224
+ # Selector specifying which fields to include in a partial response.
225
+ # @param [String] quota_user
226
+ # Available to use for quota purposes for server-side applications. Can be any
227
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
228
+ # @param [Google::Apis::RequestOptions] options
229
+ # Request-specific options
230
+ #
231
+ # @yield [result, err] Result & error if block supplied
232
+ # @yieldparam result [Google::Apis::ComposerV1beta1::FetchDatabasePropertiesResponse] parsed result object
233
+ # @yieldparam err [StandardError] error object if request failed
234
+ #
235
+ # @return [Google::Apis::ComposerV1beta1::FetchDatabasePropertiesResponse]
236
+ #
237
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
238
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
239
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
240
+ def fetch_project_location_environment_database_properties(environment, fields: nil, quota_user: nil, options: nil, &block)
241
+ command = make_simple_command(:get, 'v1beta1/{+environment}:fetchDatabaseProperties', options)
242
+ command.response_representation = Google::Apis::ComposerV1beta1::FetchDatabasePropertiesResponse::Representation
243
+ command.response_class = Google::Apis::ComposerV1beta1::FetchDatabasePropertiesResponse
244
+ command.params['environment'] = environment unless environment.nil?
245
+ command.query['fields'] = fields unless fields.nil?
246
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
247
+ execute_or_queue_command(command, &block)
248
+ end
249
+
151
250
  # Get an existing environment.
152
251
  # @param [String] name
153
252
  # The resource name of the environment to get, in the form: "projects/`projectId`
@@ -372,6 +471,40 @@ module Google
372
471
  execute_or_queue_command(command, &block)
373
472
  end
374
473
 
474
+ # Polls Airflow CLI command execution and fetches logs.
475
+ # @param [String] environment
476
+ # The resource name of the environment in the form: "projects/`projectId`/
477
+ # locations/`locationId`/environments/`environmentId`"
478
+ # @param [Google::Apis::ComposerV1beta1::PollAirflowCommandRequest] poll_airflow_command_request_object
479
+ # @param [String] fields
480
+ # Selector specifying which fields to include in a partial response.
481
+ # @param [String] quota_user
482
+ # Available to use for quota purposes for server-side applications. Can be any
483
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
484
+ # @param [Google::Apis::RequestOptions] options
485
+ # Request-specific options
486
+ #
487
+ # @yield [result, err] Result & error if block supplied
488
+ # @yieldparam result [Google::Apis::ComposerV1beta1::PollAirflowCommandResponse] parsed result object
489
+ # @yieldparam err [StandardError] error object if request failed
490
+ #
491
+ # @return [Google::Apis::ComposerV1beta1::PollAirflowCommandResponse]
492
+ #
493
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
494
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
495
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
496
+ def poll_environment_airflow_command(environment, poll_airflow_command_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
497
+ command = make_simple_command(:post, 'v1beta1/{+environment}:pollAirflowCommand', options)
498
+ command.request_representation = Google::Apis::ComposerV1beta1::PollAirflowCommandRequest::Representation
499
+ command.request_object = poll_airflow_command_request_object
500
+ command.response_representation = Google::Apis::ComposerV1beta1::PollAirflowCommandResponse::Representation
501
+ command.response_class = Google::Apis::ComposerV1beta1::PollAirflowCommandResponse
502
+ command.params['environment'] = environment unless environment.nil?
503
+ command.query['fields'] = fields unless fields.nil?
504
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
505
+ execute_or_queue_command(command, &block)
506
+ end
507
+
375
508
  # Restart Airflow web server.
376
509
  # @param [String] name
377
510
  # The resource name of the environment to restart the web server for, in the
@@ -443,6 +576,40 @@ module Google
443
576
  execute_or_queue_command(command, &block)
444
577
  end
445
578
 
579
+ # Stops Airflow CLI command execution.
580
+ # @param [String] environment
581
+ # The resource name of the environment in the form: "projects/`projectId`/
582
+ # locations/`locationId`/environments/`environmentId`".
583
+ # @param [Google::Apis::ComposerV1beta1::StopAirflowCommandRequest] stop_airflow_command_request_object
584
+ # @param [String] fields
585
+ # Selector specifying which fields to include in a partial response.
586
+ # @param [String] quota_user
587
+ # Available to use for quota purposes for server-side applications. Can be any
588
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
589
+ # @param [Google::Apis::RequestOptions] options
590
+ # Request-specific options
591
+ #
592
+ # @yield [result, err] Result & error if block supplied
593
+ # @yieldparam result [Google::Apis::ComposerV1beta1::StopAirflowCommandResponse] parsed result object
594
+ # @yieldparam err [StandardError] error object if request failed
595
+ #
596
+ # @return [Google::Apis::ComposerV1beta1::StopAirflowCommandResponse]
597
+ #
598
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
599
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
600
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
601
+ def stop_environment_airflow_command(environment, stop_airflow_command_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
602
+ command = make_simple_command(:post, 'v1beta1/{+environment}:stopAirflowCommand', options)
603
+ command.request_representation = Google::Apis::ComposerV1beta1::StopAirflowCommandRequest::Representation
604
+ command.request_object = stop_airflow_command_request_object
605
+ command.response_representation = Google::Apis::ComposerV1beta1::StopAirflowCommandResponse::Representation
606
+ command.response_class = Google::Apis::ComposerV1beta1::StopAirflowCommandResponse
607
+ command.params['environment'] = environment unless environment.nil?
608
+ command.query['fields'] = fields unless fields.nil?
609
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
610
+ execute_or_queue_command(command, &block)
611
+ end
612
+
446
613
  # List ImageVersions for provided location.
447
614
  # @param [String] parent
448
615
  # 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_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.0
4
+ version: 0.35.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-05-14 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_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1beta1/v0.34.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1beta1/v0.35.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-composer_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []