google-apis-composer_v1beta1 0.20.0 → 0.21.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: 3f2e69e6978caf3b549d2a20b30f0a041008dfa4d5fe7bf4268d004594244967
4
- data.tar.gz: c1f3c959830ba14153eae797def35eb2fe9cacee80c75b24ec2f1dd833c2842c
3
+ metadata.gz: eaa19746fb6d53f34472f683e3188bc891d9399596ac8cf71422fb3af546b19e
4
+ data.tar.gz: a2a2465d4b1842f1b94746750b114d8cb23d21968ef586ea026c39f32504787d
5
5
  SHA512:
6
- metadata.gz: 5b14dd525306cd0e0806a286bcfa97ab80cc2d845ed8f789b8686d8b9f0ce4c72abdbf81bc85f87a7a66207b6dd18fc775e1434f2d8a95f9c8d7ce638a3b298a
7
- data.tar.gz: 54e1d17bcf25dce876ded8dfde4949e1e3ba6974a047d5a5828820e3b2283e3f05373129385aa5b4cc6bc4a1a42064b8a8cc363da7081847e344f089e18219d5
6
+ metadata.gz: 5b0b3ca38458eeb374839bf0278a144def1eaf44e874439f23778fd591e461172547072bce4e6dc1d46894d79bc1c5007989aaff5728672b4949f1a2f613d9c5
7
+ data.tar.gz: b883391a5c9d312e92dd795880b37c49fc6623fa37e82115394365720d47543cdc7beec193853485b8875f0f09ab7d0eb14e4e7154336c8370f1288026250d96
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-composer_v1beta1
2
2
 
3
+ ### v0.21.0 (2022-04-01)
4
+
5
+ * Regenerated from discovery document revision 20220326
6
+
3
7
  ### v0.20.0 (2022-03-12)
4
8
 
5
9
  * Regenerated from discovery document revision 20220307
@@ -58,21 +58,21 @@ module Google
58
58
  # The version of the software running in the environment. This encapsulates both
59
59
  # the version of Cloud Composer functionality and the version of Apache Airflow.
60
60
  # It must match the regular expression `composer-([0-9]+(\.[0-9]+\.[0-9]+(-
61
- # preview\.[0-9]+)?)?|latest)-airflow-([0-9]+\.[0-9]+(\.[0-9]+)?)`. When used as
62
- # input, the server also checks if the provided version is supported and denies
63
- # the request for an unsupported version. The Cloud Composer portion of the
64
- # image version is a full [semantic version](https://semver.org), or an alias in
65
- # the form of major version number or `latest`. When an alias is provided, the
66
- # server replaces it with the current Cloud Composer version that satisfies the
67
- # alias. The Apache Airflow portion of the image version is a full semantic
68
- # version that points to one of the supported Apache Airflow versions, or an
69
- # alias in the form of only major and minor versions specified. When an alias is
70
- # provided, the server replaces it with the latest Apache Airflow version that
71
- # satisfies the alias and is supported in the given Cloud Composer version. In
72
- # all cases, the resolved image version is stored in the same field. See also [
73
- # version list](/composer/docs/concepts/versioning/composer-versions) and [
74
- # versioning overview](/composer/docs/concepts/versioning/composer-versioning-
75
- # overview).
61
+ # preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`. When used
62
+ # as input, the server also checks if the provided version is supported and
63
+ # denies the request for an unsupported version. The Cloud Composer portion of
64
+ # the image version is a full [semantic version](https://semver.org), or an
65
+ # alias in the form of major version number or `latest`. When an alias is
66
+ # provided, the server replaces it with the current Cloud Composer version that
67
+ # satisfies the alias. The Apache Airflow portion of the image version is a full
68
+ # semantic version that points to one of the supported Apache Airflow versions,
69
+ # or an alias in the form of only major or major.minor versions specified. When
70
+ # an alias is provided, the server replaces it with the latest Apache Airflow
71
+ # version that satisfies the alias and is supported in the given Cloud Composer
72
+ # version. In all cases, the resolved image version is stored in the same field.
73
+ # See also [version list](/composer/docs/concepts/versioning/composer-versions)
74
+ # and [versioning overview](/composer/docs/concepts/versioning/composer-
75
+ # versioning-overview).
76
76
  # Corresponds to the JSON property `imageVersion`
