google-cloud-data_fusion-v1 0.1.3 → 0.1.4

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: 266e99fe7c123372e581ae2cc4ddaeaf959c97c24c99716dfb71605154a4e3cf
4
- data.tar.gz: 137db50e77763b3a41a05dee06ba7e01ba26698f7fe919bacfd66a657f47584e
3
+ metadata.gz: 6b39e3729168eb47590a09681cb2cebcbb0a6cf1632ad65b2c0850348cbcd810
4
+ data.tar.gz: 5baad0357cd449c69145c9640b062f8f5b0aae994d40bbd17a314f9dd13eb49b
5
5
  SHA512:
6
- metadata.gz: 664010810c927571665928fdf16900acbcaf2fdd54a575ac75f0d8ff248a8a3c7dc1fbb61dcc6ec65fd744083bc2ddfca770d7c7d186732c82b47579bd6a10ba
7
- data.tar.gz: f1a7245f8f86900b2eb6d324e4b7748f7d67e10455e4c2cca0bfb8296d689ecbb387a0b36a880a1d5d23c8724c0f75bdfc36b5bec5afbce1db30f1717fc13a86
6
+ metadata.gz: f6dad801c74307ac4fb305191d75674ce067cc0b17655cc891921a1cc2d2d95940db2e0457cabba258e00460bf5047a8fa59527e7e777e3cc811ad6ed7b347ef
7
+ data.tar.gz: 353e4d7e4246d76a69bbc1d73e86cd694952613e9b428959d9a455c4efbbd08c94d0555122a100f940da5ec81aa5a2e2d7147150626e6ffc710cc85136c7e7b1
@@ -181,8 +181,8 @@ module Google
181
181
  # the default parameter values, pass an empty Hash as a request object (see above).
182
182
  #
183
183
  # @param parent [::String]
184
- # Required. The project and location for which to retrieve instance
185
- # information in the format projects/\\{project}/locations/\\{location}.
184
+ # Required. The project and location for which to retrieve instance information
185
+ # in the format projects/\\{project}/locations/\\{location}.
186
186
  # @param page_size [::Integer]
187
187
  # The maximum number of items to return.
188
188
  # @param page_token [::String]
@@ -283,7 +283,7 @@ module Google
283
283
  # the default parameter values, pass an empty Hash as a request object (see above).
284
284
  #
285
285
  # @param parent [::String]
286
- # The project and location for which to retrieve instance information
286
+ # Required. The project and location for which to retrieve instance information
287
287
  # in the format projects/\\{project}/locations/\\{location}. If the location is
288
288
  # specified as '-' (wildcard), then all regions available to the project
289
289
  # are queried, and the results are aggregated.
@@ -387,7 +387,7 @@ module Google
387
387
  # the default parameter values, pass an empty Hash as a request object (see above).
388
388
  #
389
389
  # @param name [::String]
390
- # The instance resource name in the format
390
+ # Required. The instance resource name in the format
391
391
  # projects/\\{project}/locations/\\{location}/instances/\\{instance}.
392
392
  #
393
393
  # @yield [response, operation] Access the result along with the RPC operation
@@ -473,10 +473,10 @@ module Google
473
473
  # the default parameter values, pass an empty Hash as a request object (see above).
474
474
  #
475
475
  # @param parent [::String]
476
- # The instance's project and location in the format
476
+ # Required. The instance's project and location in the format
477
477
  # projects/\\{project}/locations/\\{location}.
478
478
  # @param instance_id [::String]
479
- # The name of the instance to create.
479
+ # Required. The name of the instance to create.
480
480
  # @param instance [::Google::Cloud::DataFusion::V1::Instance, ::Hash]
481
481
  # An instance resource.
482
482
  #
@@ -571,7 +571,7 @@ module Google
571
571
  # the default parameter values, pass an empty Hash as a request object (see above).
572
572
  #
573
573
  # @param name [::String]
574
- # The instance resource name in the format
574
+ # Required. The instance resource name in the format
575
575
  # projects/\\{project}/locations/\\{location}/instances/\\{instance}
576
576
  #
577
577
  # @yield [response, operation] Access the result along with the RPC operation
@@ -665,7 +665,7 @@ module Google
665
665
  # the default parameter values, pass an empty Hash as a request object (see above).
666
666
  #
667
667
  # @param instance [::Google::Cloud::DataFusion::V1::Instance, ::Hash]
