google-apis-composer_v1beta1 0.20.0 → 0.23.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: 3ad9f420a1acbb610a1ab0f0a18fc269ed9071d60cbea9babbf764981b0965a2
4
+ data.tar.gz: 981a9cc20afe21b62c333385e572aaef3f9ee90a04fa1824239f57c61f293423
5
5
  SHA512:
6
- metadata.gz: 5b14dd525306cd0e0806a286bcfa97ab80cc2d845ed8f789b8686d8b9f0ce4c72abdbf81bc85f87a7a66207b6dd18fc775e1434f2d8a95f9c8d7ce638a3b298a
7
- data.tar.gz: 54e1d17bcf25dce876ded8dfde4949e1e3ba6974a047d5a5828820e3b2283e3f05373129385aa5b4cc6bc4a1a42064b8a8cc363da7081847e344f089e18219d5
6
+ metadata.gz: c0d2d4f585195f33ba4c2115f4cc2018d70e9c1a3dce7f6c7852f9105568de9bb08230d1f51caa6a56ef9e4d56f2f8dd6fe3a8a6f87a56a449aa1b8ca2ff4003
7
+ data.tar.gz: 5553f6b35bce6f481d4a0824917061dcba1abe8f4995d4b4bb7ece147cd95a84694c809252d63683e5071c8697b500b3731b44d492c42fe2d1698b24a6bc03cd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-composer_v1beta1
2
2
 
3
+ ### v0.23.0 (2022-06-02)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.22.0 (2022-05-17)
8
+
9
+ * Regenerated from discovery document revision 20220512
10
+
11
+ ### v0.21.0 (2022-04-01)
12
+
13
+ * Regenerated from discovery document revision 20220326
14
+
3
15
  ### v0.20.0 (2022-03-12)
4
16
 
5
17
  * 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
@@ -132,16 +132,16 @@ module Google
132
132
  end
133
133
  end
134
134
 
135
- # CidrBlock contains an optional name and one CIDR block.
135
+ # CIDR block with an optional name.
136
136
  class CidrBlock
137
137
  include Google::Apis::Core::Hashable
138
138
 
139
- # cidr_block must be specified in CIDR notation.
139
+ # CIDR block that must be specified in CIDR notation.
140
140
  # Corresponds to the JSON property `cidrBlock`
141
141
  # @return [String]
142
142
  attr_accessor :cidr_block
143
143
 
144
- # display_name is a field for users to identify CIDR blocks.
144
+ # User-defined name that identifies the CIDR block.
145
145
  # Corresponds to the JSON property `displayName`
146
146
  # @return [String]
147
147
  attr_accessor :display_name
@@ -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
@@ -720,13 +747,12 @@ module Google
720
747
  class MasterAuthorizedNetworksConfig
721
748
  include Google::Apis::Core::Hashable
722
749
 
723
- # cidr_blocks define up to 50 external networks that could access Kubernetes
724
- # master through HTTPS.
750
+ # Up to 50 external networks that could access Kubernetes master through HTTPS.
725
751
  # Corresponds to the JSON property `cidrBlocks`
726
752
  # @return [Array<Google::Apis::ComposerV1beta1::CidrBlock>]
727
753
  attr_accessor :cidr_blocks
728
754
 
729
- # Whether or not master authorized networks is enabled.
755
+ # Whether or not master authorized networks feature is enabled.
730
756
  # Corresponds to the JSON property `enabled`
731
757
  # @return [Boolean]
732
758
  attr_accessor :enabled
@@ -748,7 +774,7 @@ module Google
748
774
  class NodeConfig
749
775
  include Google::Apis::Core::Hashable
750
776
 
751
- # Optional. The disk size in GB used for node VMs. Minimum size is 20GB. If
777
+ # Optional. The disk size in GB used for node VMs. Minimum size is 30GB. If
752
778
  # unspecified, defaults to 100GB. Cannot be updated. This field is supported for
753
779
  # Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.
754
780
  # Corresponds to the JSON property `diskSizeGb`
@@ -1139,6 +1165,26 @@ module Google
1139
1165
  end
1140
1166
  end
1141
1167
 
1168
+ # Request to create a snapshot of a Cloud Composer environment.
1169
+ class SaveSnapshotRequest
1170
+ include Google::Apis::Core::Hashable
1171
+
1172
+ # Location in a Cloud Storage where the snapshot is going to be stored, e.g.: "
1173
+ # gs://my-bucket/snapshots".
1174
+ # Corresponds to the JSON property `snapshotLocation`
1175
+ # @return [String]
1176
+ attr_accessor :snapshot_location
1177
+
1178
+ def initialize(**args)
1179
+ update!(**args)
1180
+ end
1181
+
1182
+ # Update properties of this object
1183
+ def update!(**args)
1184
+ @snapshot_location = args[:snapshot_location] if args.key?(:snapshot_location)
1185
+ end
1186
+ end
1187
+
1142
1188
  # Response to SaveSnapshotRequest.
1143
1189
  class SaveSnapshotResponse
1144
1190
  include Google::Apis::Core::Hashable
@@ -1233,21 +1279,21 @@ module Google
1233
1279
  # The version of the software running in the environment. This encapsulates both
1234
1280
  # the version of Cloud Composer functionality and the version of Apache Airflow.
1235
1281
  # 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).
1282
+ # preview\.[0-9]+)?)?|latest)-airflow-([0-9]+(\.[0-9]+(\.[0-9]+)?)?)`. When used
1283
+ # as input, the server also checks if the provided version is supported and
1284
+ # denies the request for an unsupported version. The Cloud Composer portion of
1285
+ # the image version is a full [semantic version](https://semver.org), or an
1286
+ # alias in the form of major version number or `latest`. When an alias is
1287
+ # provided, the server replaces it with the current Cloud Composer version that
1288
+ # satisfies the alias. The Apache Airflow portion of the image version is a full
1289
+ # semantic version that points to one of the supported Apache Airflow versions,
1290
+ # or an alias in the form of only major or major.minor versions specified. When
1291
+ # an alias is provided, the server replaces it with the latest Apache Airflow
1292
+ # version that satisfies the alias and is supported in the given Cloud Composer
1293
+ # version. In all cases, the resolved image version is stored in the same field.
1294
+ # See also [version list](/composer/docs/concepts/versioning/composer-versions)
1295
+ # and [versioning overview](/composer/docs/concepts/versioning/composer-
1296
+ # versioning-overview).
1251
1297
  # Corresponds to the JSON property `imageVersion`
1252
1298
  # @return [String]
1253
1299
  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.23.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 = "20220512"
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.23.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-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.4'
29
+ version: '0.5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.23.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: []
@@ -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.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Composer API V1beta1