google-cloud-dataplex 0.4.0 → 0.5.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: 4c308424f09e378349e105dd6d119bce61ee180a0ee0979a87cd3a719b807aa4
4
- data.tar.gz: fb64152d42297ad7a0914aeaba2574994e35351dd83cc4beb7a4bd415c9e58fa
3
+ metadata.gz: b078ccf368c5e55895e6fa35b8f56181afc461fa093f00c6b69ad8b74b1e229d
4
+ data.tar.gz: f66fac89caf098b8186f39f8afcb59179bb0bbbcd22bd486b2b39cb4a9bc7d45
5
5
  SHA512:
6
- metadata.gz: d3c3cf4c09988ad94989a5d940c0ee49802007f5e6afb55f9cb50dedb330adc636ba8f04b84ced1b8fad99014841c56b3e3e222db303b98a9a54bc0759d8d2db
7
- data.tar.gz: b286f7aa51bde8244400c4e49264709a15cdc286125cdde8ae1b0f9709fef3e464a68bfa57a076f3ecb657a499130ed4e08101ae7ab76e5b329a4309fdf1daad
6
+ metadata.gz: d9b0fee63cea07480f363ef236342e6db07dbe1a45ad7d9bea1f03b52d71d745f6ec1d0a18c4c231495f7787f224936aba3b20a0538f43570230803eb9a4686b
7
+ data.tar.gz: 10adbf66b233744a2a1f80b6732e543bd2ff4c0b725d5c3b8ae05b57f7f803367ee15f97054a208092809d89af4c773b8953956fed7babd24b2f3a1ca1f21d23
data/README.md CHANGED
@@ -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+.
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Dataplex
23
- VERSION = "0.4.0"
23
+ VERSION = "0.5.0"
24
24
  end
25
25
  end
26
26
  end
@@ -54,6 +54,8 @@ module Google
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,6 +74,7 @@ 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
 
@@ -84,12 +88,21 @@ module Google
84
88
  # `version` parameter. If the DataScanService 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.
93
+ #
94
+ # ## About DataScanService
95
+ #
96
+ # DataScanService manages DataScan resources which can be configured to run
97
+ # various types of data scanning workload and generate enriched metadata (e.g.
98
+ # Data Profile, Data Quality) for the data source.
87
99
  #
88
100
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
89
101
  # Defaults to `:v1`.
102
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
90
103
  # @return [::Object] A client object for the specified version.
91
104
  #
92
- def self.data_scan_service version: :v1, &block
105
+ def self.data_scan_service version: :v1, transport: :grpc, &block
93
106
  require "google/cloud/dataplex/#{version.to_s.downcase}"
94
107
 
95
108
  package_name = Google::Cloud::Dataplex
@@ -97,6 +110,7 @@ module Google
97
110
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
98
111
  .first
99
112
  service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:DataScanService)
113
+ service_module = service_module.const_get(:Rest) if transport == :rest
100
114
  service_module.const_get(:Client).new(&block)
101
115
  end
102
116
 
@@ -110,6 +124,8 @@ module Google
110
124
  # `version` parameter. If the MetadataService service is
111
125
  # supported by that API version, and the corresponding gem is available, the
112
126
  # appropriate versioned client will be returned.
127
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
128
+ # the `transport` parameter.
113
129
  #
114
130
  # ## About MetadataService
115
131
  #
@@ -118,9 +134,10 @@ module Google
118
134
  #
119
135
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
120
136
  # Defaults to `:v1`.
137
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
121
138
  # @return [::Object] A client object for the specified version.
122
139
  #
123
- def self.metadata_service version: :v1, &block
140
+ def self.metadata_service version: :v1, transport: :grpc, &block
124
141
  require "google/cloud/dataplex/#{version.to_s.downcase}"
125
142
 
126
143
  package_name = Google::Cloud::Dataplex
@@ -128,6 +145,7 @@ module Google
128
145
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
129
146
  .first
130
147
  service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:MetadataService)
148
+ service_module = service_module.const_get(:Rest) if transport == :rest
131
149
  service_module.const_get(:Client).new(&block)
132
150
  end
133
151
 
@@ -141,6 +159,8 @@ module Google
141
159
  # `version` parameter. If the DataplexService service is
142
160
  # supported by that API version, and the corresponding gem is available, the
143
161
  # appropriate versioned client will be returned.
162
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
163
+ # the `transport` parameter.
144
164
  #
145
165
  # ## About DataplexService
146
166
  #
@@ -152,9 +172,10 @@ module Google
152
172
  #
153
173
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
154
174
  # Defaults to `:v1`.
175
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
155
176
  # @return [::Object] A client object for the specified version.
156
177
  #
157
- def self.dataplex_service version: :v1, &block
178
+ def self.dataplex_service version: :v1, transport: :grpc, &block
158
179
  require "google/cloud/dataplex/#{version.to_s.downcase}"
159
180
 
160
181
  package_name = Google::Cloud::Dataplex
@@ -162,6 +183,7 @@ module Google
162
183
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
163
184
  .first
164
185
  service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:DataplexService)
186
+ service_module = service_module.const_get(:Rest) if transport == :rest
165
187
  service_module.const_get(:Client).new(&block)
166
188
  end
167
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.0
4
+ version: 0.5.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-01-11 00:00:00.000000000 Z
11
+ date: 2023-03-09 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.6'
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.6'
43
+ version: '0.7'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.a