668
- # The instance resource that replaces the resource on the server. Currently,
668
+ # Required. The instance resource that replaces the resource on the server. Currently,
669
669
  # Data Fusion only allows replacing labels, options, and stack driver
670
670
  # settings. All other fields will be ignored.
671
671
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
@@ -768,7 +768,7 @@ module Google
768
768
  # the default parameter values, pass an empty Hash as a request object (see above).
769
769
  #
770
770
  # @param name [::String]
771
- # Name of the Data Fusion instance which need to be restarted in the form of
771
+ # Required. Name of the Data Fusion instance which need to be restarted in the form of
772
772
  # projects/\\{project}/locations/\\{location}/instances/\\{instance}
773
773
  #
774
774
  # @yield [response, operation] Access the result along with the RPC operation
@@ -24,6 +24,27 @@ module Google
24
24
  module DataFusion
25
25
  # Path helper methods for the DataFusion API.
26
26
  module Paths
27
+ ##
28
+ # Create a fully-qualified CryptoKey resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param key_ring [String]
37
+ # @param crypto_key [String]
38
+ #
39
+ # @return [::String]
40
+ def crypto_key_path project:, location:, key_ring:, crypto_key:
41
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
42
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
43
+ raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
44
+
45
+ "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
46
+ end
47
+
27
48
  ##
28
49
  # Create a fully-qualified Instance resource string.
29
50
  #
@@ -43,6 +64,23 @@ module Google
43
64
  "projects/#{project}/locations/#{location}/instances/#{instance}"
44
65
  end
45
66
 
67
+ ##
68
+ # Create a fully-qualified Location resource string.
69
+ #
70
+ # The resource will be in the following format:
71
+ #
72
+ # `projects/{project}/locations/{location}`
73
+ #
74
+ # @param project [String]
75
+ # @param location [String]
76
+ #
77
+ # @return [::String]
78
+ def location_path project:, location:
79
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
80
+
81
+ "projects/#{project}/locations/#{location}"
82
+ end
83
+
46
84
  extend self
47
85
  end
48
86
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DataFusion
23
23
  module V1
24
- VERSION = "0.1.3"
24
+ VERSION = "0.1.4"
25
25
  end
26
26
  end
27
27
  end
@@ -20,6 +20,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
20
20
  optional :version_number, :string, 1
21
21
  optional :default_version, :bool, 2
22
22
  repeated :available_features, :string, 3
23
+ optional :type, :enum, 4, "google.cloud.datafusion.v1.Version.Type"
24
+ end
25
+ add_enum "google.cloud.datafusion.v1.Version.Type" do
26
+ value :TYPE_UNSPECIFIED, 0
27
+ value :TYPE_PREVIEW, 1
28
+ value :TYPE_GENERAL_AVAILABILITY, 2
23
29
  end
24
30
  add_message "google.cloud.datafusion.v1.Accelerator" do
25
31
  optional :accelerator_type, :enum, 1, "google.cloud.datafusion.v1.Accelerator.AcceleratorType"
@@ -68,6 +74,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
68
74
  optional :dataproc_service_account, :string, 25
69
75
  optional :enable_rbac, :bool, 27
70
76
  optional :crypto_key_config, :message, 28, "google.cloud.datafusion.v1.CryptoKeyConfig"
77
+ repeated :disabled_reason, :enum, 29, "google.cloud.datafusion.v1.Instance.DisabledReason"
71
78
  end
72
79
  add_enum "google.cloud.datafusion.v1.Instance.Type" do
73
80
  value :TYPE_UNSPECIFIED, 0
@@ -86,6 +93,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
86
93
  value :UPDATING, 7
87
94
  value :AUTO_UPDATING, 8
88
95
  value :AUTO_UPGRADING, 9
96
+ value :DISABLED, 10
97
+ end
98
+ add_enum "google.cloud.datafusion.v1.Instance.DisabledReason" do
99
+ value :DISABLED_REASON_UNSPECIFIED, 0
100
+ value :KMS_KEY_ISSUE, 1
89
101
  end
90
102
  add_message "google.cloud.datafusion.v1.ListInstancesRequest" do
91
103
  optional :parent, :string, 1
@@ -146,6 +158,7 @@ module Google
146
158
  module V1
147
159
  NetworkConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.NetworkConfig").msgclass
148
160
  Version = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.Version").msgclass
161
+ Version::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.Version.Type").enummodule
149
162
  Accelerator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.Accelerator").msgclass
