google-apis-composer_v1 0.1.0 → 0.2.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: 2a9961caacfdbdac0573d9125bacb69ae2ac4bcaecb5c73ce9cc75bb480d5601
4
- data.tar.gz: ee70f3485469960315ffa1b0088a8f69565346ee30591239cb1bf085451c6ecb
3
+ metadata.gz: ec122c11ba79390ea698af58e84e6cc8dfb2175903628b867c870802ccc47e29
4
+ data.tar.gz: dbd6556e078f2351996d05c96e15c725be149cb7566a340d6929f6ef8b81f9e0
5
5
  SHA512:
6
- metadata.gz: 20df3171d86718955b0eb284ed6de2384f492dbf61a34a71ced30b4e7bee5333c14d61a26a980d1eab840da79f6ae106354e5a4f1ba2f146e2169c51fd8c5e51
7
- data.tar.gz: c80e98d1adb91b310345156c0f4f768362f3331cc21d772d184d7d7ad0f1a81a12946c54188742902703319091848097cb896bdee192949755e0f5d57b3ec0b7
6
+ metadata.gz: 4d7bc7d62a8f4b4b169ad02b0d51152d852999907710c47aea4da068555fc8dc5db617f5a963c679546b802b9b784f750529706aa2f6950f055307dafb4bfad0
7
+ data.tar.gz: 318ea0e0f0150bf75be9f100db263f57741c9cb4b26c6e306e0147ce86c08751a34c48a3292d7739b52fada71011436e85735ca072ece5075b052017f3abc8da
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-composer_v1
2
2
 
3
+ ### v0.2.0 (2021-02-04)
4
+
5
+ * Regenerated from discovery document revision 20210126
6
+ * Regenerated using generator version 0.1.2
7
+
3
8
  ### v0.1.0 (2021-01-07)
4
9
 
5
10
  * Regenerated using generator version 0.1.1
@@ -51,6 +51,28 @@ module Google
51
51
  end
52
52
  end
53
53
 
54
+ # The configuration of Cloud SQL instance that is used by the Apache Airflow
55
+ # software.
56
+ class DatabaseConfig
57
+ include Google::Apis::Core::Hashable
58
+
59
+ # Optional. Cloud SQL machine type used by Airflow database. It has to be one of:
60
+ # db-n1-standard-2, db-n1-standard-4, db-n1-standard-8 or db-n1-standard-16. If
61
+ # not specified, db-n1-standard-2 will be used.
62
+ # Corresponds to the JSON property `machineType`
63
+ # @return [String]
64
+ attr_accessor :machine_type
65
+
66
+ def initialize(**args)
67
+ update!(**args)
68
+ end
69
+
70
+ # Update properties of this object
71
+ def update!(**args)
72
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
73
+ end
74
+ end
75
+
54
76
  # Represents a whole or partial calendar date, such as a birthday. The time of
55
77
  # day and time zone are either specified elsewhere or are insignificant. The
56
78
  # date is relative to the Gregorian Calendar. This can represent one of the
@@ -109,6 +131,27 @@ module Google
109
131
  end
110
132
  end
111
133
 
134
+ # The encryption options for the Cloud Composer environment and its dependencies.
135
+ class EncryptionConfig
136
+ include Google::Apis::Core::Hashable
137
+
138
+ # Optional. Customer-managed Encryption Key available through Google's Key
139
+ # Management Service. Cannot be updated. If not specified, Google-managed key
140
+ # will be used.
141
+ # Corresponds to the JSON property `kmsKeyName`
142
+ # @return [String]
143
+ attr_accessor :kms_key_name
144
+
145
+ def initialize(**args)
146
+ update!(**args)
147
+ end
148
+
149
+ # Update properties of this object
150
+ def update!(**args)
151
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
152
+ end
153
+ end
154
+
112
155
  # An environment for running orchestration tasks.
113
156
  class Environment
114
157
  include Google::Apis::Core::Hashable
@@ -191,6 +234,17 @@ module Google
191
234
  # @return [String]
192
235
  attr_accessor :dag_gcs_prefix
193
236
 
237
+ # The configuration of Cloud SQL instance that is used by the Apache Airflow
238
+ # software.
239
+ # Corresponds to the JSON property `databaseConfig`
240
+ # @return [Google::Apis::ComposerV1::DatabaseConfig]
241
+ attr_accessor :database_config
242
+
243
+ # The encryption options for the Cloud Composer environment and its dependencies.
244
+ # Corresponds to the JSON property `encryptionConfig`
245
+ # @return [Google::Apis::ComposerV1::EncryptionConfig]
246
+ attr_accessor :encryption_config
247
+
194
248
  # Output only. The Kubernetes Engine cluster used to run this environment.
195
249
  # Corresponds to the JSON property `gkeCluster`
196
250
  # @return [String]
@@ -219,6 +273,11 @@ module Google
219
273
  # @return [Google::Apis::ComposerV1::SoftwareConfig]
