google-apis-composer_v1beta1 0.34.0 → 0.36.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea275e3933a267c1e52481b823fe3a371eefb3e51168b4fa6727c7c3cc495175
4
- data.tar.gz: 83f3b65bd6a88f8fc556be0f7c86e68151323e6837e710ce184affd6ca94cf49
3
+ metadata.gz: 9cdfaf5d2ffc6decf3236e8b9e135f051fe57000b65db7143494c517e88dfabf
4
+ data.tar.gz: d6a6aa46561b57416fc32b443ea407256677b533d35c966a1ba364a3e7a895fb
5
5
  SHA512:
6
- metadata.gz: 8a03b847c8739b3932dcd27f6b14548291c85ab79c0329f7617d8e6aa12249639de761fd5cc0d1a860d746d8acf8e85dfa4da47117c7f05b4b4a82e7c2650aa1
7
- data.tar.gz: e6868e5670829c8986d16677f19167821c946bae54385d51df090f45e125f6c963c7af12f0b1cf6cd4132fd98054990eb0fa111ae0643b11b43bb4fedf5b568e
6
+ metadata.gz: cb22f9aa58cd2d09c1330bb849b5d975f19797c64f5c827da14cc21a1ce0c578bf97847cff9ec6c61ffd926cda0efd8ba251807bc980df90dc765a7a16ea853d
7
+ data.tar.gz: b0030cdcb845dba5a118fdc87b8469c04a995bf48da7e1e1488ce68b7ed92d5f7f46fe2509f9afafbefdeced2d188cec8eb5c43bef842026e672b566065b864f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-composer_v1beta1
2
2
 
3
+ ### v0.36.0 (2023-08-13)
4
+
5
+ * Regenerated from discovery document revision 20230806
6
+
7
+ ### v0.35.0 (2023-05-28)
8
+
9
+ * Regenerated from discovery document revision 20230516
10
+
3
11
  ### v0.34.0 (2023-05-14)
4
12
 
5
13
  * 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
@@ -316,6 +342,11 @@ module Google
316
342
  # @return [String]
317
343
  attr_accessor :state
318
344
 
345
+ # The configuration for data storage in the environment.
346
+ # Corresponds to the JSON property `storageConfig`
347
+ # @return [Google::Apis::ComposerV1beta1::StorageConfig]
348
+ attr_accessor :storage_config
349
+
319
350
  # Output only. The time at which this environment was last modified.
320
351
  # Corresponds to the JSON property `updateTime`
321
352
  # @return [String]
@@ -338,6 +369,7 @@ module Google
338
369
  @labels = args[:labels] if args.key?(:labels)
339
370
  @name = args[:name] if args.key?(:name)
340
371
  @state = args[:state] if args.key?(:state)
372
+ @storage_config = args[:storage_config] if args.key?(:storage_config)
341
373
  @update_time = args[:update_time] if args.key?(:update_time)
342
374
  @uuid = args[:uuid] if args.key?(:uuid)
343
375
  end
@@ -437,6 +469,13 @@ module Google
437
469
  # @return [Google::Apis::ComposerV1beta1::RecoveryConfig]
438
470
  attr_accessor :recovery_config
439
471
 
472
+ # Optional. Resilience mode of the Cloud Composer Environment. This field is
473
+ # supported for Cloud Composer environments in versions composer-2.2.0-airflow-*.
474
+ # *.* and newer.
475
+ # Corresponds to the JSON property `resilienceMode`
476
+ # @return [String]
477
+ attr_accessor :resilience_mode
478
+
440
479
  # Specifies the selection and configuration of software inside the environment.
441
480
  # Corresponds to the JSON property `softwareConfig`
442
481
  # @return [Google::Apis::ComposerV1beta1::SoftwareConfig]
@@ -480,6 +519,7 @@ module Google
480
519
  @node_count = args[:node_count] if args.key?(:node_count)
481
520
  @private_environment_config = args[:private_environment_config] if args.key?(:private_environment_config)
482
521
  @recovery_config = args[:recovery_config] if args.key?(:recovery_config)
