google-cloud-dataplex 0.4.1 → 1.0.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 +4 -4
- data/README.md +1 -27
- data/lib/google/cloud/dataplex/version.rb +1 -1
- data/lib/google/cloud/dataplex.rb +46 -30
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7e1c00487b297793f5ec55ffb4f95953024a6d0192db4a44fb391bb1f3f841bd
|
|
4
|
+
data.tar.gz: ce5bbad3f4941fa272417662557d6a4d1bae0fa871863685958599f686ad142e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a89409eec425f67b749bd6ada3e32e8fd3bf282cf59c0d1dc451ab788fec5a6c74c826f23412ecb141013606d813345bf3a39072b78c4a49123b598b19994e4d
|
|
7
|
+
data.tar.gz: d99105b4f51c930fdef285f74c38f82cfc6fc1bfbe696aa09361236d67e6474a219e71ea7572e8da3a959c03eb5007b4bf43baf90cc291b190a5dc44c097b65b
|
data/README.md
CHANGED
|
@@ -16,7 +16,7 @@ for this library, google-cloud-dataplex, to see the convenience methods for
|
|
|
16
16
|
constructing client objects. Reference documentation for the client objects
|
|
17
17
|
themselves can be found in the client library documentation for the versioned
|
|
18
18
|
client gems:
|
|
19
|
-
[google-cloud-dataplex-v1](https://
|
|
19
|
+
[google-cloud-dataplex-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest).
|
|
20
20
|
|
|
21
21
|
See also the [Product Documentation](https://cloud.google.com/dataplex/)
|
|
22
22
|
for more usage information.
|
|
@@ -34,32 +34,6 @@ In order to use this library, you first need to go through the following steps:
|
|
|
34
34
|
1. [Enable the API.](https://console.cloud.google.com/apis/library/dataplex.googleapis.com)
|
|
35
35
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
|
36
36
|
|
|
37
|
-
## Enabling Logging
|
|
38
|
-
|
|
39
|
-
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
|
40
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
|
41
|
-
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
|
42
|
-
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
|
43
|
-
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
|
44
|
-
|
|
45
|
-
Configuring a Ruby stdlib logger:
|
|
46
|
-
|
|
47
|
-
```ruby
|
|
48
|
-
require "logger"
|
|
49
|
-
|
|
50
|
-
module MyLogger
|
|
51
|
-
LOGGER = Logger.new $stderr, level: Logger::WARN
|
|
52
|
-
def logger
|
|
53
|
-
LOGGER
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
|
58
|
-
module GRPC
|
|
59
|
-
extend MyLogger
|
|
60
|
-
end
|
|
61
|
-
```
|
|
62
|
-
|
|
63
37
|
## Supported Ruby Versions
|
|
64
38
|
|
|
65
39
|
This library is supported on Ruby 2.6+.
|
|
@@ -48,12 +48,14 @@ module Google
|
|
|
48
48
|
# Create a new client object for ContentService.
|
|
49
49
|
#
|
|
50
50
|
# By default, this returns an instance of
|
|
51
|
-
# [Google::Cloud::Dataplex::V1::ContentService::Client](https://
|
|
51
|
+
# [Google::Cloud::Dataplex::V1::ContentService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-ContentService-Client)
|
|
52
52
|
# for a gRPC client for version V1 of the API.
|
|
53
53
|
# However, you can specify a different API version by passing it in the
|
|
54
54
|
# `version` parameter. If the ContentService service is
|
|
55
55
|
# supported by that API version, and the corresponding gem is available, the
|
|
56
56
|
# appropriate versioned client will be returned.
|
|
57
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
|
58
|
+
# the `transport` parameter.
|
|
57
59
|
#
|
|
58
60
|
# ## About ContentService
|
|
59
61
|
#
|
|
@@ -61,9 +63,10 @@ module Google
|
|
|
61
63
|
#
|
|
62
64
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
63
65
|
# Defaults to `:v1`.
|
|
66
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
64
67
|
# @return [::Object] A client object for the specified version.
|
|
65
68
|
#
|
|
66
|
-
def self.content_service version: :v1, &block
|
|
69
|
+
def self.content_service version: :v1, transport: :grpc, &block
|
|
67
70
|
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
|
68
71
|
|
|
69
72
|
package_name = Google::Cloud::Dataplex
|
|
@@ -71,103 +74,116 @@ module Google
|
|
|
71
74
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
72
75
|
.first
|
|
73
76
|
service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:ContentService)
|
|
77
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
|
74
78
|
service_module.const_get(:Client).new(&block)
|
|
75
79
|
end
|
|
76
80
|
|
|
77
81
|
##
|
|
78
|
-
# Create a new client object for
|
|
82
|
+
# Create a new client object for DataplexService.
|
|
79
83
|
#
|
|
80
84
|
# By default, this returns an instance of
|
|
81
|
-
# [Google::Cloud::Dataplex::V1::
|
|
85
|
+
# [Google::Cloud::Dataplex::V1::DataplexService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-DataplexService-Client)
|
|
82
86
|
# for a gRPC client for version V1 of the API.
|
|
83
87
|
# However, you can specify a different API version by passing it in the
|
|
84
|
-
# `version` parameter. If the
|
|
88
|
+
# `version` parameter. If the DataplexService service is
|
|
85
89
|
# supported by that API version, and the corresponding gem is available, the
|
|
86
90
|
# appropriate versioned client will be returned.
|
|
91
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
|
92
|
+
# the `transport` parameter.
|
|
87
93
|
#
|
|
88
|
-
# ## About
|
|
94
|
+
# ## About DataplexService
|
|
89
95
|
#
|
|
90
|
-
#
|
|
91
|
-
#
|
|
92
|
-
#
|
|
96
|
+
# Dataplex service provides data lakes as a service. The primary resources
|
|
97
|
+
# offered by this service are Lakes, Zones and Assets which collectively allow
|
|
98
|
+
# a data administrator to organize, manage, secure and catalog data across
|
|
99
|
+
# their organization located across cloud projects in a variety of storage
|
|
100
|
+
# systems including Cloud Storage and BigQuery.
|
|
93
101
|
#
|
|
94
102
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
95
103
|
# Defaults to `:v1`.
|
|
104
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
96
105
|
# @return [::Object] A client object for the specified version.
|
|
97
106
|
#
|
|
98
|
-
def self.
|
|
107
|
+
def self.dataplex_service version: :v1, transport: :grpc, &block
|
|
99
108
|
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
|
100
109
|
|
|
101
110
|
package_name = Google::Cloud::Dataplex
|
|
102
111
|
.constants
|
|
103
112
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
104
113
|
.first
|
|
105
|
-
service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:
|
|
114
|
+
service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:DataplexService)
|
|
115
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
|
106
116
|
service_module.const_get(:Client).new(&block)
|
|
107
117
|
end
|
|
108
118
|
|
|
109
119
|
##
|
|
110
|
-
# Create a new client object for
|
|
120
|
+
# Create a new client object for DataScanService.
|
|
111
121
|
#
|
|
112
122
|
# By default, this returns an instance of
|
|
113
|
-
# [Google::Cloud::Dataplex::V1::
|
|
123
|
+
# [Google::Cloud::Dataplex::V1::DataScanService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-DataScanService-Client)
|
|
114
124
|
# for a gRPC client for version V1 of the API.
|
|
115
125
|
# However, you can specify a different API version by passing it in the
|
|
116
|
-
# `version` parameter. If the
|
|
126
|
+
# `version` parameter. If the DataScanService service is
|
|
117
127
|
# supported by that API version, and the corresponding gem is available, the
|
|
118
128
|
# appropriate versioned client will be returned.
|
|
129
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
|
130
|
+
# the `transport` parameter.
|
|
119
131
|
#
|
|
120
|
-
# ## About
|
|
132
|
+
# ## About DataScanService
|
|
121
133
|
#
|
|
122
|
-
#
|
|
123
|
-
#
|
|
134
|
+
# DataScanService manages DataScan resources which can be configured to run
|
|
135
|
+
# various types of data scanning workload and generate enriched metadata (e.g.
|
|
136
|
+
# Data Profile, Data Quality) for the data source.
|
|
124
137
|
#
|
|
125
138
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
126
139
|
# Defaults to `:v1`.
|
|
140
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
127
141
|
# @return [::Object] A client object for the specified version.
|
|
128
142
|
#
|
|
129
|
-
def self.
|
|
143
|
+
def self.data_scan_service version: :v1, transport: :grpc, &block
|
|
130
144
|
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
|
131
145
|
|
|
132
146
|
package_name = Google::Cloud::Dataplex
|
|
133
147
|
.constants
|
|
134
148
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
135
149
|
.first
|
|
136
|
-
service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:
|
|
150
|
+
service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:DataScanService)
|
|
151
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
|
137
152
|
service_module.const_get(:Client).new(&block)
|
|
138
153
|
end
|
|
139
154
|
|
|
140
155
|
##
|
|
141
|
-
# Create a new client object for
|
|
156
|
+
# Create a new client object for MetadataService.
|
|
142
157
|
#
|
|
143
158
|
# By default, this returns an instance of
|
|
144
|
-
# [Google::Cloud::Dataplex::V1::
|
|
159
|
+
# [Google::Cloud::Dataplex::V1::MetadataService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-MetadataService-Client)
|
|
145
160
|
# for a gRPC client for version V1 of the API.
|
|
146
161
|
# However, you can specify a different API version by passing it in the
|
|
147
|
-
# `version` parameter. If the
|
|
162
|
+
# `version` parameter. If the MetadataService service is
|
|
148
163
|
# supported by that API version, and the corresponding gem is available, the
|
|
149
164
|
# appropriate versioned client will be returned.
|
|
165
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
|
166
|
+
# the `transport` parameter.
|
|
150
167
|
#
|
|
151
|
-
# ## About
|
|
168
|
+
# ## About MetadataService
|
|
152
169
|
#
|
|
153
|
-
#
|
|
154
|
-
#
|
|
155
|
-
# a data administrator to organize, manage, secure and catalog data across
|
|
156
|
-
# their organization located across cloud projects in a variety of storage
|
|
157
|
-
# systems including Cloud Storage and BigQuery.
|
|
170
|
+
# Metadata service manages metadata resources such as tables, filesets and
|
|
171
|
+
# partitions.
|
|
158
172
|
#
|
|
159
173
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
160
174
|
# Defaults to `:v1`.
|
|
175
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
161
176
|
# @return [::Object] A client object for the specified version.
|
|
162
177
|
#
|
|
163
|
-
def self.
|
|
178
|
+
def self.metadata_service version: :v1, transport: :grpc, &block
|
|
164
179
|
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
|
165
180
|
|
|
166
181
|
package_name = Google::Cloud::Dataplex
|
|
167
182
|
.constants
|
|
168
183
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
169
184
|
.first
|
|
170
|
-
service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:
|
|
185
|
+
service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:MetadataService)
|
|
186
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
|
171
187
|
service_module.const_get(:Client).new(&block)
|
|
172
188
|
end
|
|
173
189
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-dataplex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.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: 2023-
|
|
11
|
+
date: 2023-07-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-cloud-core
|
|
@@ -30,7 +30,7 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '0.
|
|
33
|
+
version: '0.7'
|
|
34
34
|
- - "<"
|
|
35
35
|
- !ruby/object:Gem::Version
|
|
36
36
|
version: 2.a
|
|
@@ -40,7 +40,7 @@ dependencies:
|
|
|
40
40
|
requirements:
|
|
41
41
|
- - ">="
|
|
42
42
|
- !ruby/object:Gem::Version
|
|
43
|
-
version: '0.
|
|
43
|
+
version: '0.7'
|
|
44
44
|
- - "<"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
46
|
version: 2.a
|