google-cloud-dataplex 0.4.1 → 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: ebc9c3a826bae5839b37c2e1058394f51f997625a4be58aaed8abeb72f258d87
4
- data.tar.gz: 951ce89e0afb53573ee495577b6ce6d4f77d1919b88712c036f7ad8c88c78179
3
+ metadata.gz: b078ccf368c5e55895e6fa35b8f56181afc461fa093f00c6b69ad8b74b1e229d
4
+ data.tar.gz: f66fac89caf098b8186f39f8afcb59179bb0bbbcd22bd486b2b39cb4a9bc7d45
5
5
  SHA512:
6
- metadata.gz: e7a2f95eff4d9d6a4b3b04fbfc47d866f06b029a4f73af50098da937c739fa8a5fd67ca9186eedb25f1413a3b92a35fefcc2d72ec9fcfbed501695795851755d
7
- data.tar.gz: b6818778deed75f9e04997c651a0a138c0df5ca3c9e7d67898a1e9a7a57ee81403b8954d30fa4be74407e2b2c47ab037aee6830255f8f8fcd68a4194dd4fe824
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.1"
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,6 +88,8 @@ 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.
87
93
  #
88
94
  # ## About DataScanService
89
95
  #
@@ -93,9 +99,10 @@ module Google
93
99
  #
94
100
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
95
101
  # Defaults to `:v1`.
102
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
96
103
  # @return [::Object] A client object for the specified version.
97
104
  #
98
- def self.data_scan_service version: :v1, &block
105
+ def self.data_scan_service version: :v1, transport: :grpc, &block
99
106
  require "google/cloud/dataplex/#{version.to_s.downcase}"
100
107
 
101
108
  package_name = Google::Cloud::Dataplex
@@ -103,6 +110,7 @@ module Google
103
110
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
104
111
  .first
105
112
  service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:DataScanService)
113
+ service_module = service_module.const_get(:Rest) if transport == :rest
106
114
  service_module.const_get(:Client).new(&block)
107
115
  end
108
116
 
@@ -116,6 +124,8 @@ module Google
116
124
  # `version` parameter. If the MetadataService service is
117
125
  # supported by that API version, and the corresponding gem is available, the
118
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.
119
129
  #
120
130
  # ## About MetadataService
121
131
  #
@@ -124,9 +134,10 @@ module Google
124
134
  #
125
135
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
126
136
  # Defaults to `:v1`.
137
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
127
138
  # @return [::Object] A client object for the specified version.
128
139
  #
129
- def self.metadata_service version: :v1, &block
140
+ def self.metadata_service version: :v1, transport: :grpc, &block
130
141
  require "google/cloud/dataplex/#{version.to_s.downcase}"
131
142
 
132
143
  package_name = Google::Cloud::Dataplex
@@ -134,6 +145,7 @@ module Google
134
145
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
135
146
  .first
136
147
  service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:MetadataService)
148
+ service_module = service_module.const_get(:Rest) if transport == :rest
137
149
  service_module.const_get(:Client).new(&block)
138
150
  end
139
151
 
@@ -147,6 +159,8 @@ module Google
147
159
  # `version` parameter. If the DataplexService service is
148
160
  # supported by that API version, and the corresponding gem is available, the
149
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.
150
164
  #
151
165
  # ## About DataplexService
152
166
  #
@@ -158,9 +172,10 @@ module Google
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.dataplex_service version: :v1, &block
178
+ def self.dataplex_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
@@ -168,6 +183,7 @@ module Google
168
183
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
169
184
  .first
170
185
  service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:DataplexService)
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.1
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-02-09 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