522
+ @resilience_mode = args[:resilience_mode] if args.key?(:resilience_mode)
483
523
  @software_config = args[:software_config] if args.key?(:software_config)
484
524
  @web_server_config = args[:web_server_config] if args.key?(:web_server_config)
485
525
  @web_server_network_access_control = args[:web_server_network_access_control] if args.key?(:web_server_network_access_control)
@@ -487,6 +527,136 @@ module Google
487
527
  end
488
528
  end
489
529
 
530
+ # Execute Airflow Command request.
531
+ class ExecuteAirflowCommandRequest
532
+ include Google::Apis::Core::Hashable
533
+
534
+ # Airflow command.
535
+ # Corresponds to the JSON property `command`
536
+ # @return [String]
537
+ attr_accessor :command
538
+
539
+ # Parameters for the Airflow command/subcommand as an array of arguments. It may
540
+ # contain positional arguments like `["my-dag-id"]`, key-value parameters like `[
541
+ # "--foo=bar"]` or `["--foo","bar"]`, or other flags like `["-f"]`.
542
+ # Corresponds to the JSON property `parameters`
543
+ # @return [Array<String>]
544
+ attr_accessor :parameters
545
+
546
+ # Airflow subcommand.
547
+ # Corresponds to the JSON property `subcommand`
548
+ # @return [String]
549
+ attr_accessor :subcommand
550
+
551
+ def initialize(**args)
552
+ update!(**args)
553
+ end
554
+
555
+ # Update properties of this object
556
+ def update!(**args)
557
+ @command = args[:command] if args.key?(:command)
558
+ @parameters = args[:parameters] if args.key?(:parameters)
559
+ @subcommand = args[:subcommand] if args.key?(:subcommand)
560
+ end
561
+ end
562
+
563
+ # Response to ExecuteAirflowCommandRequest.
564
+ class ExecuteAirflowCommandResponse
565
+ include Google::Apis::Core::Hashable
566
+
567
+ # Error message. Empty if there was no error.
568
+ # Corresponds to the JSON property `error`
569
+ # @return [String]
570
+ attr_accessor :error
571
+
572
+ # The unique ID of the command execution for polling.
573
+ # Corresponds to the JSON property `executionId`
574
+ # @return [String]
575
+ attr_accessor :execution_id
576
+
577
+ # The name of the pod where the command is executed.
578
+ # Corresponds to the JSON property `pod`
579
+ # @return [String]
580
+ attr_accessor :pod
581
+
582
+ # The namespace of the pod where the command is executed.
583
+ # Corresponds to the JSON property `podNamespace`
584
+ # @return [String]
585
+ attr_accessor :pod_namespace
586
+
587
+ def initialize(**args)
588
+ update!(**args)
589
+ end
590
+
591
+ # Update properties of this object
592
+ def update!(**args)
593
+ @error = args[:error] if args.key?(:error)
594
+ @execution_id = args[:execution_id] if args.key?(:execution_id)
595
+ @pod = args[:pod] if args.key?(:pod)
596
+ @pod_namespace = args[:pod_namespace] if args.key?(:pod_namespace)
597
+ end
598
+ end
599
+
600
+ # Information about how a command ended.
601
+ class ExitInfo
602
+ include Google::Apis::Core::Hashable
603
+
604
+ # Error message. Empty if there was no error.
605
+ # Corresponds to the JSON property `error`
606
+ # @return [String]
607
+ attr_accessor :error
608
+
609
+ # The exit code from the command execution.
610
+ # Corresponds to the JSON property `exitCode`
611
+ # @return [Fixnum]
612
+ attr_accessor :exit_code
613
+
614
+ def initialize(**args)
615
+ update!(**args)
616
+ end
617
+
618
+ # Update properties of this object
619
+ def update!(**args)
620
+ @error = args[:error] if args.key?(:error)
621
+ @exit_code = args[:exit_code] if args.key?(:exit_code)
622
+ end
623
+ end
624
+
625
+ # Response for FetchDatabasePropertiesRequest.
626
+ class FetchDatabasePropertiesResponse
627
+ include Google::Apis::Core::Hashable
628
+
629
+ # The availability status of the failover replica. A false status indicates that
630
+ # the failover replica is out of sync. The primary instance can only fail over
631
+ # to the failover replica when the status is true.
632
+ # Corresponds to the JSON property `isFailoverReplicaAvailable`
633
+ # @return [Boolean]
634
+ attr_accessor :is_failover_replica_available
635
+ alias_method :is_failover_replica_available?, :is_failover_replica_available
636
+
637
+ # The Compute Engine zone that the instance is currently serving from.
638
+ # Corresponds to the JSON property `primaryGceZone`
639
+ # @return [String]
640
+ attr_accessor :primary_gce_zone
641
+
642
+ # The Compute Engine zone that the failover instance is currently serving from
643
+ # for a regional Cloud SQL instance.
644
+ # Corresponds to the JSON property `secondaryGceZone`
645
+ # @return [String]
646
+ attr_accessor :secondary_gce_zone
647
+
648
+ def initialize(**args)
649
+ update!(**args)
650
+ end
651
+
652
+ # Update properties of this object
653
+ def update!(**args)
654
+ @is_failover_replica_available = args[:is_failover_replica_available] if args.key?(:is_failover_replica_available)
655
+ @primary_gce_zone = args[:primary_gce_zone] if args.key?(:primary_gce_zone)
656
+ @secondary_gce_zone = args[:secondary_gce_zone] if args.key?(:secondary_gce_zone)
657
+ end
658
+ end
659
+
490
660
  # Configuration for controlling how IPs are allocated in the GKE cluster.
