google-cloud-data_fusion-v1 0.1.2 → 0.2.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: 4453d3a6c983261a8be358697f20ee9ecfc2cccb324bfde37927bfeaaf350fcc
4
- data.tar.gz: 24a3845571a11cc66e176d18f3eea8e629263c7e19d8a8bde0f1fdf78b1bc1e5
3
+ metadata.gz: d46029621412f2b0077d668b3f7a9d2cadfa121175ccc18453424bcaa3976a38
4
+ data.tar.gz: 391a8bcf9c2ab58585dc3399740f1d51d530634decfbcfc073e976b477e645a4
5
5
  SHA512:
6
- metadata.gz: 6d6257b738dd173b5da8ef677a214ad6a7806b1fad2f2f31273d7a51ba4a526ef8fb03155a48f3f7528d76fcf428aef429f3436559bdfec5ecee490ddbf6cd72
7
- data.tar.gz: d490c132dae9322d160e12b3353215353ade70004778d9571f5b09f6a3ed384676bafe508e4f3cb30a95c94dae4f0f129cc8cda0f55a4984bb3798ec7edeb2ae
6
+ metadata.gz: 0c9f6505401ddfc81e399cabb423e8205935af7c4c7917b5be90142749207318b9cfb3eb84005809b424dcf3923ca6909d93f35fe53cd933dfabfe2d4734835c
7
+ data.tar.gz: 54f8947145ac8b50c49061873826b729d09d78add840886e95921893981992866866b450295dc70d7ae6fb7aae2ffffd8dd6634c0c6039ebfe320e7914e63e47
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Cloud Data Fusion V1 API
2
+ --title="Cloud Data Fusion V1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -118,15 +118,6 @@ To configure your system for this, simply:
118
118
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
119
119
  *should* only be used during development.
120
120
 
121
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
122
- [dev-console]: https://console.cloud.google.com/project
123
-
124
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
125
-
126
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
127
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
128
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
129
-
130
121
  ## Creating a Service Account
131
122
 
132
123
  Google Cloud requires **Service Account Credentials** to
@@ -137,31 +128,22 @@ If you are not running this client within
137
128
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
138
129
  need a Google Developers service account.
139
130
 
140
- 1. Visit the [Google Developers Console][dev-console].
131
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
141
132
  2. Create a new project or click on an existing project.
142
- 3. Activate the slide-out navigation tray and select **API Manager**. From
133
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
143
134
  here, you will enable the APIs that your application requires.
144
135
 
145
- ![Enable the APIs that your application requires][enable-apis]
146
-
147
136
  *Note: You may need to enable billing in order to use these services.*
148
137
 
149
138
  4. Select **Credentials** from the side navigation.
150
139
 
151
- You should see a screen like one of the following.
152
-
153
- ![Create a new service account][create-new-service-account]
154
-
155
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
156
-
157
- Find the "Add credentials" drop down and select "Service account" to be
158
- guided through downloading a new JSON key file.
140
+ Find the "Create credentials" drop down near the top of the page, and select
141
+ "Service account" to be guided through downloading a new JSON key file.
159
142
 
160
143
  If you want to re-use an existing service account, you can easily generate a
161
- new key file. Just select the account you wish to re-use, and click "Generate
162
- new JSON key":
163
-
164
- ![Re-use an existing service account][reuse-service-account]
144
+ new key file. Just select the account you wish to re-use, click the pencil
145
+ tool on the right side to edit the service account, select the **Keys** tab,
146
+ and then select **Add Key**.
165
147
 
166
148
  The key file you download will be used by this library to authenticate API
167
149
  requests and should be stored in a secure location.
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::DataFusion::V1::ListAvailableVersionsRequest.new # (r
37
37
  response = client.list_available_versions request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-data_fusion-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-data_fusion-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/data-fusion)
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -139,6 +139,7 @@ module Google
139
139
 
140
140
  @operations_client = Operations.new do |config|
141
141
  config.credentials = credentials
142
+ config.quota_project = @quota_project_id
142
143
  config.endpoint = @config.endpoint
143
144
  end
144
145
 
@@ -180,8 +181,8 @@ module Google
180
181
  # the default parameter values, pass an empty Hash as a request object (see above).
181
182
  #
182
183
  # @param parent [::String]
