google-apis-composer_v1 0.42.0 → 0.43.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: c3dd65a836d714cfc14d3c6f7554f441860b6af711e9f06a47bd70a39aaac83e
4
- data.tar.gz: e21c16f9eb50cca09c1d7d426dcbffb1912fcd432fd128b4eca3b9d1395617e7
3
+ metadata.gz: 251a7d0845e9e3498eae30276130cc260985bae0ad86a2465df2c8d3a6b4e401
4
+ data.tar.gz: aa49ef060aa21f72d84414a25d63c9bd46581258eadfb5d796ccb908939ae69c
5
5
  SHA512:
6
- metadata.gz: 2ecc8c07a8f417e5adee128442561ada55e7d460f0aed1fdd1b98f32f01775f42c059676e4e8fd40f145ac9495346cc0e820a96f49d99e2b25482b61280a04be
7
- data.tar.gz: faa08bbe1d38bbd4e890f6bf754bf43720a0d07c5889dd5423948fb7a7c43ea4960d9bd6055e733988ba317abcd8ad3ec41d8e78316ffd4d3a4aa656b6b787fb
6
+ metadata.gz: 03531df26aa79dd2e424166f6f2eb6043972383de31bb09157c7a52a171666e2b4b631b4917905988dbbb9e00207aba1b737e58eee4cdeeda912e0135f59fa7e
7
+ data.tar.gz: 6cb38cf74edb56f3bafc4b2e0ace4cf840fd606449bb514a01ac7f7c1b6f07156b161c97306a4292a5029cda9621d8a07efc30150bc13593e3fc1efb36ec890d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-composer_v1
2
2
 
3
+ ### v0.43.0 (2024-02-11)
4
+
5
+ * Regenerated from discovery document revision 20240204
6
+
3
7
  ### v0.42.0 (2024-02-04)
4
8
 
5
9
  * Regenerated from discovery document revision 20240123
@@ -994,6 +994,56 @@ module Google
994
994
  end
995
995
  end
996
996
 
997
+ # The user workloads ConfigMaps for a given environment.
998
+ class ListUserWorkloadsConfigMapsResponse
999
+ include Google::Apis::Core::Hashable
1000
+
1001
+ # The page token used to query for the next page if one exists.
1002
+ # Corresponds to the JSON property `nextPageToken`
1003
+ # @return [String]
1004
+ attr_accessor :next_page_token
1005
+
1006
+ # The list of ConfigMaps returned by a ListUserWorkloadsConfigMapsRequest.
1007
+ # Corresponds to the JSON property `userWorkloadsConfigMaps`
1008
+ # @return [Array<Google::Apis::ComposerV1::UserWorkloadsConfigMap>]
1009
+ attr_accessor :user_workloads_config_maps
1010
+
1011
+ def initialize(**args)
1012
+ update!(**args)
1013
+ end
1014
+
1015
+ # Update properties of this object
1016
+ def update!(**args)
1017
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1018
+ @user_workloads_config_maps = args[:user_workloads_config_maps] if args.key?(:user_workloads_config_maps)
1019
+ end
1020
+ end
1021
+
1022
+ # The user workloads Secrets for a given environment.
1023
+ class ListUserWorkloadsSecretsResponse
1024
+ include Google::Apis::Core::Hashable
1025
+
1026
+ # The page token used to query for the next page if one exists.
1027
+ # Corresponds to the JSON property `nextPageToken`
1028
+ # @return [String]
1029
+ attr_accessor :next_page_token
1030
+
1031
+ # The list of Secrets returned by a ListUserWorkloadsSecretsRequest.
1032
+ # Corresponds to the JSON property `userWorkloadsSecrets`
1033
+ # @return [Array<Google::Apis::ComposerV1::UserWorkloadsSecret>]
1034
+ attr_accessor :user_workloads_secrets
1035
+
1036
+ def initialize(**args)
1037
+ update!(**args)
1038
+ end
1039
+
1040
+ # Update properties of this object
1041
+ def update!(**args)
1042
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1043
+ @user_workloads_secrets = args[:user_workloads_secrets] if args.key?(:user_workloads_secrets)
1044
+ end
1045
+ end
1046
+
997
1047
  # Response to ListWorkloadsRequest.
