google-apis-composer_v1beta1 0.40.0 → 0.41.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: 556da1d725ae4aeac91270a4d7b16ac5f7d449a1ca54dc967fd0b585696ab20b
4
- data.tar.gz: 1e82ecd6795602acef2e5534dd5e3ef6d93bc3789b86c15189806e00dd7889ed
3
+ metadata.gz: ee40fd4726a8d9042eec5e03d6929a48f416bf16e74cdaf92d34fa1a94be41d5
4
+ data.tar.gz: 3235e706cf2375525e0cc0656c223c75badf2bd0e4adb357583571afc39826d8
5
5
  SHA512:
6
- metadata.gz: 47fbdebf7e55a303a22a0f6bbd19c765dba06d3b2b7c13d3559cdcac683d47928cf9b1c5d954351c16f324316197c0621969ab638f36ca2b6aa697a8ac861061
7
- data.tar.gz: 26e55ea1d81b9872b1dc054856ea0f8bfd46c629a7de057572f6cd61a47566cd6d87b7613e5e1fca6f17cb132d06e710e75a27b0da3026cb55e6aeb3d64c95b3
6
+ metadata.gz: 7f6da589c3565dd630b3537baadc9ac68bb8cb53fabafb2efe783eb073a6b326dc0e74507382129d13d3dd47280a36a7d96517e77b1b7331fa242aff4ffa7d73
7
+ data.tar.gz: d12dbbfb2651f303973ac5bd595a28390314c64ebb6b50eba840bcc50f676c12ae578c8836258dc306baedc05edc39184e7c74e1ac7d2572d1e427ea7d3d4488
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-composer_v1beta1
2
2
 
3
+ ### v0.41.0 (2024-02-04)
4
+
5
+ * Regenerated from discovery document revision 20240123
6
+ * Regenerated using generator version 0.13.1
7
+
3
8
  ### v0.40.0 (2024-01-23)
4
9
 
5
10
  * Regenerated from discovery document revision 20240106
@@ -177,6 +177,68 @@ module Google
177
177
  end
178
178
  end
179
179
 
180
+ # Information about a single workload.
181
+ class ComposerWorkload
182
+ include Google::Apis::Core::Hashable
183
+
184
+ # Name of a workload.
185
+ # Corresponds to the JSON property `name`
186
+ # @return [String]
187
+ attr_accessor :name
188
+
189
+ # Workload status.
190
+ # Corresponds to the JSON property `status`
191
+ # @return [Google::Apis::ComposerV1beta1::ComposerWorkloadStatus]
192
+ attr_accessor :status
193
+
194
+ # Type of a workload.
195
+ # Corresponds to the JSON property `type`
196
+ # @return [String]
197
+ attr_accessor :type
198
+
199
+ def initialize(**args)
200
+ update!(**args)
201
+ end
202
+
203
+ # Update properties of this object
204
+ def update!(**args)
205
+ @name = args[:name] if args.key?(:name)
206
+ @status = args[:status] if args.key?(:status)
207
+ @type = args[:type] if args.key?(:type)
208
+ end
209
+ end
210
+
211
+ # Workload status.
212
+ class ComposerWorkloadStatus
213
+ include Google::Apis::Core::Hashable
214
+
215
+ # Output only. Detailed message of the status.
216
+ # Corresponds to the JSON property `detailedStatusMessage`
217
+ # @return [String]
218
+ attr_accessor :detailed_status_message
219
+
220
+ # Output only. Workload state.
221
+ # Corresponds to the JSON property `state`
222
+ # @return [String]
223
+ attr_accessor :state
224
+
225
+ # Output only. Text to provide more descriptive status.
226
+ # Corresponds to the JSON property `statusMessage`
227
+ # @return [String]
228
+ attr_accessor :status_message
229
+
230
+ def initialize(**args)
231
+ update!(**args)
232
+ end
233
+
234
+ # Update properties of this object
235
+ def update!(**args)
236
+ @detailed_status_message = args[:detailed_status_message] if args.key?(:detailed_status_message)
237
+ @state = args[:state] if args.key?(:state)
238
+ @status_message = args[:status_message] if args.key?(:status_message)
239
+ end
240
+ end
241
+
180
242
  # Configuration for resources used by Airflow DAG processors.
181
243
  class DagProcessorResource
182
244
  include Google::Apis::Core::Hashable
@@ -972,6 +1034,81 @@ module Google
972
1034
  end
973
1035
  end
974
1036
 
