google-apis-composer_v1beta1 0.33.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: badf61b6d246109225188d7090a722129a91a08b759b9e575f46152b4f8d5aa0
|
4
|
+
data.tar.gz: 39f3347a9a016d85f65944b3ed842aabbfaa56c1c4c061887af475063c02a564
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46d3f14d9e6dcddd4846ea57a867539f70e59bf739f92dcdec96329b9dd5e3b8b62e58a93ec1be56beb8ad49a12e0e37e90b07c799373ad3d0c29a289e30136e
|
7
|
+
data.tar.gz: c056ff9b1334f3858a6cc84cd7a8793a4c88e2e92e947369be3dde818f868cecb21869ff096b589bccd2acc951aebabbd08cbbc2fbf95c52ad22618e5feb739d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
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
|
+
|
7
|
+
### v0.34.0 (2023-05-14)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230510
|
10
|
+
|
3
11
|
### v0.33.0 (2023-04-02)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230323
|
@@ -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,39 @@ 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
|
+
|
490
557
|
# Response to ExecuteAirflowCommandRequest.
|
491
558
|
class ExecuteAirflowCommandResponse
|
492
559
|
include Google::Apis::Core::Hashable
|
@@ -549,6 +616,41 @@ module Google
|
|
549
616
|
end
|
550
617
|
end
|
551
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
|
+
|
552
654
|
# Configuration for controlling how IPs are allocated in the GKE cluster.
|
553
655
|
class IpAllocationPolicy
|
554
656
|
include Google::Apis::Core::Hashable
|
@@ -1190,6 +1292,43 @@ module Google
|
|
1190
1292
|
end
|
1191
1293
|
end
|
1192
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
|
+
|
1193
1332
|
# Response to PollAirflowCommandRequest.
|
1194
1333
|
class PollAirflowCommandResponse
|
1195
1334
|
include Google::Apis::Core::Hashable
|
@@ -1649,6 +1788,71 @@ module Google
|
|
1649
1788
|
end
|
1650
1789
|
end
|
1651
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
|
+
|
1652
1856
|
# Configuration for resources used by Airflow triggerers.
|
1653
1857
|
class TriggererResource
|
1654
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.
|
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 = "
|
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,12 @@ 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
|
+
|
91
109
|
class ExecuteAirflowCommandResponse
|
92
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
111
|
|
@@ -100,6 +118,12 @@ module Google
|
|
100
118
|
include Google::Apis::Core::JsonObjectSupport
|
101
119
|
end
|
102
120
|
|
121
|
+
class FetchDatabasePropertiesResponse
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
103
127
|
class IpAllocationPolicy
|
104
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
129
|
|
@@ -184,6 +208,12 @@ module Google
|
|
184
208
|
include Google::Apis::Core::JsonObjectSupport
|
185
209
|
end
|
186
210
|
|
211
|
+
class PollAirflowCommandRequest
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
187
217
|
class PollAirflowCommandResponse
|
188
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
219
|
|
@@ -250,6 +280,18 @@ module Google
|
|
250
280
|
include Google::Apis::Core::JsonObjectSupport
|
251
281
|
end
|
252
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
|
+
|
253
295
|
class TriggererResource
|
254
296
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
297
|
|
@@ -334,6 +376,18 @@ module Google
|
|
334
376
|
end
|
335
377
|
end
|
336
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
|
+
|
337
391
|
class Date
|
338
392
|
# @private
|
339
393
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -393,6 +447,7 @@ module Google
|
|
393
447
|
|
394
448
|
property :recovery_config, as: 'recoveryConfig', class: Google::Apis::ComposerV1beta1::RecoveryConfig, decorator: Google::Apis::ComposerV1beta1::RecoveryConfig::Representation
|
395
449
|
|
450
|
+
property :resilience_mode, as: 'resilienceMode'
|
396
451
|
property :software_config, as: 'softwareConfig', class: Google::Apis::ComposerV1beta1::SoftwareConfig, decorator: Google::Apis::ComposerV1beta1::SoftwareConfig::Representation
|
397
452
|
|
398
453
|
property :web_server_config, as: 'webServerConfig', class: Google::Apis::ComposerV1beta1::WebServerConfig, decorator: Google::Apis::ComposerV1beta1::WebServerConfig::Representation
|
@@ -404,6 +459,15 @@ module Google
|
|
404
459
|
end
|
405
460
|
end
|
406
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
|
+
|
407
471
|
class ExecuteAirflowCommandResponse
|
408
472
|
# @private
|
409
473
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -422,6 +486,15 @@ module Google
|
|
422
486
|
end
|
423
487
|
end
|
424
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
|
+
|
425
498
|
class IpAllocationPolicy
|
426
499
|
# @private
|
427
500
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -565,6 +638,16 @@ module Google
|
|
565
638
|
end
|
566
639
|
end
|
567
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
|
+
|
568
651
|
class PollAirflowCommandResponse
|
569
652
|
# @private
|
570
653
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -674,6 +757,24 @@ module Google
|
|
674
757
|
end
|
675
758
|
end
|
676
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
|
+
|
677
778
|
class TriggererResource
|
678
779
|
# @private
|
679
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.
|
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-
|
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.
|
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: []
|