491
661
  class IpAllocationPolicy
492
662
  include Google::Apis::Core::Hashable
@@ -620,6 +790,31 @@ module Google
620
790
  end
621
791
  end
622
792
 
793
+ # Contains information about a single line from logs.
794
+ class Line
795
+ include Google::Apis::Core::Hashable
796
+
797
+ # Text content of the log line.
798
+ # Corresponds to the JSON property `content`
799
+ # @return [String]
800
+ attr_accessor :content
801
+
802
+ # Number of the line.
803
+ # Corresponds to the JSON property `lineNumber`
804
+ # @return [Fixnum]
805
+ attr_accessor :line_number
806
+
807
+ def initialize(**args)
808
+ update!(**args)
809
+ end
810
+
811
+ # Update properties of this object
812
+ def update!(**args)
813
+ @content = args[:content] if args.key?(:content)
814
+ @line_number = args[:line_number] if args.key?(:line_number)
815
+ end
816
+ end
817
+
623
818
  # The environments in a project and location.
624
819
  class ListEnvironmentsResponse
625
820
  include Google::Apis::Core::Hashable
@@ -1027,13 +1222,13 @@ module Google
1027
1222
  # @return [String]
1028
1223
  attr_accessor :name
1029
1224
 
1030
- # The normal response of the operation in case of success. If the original
1031
- # method returns no data on success, such as `Delete`, the response is `google.
1032
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1033
- # the response should be the resource. For other methods, the response should
1034
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
1035
- # example, if the original method name is `TakeSnapshot()`, the inferred
1036
- # response type is `TakeSnapshotResponse`.
1225
+ # The normal, successful response of the operation. If the original method
1226
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
1227
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
1228
+ # response should be the resource. For other methods, the response should have
1229
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
1230
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
1231
+ # `TakeSnapshotResponse`.
1037
1232
  # Corresponds to the JSON property `response`
1038
1233
  # @return [Hash<String,Object>]
1039
1234
  attr_accessor :response
@@ -1103,6 +1298,76 @@ module Google
1103
1298
  end
1104
1299
  end
1105
1300
 
