google-apis-composer_v1 0.30.0 → 0.32.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: 33bbca7f55439980009cd098e7731acefa3905adebb7c0e03dde30d4514f0469
4
- data.tar.gz: d6ebfd962e988c9b529ac7cce9dac6ad155e7c0832ccce237880d114272147a8
3
+ metadata.gz: 463361ddd3addbeeb58ba5a5faa3fe5b08896ed486839ad76c3e5e6dfe550b4c
4
+ data.tar.gz: a82a9ac4550fe4f09e5f2d2b40269253970190912a52b695ed314a8537e77eee
5
5
  SHA512:
6
- metadata.gz: 7e92469198ef38ec05c390a96c5c6db14651bce3a5e04f81794b040dffe04c47cdba02d6f9e749a089c63fc7f2a8bf1070cadc106bb7082fe57f5016cb8ccc2b
7
- data.tar.gz: f67f8cc9fa049ab47112e27cf3fff8c70b6f7f69a6325860f867ab9f8ba75f938cc22d767e6f58a7b6dff273477a90a7d49b33d307dfd4da4fe31814c99f1fb5
6
+ metadata.gz: f906995b0ce57af2589a8ee10c89fe24756f5d4e9b635e4765321b3733aa322f11984a2e049b2cbaab19a1f10463e3ff9876320f641921e35a3d8579f550190a
7
+ data.tar.gz: c71cec08e733255ca5947caf5d53d2efcd8c39d16d1136081947c8ddd05e9df7711fb30cebd92cbe7fd8a7513b22f8ecc2f442ab23acf2c8db0b0c580ce12af8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-composer_v1
2
2
 
3
+ ### v0.32.0 (2023-01-29)
4
+
5
+ * Regenerated from discovery document revision 20230124
6
+ * Regenerated using generator version 0.11.1
7
+
8
+ ### v0.31.0 (2022-12-04)
9
+
10
+ * Regenerated from discovery document revision 20221130
11
+
3
12
  ### v0.30.0 (2022-10-28)
4
13
 
5
14
  * Regenerated from discovery document revision 20221012
@@ -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
@@ -825,8 +883,7 @@ module Google
825
883
  # Optional. The list of instance tags applied to all node VMs. Tags are used to
826
884
  # identify valid sources or targets for network firewalls. Each tag within the
827
885
  # list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Cannot
828
- # be updated. This field is supported for Cloud Composer environments in
829
- # versions composer-1.*.*-airflow-*.*.*.
886
+ # be updated.
830
887
  # Corresponds to the JSON property `tags`
831
888
  # @return [Array<String>]
832
889
  attr_accessor :tags
@@ -1098,6 +1155,45 @@ module Google
1098
1155
  end
1099
1156
  end
1100
1157
 
1158
+ # The Recovery settings of an environment.
1159
+ class RecoveryConfig
1160
+ include Google::Apis::Core::Hashable
1161
+
1162
+ # The configuration for scheduled snapshot creation mechanism.
1163
+ # Corresponds to the JSON property `scheduledSnapshotsConfig`
1164
+ # @return [Google::Apis::ComposerV1::ScheduledSnapshotsConfig]
1165
+ attr_accessor :scheduled_snapshots_config
1166
+
1167
+ def initialize(**args)
1168
+ update!(**args)
1169
+ end
1170
+
1171
+ # Update properties of this object
1172
+ def update!(**args)
1173
+ @scheduled_snapshots_config = args[:scheduled_snapshots_config] if args.key?(:scheduled_snapshots_config)
1174
+ end
1175
+ end
1176
+
1177
+ # Request to create a snapshot of a Cloud Composer environment.
1178
+ class SaveSnapshotRequest
1179
+ include Google::Apis::Core::Hashable
1180
+
1181
+ # Location in a Cloud Storage where the snapshot is going to be stored, e.g.: "
1182
+ # gs://my-bucket/snapshots".
1183
+ # Corresponds to the JSON property `snapshotLocation`
1184
+ # @return [String]
1185
+ attr_accessor :snapshot_location
1186
+
1187
+ def initialize(**args)
1188
+ update!(**args)
1189
+ end
1190
+
1191
+ # Update properties of this object
1192
+ def update!(**args)
1193
+ @snapshot_location = args[:snapshot_location] if args.key?(:snapshot_location)
1194
+ end
1195
+ end
1196
+
1101
1197
  # Response to SaveSnapshotRequest.
1102
1198
  class SaveSnapshotResponse
1103
1199
  include Google::Apis::Core::Hashable
@@ -1119,6 +1215,48 @@ module Google
1119
1215
  end
1120
1216
  end
1121
1217
 
1218
+ # The configuration for scheduled snapshot creation mechanism.
1219
+ class ScheduledSnapshotsConfig
1220
+ include Google::Apis::Core::Hashable
1221
+
1222
+ # Optional. Whether scheduled snapshots creation is enabled.
1223
+ # Corresponds to the JSON property `enabled`
1224
+ # @return [Boolean]
1225
+ attr_accessor :enabled
1226
+ alias_method :enabled?, :enabled
1227
+
1228
+ # Optional. The cron expression representing the time when snapshots creation
1229
+ # mechanism runs. This field is subject to additional validation around
1230
+ # frequency of execution.
1231
+ # Corresponds to the JSON property `snapshotCreationSchedule`
1232
+ # @return [String]
1233
+ attr_accessor :snapshot_creation_schedule
1234
+
1235
+ # Optional. The Cloud Storage location for storing automatically created
1236
+ # snapshots.
1237
+ # Corresponds to the JSON property `snapshotLocation`
1238
+ # @return [String]
1239
+ attr_accessor :snapshot_location
1240
+
1241
+ # Optional. Time zone that sets the context to interpret
1242
+ # snapshot_creation_schedule.
1243
+ # Corresponds to the JSON property `timeZone`
1244
+ # @return [String]
1245
+ attr_accessor :time_zone
1246
+
1247
+ def initialize(**args)
1248
+ update!(**args)
1249
+ end
1250
+
1251
+ # Update properties of this object
1252
+ def update!(**args)
1253
+ @enabled = args[:enabled] if args.key?(:enabled)
1254
+ @snapshot_creation_schedule = args[:snapshot_creation_schedule] if args.key?(:snapshot_creation_schedule)
1255
+ @snapshot_location = args[:snapshot_location] if args.key?(:snapshot_location)
1256
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
1257
+ end
1258
+ end
1259
+
1122
1260
  # Configuration for resources used by Airflow schedulers.
1123
1261
  class SchedulerResource
1124
1262
  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.30.0"
19
+ GEM_VERSION = "0.32.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221012"
25
+ REVISION = "20230124"
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.30.0
4
+ version: 0.32.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-10-31 00:00:00.000000000 Z
11
+ date: 2023-01-29 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.30.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1/v0.32.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Composer API V1