1037
+ # The user workloads ConfigMaps for a given environment.
1038
+ class ListUserWorkloadsConfigMapsResponse
1039
+ include Google::Apis::Core::Hashable
1040
+
1041
+ # The page token used to query for the next page if one exists.
1042
+ # Corresponds to the JSON property `nextPageToken`
1043
+ # @return [String]
1044
+ attr_accessor :next_page_token
1045
+
1046
+ # The list of ConfigMaps returned by a ListUserWorkloadsConfigMapsRequest.
1047
+ # Corresponds to the JSON property `userWorkloadsConfigMaps`
1048
+ # @return [Array<Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap>]
1049
+ attr_accessor :user_workloads_config_maps
1050
+
1051
+ def initialize(**args)
1052
+ update!(**args)
1053
+ end
1054
+
1055
+ # Update properties of this object
1056
+ def update!(**args)
1057
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1058
+ @user_workloads_config_maps = args[:user_workloads_config_maps] if args.key?(:user_workloads_config_maps)
1059
+ end
1060
+ end
1061
+
1062
+ # The user workloads Secrets for a given environment.
1063
+ class ListUserWorkloadsSecretsResponse
1064
+ include Google::Apis::Core::Hashable
1065
+
1066
+ # The page token used to query for the next page if one exists.
1067
+ # Corresponds to the JSON property `nextPageToken`
1068
+ # @return [String]
1069
+ attr_accessor :next_page_token
1070
+
1071
+ # The list of Secrets returned by a ListUserWorkloadsSecretsRequest.
1072
+ # Corresponds to the JSON property `userWorkloadsSecrets`
1073
+ # @return [Array<Google::Apis::ComposerV1beta1::UserWorkloadsSecret>]
1074
+ attr_accessor :user_workloads_secrets
1075
+
1076
+ def initialize(**args)
1077
+ update!(**args)
1078
+ end
1079
+
1080
+ # Update properties of this object
1081
+ def update!(**args)
1082
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1083
+ @user_workloads_secrets = args[:user_workloads_secrets] if args.key?(:user_workloads_secrets)
1084
+ end
1085
+ end
1086
+
1087
+ # Response to ListWorkloadsRequest.
1088
+ class ListWorkloadsResponse
1089
+ include Google::Apis::Core::Hashable
1090
+
1091
+ # The page token used to query for the next page if one exists.
1092
+ # Corresponds to the JSON property `nextPageToken`
1093
+ # @return [String]
1094
+ attr_accessor :next_page_token
1095
+
1096
+ # The list of environment workloads.
1097
+ # Corresponds to the JSON property `workloads`
1098
+ # @return [Array<Google::Apis::ComposerV1beta1::ComposerWorkload>]
1099
+ attr_accessor :workloads
1100
+
1101
+ def initialize(**args)
1102
+ update!(**args)
1103
+ end
1104
+
1105
+ # Update properties of this object
1106
+ def update!(**args)
1107
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1108
+ @workloads = args[:workloads] if args.key?(:workloads)
1109
+ end
1110
+ end
1111
+
975
1112
  # Request to load a snapshot into a Cloud Composer environment.
976
1113
  class LoadSnapshotRequest
977
1114
  include Google::Apis::Core::Hashable
@@ -2058,6 +2195,67 @@ module Google
2058
2195
  end
2059
2196
  end
2060
2197
 