183
- # Required. The project and location for which to retrieve instance
184
- # 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}.
185
186
  # @param page_size [::Integer]
186
187
  # The maximum number of items to return.
187
188
  # @param page_token [::String]
@@ -282,7 +283,7 @@ module Google
282
283
  # the default parameter values, pass an empty Hash as a request object (see above).
283
284
  #
284
285
  # @param parent [::String]
285
- # The project and location for which to retrieve instance information
286
+ # Required. The project and location for which to retrieve instance information
286
287
  # in the format projects/\\{project}/locations/\\{location}. If the location is
287
288
  # specified as '-' (wildcard), then all regions available to the project
288
289
  # are queried, and the results are aggregated.
@@ -386,7 +387,7 @@ module Google
386
387
  # the default parameter values, pass an empty Hash as a request object (see above).
387
388
  #
388
389
  # @param name [::String]
389
- # The instance resource name in the format
390
+ # Required. The instance resource name in the format
390
391
  # projects/\\{project}/locations/\\{location}/instances/\\{instance}.
391
392
  #
392
393
  # @yield [response, operation] Access the result along with the RPC operation
@@ -472,10 +473,10 @@ module Google
472
473
  # the default parameter values, pass an empty Hash as a request object (see above).
473
474
  #
474
475
  # @param parent [::String]
475
- # The instance's project and location in the format
476
+ # Required. The instance's project and location in the format
476
477
  # projects/\\{project}/locations/\\{location}.
477
478
  # @param instance_id [::String]
478
- # The name of the instance to create.
479
+ # Required. The name of the instance to create.
479
480
  # @param instance [::Google::Cloud::DataFusion::V1::Instance, ::Hash]
480
481
  # An instance resource.
481
482
  #
@@ -570,7 +571,7 @@ module Google
570
571
  # the default parameter values, pass an empty Hash as a request object (see above).
571
572
  #
572
573
  # @param name [::String]
573
- # The instance resource name in the format
574
+ # Required. The instance resource name in the format
574
575
  # projects/\\{project}/locations/\\{location}/instances/\\{instance}
575
576
  #
576
577
  # @yield [response, operation] Access the result along with the RPC operation
@@ -664,7 +665,7 @@ module Google
664
665
  # the default parameter values, pass an empty Hash as a request object (see above).
665
666
  #
666
667
  # @param instance [::Google::Cloud::DataFusion::V1::Instance, ::Hash]
667
- # The instance resource that replaces the resource on the server. Currently,
668
+ # Required. The instance resource that replaces the resource on the server. Currently,
668
669
  # Data Fusion only allows replacing labels, options, and stack driver
669
670
  # settings. All other fields will be ignored.
670
671
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
@@ -767,7 +768,7 @@ module Google
767
768
  # the default parameter values, pass an empty Hash as a request object (see above).
768
769
  #
769
770
  # @param name [::String]
770
- # 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
771
772
  # projects/\\{project}/locations/\\{location}/instances/\\{instance}
772
773
  #
773
774
  # @yield [response, operation] Access the result along with the RPC operation
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -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.2"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/cloud/data_fusion/v1"
29
31
  # client = ::Google::Cloud::DataFusion::V1::DataFusion::Client.new
30
32
  #
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/datafusion/v1/datafusion.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -8,7 +10,6 @@ require 'google/api/resource_pb'
8
10
  require 'google/longrunning/operations_pb'
9
11
  require 'google/protobuf/field_mask_pb'
10
12
  require 'google/protobuf/timestamp_pb'
11
- require 'google/protobuf'
12
13
 
13
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
15
  add_file("google/cloud/datafusion/v1/datafusion.proto", :syntax => :proto3) do
@@ -20,6 +21,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
20
21
  optional :version_number, :string, 1
21
22
  optional :default_version, :bool, 2
22
23
  repeated :available_features, :string, 3
24
+ optional :type, :enum, 4, "google.cloud.datafusion.v1.Version.Type"
25
+ end
26
+ add_enum "google.cloud.datafusion.v1.Version.Type" do
27
+ value :TYPE_UNSPECIFIED, 0
28
+ value :TYPE_PREVIEW, 1
29
+ value :TYPE_GENERAL_AVAILABILITY, 2
23
30
  end
