google-apis-composer_v1 0.30.0 → 0.31.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f3bc8686dfaf866127fd9235bbe26a59d0f1825f6f79a74fb64646ac8af17f0
|
4
|
+
data.tar.gz: 0ce14360ebc31e3d767740087b49fd525e7b92ff6309f0554af6565a05de5ff9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 446a1cf9f994c6f2870fe3b5905f886d1b6b7de226df782b090119802d3ca738242a863c3b7a0cee889f8a927d3af97ef798c4764ed8e56dbabed12809040899
|
7
|
+
data.tar.gz: 52c6c7ca5068d1fb50d0f02ab05caa63bee6d3a2e6c8ba630f9204307f3ae6faac629414e7d2bb46f45b31596a54dbe2d4bc68314ca978987ac19d7dc07fc80d
|
data/CHANGELOG.md
CHANGED
@@ -367,6 +367,11 @@ module Google
|
|
367
367
|
# @return [Google::Apis::ComposerV1::PrivateEnvironmentConfig]
|
368
368
|
attr_accessor :private_environment_config
|
369
369
|
|
370
|
+
# The Recovery settings of an environment.
|
371
|
+
# Corresponds to the JSON property `recoveryConfig`
|
372
|
+
# @return [Google::Apis::ComposerV1::RecoveryConfig]
|
373
|
+
attr_accessor :recovery_config
|
374
|
+
|
370
375
|
# Specifies the selection and configuration of software inside the environment.
|
371
376
|
# Corresponds to the JSON property `softwareConfig`
|
372
377
|
# @return [Google::Apis::ComposerV1::SoftwareConfig]
|
@@ -408,6 +413,7 @@ module Google
|
|
408
413
|
@node_config = args[:node_config] if args.key?(:node_config)
|
409
414
|
@node_count = args[:node_count] if args.key?(:node_count)
|
410
415
|
@private_environment_config = args[:private_environment_config] if args.key?(:private_environment_config)
|
416
|
+
@recovery_config = args[:recovery_config] if args.key?(:recovery_config)
|
411
417
|
@software_config = args[:software_config] if args.key?(:software_config)
|
412
418
|
@web_server_config = args[:web_server_config] if args.key?(:web_server_config)
|
413
419
|
@web_server_network_access_control = args[:web_server_network_access_control] if args.key?(:web_server_network_access_control)
|
@@ -619,6 +625,58 @@ module Google
|
|
619
625
|
end
|
620
626
|
end
|
621
627
|
|
628
|
+
# Request to load a snapshot into a Cloud Composer environment.
|
629
|
+
class LoadSnapshotRequest
|
630
|
+
include Google::Apis::Core::Hashable
|
631
|
+
|
632
|
+
# Whether or not to skip setting Airflow overrides when loading the environment'
|
633
|
+
# s state.
|
634
|
+
# Corresponds to the JSON property `skipAirflowOverridesSetting`
|
635
|
+
# @return [Boolean]
|
636
|
+
attr_accessor :skip_airflow_overrides_setting
|
637
|
+
alias_method :skip_airflow_overrides_setting?, :skip_airflow_overrides_setting
|
638
|
+
|
639
|
+
# Whether or not to skip setting environment variables when loading the
|
640
|
+
# environment's state.
|
641
|
+
# Corresponds to the JSON property `skipEnvironmentVariablesSetting`
|
642
|
+
# @return [Boolean]
|
643
|
+
attr_accessor :skip_environment_variables_setting
|
644
|
+
alias_method :skip_environment_variables_setting?, :skip_environment_variables_setting
|
645
|
+
|
646
|
+
# Whether or not to skip copying Cloud Storage data when loading the environment'
|
647
|
+
# s state.
|
648
|
+
# Corresponds to the JSON property `skipGcsDataCopying`
|
649
|
+
# @return [Boolean]
|
650
|
+
attr_accessor :skip_gcs_data_copying
|
651
|
+
alias_method :skip_gcs_data_copying?, :skip_gcs_data_copying
|
652
|
+
|
653
|
+
# Whether or not to skip installing Pypi packages when loading the environment's
|
654
|
+
# state.
|
655
|
+
# Corresponds to the JSON property `skipPypiPackagesInstallation`
|
656
|
+
# @return [Boolean]
|
657
|
+
attr_accessor :skip_pypi_packages_installation
|
658
|
+
alias_method :skip_pypi_packages_installation?, :skip_pypi_packages_installation
|
659
|
+
|
660
|
+
# A Cloud Storage path to a snapshot to load, e.g.: "gs://my-bucket/snapshots/
|
661
|
+
# project_location_environment_timestamp".
|
662
|
+
# Corresponds to the JSON property `snapshotPath`
|
663
|
+
# @return [String]
|
664
|
+
attr_accessor :snapshot_path
|
665
|
+
|
666
|
+
def initialize(**args)
|
667
|
+
update!(**args)
|
668
|
+
end
|
669
|
+
|
670
|
+
# Update properties of this object
|
671
|
+
def update!(**args)
|
672
|
+
@skip_airflow_overrides_setting = args[:skip_airflow_overrides_setting] if args.key?(:skip_airflow_overrides_setting)
|
673
|
+
@skip_environment_variables_setting = args[:skip_environment_variables_setting] if args.key?(:skip_environment_variables_setting)
|
674
|
+
@skip_gcs_data_copying = args[:skip_gcs_data_copying] if args.key?(:skip_gcs_data_copying)
|
675
|
+
@skip_pypi_packages_installation = args[:skip_pypi_packages_installation] if args.key?(:skip_pypi_packages_installation)
|
676
|
+
@snapshot_path = args[:snapshot_path] if args.key?(:snapshot_path)
|
677
|
+
end
|
678
|
+
end
|
679
|
+
|
622
680
|
# Response to LoadSnapshotRequest.
|
623
681
|
class LoadSnapshotResponse
|
624
682
|
include Google::Apis::Core::Hashable
|
@@ -1098,6 +1156,45 @@ module Google
|
|
1098
1156
|
end
|
1099
1157
|
end
|
1100
1158
|
|
1159
|
+
# The Recovery settings of an environment.
|
1160
|
+
class RecoveryConfig
|
1161
|
+
include Google::Apis::Core::Hashable
|
1162
|
+
|
1163
|
+
# The configuration for scheduled snapshot creation mechanism.
|
1164
|
+
# Corresponds to the JSON property `scheduledSnapshotsConfig`
|
1165
|
+
# @return [Google::Apis::ComposerV1::ScheduledSnapshotsConfig]
|
1166
|
+
attr_accessor :scheduled_snapshots_config
|
1167
|
+
|
1168
|
+
def initialize(**args)
|
1169
|
+
update!(**args)
|
1170
|
+
end
|
1171
|
+
|
1172
|
+
# Update properties of this object
|
1173
|
+
def update!(**args)
|
1174
|
+
@scheduled_snapshots_config = args[:scheduled_snapshots_config] if args.key?(:scheduled_snapshots_config)
|
1175
|
+
end
|
1176
|
+
end
|
1177
|
+
|
1178
|
+
# Request to create a snapshot of a Cloud Composer environment.
|
1179
|
+
class SaveSnapshotRequest
|
1180
|
+
include Google::Apis::Core::Hashable
|
1181
|
+
|
1182
|
+
# Location in a Cloud Storage where the snapshot is going to be stored, e.g.: "
|
1183
|
+
# gs://my-bucket/snapshots".
|
1184
|
+
# Corresponds to the JSON property `snapshotLocation`
|
1185
|
+
# @return [String]
|
1186
|
+
attr_accessor :snapshot_location
|
1187
|
+
|
1188
|
+
def initialize(**args)
|
1189
|
+
update!(**args)
|
1190
|
+
end
|
1191
|
+
|
1192
|
+
# Update properties of this object
|
1193
|
+
def update!(**args)
|
1194
|
+
@snapshot_location = args[:snapshot_location] if args.key?(:snapshot_location)
|
1195
|
+
end
|
1196
|
+
end
|
1197
|
+
|
1101
1198
|
# Response to SaveSnapshotRequest.
|
1102
1199
|
class SaveSnapshotResponse
|
1103
1200
|
include Google::Apis::Core::Hashable
|
@@ -1119,6 +1216,48 @@ module Google
|
|
1119
1216
|
end
|
1120
1217
|
end
|
1121
1218
|
|
1219
|
+
# The configuration for scheduled snapshot creation mechanism.
|
1220
|
+
class ScheduledSnapshotsConfig
|
1221
|
+
include Google::Apis::Core::Hashable
|
1222
|
+
|
1223
|
+
# Optional. Whether scheduled snapshots creation is enabled.
|
1224
|
+
# Corresponds to the JSON property `enabled`
|
1225
|
+
# @return [Boolean]
|
1226
|
+
attr_accessor :enabled
|
1227
|
+
alias_method :enabled?, :enabled
|
1228
|
+
|
1229
|
+
# Optional. The cron expression representing the time when snapshots creation
|
1230
|
+
# mechanism runs. This field is subject to additional validation around
|
1231
|
+
# frequency of execution.
|
1232
|
+
# Corresponds to the JSON property `snapshotCreationSchedule`
|
1233
|
+
# @return [String]
|
1234
|
+
attr_accessor :snapshot_creation_schedule
|
1235
|
+
|
1236
|
+
# Optional. The Cloud Storage location for storing automatically created
|
1237
|
+
# snapshots.
|
1238
|
+
# Corresponds to the JSON property `snapshotLocation`
|
1239
|
+
# @return [String]
|
1240
|
+
attr_accessor :snapshot_location
|
1241
|
+
|
1242
|
+
# Optional. Time zone that sets the context to interpret
|
1243
|
+
# snapshot_creation_schedule.
|
1244
|
+
# Corresponds to the JSON property `timeZone`
|
1245
|
+
# @return [String]
|
1246
|
+
attr_accessor :time_zone
|
1247
|
+
|
1248
|
+
def initialize(**args)
|
1249
|
+
update!(**args)
|
1250
|
+
end
|
1251
|
+
|
1252
|
+
# Update properties of this object
|
1253
|
+
def update!(**args)
|
1254
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
1255
|
+
@snapshot_creation_schedule = args[:snapshot_creation_schedule] if args.key?(:snapshot_creation_schedule)
|
1256
|
+
@snapshot_location = args[:snapshot_location] if args.key?(:snapshot_location)
|
1257
|
+
@time_zone = args[:time_zone] if args.key?(:time_zone)
|
1258
|
+
end
|
1259
|
+
end
|
1260
|
+
|
1122
1261
|
# Configuration for resources used by Airflow schedulers.
|
1123
1262
|
class SchedulerResource
|
1124
1263
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ComposerV1
|
18
18
|
# Version of the google-apis-composer_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.31.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.11.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20221130"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -106,6 +106,12 @@ module Google
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
107
107
|
end
|
108
108
|
|
109
|
+
class LoadSnapshotRequest
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
109
115
|
class LoadSnapshotResponse
|
110
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
117
|
|
@@ -160,12 +166,30 @@ module Google
|
|
160
166
|
include Google::Apis::Core::JsonObjectSupport
|
161
167
|
end
|
162
168
|
|
169
|
+
class RecoveryConfig
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
175
|
+
class SaveSnapshotRequest
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
163
181
|
class SaveSnapshotResponse
|
164
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
183
|
|
166
184
|
include Google::Apis::Core::JsonObjectSupport
|
167
185
|
end
|
168
186
|
|
187
|
+
class ScheduledSnapshotsConfig
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
169
193
|
class SchedulerResource
|
170
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
195
|
|
@@ -304,6 +328,8 @@ module Google
|
|
304
328
|
property :node_count, as: 'nodeCount'
|
305
329
|
property :private_environment_config, as: 'privateEnvironmentConfig', class: Google::Apis::ComposerV1::PrivateEnvironmentConfig, decorator: Google::Apis::ComposerV1::PrivateEnvironmentConfig::Representation
|
306
330
|
|
331
|
+
property :recovery_config, as: 'recoveryConfig', class: Google::Apis::ComposerV1::RecoveryConfig, decorator: Google::Apis::ComposerV1::RecoveryConfig::Representation
|
332
|
+
|
307
333
|
property :software_config, as: 'softwareConfig', class: Google::Apis::ComposerV1::SoftwareConfig, decorator: Google::Apis::ComposerV1::SoftwareConfig::Representation
|
308
334
|
|
309
335
|
property :web_server_config, as: 'webServerConfig', class: Google::Apis::ComposerV1::WebServerConfig, decorator: Google::Apis::ComposerV1::WebServerConfig::Representation
|
@@ -366,6 +392,17 @@ module Google
|
|
366
392
|
end
|
367
393
|
end
|
368
394
|
|
395
|
+
class LoadSnapshotRequest
|
396
|
+
# @private
|
397
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
398
|
+
property :skip_airflow_overrides_setting, as: 'skipAirflowOverridesSetting'
|
399
|
+
property :skip_environment_variables_setting, as: 'skipEnvironmentVariablesSetting'
|
400
|
+
property :skip_gcs_data_copying, as: 'skipGcsDataCopying'
|
401
|
+
property :skip_pypi_packages_installation, as: 'skipPypiPackagesInstallation'
|
402
|
+
property :snapshot_path, as: 'snapshotPath'
|
403
|
+
end
|
404
|
+
end
|
405
|
+
|
369
406
|
class LoadSnapshotResponse
|
370
407
|
# @private
|
371
408
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -465,6 +502,21 @@ module Google
|
|
465
502
|
end
|
466
503
|
end
|
467
504
|
|
505
|
+
class RecoveryConfig
|
506
|
+
# @private
|
507
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
508
|
+
property :scheduled_snapshots_config, as: 'scheduledSnapshotsConfig', class: Google::Apis::ComposerV1::ScheduledSnapshotsConfig, decorator: Google::Apis::ComposerV1::ScheduledSnapshotsConfig::Representation
|
509
|
+
|
510
|
+
end
|
511
|
+
end
|
512
|
+
|
513
|
+
class SaveSnapshotRequest
|
514
|
+
# @private
|
515
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
516
|
+
property :snapshot_location, as: 'snapshotLocation'
|
517
|
+
end
|
518
|
+
end
|
519
|
+
|
468
520
|
class SaveSnapshotResponse
|
469
521
|
# @private
|
470
522
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -472,6 +524,16 @@ module Google
|
|
472
524
|
end
|
473
525
|
end
|
474
526
|
|
527
|
+
class ScheduledSnapshotsConfig
|
528
|
+
# @private
|
529
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
530
|
+
property :enabled, as: 'enabled'
|
531
|
+
property :snapshot_creation_schedule, as: 'snapshotCreationSchedule'
|
532
|
+
property :snapshot_location, as: 'snapshotLocation'
|
533
|
+
property :time_zone, as: 'timeZone'
|
534
|
+
end
|
535
|
+
end
|
536
|
+
|
475
537
|
class SchedulerResource
|
476
538
|
# @private
|
477
539
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -181,6 +181,42 @@ module Google
|
|
181
181
|
execute_or_queue_command(command, &block)
|
182
182
|
end
|
183
183
|
|
184
|
+
# Loads a snapshot of a Cloud Composer environment. As a result of this
|
185
|
+
# operation, a snapshot of environment's specified in LoadSnapshotRequest is
|
186
|
+
# loaded into the environment.
|
187
|
+
# @param [String] environment
|
188
|
+
# The resource name of the target environment in the form: "projects/`projectId`/
|
189
|
+
# locations/`locationId`/environments/`environmentId`"
|
190
|
+
# @param [Google::Apis::ComposerV1::LoadSnapshotRequest] load_snapshot_request_object
|
191
|
+
# @param [String] fields
|
192
|
+
# Selector specifying which fields to include in a partial response.
|
193
|
+
# @param [String] quota_user
|
194
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
195
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
196
|
+
# @param [Google::Apis::RequestOptions] options
|
197
|
+
# Request-specific options
|
198
|
+
#
|
199
|
+
# @yield [result, err] Result & error if block supplied
|
200
|
+
# @yieldparam result [Google::Apis::ComposerV1::Operation] parsed result object
|
201
|
+
# @yieldparam err [StandardError] error object if request failed
|
202
|
+
#
|
203
|
+
# @return [Google::Apis::ComposerV1::Operation]
|
204
|
+
#
|
205
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
206
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
207
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
208
|
+
def load_environment_snapshot(environment, load_snapshot_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
209
|
+
command = make_simple_command(:post, 'v1/{+environment}:loadSnapshot', options)
|
210
|
+
command.request_representation = Google::Apis::ComposerV1::LoadSnapshotRequest::Representation
|
211
|
+
command.request_object = load_snapshot_request_object
|
212
|
+
command.response_representation = Google::Apis::ComposerV1::Operation::Representation
|
213
|
+
command.response_class = Google::Apis::ComposerV1::Operation
|
214
|
+
command.params['environment'] = environment unless environment.nil?
|
215
|
+
command.query['fields'] = fields unless fields.nil?
|
216
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
217
|
+
execute_or_queue_command(command, &block)
|
218
|
+
end
|
219
|
+
|
184
220
|
# Update an environment.
|
185
221
|
# @param [String] name
|
186
222
|
# The relative resource name of the environment to update, in the form: "
|
@@ -286,6 +322,42 @@ module Google
|
|
286
322
|
execute_or_queue_command(command, &block)
|
287
323
|
end
|
288
324
|
|
325
|
+
# Creates a snapshots of a Cloud Composer environment. As a result of this
|
326
|
+
# operation, snapshot of environment's state is stored in a location specified
|
327
|
+
# in the SaveSnapshotRequest.
|
328
|
+
# @param [String] environment
|
329
|
+
# The resource name of the source environment in the form: "projects/`projectId`/
|
330
|
+
# locations/`locationId`/environments/`environmentId`"
|
331
|
+
# @param [Google::Apis::ComposerV1::SaveSnapshotRequest] save_snapshot_request_object
|
332
|
+
# @param [String] fields
|
333
|
+
# Selector specifying which fields to include in a partial response.
|
334
|
+
# @param [String] quota_user
|
335
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
336
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
337
|
+
# @param [Google::Apis::RequestOptions] options
|
338
|
+
# Request-specific options
|
339
|
+
#
|
340
|
+
# @yield [result, err] Result & error if block supplied
|
341
|
+
# @yieldparam result [Google::Apis::ComposerV1::Operation] parsed result object
|
342
|
+
# @yieldparam err [StandardError] error object if request failed
|
343
|
+
#
|
344
|
+
# @return [Google::Apis::ComposerV1::Operation]
|
345
|
+
#
|
346
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
347
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
348
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
349
|
+
def save_environment_snapshot(environment, save_snapshot_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
350
|
+
command = make_simple_command(:post, 'v1/{+environment}:saveSnapshot', options)
|
351
|
+
command.request_representation = Google::Apis::ComposerV1::SaveSnapshotRequest::Representation
|
352
|
+
command.request_object = save_snapshot_request_object
|
353
|
+
command.response_representation = Google::Apis::ComposerV1::Operation::Representation
|
354
|
+
command.response_class = Google::Apis::ComposerV1::Operation
|
355
|
+
command.params['environment'] = environment unless environment.nil?
|
356
|
+
command.query['fields'] = fields unless fields.nil?
|
357
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
358
|
+
execute_or_queue_command(command, &block)
|
359
|
+
end
|
360
|
+
|
289
361
|
# List ImageVersions for provided location.
|
290
362
|
# @param [String] parent
|
291
363
|
# List ImageVersions in the given project and location, in the form: "projects/`
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-composer_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.31.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: 2022-
|
11
|
+
date: 2022-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-composer_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1/v0.31.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-composer_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|