998
1048
  class ListWorkloadsResponse
999
1049
  include Google::Apis::Core::Hashable
@@ -2079,6 +2129,67 @@ module Google
2079
2129
  end
2080
2130
  end
2081
2131
 
2132
+ # User workloads ConfigMap used by Airflow tasks that run with Kubernetes
2133
+ # executor or KubernetesPodOperator.
2134
+ class UserWorkloadsConfigMap
2135
+ include Google::Apis::Core::Hashable
2136
+
2137
+ # Optional. The "data" field of Kubernetes ConfigMap, organized in key-value
2138
+ # pairs. For details see: https://kubernetes.io/docs/concepts/configuration/
2139
+ # configmap/
2140
+ # Corresponds to the JSON property `data`
2141
+ # @return [Hash<String,String>]
2142
+ attr_accessor :data
2143
+
2144
+ # Identifier. The resource name of the ConfigMap, in the form: "projects/`
2145
+ # projectId`/locations/`locationId`/environments/`environmentId`/
2146
+ # userWorkloadsConfigMaps/`userWorkloadsConfigMapId`"
2147
+ # Corresponds to the JSON property `name`
2148
+ # @return [String]
2149
+ attr_accessor :name
2150
+
2151
+ def initialize(**args)
2152
+ update!(**args)
2153
+ end
2154
+
2155
+ # Update properties of this object
2156
+ def update!(**args)
2157
+ @data = args[:data] if args.key?(:data)
2158
+ @name = args[:name] if args.key?(:name)
2159
+ end
2160
+ end
2161
+
2162
+ # User workloads Secret used by Airflow tasks that run with Kubernetes executor
2163
+ # or KubernetesPodOperator.
2164
+ class UserWorkloadsSecret
2165
+ include Google::Apis::Core::Hashable
2166
+
2167
+ # Optional. The "data" field of Kubernetes Secret, organized in key-value pairs,
2168
+ # which can contain sensitive values such as a password, a token, or a key. The
2169
+ # values for all keys have to be base64-encoded strings. For details see: https:/
2170
+ # /kubernetes.io/docs/concepts/configuration/secret/
2171
+ # Corresponds to the JSON property `data`
2172
+ # @return [Hash<String,String>]
2173
+ attr_accessor :data
2174
+
2175
+ # Identifier. The resource name of the Secret, in the form: "projects/`projectId`
2176
+ # /locations/`locationId`/environments/`environmentId`/userWorkloadsSecrets/`
2177
+ # userWorkloadsSecretId`"
2178
+ # Corresponds to the JSON property `name`
2179
+ # @return [String]
2180
+ attr_accessor :name
2181
+
2182
+ def initialize(**args)
2183
+ update!(**args)
2184
+ end
2185
+
2186
+ # Update properties of this object
2187
+ def update!(**args)
2188
+ @data = args[:data] if args.key?(:data)
2189
+ @name = args[:name] if args.key?(:name)
2190
+ end
2191
+ end
2192
+
2082
2193
  # The configuration settings for the Airflow web server App Engine instance.
2083
2194
  # Supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.
2084
2195
  # *.*
@@ -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.42.0"
19
+ GEM_VERSION = "0.43.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.13.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240123"
25
+ REVISION = "20240204"
26
26
  end
27
27
  end
28
28
  end
@@ -178,6 +178,18 @@ module Google
178
178
  include Google::Apis::Core::JsonObjectSupport
179
179
  end
180
180
 
181
+ class ListUserWorkloadsConfigMapsResponse
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class ListUserWorkloadsSecretsResponse
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
181
193
  class ListWorkloadsResponse
182
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
195
 
@@ -328,6 +340,18 @@ module Google
328
340
  include Google::Apis::Core::JsonObjectSupport
329
341
  end
330
342
 
343
+ class UserWorkloadsConfigMap
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
349
+ class UserWorkloadsSecret
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
331
355
  class WebServerConfig
332
356
  class Representation < Google::Apis::Core::JsonRepresentation; end
333
357
 
@@ -620,6 +644,24 @@ module Google
620
644
  end
621
645
  end
622
646
 
