google-cloud-data_catalog-lineage 0.1.0 → 0.2.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: 3bc78fcbdf06c88c445bd9ebe4c10d1ce0cd0d320b3edb4f9fd5da714b096dce
4
- data.tar.gz: 6c582409bd18686df0b9dbf5890ff934c7de89099129b5005123a4006cdcb362
3
+ metadata.gz: 9958885c25115ecaa1889b7a0afe71d02554ae75a23b32ae2411fadfaab14622
4
+ data.tar.gz: 3d81c1c40fd14e20868e8097b875ce2641ce4261d042616eb1db6e9661df58d3
5
5
  SHA512:
6
- metadata.gz: 641b259e439170f5d206e0323d88d1fb1862e28ab3663f480da6c8290a27e72a09797cb086c2d88e3e5973f2b6f388cd7418f4f11f674a3139f809a8942024e9
7
- data.tar.gz: eac9a77cc45742dc06932d57b315ac7b4045515abd4f2a3dbae71c1af23949f3f38d592fc00f9fc50f472a6ef0ee51479f0404c42f797e2a53821baafc7bd01c
6
+ metadata.gz: 9be58c71327e8be6eeb0c2db9ab9ab867246f55c66f844d734769c470367d33c0d5e2f76d97c76f7d95531270f1248205f71994e9e1d647342689bb4b1bb54d3
7
+ data.tar.gz: 5e6519384931b390ba96845e6204a7e5ed60231e8157f15dbc57dd313e2d0272270ad1eb1b7bfbb96a9e7a81d95bcc2fd05ede1756634638e6fc79c4fe913a78
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/datalineage.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+.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DataCatalog
23
23
  module Lineage
24
- VERSION = "0.1.0"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -55,6 +55,8 @@ module Google
55
55
  # `version` parameter. If the Lineage service is
56
56
  # supported by that API version, and the corresponding gem is available, the
57
57
  # appropriate versioned client will be returned.
58
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
59
+ # the `transport` parameter.
58
60
  #
59
61
  # ## About Lineage
60
62
  #
@@ -65,9 +67,10 @@ module Google
65
67
  #
66
68
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
67
69
  # Defaults to `:v1`.
70
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
68
71
  # @return [::Object] A client object for the specified version.
69
72
  #
70
- def self.lineage version: :v1, &block
73
+ def self.lineage version: :v1, transport: :grpc, &block
71
74
  require "google/cloud/data_catalog/lineage/#{version.to_s.downcase}"
72
75
 
73
76
  package_name = Google::Cloud::DataCatalog::Lineage
@@ -75,6 +78,7 @@ module Google
75
78
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
76
79
  .first
77
80
  service_module = Google::Cloud::DataCatalog::Lineage.const_get(package_name).const_get(:Lineage)
81
+ service_module = service_module.const_get(:Rest) if transport == :rest
78
82
  service_module.const_get(:Client).new(&block)
79
83
  end
80
84
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-data_catalog-lineage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.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-30 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.0'
33
+ version: '0.2'
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.0'
43
+ version: '0.2'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.a