77
77
  # @return [String]
78
78
  attr_accessor :image_version
@@ -224,8 +224,7 @@ module Google
224
224
  # A generic empty message that you can re-use to avoid defining duplicated empty
225
225
  # messages in your APIs. A typical example is to use it as the request or the
226
226
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
227
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
228
- # `Empty` is empty JSON object ````.
227
+ # protobuf.Empty) returns (google.protobuf.Empty); `
229
228
  class Empty
230
229
  include Google::Apis::Core::Hashable
231
230
 
@@ -660,6 +659,34 @@ module Google
660
659
  end
661
660
  end
662
661
 
662
+ # Request to load a snapshot into a Cloud Composer environment.
663
+ class LoadSnapshotRequest
664
+ include Google::Apis::Core::Hashable
665
+
666
+ # Whether or not to skip installing Pypi packages when loading the environment's
667
+ # state.
668
+ # Corresponds to the JSON property `skipPypiPackagesInstallation`
669
+ # @return [Boolean]
670
+ attr_accessor :skip_pypi_packages_installation
671
+ alias_method :skip_pypi_packages_installation?, :skip_pypi_packages_installation
672
+
673
+ # A Cloud Storage path to a snapshot to load, e.g.: "gs://my-bucket/snapshots/
674
+ # project_location_environment_timestamp".
675
+ # Corresponds to the JSON property `snapshotPath`
676
+ # @return [String]
677
+ attr_accessor :snapshot_path
678
+
679
+ def initialize(**args)
680
+ update!(**args)
681
+ end
682
+
683
+ # Update properties of this object
684
+ def update!(**args)
685
+ @skip_pypi_packages_installation = args[:skip_pypi_packages_installation] if args.key?(:skip_pypi_packages_installation)
686
+ @snapshot_path = args[:snapshot_path] if args.key?(:snapshot_path)
687
+ end
688
+ end
689
+
663
690
  # Response to LoadSnapshotRequest.
664
691
  class LoadSnapshotResponse
665
692
  include Google::Apis::Core::Hashable
@@ -748,7 +775,7 @@ module Google
748
775
  class NodeConfig
749
776
  include Google::Apis::Core::Hashable
750
777
 
751
- # Optional. The disk size in GB used for node VMs. Minimum size is 20GB. If
778
+ # Optional. The disk size in GB used for node VMs. Minimum size is 30GB. If
752
779
  # unspecified, defaults to 100GB. Cannot be updated. This field is supported for
753
780
  # Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.
754
781
  # Corresponds to the JSON property `diskSizeGb`
@@ -1139,6 +1166,26 @@ module Google
1139
1166
  end
1140
1167
  end
1141
1168
 
1169
+ # Request to create a snapshot of a Cloud Composer environment.
1170
+ class SaveSnapshotRequest
1171
+ include Google::Apis::Core::Hashable
1172
+
1173
+ # Location in a Cloud Storage where the snapshot is going to be stored, e.g.: "
1174
+ # gs://my-bucket/snapshots".
1175
+ # Corresponds to the JSON property `snapshotLocation`
1176
+ # @return [String]
1177
+ attr_accessor :snapshot_location
1178
+
1179
+ def initialize(**args)
1180
+ update!(**args)
1181
+ end
1182
+
1183
+ # Update properties of this object
1184
+ def update!(**args)
1185
+ @snapshot_location = args[:snapshot_location] if args.key?(:snapshot_location)
1186
+ end
1187
+ end
1188
+
1142
1189
  # Response to SaveSnapshotRequest.
1143
1190
  class SaveSnapshotResponse
1144
1191
  include Google::Apis::Core::Hashable
@@ -1233,21 +1280,21 @@ module Google
1233
1280
  # The version of the software running in the environment. This encapsulates both
1234
1281
  # the version of Cloud Composer functionality and the version of Apache Airflow.
1235
1282
  # It must match the regular expression `composer-([0-9]+(\.[0-9]+\.[0-9]+(-
