google-cloud-data_catalog 0.1.0 → 1.0.1

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: 8a2c018ea3ec03a6403b9002ac763e243517754fb49f5ac655a9c02626fb9a90
4
- data.tar.gz: 50eab6a45b71c37fa31a43e8c8e1712277220765624a8d3c1b4aec38c2dccfc6
3
+ metadata.gz: ed1668b59f7fe329e180cc1d4d45e01034868ccdec07fc88fc4da1a4fad48678
4
+ data.tar.gz: 19c4ef5fb0a7d166f17ec7718e5732b43912245ee33987e92506b65b68f33fb9
5
5
  SHA512:
6
- metadata.gz: 6b2febc06a83ee03cb90a5e428a110bcbca371012fdb91513cea6472b82ba3793c824271c895371102f3bb4f4b72facf15eba0436ce9667f8a7d06cae156d077
7
- data.tar.gz: d590eff63d4b5ba27ae1f6bd7341f36a188087595ed9761db7cfc4255f1877f095b57a4b35da3206e08b36dce9adbf9e25629ed245580148e7ac47855ec28683
6
+ metadata.gz: 1fd6c8d76a128118c49ab99cb128b4fe4c9572f2084f419066a441b42ba6737f9fad1ec11ace2fc4a0c0fabad5bab1337368b72456b43ad5a67bc98e1bc7b201
7
+ data.tar.gz: 06c7532e0dd1d72169e7253e1e7cc1c96b63ab58e0aca8c142216a20263d5a021432e3d8768f3fe4a216463d0f77d15d636be8353fecccc75962d01adfa83c61
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
64
64
 
65
65
  The environment variables that google-cloud-data_catalog
66
66
  checks for credentials are configured on the service Credentials class (such as
67
- `Google::Cloud::DataCatalog::V1::DataCatalog::Credentials`):
67
+ `::Google::Cloud::DataCatalog::V1::DataCatalog::Credentials`):
68
68
 
69
69
  1. `DATA_CATALOG_CREDENTIALS` - Path to JSON file, or JSON contents
70
70
  2. `DATA_CATALOG_KEYFILE` - Path to JSON file, or JSON contents
data/README.md CHANGED
@@ -38,7 +38,7 @@ In order to use this library, you first need to go through the following steps:
38
38
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
39
39
  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
40
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
41
- that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
41
+ 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)
42
42
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
43
43
 
44
44
  Configuring a Ruby stdlib logger:
@@ -16,20 +16,4 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- gem "google-cloud-core"
20
- require "google/cloud" unless defined? Google::Cloud.new
21
- require "google/cloud/config"
22
- require "googleauth"
23
-
24
- # Set the default configuration
25
- Google::Cloud.configure.add_config! :data_catalog do |config|
26
- config.add_field! :credentials, nil, match: [String, Hash, Google::Auth::Credentials]
27
- config.add_field! :lib_name, nil, match: String
28
- config.add_field! :lib_version, nil, match: String
29
- config.add_field! :interceptors, nil, match: Array
30
- config.add_field! :timeout, nil, match: Numeric
31
- config.add_field! :metadata, nil, match: Hash
32
- config.add_field! :retry_policy, nil, match: [Hash, Proc]
33
- end
34
-
35
- require "google/cloud/data_catalog/version"
19
+ require "google/cloud/data_catalog" unless defined? Google::Cloud::DataCatalog::VERSION
@@ -16,7 +16,30 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "google-cloud-data_catalog"
19
+ # Require this file early so that the version constant gets defined before
20
+ # requiring "google/cloud". This is because google-cloud-core will load the
21
+ # entrypoint (gem name) file, which in turn re-requires this file (hence
22
+ # causing a require cycle) unless the version constant is already defined.
23
+ require "google/cloud/data_catalog/version"
24
+
25
+ require "googleauth"
26
+ gem "google-cloud-core"
27
+ require "google/cloud" unless defined? ::Google::Cloud.new
28
+ require "google/cloud/config"
29
+
30
+ # Set the default configuration
31
+ ::Google::Cloud.configure.add_config! :data_catalog do |config|
32
+ config.add_field! :endpoint, "datacatalog.googleapis.com", match: ::String
33
+ config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
34
+ config.add_field! :scope, nil, match: [::Array, ::String]
35
+ config.add_field! :lib_name, nil, match: ::String
36
+ config.add_field! :lib_version, nil, match: ::String
37
+ config.add_field! :interceptors, nil, match: ::Array
38
+ config.add_field! :timeout, nil, match: ::Numeric
39
+ config.add_field! :metadata, nil, match: ::Hash
40
+ config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
41
+ config.add_field! :quota_project, nil, match: ::String
42
+ end
20
43
 