1301
+ # Poll Airflow Command request.
1302
+ class PollAirflowCommandRequest
1303
+ include Google::Apis::Core::Hashable
1304
+
1305
+ # The unique ID of the command execution.
1306
+ # Corresponds to the JSON property `executionId`
1307
+ # @return [String]
1308
+ attr_accessor :execution_id
1309
+
1310
+ # Line number from which new logs should be fetched.
1311
+ # Corresponds to the JSON property `nextLineNumber`
1312
+ # @return [Fixnum]
1313
+ attr_accessor :next_line_number
1314
+
1315
+ # The name of the pod where the command is executed.
1316
+ # Corresponds to the JSON property `pod`
1317
+ # @return [String]
1318
+ attr_accessor :pod
1319
+
1320
+ # The namespace of the pod where the command is executed.
1321
+ # Corresponds to the JSON property `podNamespace`
1322
+ # @return [String]
1323
+ attr_accessor :pod_namespace
1324
+
1325
+ def initialize(**args)
1326
+ update!(**args)
1327
+ end
1328
+
1329
+ # Update properties of this object
1330
+ def update!(**args)
1331
+ @execution_id = args[:execution_id] if args.key?(:execution_id)
1332
+ @next_line_number = args[:next_line_number] if args.key?(:next_line_number)
1333
+ @pod = args[:pod] if args.key?(:pod)
1334
+ @pod_namespace = args[:pod_namespace] if args.key?(:pod_namespace)
1335
+ end
1336
+ end
1337
+
1338
+ # Response to PollAirflowCommandRequest.
1339
+ class PollAirflowCommandResponse
1340
+ include Google::Apis::Core::Hashable
1341
+
1342
+ # Information about how a command ended.
1343
+ # Corresponds to the JSON property `exitInfo`
1344
+ # @return [Google::Apis::ComposerV1beta1::ExitInfo]
1345
+ attr_accessor :exit_info
1346
+
1347
+ # Output from the command execution. It may not contain the full output and the
1348
+ # caller may need to poll for more lines.
1349
+ # Corresponds to the JSON property `output`
1350
+ # @return [Array<Google::Apis::ComposerV1beta1::Line>]
1351
+ attr_accessor :output
1352
+
1353
+ # Whether the command execution has finished and there is no more output.
1354
+ # Corresponds to the JSON property `outputEnd`
1355
+ # @return [Boolean]
1356
+ attr_accessor :output_end
1357
+ alias_method :output_end?, :output_end
1358
+
1359
+ def initialize(**args)
1360
+ update!(**args)
1361
+ end
1362
+
1363
+ # Update properties of this object
1364
+ def update!(**args)
1365
+ @exit_info = args[:exit_info] if args.key?(:exit_info)
1366
+ @output = args[:output] if args.key?(:output)
1367
+ @output_end = args[:output_end] if args.key?(:output_end)
1368
+ end
1369
+ end
1370
+
1106
1371
  # Configuration options for the private GKE cluster in a Cloud Composer
1107
1372
  # environment.
1108
1373
  class PrivateClusterConfig
@@ -1529,6 +1794,84 @@ module Google
1529
1794
  end
1530
1795
  end
1531
1796
 
