google-cloud-data_catalog 1.1.0 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/lib/google/cloud/data_catalog.rb +70 -2
- data/lib/google/cloud/data_catalog/version.rb +1 -1
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5c3fa73a53d9a1f1138f0d6c7689f23a29c9d1cb175a32b085feb0dd6d3b62d
|
4
|
+
data.tar.gz: fd1dd7cf933b8caf1a32f45c04ff0a11b4d456f05c94f053220bd1e2ade0b818
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef3146f3abfb5aaeaf8c71fb5fb54659c983c18da6e1c721e6e989cabd73a3a669673524657e9aa8d5d370b1d127d08952d5bf4824e0d764b48d478414983d51
|
7
|
+
data.tar.gz: feb9b766ceff884fbff94166977f7850a1ba89963e2c9a942ca4d97862cf7cc7442cb3fa3de050da0ed72e981c2bbad34562471fe32061732e56a7397c4724d5
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-data_catalog
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
`::Google::Cloud::DataCatalog::V1::DataCatalog::Credentials`):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `DATA_CATALOG_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `DATA_CATALOG_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/data_catalog"
|
@@ -82,8 +82,8 @@ client = Google::Cloud::DataCatalog.data_catalog
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/data_catalog"
|
@@ -93,7 +93,7 @@ client = Google::Cloud::DataCatalog.data_catalog do |config|
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/data_catalog"
|
@@ -57,8 +57,8 @@ module Google
|
|
57
57
|
#
|
58
58
|
# ## About DataCatalog
|
59
59
|
#
|
60
|
-
# Data Catalog API service allows
|
61
|
-
#
|
60
|
+
# Data Catalog API service allows you to discover, understand, and manage
|
61
|
+
# your data.
|
62
62
|
#
|
63
63
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
64
64
|
# Defaults to `:v1`.
|
@@ -75,6 +75,74 @@ module Google
|
|
75
75
|
package_module.const_get(:DataCatalog).const_get(:Client).new(&block)
|
76
76
|
end
|
77
77
|
|
78
|
+
##
|
79
|
+
# Create a new client object for PolicyTagManager.
|
80
|
+
#
|
81
|
+
# By default, this returns an instance of
|
82
|
+
# [Google::Cloud::DataCatalog::V1::PolicyTagManager::Client](https://googleapis.dev/ruby/google-cloud-data_catalog-v1/latest/Google/Cloud/DataCatalog/V1/PolicyTagManager/Client.html)
|
83
|
+
# for version V1 of the API.
|
84
|
+
# However, you can specify specify a different API version by passing it in the
|
85
|
+
# `version` parameter. If the PolicyTagManager service is
|
86
|
+
# supported by that API version, and the corresponding gem is available, the
|
87
|
+
# appropriate versioned client will be returned.
|
88
|
+
#
|
89
|
+
# ## About PolicyTagManager
|
90
|
+
#
|
91
|
+
# Policy Tag Manager API service allows you to manage your policy tags and
|
92
|
+
# taxonomies.
|
93
|
+
#
|
94
|
+
# Policy tags are used to tag BigQuery columns and apply additional access
|
95
|
+
# control policies. A taxonomy is a hierarchical grouping of policy tags that
|
96
|
+
# classify data along a common axis.
|
97
|
+
#
|
98
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
99
|
+
# Defaults to `:v1`.
|
100
|
+
# @return [PolicyTagManager::Client] A client object for the specified version.
|
101
|
+
#
|
102
|
+
def self.policy_tag_manager version: :v1, &block
|
103
|
+
require "google/cloud/data_catalog/#{version.to_s.downcase}"
|
104
|
+
|
105
|
+
package_name = Google::Cloud::DataCatalog
|
106
|
+
.constants
|
107
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
108
|
+
.first
|
109
|
+
package_module = Google::Cloud::DataCatalog.const_get package_name
|
110
|
+
package_module.const_get(:PolicyTagManager).const_get(:Client).new(&block)
|
111
|
+
end
|
112
|
+
|
113
|
+
##
|
114
|
+
# Create a new client object for PolicyTagManagerSerialization.
|
115
|
+
#
|
116
|
+
# By default, this returns an instance of
|
117
|
+
# [Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client](https://googleapis.dev/ruby/google-cloud-data_catalog-v1/latest/Google/Cloud/DataCatalog/V1/PolicyTagManagerSerialization/Client.html)
|
118
|
+
# for version V1 of the API.
|
119
|
+
# However, you can specify specify a different API version by passing it in the
|
120
|
+
# `version` parameter. If the PolicyTagManagerSerialization service is
|
121
|
+
# supported by that API version, and the corresponding gem is available, the
|
122
|
+
# appropriate versioned client will be returned.
|
123
|
+
#
|
124
|
+
# ## About PolicyTagManagerSerialization
|
125
|
+
#
|
126
|
+
# Policy Tag Manager Serialization API service allows you to manipulate
|
127
|
+
# your policy tags and taxonomies in a serialized format.
|
128
|
+
#
|
129
|
+
# Taxonomy is a hierarchical group of policy tags.
|
130
|
+
#
|
131
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
132
|
+
# Defaults to `:v1`.
|
133
|
+
# @return [PolicyTagManagerSerialization::Client] A client object for the specified version.
|
134
|
+
#
|
135
|
+
def self.policy_tag_manager_serialization version: :v1, &block
|
136
|
+
require "google/cloud/data_catalog/#{version.to_s.downcase}"
|
137
|
+
|
138
|
+
package_name = Google::Cloud::DataCatalog
|
139
|
+
.constants
|
140
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
141
|
+
.first
|
142
|
+
package_module = Google::Cloud::DataCatalog.const_get package_name
|
143
|
+
package_module.const_get(:PolicyTagManagerSerialization).const_get(:Client).new(&block)
|
144
|
+
end
|
145
|
+
|
78
146
|
##
|
79
147
|
# Configure the google-cloud-data_catalog library.
|
80
148
|
#
|
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: 1.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -16,28 +16,34 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.6'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-data_catalog-v1
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.7'
|
34
|
+
- - "<"
|
32
35
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
36
|
+
version: 2.a
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0.7'
|
44
|
+
- - "<"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
46
|
+
version: 2.a
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: google-style
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
190
|
- !ruby/object:Gem::Version
|
185
191
|
version: '0'
|
186
192
|
requirements: []
|
187
|
-
rubygems_version: 3.2.
|
193
|
+
rubygems_version: 3.2.17
|
188
194
|
signing_key:
|
189
195
|
specification_version: 4
|
190
196
|
summary: API Client library for the Data Catalog API
|