1236
- # preview\.[0-9]+)?)?|latest)-airflow-([0-9]+\.[0-9]+(\.[0-9]+)?)`. When used as
1237
- # input, the server also checks if the provided version is supported and denies
1238
- # the request for an unsupported version. The Cloud Composer portion of the
1239
- # image version is a full [semantic version](https://semver.org), or an alias in
1240
- # the form of major version number or `latest`. When an alias is provided, the
1241
- # server replaces it with the current Cloud Composer version that satisfies the
1242
- # alias. The Apache Airflow portion of the image version is a full semantic
1243
- # version that points to one of the supported Apache Airflow versions, or an
1244
- # alias in the form of only major and minor versions specified. When an alias is
1245
- # provided, the server replaces it with the latest Apache Airflow version that
1246
- # satisfies the alias and is supported in the given Cloud Composer version. In
1247
- # all cases, the resolved image version is stored in the same field. See also [
1248
- # version list](/composer/docs/concepts/versioning/composer-versions) and [
1249
- # versioning overview](/composer/docs/concepts/versioning/composer-versioning-
1250
- # overview).
1283
+ # preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`. When used
1284
+ # as input, the server also checks if the provided version is supported and
1285
+ # denies the request for an unsupported version. The Cloud Composer portion of
1286
+ # the image version is a full [semantic version](https://semver.org), or an
1287
+ # alias in the form of major version number or `latest`. When an alias is
1288
+ # provided, the server replaces it with the current Cloud Composer version that
1289
+ # satisfies the alias. The Apache Airflow portion of the image version is a full
1290
+ # semantic version that points to one of the supported Apache Airflow versions,
1291
+ # or an alias in the form of only major or major.minor versions specified. When
1292
+ # an alias is provided, the server replaces it with the latest Apache Airflow
1293
+ # version that satisfies the alias and is supported in the given Cloud Composer
1294
+ # version. In all cases, the resolved image version is stored in the same field.
1295
+ # See also [version list](/composer/docs/concepts/versioning/composer-versions)
1296
+ # and [versioning overview](/composer/docs/concepts/versioning/composer-
1297
+ # versioning-overview).
1251
1298
  # Corresponds to the JSON property `imageVersion`
1252
1299
  # @return [String]
1253
1300
  attr_accessor :image_version
@@ -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.20.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220307"
25
+ REVISION = "20220326"
26
26
  end
27
27
  end
28
28
  end
@@ -112,6 +112,12 @@ module Google
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
+ class LoadSnapshotRequest
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
115
121
  class LoadSnapshotResponse
116
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
123
 
@@ -166,6 +172,12 @@ module Google
166
172
  include Google::Apis::Core::JsonObjectSupport
167
173
  end
168
174
 
175
+ class SaveSnapshotRequest
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
169
181
  class SaveSnapshotResponse
170
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
183
 
@@ -379,6 +391,14 @@ module Google
379
391
  end
380
392
  end
381
393
 
394
+ class LoadSnapshotRequest
395
+ # @private
396
+ class Representation < Google::Apis::Core::JsonRepresentation
397
+ property :skip_pypi_packages_installation, as: 'skipPypiPackagesInstallation'
398
+ property :snapshot_path, as: 'snapshotPath'
399
+ end
400
+ end
401
+
382
402
  class LoadSnapshotResponse
383
403
  # @private
384
404
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -476,6 +496,13 @@ module Google
476
496
  end
477
497
  end
478
498
 
499
+ class SaveSnapshotRequest
500
+ # @private
501
+ class Representation < Google::Apis::Core::JsonRepresentation
502
+ property :snapshot_location, as: 'snapshotLocation'
503
+ end
504
+ end
505
+
479
506
  class SaveSnapshotResponse
480
507
  # @private
481
508
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -216,6 +216,42 @@ module Google
216
216
  execute_or_queue_command(command, &block)
217
217
  end
218
218
 