220
274
  attr_accessor :software_config
221
275
 
276
+ # The configuration settings for the Airflow web server App Engine instance.
277
+ # Corresponds to the JSON property `webServerConfig`
278
+ # @return [Google::Apis::ComposerV1::WebServerConfig]
279
+ attr_accessor :web_server_config
280
+
222
281
  # Network-level access control policy for the Airflow web server.
223
282
  # Corresponds to the JSON property `webServerNetworkAccessControl`
224
283
  # @return [Google::Apis::ComposerV1::WebServerNetworkAccessControl]
@@ -232,11 +291,14 @@ module Google
232
291
  def update!(**args)
233
292
  @airflow_uri = args[:airflow_uri] if args.key?(:airflow_uri)
234
293
  @dag_gcs_prefix = args[:dag_gcs_prefix] if args.key?(:dag_gcs_prefix)
294
+ @database_config = args[:database_config] if args.key?(:database_config)
295
+ @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
235
296
  @gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster)
236
297
  @node_config = args[:node_config] if args.key?(:node_config)
237
298
  @node_count = args[:node_count] if args.key?(:node_count)
238
299
  @private_environment_config = args[:private_environment_config] if args.key?(:private_environment_config)
239
300
  @software_config = args[:software_config] if args.key?(:software_config)
301
+ @web_server_config = args[:web_server_config] if args.key?(:web_server_config)
240
302
  @web_server_network_access_control = args[:web_server_network_access_control] if args.key?(:web_server_network_access_control)
241
303
  end
242
304
  end
@@ -491,11 +553,11 @@ module Google
491
553
  # Optional. The Compute Engine network to be used for machine communications,
492
554
  # specified as a [relative resource name](/apis/design/resource_names#
493
555
  # relative_resource_name). For example: "projects/`projectId`/global/networks/`
494
- # networkId`". [Shared VPC](/vpc/docs/shared-vpc) is not currently supported.
495
- # The network must belong to the environment's project. If unspecified, the "
496
- # default" network ID in the environment's project is used. If a [Custom Subnet
497
- # Network](/vpc/docs/vpc#vpc_networks_and_subnets) is provided, `nodeConfig.
498
- # subnetwork` must also be provided.
556
+ # networkId`". If unspecified, the "default" network ID in the environment's
557
+ # project is used. If a [Custom Subnet Network](/vpc/docs/vpc#
558
+ # vpc_networks_and_subnets) is provided, `nodeConfig.subnetwork` must also be
559
+ # provided. For [Shared VPC](/vpc/docs/shared-vpc) subnetwork requirements, see `
560
+ # nodeConfig.subnetwork`.
499
561
  # Corresponds to the JSON property `network`
500
562
  # @return [String]
501
563
  attr_accessor :network
@@ -872,6 +934,29 @@ module Google
872
934
  end
873
935
  end
874
936
 
937
+ # The configuration settings for the Airflow web server App Engine instance.
938
+ class WebServerConfig
939
+ include Google::Apis::Core::Hashable
940
+
941
+ # Optional. Machine type on which Airflow web server is running. It has to be
942
+ # one of: composer-n1-webserver-2, composer-n1-webserver-4 or composer-n1-
943
+ # webserver-8. If not specified, composer-n1-webserver-2 will be used. Value
944
+ # custom is returned only in response, if Airflow web server parameters were
945
+ # manually changed to a non-standard values.
946
+ # Corresponds to the JSON property `machineType`
947
+ # @return [String]
948
+ attr_accessor :machine_type
949
+
950
+ def initialize(**args)
951
+ update!(**args)
952
+ end
953
+
954
+ # Update properties of this object
955
+ def update!(**args)
956
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
957
+ end
958
+ end
959
+
875
960
  # Network-level access control policy for the Airflow web server.
876
961
  class WebServerNetworkAccessControl
877
962
  include Google::Apis::Core::Hashable
@@ -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.1.0"
19
+ GEM_VERSION = "0.2.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201202"
25
+ REVISION = "20210126"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class DatabaseConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class Date
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -40,6 +46,12 @@ module Google
40
46
  include Google::Apis::Core::JsonObjectSupport
41
47
  end
42
48
 
49
+ class EncryptionConfig
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
43
55
  class Environment
44
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
57
 
@@ -124,6 +136,12 @@ module Google
124
136
  include Google::Apis::Core::JsonObjectSupport
125
137
  end
126
138
 
139
+ class WebServerConfig
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
127
145
  class WebServerNetworkAccessControl
128
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
147
 
@@ -138,6 +156,13 @@ module Google
138
156
  end
139
157
  end
140
158
 
159
+ class DatabaseConfig
160
+ # @private
161
+ class Representation < Google::Apis::Core::JsonRepresentation
162
+ property :machine_type, as: 'machineType'
163
+ end
164
+ end
165
+
141
166
  class Date
142
167
  # @private
