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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae97f09c5f70b44ef5478151665a12b82fdddf052f17e398ee1f1fcfb91c1940
4
- data.tar.gz: aa41b2e697d50be626e609f5cf79dae4b62d2059b07a5b67e09757f856beb1cf
3
+ metadata.gz: 4c308424f09e378349e105dd6d119bce61ee180a0ee0979a87cd3a719b807aa4
4
+ data.tar.gz: fb64152d42297ad7a0914aeaba2574994e35351dd83cc4beb7a4bd415c9e58fa
5
5
  SHA512:
6
- metadata.gz: 00f15dfcf8d685ebf3c7a3509d98a12da728289355d3fb8d6bb7e22cd044f3b0c52296c3703667d3b2be11ee75d27d8c3d17de7ac35a3f77243bd5b514e3a9a6
7
- data.tar.gz: 4b6214a4876af8ba3d4dfc84e715df1593cb2f82f16c7a87326d7f9e3d4909621fe9b94fba589eb2930466e6b0cf1b01978826e788cc0eacdd061d5de228fafe
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/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.0"
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,34 @@ 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
+ # @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 specify a different API version by passing it in the
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 [MetadataService::Client] A client object for the specified version.
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
- package_module = Google::Cloud::Dataplex.const_get package_name
105
- package_module.const_get(:MetadataService).const_get(:Client).new(&block)
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 specify a different API version by passing it in the
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 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.
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 [DataplexService::Client] A client object for the specified version.
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
- package_module = Google::Cloud::Dataplex.const_get package_name
139
- package_module.const_get(:DataplexService).const_get(:Client).new(&block)
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 gRPC headers to be sent with the call.
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.3.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: 2022-07-02 00:00:00.000000000 Z
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.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