2198
+ # User workloads ConfigMap used by Airflow tasks that run with Kubernetes
2199
+ # executor or KubernetesPodOperator.
2200
+ class UserWorkloadsConfigMap
2201
+ include Google::Apis::Core::Hashable
2202
+
2203
+ # Optional. The "data" field of Kubernetes ConfigMap, organized in key-value
2204
+ # pairs. For details see: https://kubernetes.io/docs/concepts/configuration/
2205
+ # configmap/
2206
+ # Corresponds to the JSON property `data`
2207
+ # @return [Hash<String,String>]
2208
+ attr_accessor :data
2209
+
2210
+ # Identifier. The resource name of the ConfigMap, in the form: "projects/`
2211
+ # projectId`/locations/`locationId`/environments/`environmentId`/
2212
+ # userWorkloadsConfigMaps/`userWorkloadsConfigMapId`"
2213
+ # Corresponds to the JSON property `name`
2214
+ # @return [String]
2215
+ attr_accessor :name
2216
+
2217
+ def initialize(**args)
2218
+ update!(**args)
2219
+ end
2220
+
2221
+ # Update properties of this object
2222
+ def update!(**args)
2223
+ @data = args[:data] if args.key?(:data)
2224
+ @name = args[:name] if args.key?(:name)
2225
+ end
2226
+ end
2227
+
2228
+ # User workloads Secret used by Airflow tasks that run with Kubernetes executor
2229
+ # or KubernetesPodOperator.
2230
+ class UserWorkloadsSecret
2231
+ include Google::Apis::Core::Hashable
2232
+
2233
+ # Optional. The "data" field of Kubernetes Secret, organized in key-value pairs,
2234
+ # which can contain sensitive values such as a password, a token, or a key. The
2235
+ # values for all keys have to be base64-encoded strings. For details see: https:/
2236
+ # /kubernetes.io/docs/concepts/configuration/secret/
2237
+ # Corresponds to the JSON property `data`
2238
+ # @return [Hash<String,String>]
2239
+ attr_accessor :data
2240
+
2241
+ # Identifier. The resource name of the Secret, in the form: "projects/`projectId`
2242
+ # /locations/`locationId`/environments/`environmentId`/userWorkloadsSecrets/`
2243
+ # userWorkloadsSecretId`"
2244
+ # Corresponds to the JSON property `name`
2245
+ # @return [String]
2246
+ attr_accessor :name
2247
+
2248
+ def initialize(**args)
2249
+ update!(**args)
2250
+ end
2251
+
2252
+ # Update properties of this object
2253
+ def update!(**args)
2254
+ @data = args[:data] if args.key?(:data)
2255
+ @name = args[:name] if args.key?(:name)
2256
+ end
2257
+ end
2258
+
2061
2259
  # The configuration settings for the Airflow web server App Engine instance.
2062
2260
  # Supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.
2063
2261
  # *.*.
@@ -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.40.0"
19
+ GEM_VERSION = "0.41.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.13.0"
22
+ GENERATOR_VERSION = "0.13.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240106"
25
+ REVISION = "20240123"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,18 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class ComposerWorkload
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ComposerWorkloadStatus
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
55
67
  class DagProcessorResource
56
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
69
 
@@ -172,6 +184,24 @@ module Google
172
184
  include Google::Apis::Core::JsonObjectSupport
173
185
  end
174
186
 
187
+ class ListUserWorkloadsConfigMapsResponse
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class ListUserWorkloadsSecretsResponse
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class ListWorkloadsResponse
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
175
205
  class LoadSnapshotRequest
176
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
207
 
@@ -322,6 +352,18 @@ module Google
322
352
  include Google::Apis::Core::JsonObjectSupport
323
353
  end
324
354
 
355
+ class UserWorkloadsConfigMap
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
361
+ class UserWorkloadsSecret
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
325
367
  class WebServerConfig
326
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
327
369
 
@@ -393,6 +435,25 @@ module Google
393
435
  end
394
436
  end
395
437
 
438
+ class ComposerWorkload
439
+ # @private
440
+ class Representation < Google::Apis::Core::JsonRepresentation
441
+ property :name, as: 'name'
442
+ property :status, as: 'status', class: Google::Apis::ComposerV1beta1::ComposerWorkloadStatus, decorator: Google::Apis::ComposerV1beta1::ComposerWorkloadStatus::Representation
443
+
444
+ property :type, as: 'type'
445
+ end
446
+ end
447
+
448
+ class ComposerWorkloadStatus
449
+ # @private
450
+ class Representation < Google::Apis::Core::JsonRepresentation
451
+ property :detailed_status_message, as: 'detailedStatusMessage'
452
+ property :state, as: 'state'
453
+ property :status_message, as: 'statusMessage'
454
+ end
455
+ end
456
+
396
457
  class DagProcessorResource
397
458
  # @private
398
459
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -602,6 +663,33 @@ module Google
602
663
  end
603
664
  end
604
665
 