150
163
  Accelerator::AcceleratorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.Accelerator.AcceleratorType").enummodule
151
164
  Accelerator::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.Accelerator.State").enummodule
@@ -153,6 +166,7 @@ module Google
153
166
  Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.Instance").msgclass
154
167
  Instance::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.Instance.Type").enummodule
155
168
  Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.Instance.State").enummodule
169
+ Instance::DisabledReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.Instance.DisabledReason").enummodule
156
170
  ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.ListInstancesRequest").msgclass
157
171
  ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.ListInstancesResponse").msgclass
158
172
  ListAvailableVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.ListAvailableVersionsRequest").msgclass
@@ -54,9 +54,24 @@ module Google
54
54
  # @!attribute [rw] available_features
55
55
  # @return [::Array<::String>]
56
56
  # Represents a list of available feature names for a given version.
57
+ # @!attribute [rw] type
58
+ # @return [::Google::Cloud::DataFusion::V1::Version::Type]
59
+ # Type represents the release availability of the version
57
60
  class Version
58
61
  include ::Google::Protobuf::MessageExts
59
62
  extend ::Google::Protobuf::MessageExts::ClassMethods
63
+
64
+ # Each type represents the release availability of a CDF version
65
+ module Type
66
+ # Version does not have availability yet
67
+ TYPE_UNSPECIFIED = 0
68
+
69
+ # Version is under development and not considered stable
70
+ TYPE_PREVIEW = 1
71
+
72
+ # Version is available for public use
73
+ TYPE_GENERAL_AVAILABILITY = 2
74
+ end
60
75
  end
61
76
 
62
77
  # Identifies Data Fusion accelerators for an instance.
@@ -178,8 +193,7 @@ module Google
178
193
  # Current version of the Data Fusion. Only specifiable in Update.
179
194
  # @!attribute [r] service_account
180
195
  # @return [::String]
181
- # Output only. Deprecated. Use tenant_project_id instead to extract the
182
- # tenant project ID.
196
+ # Output only. Deprecated. Use tenant_project_id instead to extract the tenant project ID.
183
197
  # @!attribute [rw] display_name
184
198
  # @return [::String]
185
199
  # Display name for an instance.
@@ -192,8 +206,7 @@ module Google
192
206
  # Output only. Endpoint on which the REST APIs is accessible.
193
207
  # @!attribute [r] gcs_bucket
194
208
  # @return [::String]
195
- # Output only. Cloud Storage bucket generated by Data Fusion in the customer
196
- # project.
209
+ # Output only. Cloud Storage bucket generated by Data Fusion in the customer project.
197
210
  # @!attribute [rw] accelerators
198
211
  # @return [::Array<::Google::Cloud::DataFusion::V1::Accelerator>]
199
212
  # List of accelerators enabled for this CDF instance.
@@ -217,6 +230,9 @@ module Google
217
230
  # @return [::Google::Cloud::DataFusion::V1::CryptoKeyConfig]
218
231
  # The crypto key configuration. This field is used by the Customer-Managed
219
232
  # Encryption Keys (CMEK) feature.
233
+ # @!attribute [r] disabled_reason
234
+ # @return [::Array<::Google::Cloud::DataFusion::V1::Instance::DisabledReason>]
235
+ # Output only. If the instance state is DISABLED, the reason for disabling the instance.
220
236
  class Instance
221
237
  include ::Google::Protobuf::MessageExts
222
238
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -295,13 +311,25 @@ module Google
295
311
 
296
312
  # Instance is being auto-upgraded
297
313
  AUTO_UPGRADING = 9
314
+
315
+ # Instance is disabled
316
+ DISABLED = 10
317
+ end
318
+
319
+ # The reason for disabling the instance if the state is DISABLED.
320
+ module DisabledReason
321
+ # This is an unknown reason for disabling.
322
+ DISABLED_REASON_UNSPECIFIED = 0
323
+
324
+ # The KMS key used by the instance is either revoked or denied access to
325
+ KMS_KEY_ISSUE = 1
298
326
  end
299
327
  end
300
328
 
301
329
  # Request message for listing Data Fusion instances.
302
330
  # @!attribute [rw] parent
303
331
  # @return [::String]
304
- # The project and location for which to retrieve instance information
332
+ # Required. The project and location for which to retrieve instance information
305
333
  # in the format projects/\\{project}/locations/\\{location}. If the location is
306
334
  # specified as '-' (wildcard), then all regions available to the project
