google-cloud-dataplex-v1 0.6.1 → 0.7.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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dataplex/v1/bindings_override.rb +327 -0
  4. data/lib/google/cloud/dataplex/v1/content_service/client.rb +4 -6
  5. data/lib/google/cloud/dataplex/v1/content_service/rest/client.rb +969 -0
  6. data/lib/google/cloud/dataplex/v1/content_service/rest/service_stub.rb +584 -0
  7. data/lib/google/cloud/dataplex/v1/content_service/rest.rb +53 -0
  8. data/lib/google/cloud/dataplex/v1/content_service.rb +6 -0
  9. data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +20 -24
  10. data/lib/google/cloud/dataplex/v1/data_scan_service/operations.rb +12 -14
  11. data/lib/google/cloud/dataplex/v1/data_scan_service/rest/client.rb +948 -0
  12. data/lib/google/cloud/dataplex/v1/data_scan_service/rest/operations.rb +793 -0
  13. data/lib/google/cloud/dataplex/v1/data_scan_service/rest/service_stub.rb +523 -0
  14. data/lib/google/cloud/dataplex/v1/data_scan_service/rest.rb +56 -0
  15. data/lib/google/cloud/dataplex/v1/data_scan_service.rb +6 -0
  16. data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +100 -120
  17. data/lib/google/cloud/dataplex/v1/dataplex_service/operations.rb +12 -14
  18. data/lib/google/cloud/dataplex/v1/dataplex_service/rest/client.rb +2910 -0
  19. data/lib/google/cloud/dataplex/v1/dataplex_service/rest/operations.rb +793 -0
  20. data/lib/google/cloud/dataplex/v1/dataplex_service/rest/service_stub.rb +1947 -0
  21. data/lib/google/cloud/dataplex/v1/dataplex_service/rest.rb +58 -0
  22. data/lib/google/cloud/dataplex/v1/dataplex_service.rb +6 -0
  23. data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +8 -12
  24. data/lib/google/cloud/dataplex/v1/metadata_service/rest/client.rb +1051 -0
  25. data/lib/google/cloud/dataplex/v1/metadata_service/rest/service_stub.rb +582 -0
  26. data/lib/google/cloud/dataplex/v1/metadata_service/rest.rb +54 -0
  27. data/lib/google/cloud/dataplex/v1/metadata_service.rb +6 -0
  28. data/lib/google/cloud/dataplex/v1/rest.rb +41 -0
  29. data/lib/google/cloud/dataplex/v1/version.rb +1 -1
  30. data/lib/google/cloud/dataplex/v1.rb +5 -0
  31. metadata +27 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db9919f82c0cfe70b77f610aea3eb22fe6c3d897818cf8c3ab4aa53ad2d2f2fe
4
- data.tar.gz: 5c926aefa9e9220b129a30174636b497857521ebf8b03f65e66852692add254c
3
+ metadata.gz: c58a57481bf5842392003f343f92c62a4bb24e93747ea38f8d427df0a4bd85cb
4
+ data.tar.gz: 75203c64c890331bfdd291b08dbc79a5f03cf04c504ecc2dcc2cae68521972f4
5
5
  SHA512:
6
- metadata.gz: 18d5cd892a84a28d04a49d011163b2aff7cf95c5a3024c8c61b8709e965f74b829d1f40d22364981de2fbe2b2846d4765f1cb58e649bab51af4ee97326e39801
7
- data.tar.gz: 879ac81b3a5d090ba9d017509aca61e92c9d7b22aa6f7d1b90b9cf1826b261ccbe06d7662622ffb7ca0b5e5c4f7d318cb3682b47dc1d884216c52829b49a60e9
6
+ metadata.gz: ef109669b7db796c040d6df202f084c4338398f42e113eeeba20b301c8e415d2d872f7be57746d1b73542fd34fc9312aad2ab5af8d0d2a32e65e232f99a93b9d
7
+ data.tar.gz: 82f4604261d34348b93fb301b1b2e890d9328d272e3aa3611c2c19170f95056a28df1ee48bdf30b871e50863f21e6f3c43e179662f1374d5276c3a495cef7460
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Dataplex V1 API
2
2
 
3
- API Client library for the Dataplex V1 API
3
+ Dataplex API is used to manage the lifecycle of data lakes.
4
4
 
5
5
  Dataplex is an intelligent data fabric that provides a way to centrally manage, monitor, and govern your data across data lakes, data warehouses and data marts, and make this data securely accessible to a variety of analytics and data science tools.
6
6
 
