google-cloud-dataplex 0.3.0 → 0.4.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae97f09c5f70b44ef5478151665a12b82fdddf052f17e398ee1f1fcfb91c1940
4
- data.tar.gz: aa41b2e697d50be626e609f5cf79dae4b62d2059b07a5b67e09757f856beb1cf
3
+ metadata.gz: ebc9c3a826bae5839b37c2e1058394f51f997625a4be58aaed8abeb72f258d87
4
+ data.tar.gz: 951ce89e0afb53573ee495577b6ce6d4f77d1919b88712c036f7ad8c88c78179
5
5
  SHA512:
6
- metadata.gz: 00f15dfcf8d685ebf3c7a3509d98a12da728289355d3fb8d6bb7e22cd044f3b0c52296c3703667d3b2be11ee75d27d8c3d17de7ac35a3f77243bd5b514e3a9a6
7
- data.tar.gz: 4b6214a4876af8ba3d4dfc84e715df1593cb2f82f16c7a87326d7f9e3d4909621fe9b94fba589eb2930466e6b0cf1b01978826e788cc0eacdd061d5de228fafe
6
+ metadata.gz: e7a2f95eff4d9d6a4b3b04fbfc47d866f06b029a4f73af50098da937c739fa8a5fd67ca9186eedb25f1413a3b92a35fefcc2d72ec9fcfbed501695795851755d
7
+ data.tar.gz: b6818778deed75f9e04997c651a0a138c0df5ca3c9e7d67898a1e9a7a57ee81403b8954d30fa4be74407e2b2c47ab037aee6830255f8f8fcd68a4194dd4fe824
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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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.
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Dataplex
23
- VERSION = "0.3.0"
23
+ VERSION = "0.4.1"
24
24
  end
25
25
  end
26
26
  end
@@ -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 specify a different API version by passing it in the
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 [ContentService::Client] A client object for the specified version.
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,40 @@ module Google
70
70
  .constants
71
71
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
72
72
  .first
73
- package_module = Google::Cloud::Dataplex.const_get package_name
74
- package_module.const_get(:ContentService).const_get(:Client).new(&block)
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
+ # ## About DataScanService
89
+ #
90
+ # DataScanService manages DataScan resources which can be configured to run
91
+ # various types of data scanning workload and generate enriched metadata (e.g.
92
+ # Data Profile, Data Quality) for the data source.
93
+ #
94
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
95
+ # Defaults to `:v1`.
96
+ # @return [::Object] A client object for the specified version.
97
+ #
98
+ def self.data_scan_service version: :v1, &block
99
+ require "google/cloud/dataplex/#{version.to_s.downcase}"
100
+
101
+ package_name = Google::Cloud::Dataplex
102
+ .constants
103
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
104
+ .first
105
+ service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:DataScanService)
106
+ service_module.const_get(:Client).new(&block)
75
107
  end
76
108
 
77
109
  ##
@@ -79,8 +111,8 @@ module Google
79
111
  #
80
112
  # By default, this returns an instance of
81
113
  # [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 specify a different API version by passing it in the
114
+ # for a gRPC client for version V1 of the API.
115
+ # However, you can specify a different API version by passing it in the
84
116
  # `version` parameter. If the MetadataService service is
85
117
  # supported by that API version, and the corresponding gem is available, the
86
118
  # appropriate versioned client will be returned.
@@ -92,7 +124,7 @@ module Google
92
124
  #
93
125
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
94
126
  # Defaults to `:v1`.
95
- # @return [MetadataService::Client] A client object for the specified version.
127
+ # @return [::Object] A client object for the specified version.
96
128
  #
97
129
  def self.metadata_service version: :v1, &block
98
130
  require "google/cloud/dataplex/#{version.to_s.downcase}"
@@ -101,8 +133,8 @@ module Google
101
133
  .constants
102
134
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
103
135
  .first
104
- package_module = Google::Cloud::Dataplex.const_get package_name
105
- package_module.const_get(:MetadataService).const_get(:Client).new(&block)
136
+ service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:MetadataService)
137
+ service_module.const_get(:Client).new(&block)
106
138
  end
107
139
 
108
140
  ##
@@ -110,8 +142,8 @@ module Google
110
142
  #
111
143
  # By default, this returns an instance of
112
144
  # [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 specify a different API version by passing it in the
145
+ # for a gRPC client for version V1 of the API.
146
+ # However, you can specify a different API version by passing it in the
115
147
  # `version` parameter. If the DataplexService service is
116
148
  # supported by that API version, and the corresponding gem is available, the
117
149
  # appropriate versioned client will be returned.
@@ -120,13 +152,13 @@ module Google
120
152
  #
121
153
  # Dataplex service provides data lakes as a service. The primary resources
122
154
  # offered by this service are Lakes, Zones and Assets which collectively allow
123
- # a data adminstrator to organize, manage, secure and catalog data across their
124
- # organization located across cloud projects in a variety of storage systems
125
- # including Cloud Storage and BigQuery.
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.
126
158
  #
127
159
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
128
160
  # Defaults to `:v1`.
129
- # @return [DataplexService::Client] A client object for the specified version.
161
+ # @return [::Object] A client object for the specified version.
130
162
  #
131
163
  def self.dataplex_service version: :v1, &block
132
164
  require "google/cloud/dataplex/#{version.to_s.downcase}"
@@ -135,8 +167,8 @@ module Google
135
167
  .constants
136
168
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
137
169
  .first
138
- package_module = Google::Cloud::Dataplex.const_get package_name
139
- package_module.const_get(:DataplexService).const_get(:Client).new(&block)
170
+ service_module = Google::Cloud::Dataplex.const_get(package_name).const_get(:DataplexService)
171
+ service_module.const_get(:Client).new(&block)
140
172
  end
141
173
 
142
174
  ##
@@ -156,7 +188,7 @@ module Google
156
188
  # * `timeout` (*type:* `Numeric`) -
157
189
  # Default timeout in seconds.
158
190
  # * `metadata` (*type:* `Hash{Symbol=>String}`) -
159
- # Additional gRPC headers to be sent with the call.
191
+ # Additional headers to be sent with the call.
160
192
  # * `retry_policy` (*type:* `Hash`) -
161
193
  # The retry policy. The value is a hash with the following keys:
162
194
  # * `: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.3.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-02 00:00:00.000000000 Z
11
+ date: 2023-02-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.2'
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.2'
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.3.14
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