666
+ class ListUserWorkloadsConfigMapsResponse
667
+ # @private
668
+ class Representation < Google::Apis::Core::JsonRepresentation
669
+ property :next_page_token, as: 'nextPageToken'
670
+ collection :user_workloads_config_maps, as: 'userWorkloadsConfigMaps', class: Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap, decorator: Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap::Representation
671
+
672
+ end
673
+ end
674
+
675
+ class ListUserWorkloadsSecretsResponse
676
+ # @private
677
+ class Representation < Google::Apis::Core::JsonRepresentation
678
+ property :next_page_token, as: 'nextPageToken'
679
+ collection :user_workloads_secrets, as: 'userWorkloadsSecrets', class: Google::Apis::ComposerV1beta1::UserWorkloadsSecret, decorator: Google::Apis::ComposerV1beta1::UserWorkloadsSecret::Representation
680
+
681
+ end
682
+ end
683
+
684
+ class ListWorkloadsResponse
685
+ # @private
686
+ class Representation < Google::Apis::Core::JsonRepresentation
687
+ property :next_page_token, as: 'nextPageToken'
688
+ collection :workloads, as: 'workloads', class: Google::Apis::ComposerV1beta1::ComposerWorkload, decorator: Google::Apis::ComposerV1beta1::ComposerWorkload::Representation
689
+
690
+ end
691
+ end
692
+
605
693
  class LoadSnapshotRequest
606
694
  # @private
607
695
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -850,6 +938,22 @@ module Google
850
938
  end
851
939
  end
852
940
 
941
+ class UserWorkloadsConfigMap
942
+ # @private
943
+ class Representation < Google::Apis::Core::JsonRepresentation
944
+ hash :data, as: 'data'
945
+ property :name, as: 'name'
946
+ end
947
+ end
948
+
949
+ class UserWorkloadsSecret
950
+ # @private
951
+ class Representation < Google::Apis::Core::JsonRepresentation
952
+ hash :data, as: 'data'
953
+ property :name, as: 'name'
954
+ end
955
+ end
956
+
853
957
  class WebServerConfig
854
958
  # @private
855
959
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -612,6 +612,406 @@ module Google
612
612
  execute_or_queue_command(command, &block)
613
613
  end
614
614
 