307
335
  # are queried, and the results are aggregated.
@@ -342,8 +370,8 @@ module Google
342
370
  # Request message for the list available versions request.
343
371
  # @!attribute [rw] parent
344
372
  # @return [::String]
345
- # Required. The project and location for which to retrieve instance
346
- # information in the format projects/\\{project}/locations/\\{location}.
373
+ # Required. The project and location for which to retrieve instance information
374
+ # in the format projects/\\{project}/locations/\\{location}.
347
375
  # @!attribute [rw] page_size
348
376
  # @return [::Integer]
349
377
  # The maximum number of items to return.
@@ -377,7 +405,7 @@ module Google
377
405
  # Request message for getting details about a Data Fusion instance.
378
406
  # @!attribute [rw] name
379
407
  # @return [::String]
380
- # The instance resource name in the format
408
+ # Required. The instance resource name in the format
381
409
  # projects/\\{project}/locations/\\{location}/instances/\\{instance}.
382
410
  class GetInstanceRequest
383
411
  include ::Google::Protobuf::MessageExts
@@ -387,11 +415,11 @@ module Google
387
415
  # Request message for creating a Data Fusion instance.
388
416
  # @!attribute [rw] parent
389
417
  # @return [::String]
390
- # The instance's project and location in the format
418
+ # Required. The instance's project and location in the format
391
419
  # projects/\\{project}/locations/\\{location}.
392
420
  # @!attribute [rw] instance_id
393
421
  # @return [::String]
394
- # The name of the instance to create.
422
+ # Required. The name of the instance to create.
395
423
  # @!attribute [rw] instance
396
424
  # @return [::Google::Cloud::DataFusion::V1::Instance]
397
425
  # An instance resource.
@@ -403,16 +431,19 @@ module Google
403
431
  # Request message for deleting a Data Fusion instance.
404
432
  # @!attribute [rw] name
405
433
  # @return [::String]
406
- # The instance resource name in the format
434
+ # Required. The instance resource name in the format
407
435
  # projects/\\{project}/locations/\\{location}/instances/\\{instance}
408
436
  class DeleteInstanceRequest
409
437
  include ::Google::Protobuf::MessageExts
410
438
  extend ::Google::Protobuf::MessageExts::ClassMethods
411
439
  end
412
440
 
441
+ # Request message for updating a Data Fusion instance.
442
+ # Data Fusion allows updating the labels, options, and stack driver settings.
443
+ # This is also used for CDF version upgrade.
413
444
  # @!attribute [rw] instance
414
445
  # @return [::Google::Cloud::DataFusion::V1::Instance]
415
- # The instance resource that replaces the resource on the server. Currently,
446
+ # Required. The instance resource that replaces the resource on the server. Currently,
416
447
  # Data Fusion only allows replacing labels, options, and stack driver
417
448
  # settings. All other fields will be ignored.
418
449
  # @!attribute [rw] update_mask
@@ -431,7 +462,7 @@ module Google
431
462
  # Request message for restarting a Data Fusion instance.
432
463
  # @!attribute [rw] name
433
464
  # @return [::String]
434
- # Name of the Data Fusion instance which need to be restarted in the form of
465
+ # Required. Name of the Data Fusion instance which need to be restarted in the form of
435
466
  # projects/\\{project}/locations/\\{location}/instances/\\{instance}
436
467
  class RestartInstanceRequest
437
468
  include ::Google::Protobuf::MessageExts
@@ -458,9 +489,8 @@ module Google
458
489
  # @return [::Boolean]
459
490
  # Identifies whether the user has requested cancellation
460
491
  # of the operation. Operations that have successfully been cancelled
461
- # have [Operation.error][] value with a
462
- # {::Google::Rpc::Status#code google.rpc.Status.code} of 1, corresponding to
463
- # `Code.CANCELLED`.
492
+ # have [Operation.error][] value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
493
+ # corresponding to `Code.CANCELLED`.
464
494
  # @!attribute [rw] api_version
465
495
  # @return [::String]
466
496
  # API version used to start the operation.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-data_fusion-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -209,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
209
  - !ruby/object:Gem::Version
210
210
  version: '0'
211
211
  requirements: []
212
- rubygems_version: 3.3.4
212
+ rubygems_version: 3.3.5
213
213
  signing_key:
214
214
  specification_version: 4
215
215
  summary: API Client library for the Cloud Data Fusion V1 API