21
44
  module Google
22
45
  module Cloud
@@ -37,7 +60,7 @@ module Google
37
60
  # Data Catalog API service allows clients to discover, understand, and manage
38
61
  # their data.
39
62
  #
40
- # @param version [String, Symbol] The API version to connect to. Optional.
63
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
41
64
  # Defaults to `:v1`.
42
65
  # @return [DataCatalog::Client] A client object for the specified version.
43
66
  #
@@ -66,8 +89,8 @@ module Google
66
89
  # The library version as recorded in instrumentation and logging.
67
90
  # * `interceptors` (*type:* `Array<GRPC::ClientInterceptor>`) -
68
91
  # An array of interceptors that are run before calls are executed.
69
- # * `timeout` (*type:* `Integer`) -
70
- # Default timeout in milliseconds.
92
+ # * `timeout` (*type:* `Numeric`) -
93
+ # Default timeout in seconds.
71
94
  # * `metadata` (*type:* `Hash{Symbol=>String}`) -
72
95
  # Additional gRPC headers to be sent with the call.
73
96
  # * `retry_policy` (*type:* `Hash`) -
@@ -78,13 +101,16 @@ module Google
78
101
  # * `:retry_codes` (*type:* `Array<String>`) -
79
102
  # The error codes that should trigger a retry.
80
103
  #
81
- # @return [Google::Cloud::Config] The default configuration used by this library
104
+ # @return [::Google::Cloud::Config] The default configuration used by this library
82
105
  #
83
106
  def self.configure
84
- yield Google::Cloud.configure.data_catalog if block_given?
107
+ yield ::Google::Cloud.configure.data_catalog if block_given?
85
108
 
86
- Google::Cloud.configure.data_catalog
109
+ ::Google::Cloud.configure.data_catalog
87
110
  end
88
111
  end
89
112
  end
90
113
  end
114
+
115
+ helper_path = ::File.join __dir__, "data_catalog", "helpers.rb"
116
+ require "google/cloud/data_catalog/helpers" if ::File.file? helper_path
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module DataCatalog
23
- VERSION = "0.1.0"
23
+ VERSION = "1.0.1"
24
24
  end
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-data_catalog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.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: 2020-04-07 00:00:00.000000000 Z
11
+ date: 2021-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.0'
41
- - !ruby/object:Gem::Dependency
42
- name: autotest-suffix
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '1.1'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '1.1'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: google-style
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,56 +58,56 @@ dependencies:
72
58
  requirements:
73
59
  - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: '5.10'
61
+ version: '5.14'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: '5.10'
68
+ version: '5.14'
83
69
  - !ruby/object:Gem::Dependency
84
- name: minitest-autotest
70
+ name: minitest-focus
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: '1.0'
75
+ version: '1.1'
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: '1.0'
82
+ version: '1.1'
97
83
  - !ruby/object:Gem::Dependency
98
- name: minitest-focus
84
+ name: minitest-rg
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
87
  - - "~>"
102
88
  - !ruby/object:Gem::Version
103
- version: '1.1'
89
+ version: '5.2'
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
94
  - - "~>"
109
95
  - !ruby/object:Gem::Version
110
- version: '1.1'
96
+ version: '5.2'
111
97
  - !ruby/object:Gem::Dependency
112
- name: minitest-rg
98
+ name: rake
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
- - - "~>"
101
+ - - ">="
116
102
  - !ruby/object:Gem::Version
117
- version: '5.2'
103
+ version: '12.0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
- - - "~>"
108
+ - - ">="
123
109
  - !ruby/object:Gem::Version
124
- version: '5.2'
110
+ version: '12.0'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: redcarpet
127
113
  requirement: !ruby/object:Gem::Requirement
@@ -198,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
184
  - !ruby/object:Gem::Version
199
185
  version: '0'
200
186
  requirements: []
201
- rubygems_version: 3.0.6
187
+ rubygems_version: 3.2.6
202
188
  signing_key:
203
189
  specification_version: 4
204
190
  summary: API Client library for the Data Catalog API