615
+ # Creates a user workloads ConfigMap. This method is supported for Cloud
616
+ # Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.
617
+ # @param [String] parent
618
+ # Required. The environment name to create a ConfigMap for, in the form: "
619
+ # projects/`projectId`/locations/`locationId`/environments/`environmentId`"
620
+ # @param [Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap] user_workloads_config_map_object
621
+ # @param [String] fields
622
+ # Selector specifying which fields to include in a partial response.
623
+ # @param [String] quota_user
624
+ # Available to use for quota purposes for server-side applications. Can be any
625
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
626
+ # @param [Google::Apis::RequestOptions] options
627
+ # Request-specific options
628
+ #
629
+ # @yield [result, err] Result & error if block supplied
630
+ # @yieldparam result [Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap] parsed result object
631
+ # @yieldparam err [StandardError] error object if request failed
632
+ #
633
+ # @return [Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap]
634
+ #
635
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
636
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
637
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
638
+ def create_project_location_environment_user_workloads_config_map(parent, user_workloads_config_map_object = nil, fields: nil, quota_user: nil, options: nil, &block)
639
+ command = make_simple_command(:post, 'v1beta1/{+parent}/userWorkloadsConfigMaps', options)
640
+ command.request_representation = Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap::Representation
641
+ command.request_object = user_workloads_config_map_object
642
+ command.response_representation = Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap::Representation
643
+ command.response_class = Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap
644
+ command.params['parent'] = parent unless parent.nil?
645
+ command.query['fields'] = fields unless fields.nil?
646
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
647
+ execute_or_queue_command(command, &block)
648
+ end
649
+
650
+ # Deletes a user workloads ConfigMap. This method is supported for Cloud
651
+ # Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.
652
+ # @param [String] name
653
+ # Required. The ConfigMap to delete, in the form: "projects/`projectId`/
654
+ # locations/`locationId`/environments/`environmentId`/userWorkloadsConfigMaps/`
655
+ # userWorkloadsConfigMapId`"
656
+ # @param [String] fields
657
+ # Selector specifying which fields to include in a partial response.
658
+ # @param [String] quota_user
659
+ # Available to use for quota purposes for server-side applications. Can be any
660
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
661
+ # @param [Google::Apis::RequestOptions] options
662
+ # Request-specific options
663
+ #
664
+ # @yield [result, err] Result & error if block supplied
665
+ # @yieldparam result [Google::Apis::ComposerV1beta1::Empty] parsed result object
666
+ # @yieldparam err [StandardError] error object if request failed
667
+ #
668
+ # @return [Google::Apis::ComposerV1beta1::Empty]
669
+ #
670
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
671
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
672
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
673
+ def delete_project_location_environment_user_workloads_config_map(name, fields: nil, quota_user: nil, options: nil, &block)
674
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
675
+ command.response_representation = Google::Apis::ComposerV1beta1::Empty::Representation
676
+ command.response_class = Google::Apis::ComposerV1beta1::Empty
677
+ command.params['name'] = name unless name.nil?
678
+ command.query['fields'] = fields unless fields.nil?
679
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
680
+ execute_or_queue_command(command, &block)
681
+ end
682
+
683
+ # Gets an existing user workloads ConfigMap. This method is supported for Cloud
684
+ # Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.
685
+ # @param [String] name
686
+ # Required. The resource name of the ConfigMap to get, in the form: "projects/`
687
+ # projectId`/locations/`locationId`/environments/`environmentId`/
688
+ # userWorkloadsConfigMaps/`userWorkloadsConfigMapId`"
689
+ # @param [String] fields
690
+ # Selector specifying which fields to include in a partial response.
691
+ # @param [String] quota_user
692
+ # Available to use for quota purposes for server-side applications. Can be any
693
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
694
+ # @param [Google::Apis::RequestOptions] options
695
+ # Request-specific options
696
+ #
697
+ # @yield [result, err] Result & error if block supplied
698
+ # @yieldparam result [Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap] parsed result object
699
+ # @yieldparam err [StandardError] error object if request failed
700
+ #
701
+ # @return [Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap]
702
+ #
703
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
704
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
705
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
706
+ def get_project_location_environment_user_workloads_config_map(name, fields: nil, quota_user: nil, options: nil, &block)
707
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
708
+ command.response_representation = Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap::Representation
709
+ command.response_class = Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap
710
+ command.params['name'] = name unless name.nil?
711
+ command.query['fields'] = fields unless fields.nil?
712
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
713
+ execute_or_queue_command(command, &block)
714
+ end
715
+
716
+ # Lists user workloads ConfigMaps. This method is supported for Cloud Composer
717
+ # environments in versions composer-3.*.*-airflow-*.*.* and newer.
718
+ # @param [String] parent
719
+ # Required. List ConfigMaps in the given environment, in the form: "projects/`
720
+ # projectId`/locations/`locationId`/environments/`environmentId`"
721
+ # @param [Fixnum] page_size
722
+ # Optional. The maximum number of ConfigMaps to return.
723
+ # @param [String] page_token
724
+ # Optional. The next_page_token value returned from a previous List request, if
725
+ # any.
726
+ # @param [String] fields
727
+ # Selector specifying which fields to include in a partial response.
728
+ # @param [String] quota_user
729
+ # Available to use for quota purposes for server-side applications. Can be any
730
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
731
+ # @param [Google::Apis::RequestOptions] options
732
+ # Request-specific options
733
+ #
734
+ # @yield [result, err] Result & error if block supplied
735
+ # @yieldparam result [Google::Apis::ComposerV1beta1::ListUserWorkloadsConfigMapsResponse] parsed result object
736
+ # @yieldparam err [StandardError] error object if request failed
737
+ #
738
+ # @return [Google::Apis::ComposerV1beta1::ListUserWorkloadsConfigMapsResponse]
739
+ #
740
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
741
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
742
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
743
+ def list_project_location_environment_user_workloads_config_maps(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
744
+ command = make_simple_command(:get, 'v1beta1/{+parent}/userWorkloadsConfigMaps', options)
745
+ command.response_representation = Google::Apis::ComposerV1beta1::ListUserWorkloadsConfigMapsResponse::Representation
746
+ command.response_class = Google::Apis::ComposerV1beta1::ListUserWorkloadsConfigMapsResponse
747
+ command.params['parent'] = parent unless parent.nil?
748
+ command.query['pageSize'] = page_size unless page_size.nil?
749
+ command.query['pageToken'] = page_token unless page_token.nil?
750
+ command.query['fields'] = fields unless fields.nil?
751
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
752
+ execute_or_queue_command(command, &block)
753
+ end
754
+
755
+ # Updates a user workloads ConfigMap. This method is supported for Cloud
756
+ # Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.
757
+ # @param [String] name
758
+ # Identifier. The resource name of the ConfigMap, in the form: "projects/`
759
+ # projectId`/locations/`locationId`/environments/`environmentId`/
760
+ # userWorkloadsConfigMaps/`userWorkloadsConfigMapId`"
761
+ # @param [Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap] user_workloads_config_map_object
762
+ # @param [String] fields
763
+ # Selector specifying which fields to include in a partial response.
764
+ # @param [String] quota_user
765
+ # Available to use for quota purposes for server-side applications. Can be any
766
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
767
+ # @param [Google::Apis::RequestOptions] options
768
+ # Request-specific options
769
+ #
770
+ # @yield [result, err] Result & error if block supplied
771
+ # @yieldparam result [Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap] parsed result object
772
+ # @yieldparam err [StandardError] error object if request failed
773
+ #
774
+ # @return [Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap]
775
+ #
776
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
777
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
778
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
779
+ def update_project_location_environment_user_workloads_config_map(name, user_workloads_config_map_object = nil, fields: nil, quota_user: nil, options: nil, &block)
780
+ command = make_simple_command(:put, 'v1beta1/{+name}', options)
781
+ command.request_representation = Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap::Representation
782
+ command.request_object = user_workloads_config_map_object
783
+ command.response_representation = Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap::Representation
784
+ command.response_class = Google::Apis::ComposerV1beta1::UserWorkloadsConfigMap
785
+ command.params['name'] = name unless name.nil?
786
+ command.query['fields'] = fields unless fields.nil?
787
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
788
+ execute_or_queue_command(command, &block)
789
+ end
790
+
791
+ # Creates a user workloads Secret. This method is supported for Cloud Composer
792
+ # environments in versions composer-3.*.*-airflow-*.*.* and newer.
793
+ # @param [String] parent
794
+ # Required. The environment name to create a Secret for, in the form: "projects/`
795
+ # projectId`/locations/`locationId`/environments/`environmentId`"
796
+ # @param [Google::Apis::ComposerV1beta1::UserWorkloadsSecret] user_workloads_secret_object
797
+ # @param [String] fields
798
+ # Selector specifying which fields to include in a partial response.
799
+ # @param [String] quota_user
800
+ # Available to use for quota purposes for server-side applications. Can be any
801
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
802
+ # @param [Google::Apis::RequestOptions] options
803
+ # Request-specific options
804
+ #
805
+ # @yield [result, err] Result & error if block supplied
806
+ # @yieldparam result [Google::Apis::ComposerV1beta1::UserWorkloadsSecret] parsed result object
807
+ # @yieldparam err [StandardError] error object if request failed
808
+ #
809
+ # @return [Google::Apis::ComposerV1beta1::UserWorkloadsSecret]
810
+ #
811
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
812
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
813
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
814
+ def create_project_location_environment_user_workloads_secret(parent, user_workloads_secret_object = nil, fields: nil, quota_user: nil, options: nil, &block)
815
+ command = make_simple_command(:post, 'v1beta1/{+parent}/userWorkloadsSecrets', options)
816
+ command.request_representation = Google::Apis::ComposerV1beta1::UserWorkloadsSecret::Representation
817
+ command.request_object = user_workloads_secret_object
818
+ command.response_representation = Google::Apis::ComposerV1beta1::UserWorkloadsSecret::Representation
819
+ command.response_class = Google::Apis::ComposerV1beta1::UserWorkloadsSecret
820
+ command.params['parent'] = parent unless parent.nil?
821
+ command.query['fields'] = fields unless fields.nil?
822
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
823
+ execute_or_queue_command(command, &block)
824
+ end
825
+
826
+ # Deletes a user workloads Secret. This method is supported for Cloud Composer
827
+ # environments in versions composer-3.*.*-airflow-*.*.* and newer.
828
+ # @param [String] name
829
+ # Required. The Secret to delete, in the form: "projects/`projectId`/locations/`
830
+ # locationId`/environments/`environmentId`/userWorkloadsSecrets/`
831
+ # userWorkloadsSecretId`"
832
+ # @param [String] fields
833
+ # Selector specifying which fields to include in a partial response.
834
+ # @param [String] quota_user
835
+ # Available to use for quota purposes for server-side applications. Can be any
836
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
837
+ # @param [Google::Apis::RequestOptions] options
838
+ # Request-specific options
839
+ #
840
+ # @yield [result, err] Result & error if block supplied
841
+ # @yieldparam result [Google::Apis::ComposerV1beta1::Empty] parsed result object
842
+ # @yieldparam err [StandardError] error object if request failed
843
+ #
844
+ # @return [Google::Apis::ComposerV1beta1::Empty]
845
+ #
846
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
847
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
848
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
849
+ def delete_project_location_environment_user_workloads_secret(name, fields: nil, quota_user: nil, options: nil, &block)
850
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
851
+ command.response_representation = Google::Apis::ComposerV1beta1::Empty::Representation
852
+ command.response_class = Google::Apis::ComposerV1beta1::Empty
853
+ command.params['name'] = name unless name.nil?
854
+ command.query['fields'] = fields unless fields.nil?
855
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
856
+ execute_or_queue_command(command, &block)
857
+ end
858
+
859
+ # Gets an existing user workloads Secret. Values of the "data" field in the
860
+ # response are cleared. This method is supported for Cloud Composer environments
861
+ # in versions composer-3.*.*-airflow-*.*.* and newer.
862
+ # @param [String] name
863
+ # Required. The resource name of the Secret to get, in the form: "projects/`
864
+ # projectId`/locations/`locationId`/environments/`environmentId`/
865
+ # userWorkloadsSecrets/`userWorkloadsSecretId`"
866
+ # @param [String] fields
867
+ # Selector specifying which fields to include in a partial response.
868
+ # @param [String] quota_user
869
+ # Available to use for quota purposes for server-side applications. Can be any
870
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
871
+ # @param [Google::Apis::RequestOptions] options
872
+ # Request-specific options
873
+ #
874
+ # @yield [result, err] Result & error if block supplied
875
+ # @yieldparam result [Google::Apis::ComposerV1beta1::UserWorkloadsSecret] parsed result object
876
+ # @yieldparam err [StandardError] error object if request failed
877
+ #
878
+ # @return [Google::Apis::ComposerV1beta1::UserWorkloadsSecret]
879
+ #
880
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
881
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
882
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
883
+ def get_project_location_environment_user_workloads_secret(name, fields: nil, quota_user: nil, options: nil, &block)
884
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
885
+ command.response_representation = Google::Apis::ComposerV1beta1::UserWorkloadsSecret::Representation
886
+ command.response_class = Google::Apis::ComposerV1beta1::UserWorkloadsSecret
887
+ command.params['name'] = name unless name.nil?
888
+ command.query['fields'] = fields unless fields.nil?
889
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
890
+ execute_or_queue_command(command, &block)
891
+ end
892
+
893
+ # Lists user workloads Secrets. This method is supported for Cloud Composer
894
+ # environments in versions composer-3.*.*-airflow-*.*.* and newer.
895
+ # @param [String] parent
896
+ # Required. List Secrets in the given environment, in the form: "projects/`
897
+ # projectId`/locations/`locationId`/environments/`environmentId`"
898
+ # @param [Fixnum] page_size
899
+ # Optional. The maximum number of Secrets to return.
900
+ # @param [String] page_token
901
+ # Optional. The next_page_token value returned from a previous List request, if
902
+ # any.
903
+ # @param [String] fields
904
+ # Selector specifying which fields to include in a partial response.
905
+ # @param [String] quota_user
906
+ # Available to use for quota purposes for server-side applications. Can be any
907
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
908
+ # @param [Google::Apis::RequestOptions] options
909
+ # Request-specific options
910
+ #
911
+ # @yield [result, err] Result & error if block supplied
912
+ # @yieldparam result [Google::Apis::ComposerV1beta1::ListUserWorkloadsSecretsResponse] parsed result object
913
+ # @yieldparam err [StandardError] error object if request failed
914
+ #
915
+ # @return [Google::Apis::ComposerV1beta1::ListUserWorkloadsSecretsResponse]
916
+ #
917
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
918
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
919
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
920
+ def list_project_location_environment_user_workloads_secrets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
921
+ command = make_simple_command(:get, 'v1beta1/{+parent}/userWorkloadsSecrets', options)
922
+ command.response_representation = Google::Apis::ComposerV1beta1::ListUserWorkloadsSecretsResponse::Representation
923
+ command.response_class = Google::Apis::ComposerV1beta1::ListUserWorkloadsSecretsResponse
924
+ command.params['parent'] = parent unless parent.nil?
925
+ command.query['pageSize'] = page_size unless page_size.nil?
926
+ command.query['pageToken'] = page_token unless page_token.nil?
927
+ command.query['fields'] = fields unless fields.nil?
928
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
929
+ execute_or_queue_command(command, &block)
930
+ end
931
+
932
+ # Updates a user workloads Secret. This method is supported for Cloud Composer
933
+ # environments in versions composer-3.*.*-airflow-*.*.* and newer.
934
+ # @param [String] name
935
+ # Identifier. The resource name of the Secret, in the form: "projects/`projectId`
936
+ # /locations/`locationId`/environments/`environmentId`/userWorkloadsSecrets/`
937
+ # userWorkloadsSecretId`"
938
+ # @param [Google::Apis::ComposerV1beta1::UserWorkloadsSecret] user_workloads_secret_object
939
+ # @param [String] fields
940
+ # Selector specifying which fields to include in a partial response.
941
+ # @param [String] quota_user
942
+ # Available to use for quota purposes for server-side applications. Can be any
943
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
944
+ # @param [Google::Apis::RequestOptions] options
945
+ # Request-specific options
946
+ #
947
+ # @yield [result, err] Result & error if block supplied
948
+ # @yieldparam result [Google::Apis::ComposerV1beta1::UserWorkloadsSecret] parsed result object
949
+ # @yieldparam err [StandardError] error object if request failed
950
+ #
951
+ # @return [Google::Apis::ComposerV1beta1::UserWorkloadsSecret]
952
+ #
953
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
954
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
955
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
956
+ def update_project_location_environment_user_workloads_secret(name, user_workloads_secret_object = nil, fields: nil, quota_user: nil, options: nil, &block)
957
+ command = make_simple_command(:put, 'v1beta1/{+name}', options)
958
+ command.request_representation = Google::Apis::ComposerV1beta1::UserWorkloadsSecret::Representation
959
+ command.request_object = user_workloads_secret_object
960
+ command.response_representation = Google::Apis::ComposerV1beta1::UserWorkloadsSecret::Representation
961
+ command.response_class = Google::Apis::ComposerV1beta1::UserWorkloadsSecret
962
+ command.params['name'] = name unless name.nil?
963
+ command.query['fields'] = fields unless fields.nil?
964
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
965
+ execute_or_queue_command(command, &block)
966
+ end
967
+
968
+ # Lists workloads in a Cloud Composer environment. Workload is a unit that runs
969
+ # a single Composer component. This method is supported for Cloud Composer
970
+ # environments in versions composer-3.*.*-airflow-*.*.* and newer.
971
+ # @param [String] parent
972
+ # Required. The environment name to get workloads for, in the form: "projects/`
973
+ # projectId`/locations/`locationId`/environments/`environmentId`"
974
+ # @param [String] filter
975
+ # Optional. The list filter. Currently only supports equality on the type field.
976
+ # The value of a field specified in the filter expression must be one
977
+ # ComposerWorkloadType enum option. It's possible to get multiple types using "
978
+ # OR" operator, e.g.: "type=SCHEDULER OR type=CELERY_WORKER". If not specified,
979
+ # all items are returned.
980
+ # @param [Fixnum] page_size
981
+ # Optional. The maximum number of environments to return.
982
+ # @param [String] page_token
983
+ # Optional. The next_page_token value returned from a previous List request, if
984
+ # any.
985
+ # @param [String] fields
986
+ # Selector specifying which fields to include in a partial response.
987
+ # @param [String] quota_user
988
+ # Available to use for quota purposes for server-side applications. Can be any
989
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
990
+ # @param [Google::Apis::RequestOptions] options
991
+ # Request-specific options
992
+ #
993
+ # @yield [result, err] Result & error if block supplied
994
+ # @yieldparam result [Google::Apis::ComposerV1beta1::ListWorkloadsResponse] parsed result object
995
+ # @yieldparam err [StandardError] error object if request failed
996
+ #
997
+ # @return [Google::Apis::ComposerV1beta1::ListWorkloadsResponse]
998
+ #
999
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1000
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1001
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1002
+ def list_project_location_environment_workloads(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1003
+ command = make_simple_command(:get, 'v1beta1/{+parent}/workloads', options)
1004
+ command.response_representation = Google::Apis::ComposerV1beta1::ListWorkloadsResponse::Representation
1005
+ command.response_class = Google::Apis::ComposerV1beta1::ListWorkloadsResponse
1006
+ command.params['parent'] = parent unless parent.nil?
1007
+ command.query['filter'] = filter unless filter.nil?
1008
+ command.query['pageSize'] = page_size unless page_size.nil?
1009
+ command.query['pageToken'] = page_token unless page_token.nil?
1010
+ command.query['fields'] = fields unless fields.nil?
1011
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1012
+ execute_or_queue_command(command, &block)
1013
+ end
1014
+
615
1015
  # List ImageVersions for provided location.
616
1016
  # @param [String] parent
617
1017
  # 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.40.0
4
+ version: 0.41.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: 2024-01-23 00:00:00.000000000 Z
11
+ date: 2024-02-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.40.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1beta1/v0.41.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: []