1797
+ # Stop Airflow Command request.
1798
+ class StopAirflowCommandRequest
1799
+ include Google::Apis::Core::Hashable
1800
+
1801
+ # The unique ID of the command execution.
1802
+ # Corresponds to the JSON property `executionId`
1803
+ # @return [String]
1804
+ attr_accessor :execution_id
1805
+
1806
+ # If true, the execution is terminated forcefully (SIGKILL). If false, the
1807
+ # execution is stopped gracefully, giving it time for cleanup.
1808
+ # Corresponds to the JSON property `force`
1809
+ # @return [Boolean]
1810
+ attr_accessor :force
1811
+ alias_method :force?, :force
1812
+
1813
+ # The name of the pod where the command is executed.
1814
+ # Corresponds to the JSON property `pod`
1815
+ # @return [String]
1816
+ attr_accessor :pod
1817
+
1818
+ # The namespace of the pod where the command is executed.
1819
+ # Corresponds to the JSON property `podNamespace`
1820
+ # @return [String]
1821
+ attr_accessor :pod_namespace
1822
+
1823
+ def initialize(**args)
1824
+ update!(**args)
1825
+ end
1826
+
1827
+ # Update properties of this object
1828
+ def update!(**args)
1829
+ @execution_id = args[:execution_id] if args.key?(:execution_id)
1830
+ @force = args[:force] if args.key?(:force)
1831
+ @pod = args[:pod] if args.key?(:pod)
1832
+ @pod_namespace = args[:pod_namespace] if args.key?(:pod_namespace)
1833
+ end
1834
+ end
1835
+
1836
+ # Response to StopAirflowCommandRequest.
1837
+ class StopAirflowCommandResponse
1838
+ include Google::Apis::Core::Hashable
1839
+
1840
+ # Whether the execution is still running.
1841
+ # Corresponds to the JSON property `isDone`
1842
+ # @return [Boolean]
1843
+ attr_accessor :is_done
1844
+ alias_method :is_done?, :is_done
1845
+
1846
+ # Output message from stopping execution request.
1847
+ # Corresponds to the JSON property `output`
1848
+ # @return [Array<String>]
1849
+ attr_accessor :output
1850
+
1851
+ def initialize(**args)
1852
+ update!(**args)
1853
+ end
1854
+
1855
+ # Update properties of this object
1856
+ def update!(**args)
1857
+ @is_done = args[:is_done] if args.key?(:is_done)
1858
+ @output = args[:output] if args.key?(:output)
1859
+ end
1860
+ end
1861
+
1862
+ # The configuration for data storage in the environment.
1863
+ class StorageConfig
1864
+ include Google::Apis::Core::Hashable
1865
+
1866
+ def initialize(**args)
1867
+ update!(**args)
1868
+ end
1869
+
1870
+ # Update properties of this object
1871
+ def update!(**args)
1872
+ end
1873
+ end
1874
+
1532
1875
  # Configuration for resources used by Airflow triggerers.
1533
1876
  class TriggererResource
1534
1877
  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.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 = "20230510"
25
+ REVISION = "20230806"
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,24 @@ 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
+
295
+ class StorageConfig
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
229
301
  class TriggererResource
230
302
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
303
 
@@ -310,6 +382,18 @@ module Google
310
382
  end
311
383
  end
312
384
 
385
+ class DatabaseFailoverRequest
386
+ # @private
387
+ class Representation < Google::Apis::Core::JsonRepresentation
388
+ end
389
+ end
390
+
391
+ class DatabaseFailoverResponse
392
+ # @private
393
+ class Representation < Google::Apis::Core::JsonRepresentation
394
+ end
395
+ end
396
+
313
397
  class Date
314
398
  # @private
315
399
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -341,6 +425,8 @@ module Google
341
425
  hash :labels, as: 'labels'
342
426
  property :name, as: 'name'
343
427
  property :state, as: 'state'
428
+ property :storage_config, as: 'storageConfig', class: Google::Apis::ComposerV1beta1::StorageConfig, decorator: Google::Apis::ComposerV1beta1::StorageConfig::Representation
429
+
344
430
  property :update_time, as: 'updateTime'
345
431
  property :uuid, as: 'uuid'
346
432
  end
@@ -369,6 +455,7 @@ module Google
369
455
 
370
456
  property :recovery_config, as: 'recoveryConfig', class: Google::Apis::ComposerV1beta1::RecoveryConfig, decorator: Google::Apis::ComposerV1beta1::RecoveryConfig::Representation
371
457
 
458
+ property :resilience_mode, as: 'resilienceMode'
372
459
  property :software_config, as: 'softwareConfig', class: Google::Apis::ComposerV1beta1::SoftwareConfig, decorator: Google::Apis::ComposerV1beta1::SoftwareConfig::Representation
373
460
 
374
461
  property :web_server_config, as: 'webServerConfig', class: Google::Apis::ComposerV1beta1::WebServerConfig, decorator: Google::Apis::ComposerV1beta1::WebServerConfig::Representation
@@ -380,6 +467,42 @@ module Google
380
467
  end
381
468
  end
382
469
 
