google-cloud-dataplex 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +1 -1
- data/lib/google/cloud/dataplex/version.rb +1 -1
- data/lib/google/cloud/dataplex.rb +45 -19
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c308424f09e378349e105dd6d119bce61ee180a0ee0979a87cd3a719b807aa4
|
4
|
+
data.tar.gz: fb64152d42297ad7a0914aeaba2574994e35351dd83cc4beb7a4bd415c9e58fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3c3cf4c09988ad94989a5d940c0ee49802007f5e6afb55f9cb50dedb330adc636ba8f04b84ced1b8fad99014841c56b3e3e222db303b98a9a54bc0759d8d2db
|
7
|
+
data.tar.gz: b286f7aa51bde8244400c4e49264709a15cdc286125cdde8ae1b0f9709fef3e464a68bfa57a076f3ecb657a499130ed4e08101ae7ab76e5b329a4309fdf1daad
|
data/AUTHENTICATION.md
CHANGED
@@ -112,7 +112,7 @@ credentials are discovered.
|
|
112
112
|
To configure your system for this, simply:
|
113
113
|
|
114
114
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
115
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
115
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
116
116
|
3. Write code as if already authenticated.
|
117
117
|
|
118
118
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ In order to use this library, you first need to go through the following steps:
|
|
37
37
|
## Enabling Logging
|
38
38
|
|
39
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/
|
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
41
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
42
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
43
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -49,8 +49,8 @@ module Google
|
|
49
49
|
#
|
50
50
|
# By default, this returns an instance of
|
51
51
|
# [Google::Cloud::Dataplex::V1::ContentService::Client](https://googleapis.dev/ruby/google-cloud-dataplex-v1/latest/Google/Cloud/Dataplex/V1/ContentService/Client.html)
|
52
|
-
# for version V1 of the API.
|
53
|
-
# However, you can specify
|
52
|
+
# for a gRPC client for version V1 of the API.
|
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.
|
@@ -61,7 +61,7 @@ module Google
|
|
61
61
|
#
|
62
62
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
63
63
|
# Defaults to `:v1`.
|
64
|
-
# @return [
|
64
|
+
# @return [::Object] A client object for the specified version.
|
65
65
|
#
|
66
66
|
def self.content_service version: :v1, &block
|
67
67
|
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
@@ -70,8 +70,34 @@ module Google
|
|
70
70
|
.constants
|
71
71
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
72
72
|
.first
|
73
|
-
|
74
|
-
|
73
|
+
service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:ContentService)
|
74
|
+
service_module.const_get(:Client).new(&block)
|
75
|
+
end
|
76
|
+
|
77
|
+
##
|
78
|
+
# Create a new client object for DataScanService.
|
79
|
+
#
|
80
|
+
# By default, this returns an instance of
|
81
|
+
# [Google::Cloud::Dataplex::V1::DataScanService::Client](https://googleapis.dev/ruby/google-cloud-dataplex-v1/latest/Google/Cloud/Dataplex/V1/DataScanService/Client.html)
|
82
|
+
# for a gRPC client for version V1 of the API.
|
83
|
+
# However, you can specify a different API version by passing it in the
|
84
|
+
# `version` parameter. If the DataScanService service is
|
85
|
+
# supported by that API version, and the corresponding gem is available, the
|
86
|
+
# appropriate versioned client will be returned.
|
87
|
+
#
|
88
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
89
|
+
# Defaults to `:v1`.
|
90
|
+
# @return [::Object] A client object for the specified version.
|
91
|
+
#
|
92
|
+
def self.data_scan_service version: :v1, &block
|
93
|
+
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
94
|
+
|
95
|
+
package_name = Google::Cloud::Dataplex
|
96
|
+
.constants
|
97
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
98
|
+
.first
|
99
|
+
service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:DataScanService)
|
100
|
+
service_module.const_get(:Client).new(&block)
|
75
101
|
end
|
76
102
|
|
77
103
|
##
|
@@ -79,8 +105,8 @@ module Google
|
|
79
105
|
#
|
80
106
|
# By default, this returns an instance of
|
81
107
|
# [Google::Cloud::Dataplex::V1::MetadataService::Client](https://googleapis.dev/ruby/google-cloud-dataplex-v1/latest/Google/Cloud/Dataplex/V1/MetadataService/Client.html)
|
82
|
-
# for version V1 of the API.
|
83
|
-
# However, you can specify
|
108
|
+
# for a gRPC client for version V1 of the API.
|
109
|
+
# However, you can specify a different API version by passing it in the
|
84
110
|
# `version` parameter. If the MetadataService service is
|
85
111
|
# supported by that API version, and the corresponding gem is available, the
|
86
112
|
# appropriate versioned client will be returned.
|
@@ -92,7 +118,7 @@ module Google
|
|
92
118
|
#
|
93
119
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
94
120
|
# Defaults to `:v1`.
|
95
|
-
# @return [
|
121
|
+
# @return [::Object] A client object for the specified version.
|
96
122
|
#
|
97
123
|
def self.metadata_service version: :v1, &block
|
98
124
|
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
@@ -101,8 +127,8 @@ module Google
|
|
101
127
|
.constants
|
102
128
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
103
129
|
.first
|
104
|
-
|
105
|
-
|
130
|
+
service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:MetadataService)
|
131
|
+
service_module.const_get(:Client).new(&block)
|
106
132
|
end
|
107
133
|
|
108
134
|
##
|
@@ -110,8 +136,8 @@ module Google
|
|
110
136
|
#
|
111
137
|
# By default, this returns an instance of
|
112
138
|
# [Google::Cloud::Dataplex::V1::DataplexService::Client](https://googleapis.dev/ruby/google-cloud-dataplex-v1/latest/Google/Cloud/Dataplex/V1/DataplexService/Client.html)
|
113
|
-
# for version V1 of the API.
|
114
|
-
# However, you can specify
|
139
|
+
# for a gRPC client for version V1 of the API.
|
140
|
+
# However, you can specify a different API version by passing it in the
|
115
141
|
# `version` parameter. If the DataplexService service is
|
116
142
|
# supported by that API version, and the corresponding gem is available, the
|
117
143
|
# appropriate versioned client will be returned.
|
@@ -120,13 +146,13 @@ module Google
|
|
120
146
|
#
|
121
147
|
# Dataplex service provides data lakes as a service. The primary resources
|
122
148
|
# offered by this service are Lakes, Zones and Assets which collectively allow
|
123
|
-
# a data
|
124
|
-
# organization located across cloud projects in a variety of storage
|
125
|
-
# including Cloud Storage and BigQuery.
|
149
|
+
# a data administrator to organize, manage, secure and catalog data across
|
150
|
+
# their organization located across cloud projects in a variety of storage
|
151
|
+
# systems including Cloud Storage and BigQuery.
|
126
152
|
#
|
127
153
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
128
154
|
# Defaults to `:v1`.
|
129
|
-
# @return [
|
155
|
+
# @return [::Object] A client object for the specified version.
|
130
156
|
#
|
131
157
|
def self.dataplex_service version: :v1, &block
|
132
158
|
require "google/cloud/dataplex/#{version.to_s.downcase}"
|
@@ -135,8 +161,8 @@ module Google
|
|
135
161
|
.constants
|
136
162
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
137
163
|
.first
|
138
|
-
|
139
|
-
|
164
|
+
service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:DataplexService)
|
165
|
+
service_module.const_get(:Client).new(&block)
|
140
166
|
end
|
141
167
|
|
142
168
|
##
|
@@ -156,7 +182,7 @@ module Google
|
|
156
182
|
# * `timeout` (*type:* `Numeric`) -
|
157
183
|
# Default timeout in seconds.
|
158
184
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) -
|
159
|
-
# Additional
|
185
|
+
# Additional headers to be sent with the call.
|
160
186
|
# * `retry_policy` (*type:* `Hash`) -
|
161
187
|
# The retry policy. The value is a hash with the following keys:
|
162
188
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
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: 0.4.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:
|
11
|
+
date: 2023-01-11 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.6'
|
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.6'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 2.a
|
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
191
|
- !ruby/object:Gem::Version
|
192
192
|
version: '0'
|
193
193
|
requirements: []
|
194
|
-
rubygems_version: 3.
|
194
|
+
rubygems_version: 3.4.2
|
195
195
|
signing_key:
|
196
196
|
specification_version: 4
|
197
197
|
summary: API Client library for the Dataplex API
|