24
31
  add_message "google.cloud.datafusion.v1.Accelerator" do
25
32
  optional :accelerator_type, :enum, 1, "google.cloud.datafusion.v1.Accelerator.AcceleratorType"
@@ -68,6 +75,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
68
75
  optional :dataproc_service_account, :string, 25
69
76
  optional :enable_rbac, :bool, 27
70
77
  optional :crypto_key_config, :message, 28, "google.cloud.datafusion.v1.CryptoKeyConfig"
78
+ repeated :disabled_reason, :enum, 29, "google.cloud.datafusion.v1.Instance.DisabledReason"
71
79
  end
72
80
  add_enum "google.cloud.datafusion.v1.Instance.Type" do
73
81
  value :TYPE_UNSPECIFIED, 0
@@ -86,6 +94,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
86
94
  value :UPDATING, 7
87
95
  value :AUTO_UPDATING, 8
88
96
  value :AUTO_UPGRADING, 9
97
+ value :DISABLED, 10
98
+ end
99
+ add_enum "google.cloud.datafusion.v1.Instance.DisabledReason" do
100
+ value :DISABLED_REASON_UNSPECIFIED, 0
101
+ value :KMS_KEY_ISSUE, 1
89
102
  end
90
103
  add_message "google.cloud.datafusion.v1.ListInstancesRequest" do
91
104
  optional :parent, :string, 1
@@ -146,6 +159,7 @@ module Google
146
159
  module V1
147
160
  NetworkConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.NetworkConfig").msgclass
148
161
  Version = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.Version").msgclass
162
+ Version::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.Version.Type").enummodule
149
163
  Accelerator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.Accelerator").msgclass
150
164
  Accelerator::AcceleratorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.Accelerator.AcceleratorType").enummodule
151
165
  Accelerator::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.Accelerator.State").enummodule
@@ -153,6 +167,7 @@ module Google
153
167
  Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.Instance").msgclass
154
168
  Instance::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.Instance.Type").enummodule
155
169
  Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.Instance.State").enummodule
170
+ Instance::DisabledReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.Instance.DisabledReason").enummodule
156
171
  ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.ListInstancesRequest").msgclass
157
172
  ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.ListInstancesResponse").msgclass
158
173
  ListAvailableVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datafusion.v1.ListAvailableVersionsRequest").msgclass
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -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.
@@ -44,7 +44,7 @@ module Google
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
46
  #
47
- # Example 3: Pack and unpack a message in Python.
47
+ # Example 3: Pack and unpack a message in Python.
48
48
  #
49
49
  # foo = Foo(...)
50
50
  # any = Any()
@@ -54,7 +54,7 @@ module Google
54
54
  # any.Unpack(foo)
55
55
  # ...
56
56
  #
57
- # Example 4: Pack and unpack a message in Go
57
+ # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
60
  # any, err := anypb.New(foo)
@@ -75,7 +75,7 @@ module Google
75
75
  #
76
76
  #
77
77
  # JSON
78
- # ====
78
+ #
79
79
  # The JSON representation of an `Any` value uses the regular
80
80
  # representation of the deserialized, embedded message, with an
81
81
  # additional field `@type` which contains the type URL. Example:
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.2
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-11-08 00:00:00.000000000 Z
11
+ date: 2022-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: '0.10'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: '0.10'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,28 +50,28 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.25.1
53
+ version: 1.26.1
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.25.1
60
+ version: 1.26.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '5.14'
67
+ version: '5.16'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '5.14'
74
+ version: '5.16'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: minitest-focus
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: '12.0'
109
+ version: '13.0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: '12.0'
116
+ version: '13.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: redcarpet
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -202,14 +202,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
202
202
  requirements:
203
203
  - - ">="
204
204
  - !ruby/object:Gem::Version
205
- version: '2.5'
205
+ version: '2.6'
206
206
  required_rubygems_version: !ruby/object:Gem::Requirement
207
207
  requirements:
208
208
  - - ">="
209
209
  - !ruby/object:Gem::Version
210
210
  version: '0'
211
211
  requirements: []
212
- rubygems_version: 3.2.17
212
+ rubygems_version: 3.3.14
213
213
  signing_key:
214
214
  specification_version: 4
215
215
  summary: API Client library for the Cloud Data Fusion V1 API