@@ -0,0 +1,327 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/config"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Dataplex
24
+ ##
25
+ # @example Loading just the REST part of this package, including all its services, and instantiating a REST client
26
+ #
27
+ # require "google/cloud/dataplex/v1/rest"
28
+ # client = ::Google::Cloud::Dataplex::V1::ContentService::Rest::Client.new
29
+ #
30
+ module V1
31
+ ##
32
+ # @private
33
+ # Initialize the mixin bindings configuration
34
+ #
35
+ def self.configure
36
+ @configure ||= begin
37
+ namespace = ["Google", "Cloud", "Dataplex"]
38
+ parent_config = while namespace.any?
39
+ parent_name = namespace.join "::"
40
+ parent_const = const_get parent_name
41
+ break parent_const.configure if parent_const.respond_to? :configure
42
+ namespace.pop
43
+ end
44
+
45
+ default_config = Configuration.new parent_config
46
+ default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
47
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
48
+ uri_method: :get,
49
+ uri_template: "/v1/{name}",
50
+ matches: [
51
+ ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
52
+ ],
53
+ body: nil
54
+ )
55
+ ]
56
+ default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
57
+
58
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
59
+ uri_method: :get,
60
+ uri_template: "/v1/{name}/locations",
61
+ matches: [
62
+ ["name", %r{^projects/[^/]+/?$}, false]
63
+ ],
64
+ body: nil
65
+ )
66
+ ]
67
+ default_config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"] = [
68
+
69
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
70
+ uri_method: :get,
71
+ uri_template: "/v1/{resource}:getIamPolicy",
72
+ matches: [
73
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/?$}, false]
74
+ ],
75
+ body: nil
76
+ ),
77
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
78
+ uri_method: :get,
79
+ uri_template: "/v1/{resource}:getIamPolicy",
80
+ matches: [
81
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/zones/[^/]+/?$}, false]
82
+ ],
83
+ body: nil
84
+ ),
85
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
86
+ uri_method: :get,
87
+ uri_template: "/v1/{resource}:getIamPolicy",
88
+ matches: [
89
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/zones/[^/]+/assets/[^/]+/?$}, false]
90
+ ],
91
+ body: nil
92
+ ),
93
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
94
+ uri_method: :get,
95
+ uri_template: "/v1/{resource}:getIamPolicy",
96
+ matches: [
97
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/tasks/[^/]+/?$}, false]
98
+ ],
99
+ body: nil
100
+ ),
101
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
102
+ uri_method: :get,
103
+ uri_template: "/v1/{resource}:getIamPolicy",
104
+ matches: [
105
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/environments/[^/]+/?$}, false]
106
+ ],
107
+ body: nil
108
+ ),
109
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
110
+ uri_method: :get,
111
+ uri_template: "/v1/{resource}:getIamPolicy",
112
+ matches: [
113
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/dataScans/[^/]+/?$}, false]
114
+ ],
115
+ body: nil
116
+ ),
117
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
118
+ uri_method: :get,
119
+ uri_template: "/v1/{resource}:getIamPolicy",
120
+ matches: [
121
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+/?$}, false]
122
+ ],
123
+ body: nil
124
+ ),
125
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
126
+ uri_method: :get,
127
+ uri_template: "/v1/{resource}:getIamPolicy",
128
+ matches: [
129
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+/attributes/[^/]+/?$}, false]
130
+ ],
131
+ body: nil
132
+ ),
133
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
134
+ uri_method: :get,
135
+ uri_template: "/v1/{resource}:getIamPolicy",
136
+ matches: [
137
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/dataAttributeBindings/[^/]+/?$}, false]
138
+ ],
139
+ body: nil
140
+ )
141
+ ]
142
+ default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [
143
+
144
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
145
+ uri_method: :post,
146
+ uri_template: "/v1/{resource}:setIamPolicy",
147
+ matches: [
148
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/?$}, false]
149
+ ],
150
+ body: "*"
151
+ ),
152
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
153
+ uri_method: :post,
154
+ uri_template: "/v1/{resource}:setIamPolicy",
155
+ matches: [
156
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/zones/[^/]+/?$}, false]
157
+ ],
158
+ body: "*"
159
+ ),
160
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
161
+ uri_method: :post,
162
+ uri_template: "/v1/{resource}:setIamPolicy",
163
+ matches: [
164
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/zones/[^/]+/assets/[^/]+/?$}, false]
165
+ ],
166
+ body: "*"
167
+ ),
168
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
169
+ uri_method: :post,
170
+ uri_template: "/v1/{resource}:setIamPolicy",
171
+ matches: [
172
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/tasks/[^/]+/?$}, false]
173
+ ],
174
+ body: "*"
175
+ ),
176
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
177
+ uri_method: :post,
178
+ uri_template: "/v1/{resource}:setIamPolicy",
179
+ matches: [
180
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/environments/[^/]+/?$}, false]
181
+ ],
182
+ body: "*"
183
+ ),
184
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
185
+ uri_method: :post,
186
+ uri_template: "/v1/{resource}:setIamPolicy",
187
+ matches: [
188
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/dataScans/[^/]+/?$}, false]
189
+ ],
190
+ body: "*"
191
+ ),
192
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
193
+ uri_method: :post,
194
+ uri_template: "/v1/{resource}:setIamPolicy",
195
+ matches: [
196
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+/?$}, false]
197
+ ],
198
+ body: "*"
199
+ ),
200
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
201
+ uri_method: :post,
202
+ uri_template: "/v1/{resource}:setIamPolicy",
203
+ matches: [
204
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+/attributes/[^/]+/?$}, false]
205
+ ],
206
+ body: "*"
207
+ ),
208
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
209
+ uri_method: :post,
210
+ uri_template: "/v1/{resource}:setIamPolicy",
211
+ matches: [
212
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/dataAttributeBindings/[^/]+/?$}, false]
213
+ ],
214
+ body: "*"
215
+ )
216
+ ]
217
+ default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [
218
+
219
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
220
+ uri_method: :post,
221
+ uri_template: "/v1/{resource}:testIamPermissions",
222
+ matches: [
223
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/?$}, false]
224
+ ],
225
+ body: "*"
226
+ ),
227
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
228
+ uri_method: :post,
229
+ uri_template: "/v1/{resource}:testIamPermissions",
230
+ matches: [
231
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/zones/[^/]+/?$}, false]
232
+ ],
233
+ body: "*"
234
+ ),
235
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
236
+ uri_method: :post,
237
+ uri_template: "/v1/{resource}:testIamPermissions",
238
+ matches: [
239
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/zones/[^/]+/assets/[^/]+/?$}, false]
240
+ ],
241
+ body: "*"
242
+ ),
243
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
244
+ uri_method: :post,
245
+ uri_template: "/v1/{resource}:testIamPermissions",
246
+ matches: [
247
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/tasks/[^/]+/?$}, false]
248
+ ],
249
+ body: "*"
250
+ ),
251
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
252
+ uri_method: :post,
253
+ uri_template: "/v1/{resource}:testIamPermissions",
254
+ matches: [
255
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/lakes/[^/]+/environments/[^/]+/?$}, false]
256
+ ],
257
+ body: "*"
258
+ ),
259
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
260
+ uri_method: :post,
261
+ uri_template: "/v1/{resource}:testIamPermissions",
262
+ matches: [
263
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/dataScans/[^/]+/?$}, false]
264
+ ],
265
+ body: "*"
266
+ ),
267
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
268
+ uri_method: :post,
269
+ uri_template: "/v1/{resource}:testIamPermissions",
270
+ matches: [
271
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+/?$}, false]
272
+ ],
273
+ body: "*"
274
+ ),
275
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
276
+ uri_method: :post,
277
+ uri_template: "/v1/{resource}:testIamPermissions",
278
+ matches: [
279
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/dataTaxonomies/[^/]+/attributes/[^/]+/?$}, false]
280
+ ],
281
+ body: "*"
282
+ ),
283
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
284
+ uri_method: :post,
285
+ uri_template: "/v1/{resource}:testIamPermissions",
286
+ matches: [
287
+ ["resource", %r{^projects/[^/]+/locations/[^/]+/dataAttributeBindings/[^/]+/?$}, false]
288
+ ],
289
+ body: "*"
290
+ )
291
+ ]
292
+ default_config
293
+ end
294
+ yield @configure if block_given?
295
+ @configure
296
+ end
297
+
298
+ ##
299
+ # @private
300
+ # Configuration class for the google.cloud.dataplex.v1 package.
301
+ #
302
+ # This class contains common configuration for all services
303
+ # of the google.cloud.dataplex.v1 package.
304
+ #
305
+ # This configuration is for internal use of the client library classes,
306
+ # and it is not intended that the end-users will read or change it.
307
+ #
308
+ class Configuration
309
+ extend ::Gapic::Config
310
+
311
+ # @private
312
+ # Overrides for http bindings for the RPC of the mixins for this package.
313
+ # Services in this package should use these when creating clients for the mixin services.
314
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
315
+ config_attr :bindings_override, {}, ::Hash, nil
316
+
317
+ # @private
318
+ def initialize parent_config = nil
319
+ @parent_config = parent_config unless parent_config.nil?
320
+
321
+ yield self if block_given?
322
+ end
323
+ end
324
+ end
325
+ end
326
+ end
327
+ end
@@ -912,13 +912,11 @@ module Google
912
912
  # # Call the list_content method.
913
913
  # result = client.list_content request
914
914
  #
915
- # # The returned object is of type Gapic::PagedEnumerable. You can
916
- # # iterate over all elements by calling #each, and the enumerable
917
- # # will lazily make API calls to fetch subsequent pages. Other
918
- # # methods are also available for managing paging directly.
919
- # result.each do |response|
915
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
916
+ # # over elements, and API calls will be issued to fetch pages as needed.
917
+ # result.each do |item|
920
918
  # # Each element is of type ::Google::Cloud::Dataplex::V1::Content.
921
- # p response
919
+ # p item
922
920
  # end
923
921
  #
924
922
  def list_content request, options = nil