470
+ class ExecuteAirflowCommandRequest
471
+ # @private
472
+ class Representation < Google::Apis::Core::JsonRepresentation
473
+ property :command, as: 'command'
474
+ collection :parameters, as: 'parameters'
475
+ property :subcommand, as: 'subcommand'
476
+ end
477
+ end
478
+
479
+ class ExecuteAirflowCommandResponse
480
+ # @private
481
+ class Representation < Google::Apis::Core::JsonRepresentation
482
+ property :error, as: 'error'
483
+ property :execution_id, as: 'executionId'
484
+ property :pod, as: 'pod'
485
+ property :pod_namespace, as: 'podNamespace'
486
+ end
487
+ end
488
+
489
+ class ExitInfo
490
+ # @private
491
+ class Representation < Google::Apis::Core::JsonRepresentation
492
+ property :error, as: 'error'
493
+ property :exit_code, as: 'exitCode'
494
+ end
495
+ end
496
+
497
+ class FetchDatabasePropertiesResponse
498
+ # @private
499
+ class Representation < Google::Apis::Core::JsonRepresentation
500
+ property :is_failover_replica_available, as: 'isFailoverReplicaAvailable'
501
+ property :primary_gce_zone, as: 'primaryGceZone'
502
+ property :secondary_gce_zone, as: 'secondaryGceZone'
503
+ end
504
+ end
505
+
383
506
  class IpAllocationPolicy
384
507
  # @private
385
508
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -404,6 +527,14 @@ module Google
404
527
  end
405
528
  end
406
529
 
530
+ class Line
531
+ # @private
532
+ class Representation < Google::Apis::Core::JsonRepresentation
533
+ property :content, as: 'content'
534
+ property :line_number, as: 'lineNumber'
535
+ end
536
+ end
537
+
407
538
  class ListEnvironmentsResponse
408
539
  # @private
409
540
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -515,6 +646,27 @@ module Google
515
646
  end
516
647
  end
517
648
 
649
+ class PollAirflowCommandRequest
650
+ # @private
651
+ class Representation < Google::Apis::Core::JsonRepresentation
652
+ property :execution_id, as: 'executionId'
653
+ property :next_line_number, as: 'nextLineNumber'
654
+ property :pod, as: 'pod'
655
+ property :pod_namespace, as: 'podNamespace'
656
+ end
657
+ end
658
+
659
+ class PollAirflowCommandResponse
660
+ # @private
661
+ class Representation < Google::Apis::Core::JsonRepresentation
662
+ property :exit_info, as: 'exitInfo', class: Google::Apis::ComposerV1beta1::ExitInfo, decorator: Google::Apis::ComposerV1beta1::ExitInfo::Representation
663
+
664
+ collection :output, as: 'output', class: Google::Apis::ComposerV1beta1::Line, decorator: Google::Apis::ComposerV1beta1::Line::Representation
665
+
666
+ property :output_end, as: 'outputEnd'
667
+ end
668
+ end
669
+
518
670
  class PrivateClusterConfig
519
671
  # @private
520
672
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -613,6 +765,30 @@ module Google
613
765
  end
614
766
  end
615
767
 
768
+ class StopAirflowCommandRequest
769
+ # @private
770
+ class Representation < Google::Apis::Core::JsonRepresentation
771
+ property :execution_id, as: 'executionId'
772
+ property :force, as: 'force'
773
+ property :pod, as: 'pod'
774
+ property :pod_namespace, as: 'podNamespace'
775
+ end
776
+ end
777
+
778
+ class StopAirflowCommandResponse
779
+ # @private
780
+ class Representation < Google::Apis::Core::JsonRepresentation
781
+ property :is_done, as: 'isDone'
782
+ collection :output, as: 'output'
783
+ end
784
+ end
785
+
786
+ class StorageConfig
787
+ # @private
788
+ class Representation < Google::Apis::Core::JsonRepresentation
789
+ end
790
+ end
791
+
616
792
  class TriggererResource
617
793
  # @private
618
794
  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.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-05-14 00:00:00.000000000 Z
11
+ date: 2023-08-13 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.36.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: []