143
168
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -153,6 +178,13 @@ module Google
153
178
  end
154
179
  end
155
180
 
181
+ class EncryptionConfig
182
+ # @private
183
+ class Representation < Google::Apis::Core::JsonRepresentation
184
+ property :kms_key_name, as: 'kmsKeyName'
185
+ end
186
+ end
187
+
156
188
  class Environment
157
189
  # @private
158
190
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -172,6 +204,10 @@ module Google
172
204
  class Representation < Google::Apis::Core::JsonRepresentation
173
205
  property :airflow_uri, as: 'airflowUri'
174
206
  property :dag_gcs_prefix, as: 'dagGcsPrefix'
207
+ property :database_config, as: 'databaseConfig', class: Google::Apis::ComposerV1::DatabaseConfig, decorator: Google::Apis::ComposerV1::DatabaseConfig::Representation
208
+
209
+ property :encryption_config, as: 'encryptionConfig', class: Google::Apis::ComposerV1::EncryptionConfig, decorator: Google::Apis::ComposerV1::EncryptionConfig::Representation
210
+
175
211
  property :gke_cluster, as: 'gkeCluster'
176
212
  property :node_config, as: 'nodeConfig', class: Google::Apis::ComposerV1::NodeConfig, decorator: Google::Apis::ComposerV1::NodeConfig::Representation
177
213
 
@@ -180,6 +216,8 @@ module Google
180
216
 
181
217
  property :software_config, as: 'softwareConfig', class: Google::Apis::ComposerV1::SoftwareConfig, decorator: Google::Apis::ComposerV1::SoftwareConfig::Representation
182
218
 
219
+ property :web_server_config, as: 'webServerConfig', class: Google::Apis::ComposerV1::WebServerConfig, decorator: Google::Apis::ComposerV1::WebServerConfig::Representation
220
+
183
221
  property :web_server_network_access_control, as: 'webServerNetworkAccessControl', class: Google::Apis::ComposerV1::WebServerNetworkAccessControl, decorator: Google::Apis::ComposerV1::WebServerNetworkAccessControl::Representation
184
222
 
185
223
  end
@@ -317,6 +355,13 @@ module Google
317
355
  end
318
356
  end
319
357
 
358
+ class WebServerConfig
359
+ # @private
360
+ class Representation < Google::Apis::Core::JsonRepresentation
361
+ property :machine_type, as: 'machineType'
362
+ end
363
+ end
364
+
320
365
  class WebServerNetworkAccessControl
321
366
  # @private
322
367
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -230,17 +230,19 @@ module Google
230
230
  # Horizontally scale the number of nodes in the environment. An integer greater
231
231
  # than or equal to 3 must be provided in the `config.nodeCount` field. config.
232
232
  # webServerNetworkAccessControl Replace the environment's current
233
- # WebServerNetworkAccessControl. config.softwareConfig.airflowConfigOverrides
234
- # Replace all Apache Airflow config overrides. If a replacement config overrides
235
- # map is not included in `environment`, all config overrides are cleared. It is
236
- # an error to provide both this mask and a mask specifying one or more
237
- # individual config overrides. config.softwareConfig.airflowConfigOverrides.
238
- # section-name Override the Apache Airflow config property name in the section
239
- # named section, preserving other properties. To delete the property override,
240
- # include it in `updateMask` and omit its mapping in `environment.config.
241
- # softwareConfig.airflowConfigOverrides`. It is an error to provide both a mask
242
- # of this form and the "config.softwareConfig.airflowConfigOverrides" mask.
243
- # config.softwareConfig.envVariables Replace all environment variables. If a
233
+ # WebServerNetworkAccessControl. config.databaseConfig Replace the environment's
234
+ # current DatabaseConfig. config.webServerConfig Replace the environment's
235
+ # current WebServerConfig. config.softwareConfig.airflowConfigOverrides Replace
236
+ # all Apache Airflow config overrides. If a replacement config overrides map is
237
+ # not included in `environment`, all config overrides are cleared. It is an
238
+ # error to provide both this mask and a mask specifying one or more individual
239
+ # config overrides. config.softwareConfig.airflowConfigOverrides.section-name
240
+ # Override the Apache Airflow config property name in the section named section,
241
+ # preserving other properties. To delete the property override, include it in `
242
+ # updateMask` and omit its mapping in `environment.config.softwareConfig.
243
+ # airflowConfigOverrides`. It is an error to provide both a mask of this form
244
+ # and the "config.softwareConfig.airflowConfigOverrides" mask. config.
245
+ # softwareConfig.envVariables Replace all environment variables. If a
244
246
  # replacement environment variable map is not included in `environment`, all
245
247
  # custom environment variables are cleared. It is an error to provide both this
246
248
  # mask and a mask specifying one or more individual environment variables.
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.1.0
4
+ version: 0.2.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: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-composer_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-composer_v1/v0.2.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-composer_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.6
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Composer API V1