google-apis-composer_v1 0.41.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 251a7d0845e9e3498eae30276130cc260985bae0ad86a2465df2c8d3a6b4e401
|
4
|
+
data.tar.gz: aa49ef060aa21f72d84414a25d63c9bd46581258eadfb5d796ccb908939ae69c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03531df26aa79dd2e424166f6f2eb6043972383de31bb09157c7a52a171666e2b4b631b4917905988dbbb9e00207aba1b737e58eee4cdeeda912e0135f59fa7e
|
7
|
+
data.tar.gz: 6cb38cf74edb56f3bafc4b2e0ace4cf840fd606449bb514a01ac7f7c1b6f07156b161c97306a4292a5029cda9621d8a07efc30150bc13593e3fc1efb36ec890d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
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
|
+
|
7
|
+
### v0.42.0 (2024-02-04)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240123
|
10
|
+
* Regenerated using generator version 0.13.1
|
11
|
+
|
3
12
|
### v0.41.0 (2024-01-22)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20240106
|
@@ -141,6 +141,108 @@ module Google
|
|
141
141
|
end
|
142
142
|
end
|
143
143
|
|
144
|
+
# Information about a single workload.
|
145
|
+
class ComposerWorkload
|
146
|
+
include Google::Apis::Core::Hashable
|
147
|
+
|
148
|
+
# Name of a workload.
|
149
|
+
# Corresponds to the JSON property `name`
|
150
|
+
# @return [String]
|
151
|
+
attr_accessor :name
|
152
|
+
|
153
|
+
# Workload status.
|
154
|
+
# Corresponds to the JSON property `status`
|
155
|
+
# @return [Google::Apis::ComposerV1::ComposerWorkloadStatus]
|
156
|
+
attr_accessor :status
|
157
|
+
|
158
|
+
# Type of a workload.
|
159
|
+
# Corresponds to the JSON property `type`
|
160
|
+
# @return [String]
|
161
|
+
attr_accessor :type
|
162
|
+
|
163
|
+
def initialize(**args)
|
164
|
+
update!(**args)
|
165
|
+
end
|
166
|
+
|
167
|
+
# Update properties of this object
|
168
|
+
def update!(**args)
|
169
|
+
@name = args[:name] if args.key?(:name)
|
170
|
+
@status = args[:status] if args.key?(:status)
|
171
|
+
@type = args[:type] if args.key?(:type)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# Workload status.
|
176
|
+
class ComposerWorkloadStatus
|
177
|
+
include Google::Apis::Core::Hashable
|
178
|
+
|
179
|
+
# Output only. Detailed message of the status.
|
180
|
+
# Corresponds to the JSON property `detailedStatusMessage`
|
181
|
+
# @return [String]
|
182
|
+
attr_accessor :detailed_status_message
|
183
|
+
|
184
|
+
# Output only. Workload state.
|
185
|
+
# Corresponds to the JSON property `state`
|
186
|
+
# @return [String]
|
187
|
+
attr_accessor :state
|
188
|
+
|
189
|
+
# Output only. Text to provide more descriptive status.
|
190
|
+
# Corresponds to the JSON property `statusMessage`
|
191
|
+
# @return [String]
|
192
|
+
attr_accessor :status_message
|
193
|
+
|
194
|
+
def initialize(**args)
|
195
|
+
update!(**args)
|
196
|
+
end
|
197
|
+
|
198
|
+
# Update properties of this object
|
199
|
+
def update!(**args)
|
200
|
+
@detailed_status_message = args[:detailed_status_message] if args.key?(:detailed_status_message)
|
201
|
+
@state = args[:state] if args.key?(:state)
|
202
|
+
@status_message = args[:status_message] if args.key?(:status_message)
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
# Configuration for resources used by Airflow DAG processors.
|
207
|
+
class DagProcessorResource
|
208
|
+
include Google::Apis::Core::Hashable
|
209
|
+
|
210
|
+
# Optional. The number of DAG processors. If not provided or set to 0, a single
|
211
|
+
# DAG processor instance will be created.
|
212
|
+
# Corresponds to the JSON property `count`
|
213
|
+
# @return [Fixnum]
|
214
|
+
attr_accessor :count
|
215
|
+
|
216
|
+
# Optional. CPU request and limit for a single Airflow DAG processor replica.
|
217
|
+
# Corresponds to the JSON property `cpu`
|
218
|
+
# @return [Float]
|
219
|
+
attr_accessor :cpu
|
220
|
+
|
221
|
+
# Optional. Memory (GB) request and limit for a single Airflow DAG processor
|
222
|
+
# replica.
|
223
|
+
# Corresponds to the JSON property `memoryGb`
|
224
|
+
# @return [Float]
|
225
|
+
attr_accessor :memory_gb
|
226
|
+
|
227
|
+
# Optional. Storage (GB) request and limit for a single Airflow DAG processor
|
228
|
+
# replica.
|
229
|
+
# Corresponds to the JSON property `storageGb`
|
230
|
+
# @return [Float]
|
231
|
+
attr_accessor :storage_gb
|
232
|
+
|
233
|
+
def initialize(**args)
|
234
|
+
update!(**args)
|
235
|
+
end
|
236
|
+
|
237
|
+
# Update properties of this object
|
238
|
+
def update!(**args)
|
239
|
+
@count = args[:count] if args.key?(:count)
|
240
|
+
@cpu = args[:cpu] if args.key?(:cpu)
|
241
|
+
@memory_gb = args[:memory_gb] if args.key?(:memory_gb)
|
242
|
+
@storage_gb = args[:storage_gb] if args.key?(:storage_gb)
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
144
246
|
# The configuration setting for Airflow database data retention mechanism.
|
145
247
|
class DataRetentionConfig
|
146
248
|
include Google::Apis::Core::Hashable
|
@@ -892,6 +994,81 @@ module Google
|
|
892
994
|
end
|
893
995
|
end
|
894
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
|
+
|
1047
|
+
# Response to ListWorkloadsRequest.
|
1048
|
+
class ListWorkloadsResponse
|
1049
|
+
include Google::Apis::Core::Hashable
|
1050
|
+
|
1051
|
+
# The page token used to query for the next page if one exists.
|
1052
|
+
# Corresponds to the JSON property `nextPageToken`
|
1053
|
+
# @return [String]
|
1054
|
+
attr_accessor :next_page_token
|
1055
|
+
|
1056
|
+
# The list of environment workloads.
|
1057
|
+
# Corresponds to the JSON property `workloads`
|
1058
|
+
# @return [Array<Google::Apis::ComposerV1::ComposerWorkload>]
|
1059
|
+
attr_accessor :workloads
|
1060
|
+
|
1061
|
+
def initialize(**args)
|
1062
|
+
update!(**args)
|
1063
|
+
end
|
1064
|
+
|
1065
|
+
# Update properties of this object
|
1066
|
+
def update!(**args)
|
1067
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1068
|
+
@workloads = args[:workloads] if args.key?(:workloads)
|
1069
|
+
end
|
1070
|
+
end
|
1071
|
+
|
895
1072
|
# Request to load a snapshot into a Cloud Composer environment.
|
896
1073
|
class LoadSnapshotRequest
|
897
1074
|
include Google::Apis::Core::Hashable
|
@@ -1052,6 +1229,29 @@ module Google
|
|
1052
1229
|
class NodeConfig
|
1053
1230
|
include Google::Apis::Core::Hashable
|
1054
1231
|
|
1232
|
+
# Optional. The IP range in CIDR notation to use internally by Cloud Composer.
|
1233
|
+
# IP addresses are not reserved - and the same range can be used by multiple
|
1234
|
+
# Cloud Composer environments. In case of overlap, IPs from this range will not
|
1235
|
+
# be accessible in the user's VPC network. Cannot be updated. If not specified,
|
1236
|
+
# the default value of '100.64.128.0/20' is used. This field is supported for
|
1237
|
+
# Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.
|
1238
|
+
# Corresponds to the JSON property `composerInternalIpv4CidrBlock`
|
1239
|
+
# @return [String]
|
1240
|
+
attr_accessor :composer_internal_ipv4_cidr_block
|
1241
|
+
|
1242
|
+
# Optional. Network Attachment that Cloud Composer environment is connected to,
|
1243
|
+
# which provides connectivity with a user's VPC network. Takes precedence over
|
1244
|
+
# network and subnetwork settings. If not provided, but network and subnetwork
|
1245
|
+
# are defined during environment, it will be provisioned. If not provided and
|
1246
|
+
# network and subnetwork are also empty, then connectivity to user's VPC network
|
1247
|
+
# is disabled. Network attachment must be provided in format projects/`project`/
|
1248
|
+
# regions/`region`/networkAttachments/`networkAttachment`. This field is
|
1249
|
+
# supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.
|
1250
|
+
# *.* and newer.
|
1251
|
+
# Corresponds to the JSON property `composerNetworkAttachment`
|
1252
|
+
# @return [String]
|
1253
|
+
attr_accessor :composer_network_attachment
|
1254
|
+
|
1055
1255
|
# Optional. The disk size in GB used for node VMs. Minimum size is 30GB. If
|
1056
1256
|
# unspecified, defaults to 100GB. Cannot be updated. This field is supported for
|
1057
1257
|
# Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.
|
@@ -1161,6 +1361,8 @@ module Google
|
|
1161
1361
|
|
1162
1362
|
# Update properties of this object
|
1163
1363
|
def update!(**args)
|
1364
|
+
@composer_internal_ipv4_cidr_block = args[:composer_internal_ipv4_cidr_block] if args.key?(:composer_internal_ipv4_cidr_block)
|
1365
|
+
@composer_network_attachment = args[:composer_network_attachment] if args.key?(:composer_network_attachment)
|
1164
1366
|
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
1165
1367
|
@enable_ip_masq_agent = args[:enable_ip_masq_agent] if args.key?(:enable_ip_masq_agent)
|
1166
1368
|
@ip_allocation_policy = args[:ip_allocation_policy] if args.key?(:ip_allocation_policy)
|
@@ -1431,6 +1633,18 @@ module Google
|
|
1431
1633
|
# @return [String]
|
1432
1634
|
attr_accessor :cloud_sql_ipv4_cidr_block
|
1433
1635
|
|
1636
|
+
# Optional. If `true`, builds performed during operations that install Python
|
1637
|
+
# packages have only private connectivity to Google services (including Artifact
|
1638
|
+
# Registry) and VPC network (if either `NodeConfig.network` and `NodeConfig.
|
1639
|
+
# subnetwork` fields or `NodeConfig.composer_network_attachment` field are
|
1640
|
+
# specified). If `false`, the builds also have access to the internet. This
|
1641
|
+
# field is supported for Cloud Composer environments in versions composer-3.*.*-
|
1642
|
+
# airflow-*.*.* and newer.
|
1643
|
+
# Corresponds to the JSON property `enablePrivateBuildsOnly`
|
1644
|
+
# @return [Boolean]
|
1645
|
+
attr_accessor :enable_private_builds_only
|
1646
|
+
alias_method :enable_private_builds_only?, :enable_private_builds_only
|
1647
|
+
|
1434
1648
|
# Optional. If `true`, a Private IP Cloud Composer environment is created. If
|
1435
1649
|
# this field is set to true, `IPAllocationPolicy.use_ip_aliases` must be set to
|
1436
1650
|
# true for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.
|
@@ -1483,6 +1697,7 @@ module Google
|
|
1483
1697
|
@cloud_composer_network_ipv4_cidr_block = args[:cloud_composer_network_ipv4_cidr_block] if args.key?(:cloud_composer_network_ipv4_cidr_block)
|
1484
1698
|
@cloud_composer_network_ipv4_reserved_range = args[:cloud_composer_network_ipv4_reserved_range] if args.key?(:cloud_composer_network_ipv4_reserved_range)
|
1485
1699
|
@cloud_sql_ipv4_cidr_block = args[:cloud_sql_ipv4_cidr_block] if args.key?(:cloud_sql_ipv4_cidr_block)
|
1700
|
+
@enable_private_builds_only = args[:enable_private_builds_only] if args.key?(:enable_private_builds_only)
|
1486
1701
|
@enable_private_environment = args[:enable_private_environment] if args.key?(:enable_private_environment)
|
1487
1702
|
@enable_privately_used_public_ips = args[:enable_privately_used_public_ips] if args.key?(:enable_privately_used_public_ips)
|
1488
1703
|
@networking_config = args[:networking_config] if args.key?(:networking_config)
|
@@ -1715,6 +1930,13 @@ module Google
|
|
1715
1930
|
# @return [Fixnum]
|
1716
1931
|
attr_accessor :scheduler_count
|
1717
1932
|
|
1933
|
+
# Optional. Whether or not the web server uses custom plugins. If unspecified,
|
1934
|
+
# the field defaults to `PLUGINS_ENABLED`. This field is supported for Cloud
|
1935
|
+
# Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.
|
1936
|
+
# Corresponds to the JSON property `webServerPluginsMode`
|
1937
|
+
# @return [String]
|
1938
|
+
attr_accessor :web_server_plugins_mode
|
1939
|
+
|
1718
1940
|
def initialize(**args)
|
1719
1941
|
update!(**args)
|
1720
1942
|
end
|
@@ -1728,6 +1950,7 @@ module Google
|
|
1728
1950
|
@pypi_packages = args[:pypi_packages] if args.key?(:pypi_packages)
|
1729
1951
|
@python_version = args[:python_version] if args.key?(:python_version)
|
1730
1952
|
@scheduler_count = args[:scheduler_count] if args.key?(:scheduler_count)
|
1953
|
+
@web_server_plugins_mode = args[:web_server_plugins_mode] if args.key?(:web_server_plugins_mode)
|
1731
1954
|
end
|
1732
1955
|
end
|
1733
1956
|
|
@@ -1906,6 +2129,67 @@ module Google
|
|
1906
2129
|
end
|
1907
2130
|
end
|
1908
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
|
+
|
1909
2193
|
# The configuration settings for the Airflow web server App Engine instance.
|
1910
2194
|
# Supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.
|
1911
2195
|
# *.*
|
@@ -2030,6 +2314,11 @@ module Google
|
|
2030
2314
|
class WorkloadsConfig
|
2031
2315
|
include Google::Apis::Core::Hashable
|
2032
2316
|
|
2317
|
+
# Configuration for resources used by Airflow DAG processors.
|
2318
|
+
# Corresponds to the JSON property `dagProcessor`
|
2319
|
+
# @return [Google::Apis::ComposerV1::DagProcessorResource]
|
2320
|
+
attr_accessor :dag_processor
|
2321
|
+
|
2033
2322
|
# Configuration for resources used by Airflow schedulers.
|
2034
2323
|
# Corresponds to the JSON property `scheduler`
|
2035
2324
|
# @return [Google::Apis::ComposerV1::SchedulerResource]
|
@@ -2056,6 +2345,7 @@ module Google
|
|
2056
2345
|
|
2057
2346
|
# Update properties of this object
|
2058
2347
|
def update!(**args)
|
2348
|
+
@dag_processor = args[:dag_processor] if args.key?(:dag_processor)
|
2059
2349
|
@scheduler = args[:scheduler] if args.key?(:scheduler)
|
2060
2350
|
@triggerer = args[:triggerer] if args.key?(:triggerer)
|
2061
2351
|
@web_server = args[:web_server] if args.key?(:web_server)
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.43.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.13.
|
22
|
+
GENERATOR_VERSION = "0.13.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240204"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -46,6 +46,24 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
+
class ComposerWorkload
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class ComposerWorkloadStatus
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class DagProcessorResource
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
49
67
|
class DataRetentionConfig
|
50
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
69
|
|
@@ -160,6 +178,24 @@ module Google
|
|
160
178
|
include Google::Apis::Core::JsonObjectSupport
|
161
179
|
end
|
162
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
|
+
|
193
|
+
class ListWorkloadsResponse
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
163
199
|
class LoadSnapshotRequest
|
164
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
201
|
|
@@ -304,6 +340,18 @@ module Google
|
|
304
340
|
include Google::Apis::Core::JsonObjectSupport
|
305
341
|
end
|
306
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
|
+
|
307
355
|
class WebServerConfig
|
308
356
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
357
|
|
@@ -368,6 +416,35 @@ module Google
|
|
368
416
|
end
|
369
417
|
end
|
370
418
|
|
419
|
+
class ComposerWorkload
|
420
|
+
# @private
|
421
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
422
|
+
property :name, as: 'name'
|
423
|
+
property :status, as: 'status', class: Google::Apis::ComposerV1::ComposerWorkloadStatus, decorator: Google::Apis::ComposerV1::ComposerWorkloadStatus::Representation
|
424
|
+
|
425
|
+
property :type, as: 'type'
|
426
|
+
end
|
427
|
+
end
|
428
|
+
|
429
|
+
class ComposerWorkloadStatus
|
430
|
+
# @private
|
431
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
432
|
+
property :detailed_status_message, as: 'detailedStatusMessage'
|
433
|
+
property :state, as: 'state'
|
434
|
+
property :status_message, as: 'statusMessage'
|
435
|
+
end
|
436
|
+
end
|
437
|
+
|
438
|
+
class DagProcessorResource
|
439
|
+
# @private
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
441
|
+
property :count, as: 'count'
|
442
|
+
property :cpu, as: 'cpu'
|
443
|
+
property :memory_gb, as: 'memoryGb'
|
444
|
+
property :storage_gb, as: 'storageGb'
|
445
|
+
end
|
446
|
+
end
|
447
|
+
|
371
448
|
class DataRetentionConfig
|
372
449
|
# @private
|
373
450
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -567,6 +644,33 @@ module Google
|
|
567
644
|
end
|
568
645
|
end
|
569
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
|
+
|
665
|
+
class ListWorkloadsResponse
|
666
|
+
# @private
|
667
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
668
|
+
property :next_page_token, as: 'nextPageToken'
|
669
|
+
collection :workloads, as: 'workloads', class: Google::Apis::ComposerV1::ComposerWorkload, decorator: Google::Apis::ComposerV1::ComposerWorkload::Representation
|
670
|
+
|
671
|
+
end
|
672
|
+
end
|
673
|
+
|
570
674
|
class LoadSnapshotRequest
|
571
675
|
# @private
|
572
676
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -612,6 +716,8 @@ module Google
|
|
612
716
|
class NodeConfig
|
613
717
|
# @private
|
614
718
|
class Representation < Google::Apis::Core::JsonRepresentation
|
719
|
+
property :composer_internal_ipv4_cidr_block, as: 'composerInternalIpv4CidrBlock'
|
720
|
+
property :composer_network_attachment, as: 'composerNetworkAttachment'
|
615
721
|
property :disk_size_gb, as: 'diskSizeGb'
|
616
722
|
property :enable_ip_masq_agent, as: 'enableIpMasqAgent'
|
617
723
|
property :ip_allocation_policy, as: 'ipAllocationPolicy', class: Google::Apis::ComposerV1::IpAllocationPolicy, decorator: Google::Apis::ComposerV1::IpAllocationPolicy::Representation
|
@@ -687,6 +793,7 @@ module Google
|
|
687
793
|
property :cloud_composer_network_ipv4_cidr_block, as: 'cloudComposerNetworkIpv4CidrBlock'
|
688
794
|
property :cloud_composer_network_ipv4_reserved_range, as: 'cloudComposerNetworkIpv4ReservedRange'
|
689
795
|
property :cloud_sql_ipv4_cidr_block, as: 'cloudSqlIpv4CidrBlock'
|
796
|
+
property :enable_private_builds_only, as: 'enablePrivateBuildsOnly'
|
690
797
|
property :enable_private_environment, as: 'enablePrivateEnvironment'
|
691
798
|
property :enable_privately_used_public_ips, as: 'enablePrivatelyUsedPublicIps'
|
692
799
|
property :networking_config, as: 'networkingConfig', class: Google::Apis::ComposerV1::NetworkingConfig, decorator: Google::Apis::ComposerV1::NetworkingConfig::Representation
|
@@ -751,6 +858,7 @@ module Google
|
|
751
858
|
hash :pypi_packages, as: 'pypiPackages'
|
752
859
|
property :python_version, as: 'pythonVersion'
|
753
860
|
property :scheduler_count, as: 'schedulerCount'
|
861
|
+
property :web_server_plugins_mode, as: 'webServerPluginsMode'
|
754
862
|
end
|
755
863
|
end
|
756
864
|
|
@@ -804,6 +912,22 @@ module Google
|
|
804
912
|
end
|
805
913
|
end
|
806
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
|
+
|
807
931
|
class WebServerConfig
|
808
932
|
# @private
|
809
933
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -842,6 +966,8 @@ module Google
|
|
842
966
|
class WorkloadsConfig
|
843
967
|
# @private
|
844
968
|
class Representation < Google::Apis::Core::JsonRepresentation
|
969
|
+
property :dag_processor, as: 'dagProcessor', class: Google::Apis::ComposerV1::DagProcessorResource, decorator: Google::Apis::ComposerV1::DagProcessorResource::Representation
|
970
|
+
|
845
971
|
property :scheduler, as: 'scheduler', class: Google::Apis::ComposerV1::SchedulerResource, decorator: Google::Apis::ComposerV1::SchedulerResource::Representation
|
846
972
|
|
847
973
|
property :triggerer, as: 'triggerer', class: Google::Apis::ComposerV1::TriggererResource, decorator: Google::Apis::ComposerV1::TriggererResource::Representation
|
@@ -527,6 +527,406 @@ 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
|
+
|
883
|
+
# Lists workloads in a Cloud Composer environment. Workload is a unit that runs
|
884
|
+
# a single Composer component. This method is supported for Cloud Composer
|
885
|
+
# environments in versions composer-3.*.*-airflow-*.*.* and newer.
|
886
|
+
# @param [String] parent
|
887
|
+
# Required. The environment name to get workloads for, in the form: "projects/`
|
888
|
+
# projectId`/locations/`locationId`/environments/`environmentId`"
|
889
|
+
# @param [String] filter
|
890
|
+
# Optional. The list filter. Currently only supports equality on the type field.
|
891
|
+
# The value of a field specified in the filter expression must be one
|
892
|
+
# ComposerWorkloadType enum option. It's possible to get multiple types using "
|
893
|
+
# OR" operator, e.g.: "type=SCHEDULER OR type=CELERY_WORKER". If not specified,
|
894
|
+
# all items are returned.
|
895
|
+
# @param [Fixnum] page_size
|
896
|
+
# Optional. The maximum number of environments to return.
|
897
|
+
# @param [String] page_token
|
898
|
+
# Optional. The next_page_token value returned from a previous List request, if
|
899
|
+
# any.
|
900
|
+
# @param [String] fields
|
901
|
+
# Selector specifying which fields to include in a partial response.
|
902
|
+
# @param [String] quota_user
|
903
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
904
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
905
|
+
# @param [Google::Apis::RequestOptions] options
|
906
|
+
# Request-specific options
|
907
|
+
#
|
908
|
+
# @yield [result, err] Result & error if block supplied
|
909
|
+
# @yieldparam result [Google::Apis::ComposerV1::ListWorkloadsResponse] parsed result object
|
910
|
+
# @yieldparam err [StandardError] error object if request failed
|
911
|
+
#
|
912
|
+
# @return [Google::Apis::ComposerV1::ListWorkloadsResponse]
|
913
|
+
#
|
914
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
915
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
916
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
917
|
+
def list_project_location_environment_workloads(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
918
|
+
command = make_simple_command(:get, 'v1/{+parent}/workloads', options)
|
919
|
+
command.response_representation = Google::Apis::ComposerV1::ListWorkloadsResponse::Representation
|
920
|
+
command.response_class = Google::Apis::ComposerV1::ListWorkloadsResponse
|
921
|
+
command.params['parent'] = parent unless parent.nil?
|
922
|
+
command.query['filter'] = filter unless filter.nil?
|
923
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
924
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
925
|
+
command.query['fields'] = fields unless fields.nil?
|
926
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
927
|
+
execute_or_queue_command(command, &block)
|
928
|
+
end
|
929
|
+
|
530
930
|
# List ImageVersions for provided location.
|
531
931
|
# @param [String] parent
|
532
932
|
# List ImageVersions in the given project and location, in the form: "projects/`
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-composer_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
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-
|
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.
|
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: []
|