219
+ # Loads a snapshot of a Cloud Composer environment. As a result of this
220
+ # operation, a snapshot of environment's specified in LoadSnapshotRequest is
221
+ # loaded into the environment.
222
+ # @param [String] environment
223
+ # The resource name of the target environment in the form: "projects/`projectId`/
224
+ # locations/`locationId`/environments/`environmentId`"
225
+ # @param [Google::Apis::ComposerV1beta1::LoadSnapshotRequest] load_snapshot_request_object
226
+ # @param [String] fields
227
+ # Selector specifying which fields to include in a partial response.
228
+ # @param [String] quota_user
229
+ # Available to use for quota purposes for server-side applications. Can be any
230
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
231
+ # @param [Google::Apis::RequestOptions] options
232
+ # Request-specific options
233
+ #
234
+ # @yield [result, err] Result & error if block supplied
235
+ # @yieldparam result [Google::Apis::ComposerV1beta1::Operation] parsed result object
236
+ # @yieldparam err [StandardError] error object if request failed
237
+ #
238
+ # @return [Google::Apis::ComposerV1beta1::Operation]
239
+ #
240
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
241
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
242
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
243
+ def load_environment_snapshot(environment, load_snapshot_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
244
+ command = make_simple_command(:post, 'v1beta1/{+environment}:loadSnapshot', options)
245
+ command.request_representation = Google::Apis::ComposerV1beta1::LoadSnapshotRequest::Representation
246
+ command.request_object = load_snapshot_request_object
247
+ command.response_representation = Google::Apis::ComposerV1beta1::Operation::Representation
248
+ command.response_class = Google::Apis::ComposerV1beta1::Operation
249
+ command.params['environment'] = environment unless environment.nil?
250
+ command.query['fields'] = fields unless fields.nil?
251
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
252
+ execute_or_queue_command(command, &block)
253
+ end
254
+
219
255
  # Update an environment.
220
256
  # @param [String] name
221
257
  # The relative resource name of the environment to update, in the form: "
@@ -371,6 +407,42 @@ module Google
371
407
  execute_or_queue_command(command, &block)
372
408
  end
373
409
 
410
+ # Creates a snapshots of a Cloud Composer environment. As a result of this
411
+ # operation, snapshot of environment's state is stored in a location specified
412
+ # in the SaveSnapshotRequest.
413
+ # @param [String] environment
414
+ # The resource name of the source environment in the form: "projects/`projectId`/
415
+ # locations/`locationId`/environments/`environmentId`"
416
+ # @param [Google::Apis::ComposerV1beta1::SaveSnapshotRequest] save_snapshot_request_object
417
+ # @param [String] fields
418
+ # Selector specifying which fields to include in a partial response.
419
+ # @param [String] quota_user
420
+ # Available to use for quota purposes for server-side applications. Can be any
421
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
422
+ # @param [Google::Apis::RequestOptions] options
423
+ # Request-specific options
424
+ #
425
+ # @yield [result, err] Result & error if block supplied
426
+ # @yieldparam result [Google::Apis::ComposerV1beta1::Operation] parsed result object
427
+ # @yieldparam err [StandardError] error object if request failed
428
+ #
429
+ # @return [Google::Apis::ComposerV1beta1::Operation]
430
+ #
431
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
432
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
433
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
434
+ def save_environment_snapshot(environment, save_snapshot_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
435
+ command = make_simple_command(:post, 'v1beta1/{+environment}:saveSnapshot', options)
436
+ command.request_representation = Google::Apis::ComposerV1beta1::SaveSnapshotRequest::Representation
437
+ command.request_object = save_snapshot_request_object
438
+ command.response_representation = Google::Apis::ComposerV1beta1::Operation::Representation
439
+ command.response_class = Google::Apis::ComposerV1beta1::Operation
440
+ command.params['environment'] = environment unless environment.nil?
441
+ command.query['fields'] = fields unless fields.nil?
442
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
443
+ execute_or_queue_command(command, &block)
444
+ end
445
+
374
446
  # List ImageVersions for provided location.
375
447
  # @param [String] parent
376
448
  # 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.20.0
4
+ version: 0.21.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-03-14 00:00:00.000000000 Z
11
+ date: 2022-04-04 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.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1beta1/v0.21.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: []