647
+ class ListUserWorkloadsConfigMapsResponse
648
+ # @private
649
+ class Representation < Google::Apis::Core::JsonRepresentation
650
+ property :next_page_token, as: 'nextPageToken'
651
+ collection :user_workloads_config_maps, as: 'userWorkloadsConfigMaps', class: Google::Apis::ComposerV1::UserWorkloadsConfigMap, decorator: Google::Apis::ComposerV1::UserWorkloadsConfigMap::Representation
652
+
653
+ end
654
+ end
655
+
656
+ class ListUserWorkloadsSecretsResponse
657
+ # @private
658
+ class Representation < Google::Apis::Core::JsonRepresentation
659
+ property :next_page_token, as: 'nextPageToken'
660
+ collection :user_workloads_secrets, as: 'userWorkloadsSecrets', class: Google::Apis::ComposerV1::UserWorkloadsSecret, decorator: Google::Apis::ComposerV1::UserWorkloadsSecret::Representation
661
+
662
+ end
663
+ end
664
+
623
665
  class ListWorkloadsResponse
624
666
  # @private
625
667
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -870,6 +912,22 @@ module Google
870
912
  end
871
913
  end
872
914
 
915
+ class UserWorkloadsConfigMap
916
+ # @private
917
+ class Representation < Google::Apis::Core::JsonRepresentation
918
+ hash :data, as: 'data'
919
+ property :name, as: 'name'
920
+ end
921
+ end
922
+
923
+ class UserWorkloadsSecret
924
+ # @private
925
+ class Representation < Google::Apis::Core::JsonRepresentation
926
+ hash :data, as: 'data'
927
+ property :name, as: 'name'
928
+ end
929
+ end
930
+
873
931
  class WebServerConfig
874
932
  # @private
875
933
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -527,6 +527,359 @@ module Google
527
527
  execute_or_queue_command(command, &block)
528
528
  end
529
529
 
530
+ # Creates a user workloads ConfigMap. This method is supported for Cloud
531
+ # Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.
532
+ # @param [String] parent
533
+ # Required. The environment name to create a ConfigMap for, in the form: "
534
+ # projects/`projectId`/locations/`locationId`/environments/`environmentId`"
535
+ # @param [Google::Apis::ComposerV1::UserWorkloadsConfigMap] user_workloads_config_map_object
536
+ # @param [String] fields
537
+ # Selector specifying which fields to include in a partial response.
538
+ # @param [String] quota_user
539
+ # Available to use for quota purposes for server-side applications. Can be any
540
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
541
+ # @param [Google::Apis::RequestOptions] options
542
+ # Request-specific options
543
+ #
544
+ # @yield [result, err] Result & error if block supplied
545
+ # @yieldparam result [Google::Apis::ComposerV1::UserWorkloadsConfigMap] parsed result object
546
+ # @yieldparam err [StandardError] error object if request failed
547
+ #
548
+ # @return [Google::Apis::ComposerV1::UserWorkloadsConfigMap]
549
+ #
550
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
551
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
552
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
553
+ def create_project_location_environment_user_workloads_config_map(parent, user_workloads_config_map_object = nil, fields: nil, quota_user: nil, options: nil, &block)
554
+ command = make_simple_command(:post, 'v1/{+parent}/userWorkloadsConfigMaps', options)
555
+ command.request_representation = Google::Apis::ComposerV1::UserWorkloadsConfigMap::Representation
556
+ command.request_object = user_workloads_config_map_object
557
+ command.response_representation = Google::Apis::ComposerV1::UserWorkloadsConfigMap::Representation
558
+ command.response_class = Google::Apis::ComposerV1::UserWorkloadsConfigMap
559
+ command.params['parent'] = parent unless parent.nil?
560
+ command.query['fields'] = fields unless fields.nil?
561
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
562
+ execute_or_queue_command(command, &block)
563
+ end
564
+
565
+ # Deletes a user workloads ConfigMap. This method is supported for Cloud
566
+ # Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.
567
+ # @param [String] name
568
+ # Required. The ConfigMap to delete, in the form: "projects/`projectId`/
569
+ # locations/`locationId`/environments/`environmentId`/userWorkloadsConfigMaps/`
570
+ # userWorkloadsConfigMapId`"
571
+ # @param [String] fields
572
+ # Selector specifying which fields to include in a partial response.
573
+ # @param [String] quota_user
574
+ # Available to use for quota purposes for server-side applications. Can be any
575
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
576
+ # @param [Google::Apis::RequestOptions] options
577
+ # Request-specific options
578
+ #
579
+ # @yield [result, err] Result & error if block supplied
580
+ # @yieldparam result [Google::Apis::ComposerV1::Empty] parsed result object
581
+ # @yieldparam err [StandardError] error object if request failed
582
+ #
583
+ # @return [Google::Apis::ComposerV1::Empty]
584
+ #
585
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
586
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
587
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
588
+ def delete_project_location_environment_user_workloads_config_map(name, fields: nil, quota_user: nil, options: nil, &block)
589
+ command = make_simple_command(:delete, 'v1/{+name}', options)
590
+ command.response_representation = Google::Apis::ComposerV1::Empty::Representation
591
+ command.response_class = Google::Apis::ComposerV1::Empty
592
+ command.params['name'] = name unless name.nil?
593
+ command.query['fields'] = fields unless fields.nil?
594
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
595
+ execute_or_queue_command(command, &block)
596
+ end
597
+
598
+ # Gets an existing user workloads ConfigMap. This method is supported for Cloud
599
+ # Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.
600
+ # @param [String] name
601
+ # Required. The resource name of the ConfigMap to get, in the form: "projects/`
602
+ # projectId`/locations/`locationId`/environments/`environmentId`/
603
+ # userWorkloadsConfigMaps/`userWorkloadsConfigMapId`"
604
+ # @param [String] fields
605
+ # Selector specifying which fields to include in a partial response.
606
+ # @param [String] quota_user
607
+ # Available to use for quota purposes for server-side applications. Can be any
608
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
609
+ # @param [Google::Apis::RequestOptions] options
610
+ # Request-specific options
611
+ #
612
+ # @yield [result, err] Result & error if block supplied
613
+ # @yieldparam result [Google::Apis::ComposerV1::UserWorkloadsConfigMap] parsed result object
614
+ # @yieldparam err [StandardError] error object if request failed
615
+ #
616
+ # @return [Google::Apis::ComposerV1::UserWorkloadsConfigMap]
617
+ #
618
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
619
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
620
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
621
+ def get_project_location_environment_user_workloads_config_map(name, fields: nil, quota_user: nil, options: nil, &block)
622
+ command = make_simple_command(:get, 'v1/{+name}', options)
623
+ command.response_representation = Google::Apis::ComposerV1::UserWorkloadsConfigMap::Representation
624
+ command.response_class = Google::Apis::ComposerV1::UserWorkloadsConfigMap
625
+ command.params['name'] = name unless name.nil?
626
+ command.query['fields'] = fields unless fields.nil?
627
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
628
+ execute_or_queue_command(command, &block)
629
+ end
630
+
631
+ # Lists user workloads ConfigMaps. This method is supported for Cloud Composer
632
+ # environments in versions composer-3.*.*-airflow-*.*.* and newer.
633
+ # @param [String] parent
634
+ # Required. List ConfigMaps in the given environment, in the form: "projects/`
635
+ # projectId`/locations/`locationId`/environments/`environmentId`"
636
+ # @param [Fixnum] page_size
637
+ # Optional. The maximum number of ConfigMaps to return.
638
+ # @param [String] page_token
639
+ # Optional. The next_page_token value returned from a previous List request, if
640
+ # any.
641
+ # @param [String] fields
642
+ # Selector specifying which fields to include in a partial response.
643
+ # @param [String] quota_user
644
+ # Available to use for quota purposes for server-side applications. Can be any
645
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
646
+ # @param [Google::Apis::RequestOptions] options
647
+ # Request-specific options
648
+ #
649
+ # @yield [result, err] Result & error if block supplied
650
+ # @yieldparam result [Google::Apis::ComposerV1::ListUserWorkloadsConfigMapsResponse] parsed result object
651
+ # @yieldparam err [StandardError] error object if request failed
652
+ #
653
+ # @return [Google::Apis::ComposerV1::ListUserWorkloadsConfigMapsResponse]
654
+ #
655
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
656
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
657
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
658
+ def list_project_location_environment_user_workloads_config_maps(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
659
+ command = make_simple_command(:get, 'v1/{+parent}/userWorkloadsConfigMaps', options)
660
+ command.response_representation = Google::Apis::ComposerV1::ListUserWorkloadsConfigMapsResponse::Representation
661
+ command.response_class = Google::Apis::ComposerV1::ListUserWorkloadsConfigMapsResponse
662
+ command.params['parent'] = parent unless parent.nil?
663
+ command.query['pageSize'] = page_size unless page_size.nil?
664
+ command.query['pageToken'] = page_token unless page_token.nil?
665
+ command.query['fields'] = fields unless fields.nil?
666
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
667
+ execute_or_queue_command(command, &block)
668
+ end
669
+
670
+ # Updates a user workloads ConfigMap. This method is supported for Cloud
671
+ # Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.
672
+ # @param [String] name
673
+ # Identifier. The resource name of the ConfigMap, in the form: "projects/`
674
+ # projectId`/locations/`locationId`/environments/`environmentId`/
675
+ # userWorkloadsConfigMaps/`userWorkloadsConfigMapId`"
676
+ # @param [Google::Apis::ComposerV1::UserWorkloadsConfigMap] user_workloads_config_map_object
677
+ # @param [String] fields
678
+ # Selector specifying which fields to include in a partial response.
679
+ # @param [String] quota_user
680
+ # Available to use for quota purposes for server-side applications. Can be any
681
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
682
+ # @param [Google::Apis::RequestOptions] options
683
+ # Request-specific options
684
+ #
685
+ # @yield [result, err] Result & error if block supplied
686
+ # @yieldparam result [Google::Apis::ComposerV1::UserWorkloadsConfigMap] parsed result object
687
+ # @yieldparam err [StandardError] error object if request failed
688
+ #
689
+ # @return [Google::Apis::ComposerV1::UserWorkloadsConfigMap]
690
+ #
691
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
692
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
693
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
694
+ def update_project_location_environment_user_workloads_config_map(name, user_workloads_config_map_object = nil, fields: nil, quota_user: nil, options: nil, &block)
695
+ command = make_simple_command(:put, 'v1/{+name}', options)
696
+ command.request_representation = Google::Apis::ComposerV1::UserWorkloadsConfigMap::Representation
697
+ command.request_object = user_workloads_config_map_object
698
+ command.response_representation = Google::Apis::ComposerV1::UserWorkloadsConfigMap::Representation
699
+ command.response_class = Google::Apis::ComposerV1::UserWorkloadsConfigMap
700
+ command.params['name'] = name unless name.nil?
701
+ command.query['fields'] = fields unless fields.nil?
702
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
703
+ execute_or_queue_command(command, &block)
704
+ end
705
+
706
+ # Creates a user workloads Secret. This method is supported for Cloud Composer
707
+ # environments in versions composer-3.*.*-airflow-*.*.* and newer.
708
+ # @param [String] parent
709
+ # Required. The environment name to create a Secret for, in the form: "projects/`
710
+ # projectId`/locations/`locationId`/environments/`environmentId`"
711
+ # @param [Google::Apis::ComposerV1::UserWorkloadsSecret] user_workloads_secret_object
712
+ # @param [String] fields
713
+ # Selector specifying which fields to include in a partial response.
714
+ # @param [String] quota_user
715
+ # Available to use for quota purposes for server-side applications. Can be any
716
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
717
+ # @param [Google::Apis::RequestOptions] options
718
+ # Request-specific options
719
+ #
720
+ # @yield [result, err] Result & error if block supplied
721
+ # @yieldparam result [Google::Apis::ComposerV1::UserWorkloadsSecret] parsed result object
722
+ # @yieldparam err [StandardError] error object if request failed
723
+ #
724
+ # @return [Google::Apis::ComposerV1::UserWorkloadsSecret]
725
+ #
726
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
727
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
728
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
729
+ def create_project_location_environment_user_workloads_secret(parent, user_workloads_secret_object = nil, fields: nil, quota_user: nil, options: nil, &block)
730
+ command = make_simple_command(:post, 'v1/{+parent}/userWorkloadsSecrets', options)
731
+ command.request_representation = Google::Apis::ComposerV1::UserWorkloadsSecret::Representation
732
+ command.request_object = user_workloads_secret_object
733
+ command.response_representation = Google::Apis::ComposerV1::UserWorkloadsSecret::Representation
734
+ command.response_class = Google::Apis::ComposerV1::UserWorkloadsSecret
735
+ command.params['parent'] = parent unless parent.nil?
736
+ command.query['fields'] = fields unless fields.nil?
737
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
738
+ execute_or_queue_command(command, &block)
739
+ end
740
+
741
+ # Deletes a user workloads Secret. This method is supported for Cloud Composer
742
+ # environments in versions composer-3.*.*-airflow-*.*.* and newer.
743
+ # @param [String] name
744
+ # Required. The Secret to delete, in the form: "projects/`projectId`/locations/`
745
+ # locationId`/environments/`environmentId`/userWorkloadsSecrets/`
746
+ # userWorkloadsSecretId`"
747
+ # @param [String] fields
748
+ # Selector specifying which fields to include in a partial response.
749
+ # @param [String] quota_user
750
+ # Available to use for quota purposes for server-side applications. Can be any
751
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
752
+ # @param [Google::Apis::RequestOptions] options
753
+ # Request-specific options
754
+ #
755
+ # @yield [result, err] Result & error if block supplied
756
+ # @yieldparam result [Google::Apis::ComposerV1::Empty] parsed result object
757
+ # @yieldparam err [StandardError] error object if request failed
758
+ #
759
+ # @return [Google::Apis::ComposerV1::Empty]
760
+ #
761
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
762
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
763
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
764
+ def delete_project_location_environment_user_workloads_secret(name, fields: nil, quota_user: nil, options: nil, &block)
765
+ command = make_simple_command(:delete, 'v1/{+name}', options)
766
+ command.response_representation = Google::Apis::ComposerV1::Empty::Representation
767
+ command.response_class = Google::Apis::ComposerV1::Empty
768
+ command.params['name'] = name unless name.nil?
769
+ command.query['fields'] = fields unless fields.nil?
770
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
771
+ execute_or_queue_command(command, &block)
772
+ end
773
+
774
+ # Gets an existing user workloads Secret. Values of the "data" field in the
775
+ # response are cleared. This method is supported for Cloud Composer environments
776
+ # in versions composer-3.*.*-airflow-*.*.* and newer.
777
+ # @param [String] name
778
+ # Required. The resource name of the Secret to get, in the form: "projects/`
779
+ # projectId`/locations/`locationId`/environments/`environmentId`/
780
+ # userWorkloadsSecrets/`userWorkloadsSecretId`"
781
+ # @param [String] fields
782
+ # Selector specifying which fields to include in a partial response.
783
+ # @param [String] quota_user
784
+ # Available to use for quota purposes for server-side applications. Can be any
785
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
786
+ # @param [Google::Apis::RequestOptions] options
787
+ # Request-specific options
788
+ #
789
+ # @yield [result, err] Result & error if block supplied
790
+ # @yieldparam result [Google::Apis::ComposerV1::UserWorkloadsSecret] parsed result object
791
+ # @yieldparam err [StandardError] error object if request failed
792
+ #
793
+ # @return [Google::Apis::ComposerV1::UserWorkloadsSecret]
794
+ #
795
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
796
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
797
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
798
+ def get_project_location_environment_user_workloads_secret(name, fields: nil, quota_user: nil, options: nil, &block)
799
+ command = make_simple_command(:get, 'v1/{+name}', options)
800
+ command.response_representation = Google::Apis::ComposerV1::UserWorkloadsSecret::Representation
801
+ command.response_class = Google::Apis::ComposerV1::UserWorkloadsSecret
802
+ command.params['name'] = name unless name.nil?
803
+ command.query['fields'] = fields unless fields.nil?
804
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
805
+ execute_or_queue_command(command, &block)
806
+ end
807
+
808
+ # Lists user workloads Secrets. This method is supported for Cloud Composer
809
+ # environments in versions composer-3.*.*-airflow-*.*.* and newer.
810
+ # @param [String] parent
811
+ # Required. List Secrets in the given environment, in the form: "projects/`
812
+ # projectId`/locations/`locationId`/environments/`environmentId`"
813
+ # @param [Fixnum] page_size
814
+ # Optional. The maximum number of Secrets to return.
815
+ # @param [String] page_token
816
+ # Optional. The next_page_token value returned from a previous List request, if
817
+ # any.
818
+ # @param [String] fields
819
+ # Selector specifying which fields to include in a partial response.
820
+ # @param [String] quota_user
821
+ # Available to use for quota purposes for server-side applications. Can be any
822
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
823
+ # @param [Google::Apis::RequestOptions] options
824
+ # Request-specific options
825
+ #
826
+ # @yield [result, err] Result & error if block supplied
827
+ # @yieldparam result [Google::Apis::ComposerV1::ListUserWorkloadsSecretsResponse] parsed result object
828
+ # @yieldparam err [StandardError] error object if request failed
829
+ #
830
+ # @return [Google::Apis::ComposerV1::ListUserWorkloadsSecretsResponse]
831
+ #
832
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
833
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
834
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
835
+ def list_project_location_environment_user_workloads_secrets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
836
+ command = make_simple_command(:get, 'v1/{+parent}/userWorkloadsSecrets', options)
837
+ command.response_representation = Google::Apis::ComposerV1::ListUserWorkloadsSecretsResponse::Representation
838
+ command.response_class = Google::Apis::ComposerV1::ListUserWorkloadsSecretsResponse
839
+ command.params['parent'] = parent unless parent.nil?
840
+ command.query['pageSize'] = page_size unless page_size.nil?
841
+ command.query['pageToken'] = page_token unless page_token.nil?
842
+ command.query['fields'] = fields unless fields.nil?
843
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
844
+ execute_or_queue_command(command, &block)
845
+ end
846
+
847
+ # Updates a user workloads Secret. This method is supported for Cloud Composer
848
+ # environments in versions composer-3.*.*-airflow-*.*.* and newer.
849
+ # @param [String] name
850
+ # Identifier. The resource name of the Secret, in the form: "projects/`projectId`
851
+ # /locations/`locationId`/environments/`environmentId`/userWorkloadsSecrets/`
852
+ # userWorkloadsSecretId`"
853
+ # @param [Google::Apis::ComposerV1::UserWorkloadsSecret] user_workloads_secret_object
854
+ # @param [String] fields
855
+ # Selector specifying which fields to include in a partial response.
856
+ # @param [String] quota_user
857
+ # Available to use for quota purposes for server-side applications. Can be any
858
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
859
+ # @param [Google::Apis::RequestOptions] options
860
+ # Request-specific options
861
+ #
862
+ # @yield [result, err] Result & error if block supplied
863
+ # @yieldparam result [Google::Apis::ComposerV1::UserWorkloadsSecret] parsed result object
864
+ # @yieldparam err [StandardError] error object if request failed
865
+ #
866
+ # @return [Google::Apis::ComposerV1::UserWorkloadsSecret]
867
+ #
868
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
869
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
870
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
871
+ def update_project_location_environment_user_workloads_secret(name, user_workloads_secret_object = nil, fields: nil, quota_user: nil, options: nil, &block)
872
+ command = make_simple_command(:put, 'v1/{+name}', options)
873
+ command.request_representation = Google::Apis::ComposerV1::UserWorkloadsSecret::Representation
874
+ command.request_object = user_workloads_secret_object
875
+ command.response_representation = Google::Apis::ComposerV1::UserWorkloadsSecret::Representation
876
+ command.response_class = Google::Apis::ComposerV1::UserWorkloadsSecret
877
+ command.params['name'] = name unless name.nil?
878
+ command.query['fields'] = fields unless fields.nil?
879
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
880
+ execute_or_queue_command(command, &block)
881
+ end
882
+
530
883
  # Lists workloads in a Cloud Composer environment. Workload is a unit that runs
531
884
  # a single Composer component. This method is supported for Cloud Composer
532
885
  # environments in versions composer-3.*.*-airflow-*.*.* and newer.
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.42.0
4
+ version: 0.43.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-02-04 00:00:00.000000000 Z
11
+ date: 2024-02-11 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.42.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1/v0.43.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: []