google-cloud-data_catalog-v1 0.7.0 → 0.8.0
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/README.md +1 -1
- data/lib/google/cloud/data_catalog/v1/data_catalog.rb +2 -2
- data/lib/google/cloud/data_catalog/v1/data_catalog/client.rb +312 -324
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager.rb +1 -1
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager/client.rb +56 -46
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization.rb +4 -3
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/client.rb +110 -23
- data/lib/google/cloud/data_catalog/v1/version.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/bigquery_pb.rb +48 -0
- data/lib/google/cloud/datacatalog/v1/datacatalog_pb.rb +44 -0
- data/lib/google/cloud/datacatalog/v1/datacatalog_services_pb.rb +179 -142
- data/lib/google/cloud/datacatalog/v1/policytagmanager_services_pb.rb +16 -14
- data/lib/google/cloud/datacatalog/v1/policytagmanagerserialization_pb.rb +5 -0
- data/lib/google/cloud/datacatalog/v1/policytagmanagerserialization_services_pb.rb +28 -14
- data/lib/google/cloud/datacatalog/v1/tags_pb.rb +3 -0
- data/lib/google/cloud/datacatalog/v1/usage_pb.rb +31 -0
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/datacatalog/v1/bigquery.rb +87 -0
- data/proto_docs/google/cloud/datacatalog/v1/common.rb +1 -2
- data/proto_docs/google/cloud/datacatalog/v1/data_source.rb +6 -5
- data/proto_docs/google/cloud/datacatalog/v1/datacatalog.rb +370 -246
- data/proto_docs/google/cloud/datacatalog/v1/gcs_fileset_spec.rb +16 -15
- data/proto_docs/google/cloud/datacatalog/v1/policytagmanager.rb +98 -71
- data/proto_docs/google/cloud/datacatalog/v1/policytagmanagerserialization.rb +34 -19
- data/proto_docs/google/cloud/datacatalog/v1/schema.rb +3 -3
- data/proto_docs/google/cloud/datacatalog/v1/search.rb +43 -29
- data/proto_docs/google/cloud/datacatalog/v1/table_spec.rb +23 -16
- data/proto_docs/google/cloud/datacatalog/v1/tags.rb +96 -51
- data/proto_docs/google/cloud/datacatalog/v1/timestamps.rb +12 -5
- data/proto_docs/google/cloud/datacatalog/v1/usage.rb +79 -0
- data/proto_docs/google/type/expr.rb +35 -12
- metadata +19 -9
@@ -25,17 +25,18 @@ module Google
|
|
25
25
|
# @!attribute [rw] file_patterns
|
26
26
|
# @return [::Array<::String>]
|
27
27
|
# Required. Patterns to identify a set of files in Google Cloud Storage.
|
28
|
-
# See [Cloud Storage
|
29
|
-
# documentation](https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames)
|
30
|
-
# for more information. Note that bucket wildcards are currently not
|
31
|
-
# supported.
|
32
28
|
#
|
33
|
-
#
|
29
|
+
# For more information, see [Wildcard Names]
|
30
|
+
# (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames).
|
34
31
|
#
|
35
|
-
#
|
36
|
-
#
|
32
|
+
# Note: Currently, bucket wildcards are not supported.
|
33
|
+
#
|
34
|
+
# Examples of valid `file_patterns`:
|
35
|
+
#
|
36
|
+
# * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir`
|
37
|
+
# directory
|
37
38
|
# * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
|
38
|
-
#
|
39
|
+
# and all subdirectories
|
39
40
|
# * `gs://bucket_name/file*`: matches files prefixed by `file` in
|
40
41
|
# `bucket_name`
|
41
42
|
# * `gs://bucket_name/??.txt`: matches files with two characters followed by
|
@@ -46,12 +47,12 @@ module Google
|
|
46
47
|
# * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
|
47
48
|
# or `m` followed by `.txt` in `bucket_name`
|
48
49
|
# * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
|
49
|
-
# `a/*/b` pattern, such as `a/c/b`, `a/d/b`
|
50
|
+
# the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
|
50
51
|
# * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
|
51
52
|
#
|
52
|
-
# You can combine wildcards to
|
53
|
+
# You can combine wildcards to match complex sets of files, for example:
|
53
54
|
#
|
54
|
-
#
|
55
|
+
# `gs://bucket_name/[a-m]??.j*g`
|
55
56
|
# @!attribute [r] sample_gcs_file_specs
|
56
57
|
# @return [::Array<::Google::Cloud::DataCatalog::V1::GcsFileSpec>]
|
57
58
|
# Output only. Sample files contained in this fileset, not all files
|
@@ -61,16 +62,16 @@ module Google
|
|
61
62
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
62
63
|
end
|
63
64
|
|
64
|
-
#
|
65
|
+
# Specification of a single file in Cloud Storage.
|
65
66
|
# @!attribute [rw] file_path
|
66
67
|
# @return [::String]
|
67
|
-
# Required.
|
68
|
+
# Required. Full file path. Example: `gs://bucket_name/a/b.txt`.
|
68
69
|
# @!attribute [r] gcs_timestamps
|
69
70
|
# @return [::Google::Cloud::DataCatalog::V1::SystemTimestamps]
|
70
|
-
# Output only.
|
71
|
+
# Output only. Creation, modification, and expiration timestamps of a Cloud Storage file.
|
71
72
|
# @!attribute [r] size_bytes
|
72
73
|
# @return [::Integer]
|
73
|
-
# Output only.
|
74
|
+
# Output only. File size in bytes.
|
74
75
|
class GcsFileSpec
|
75
76
|
include ::Google::Protobuf::MessageExts
|
76
77
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -22,8 +22,12 @@ module Google
|
|
22
22
|
module DataCatalog
|
23
23
|
module V1
|
24
24
|
# A taxonomy is a collection of hierarchical policy tags that classify data
|
25
|
-
# along a common axis.
|
26
|
-
#
|
25
|
+
# along a common axis.
|
26
|
+
#
|
27
|
+
# For example, a "data sensitivity" taxonomy might contain the following policy
|
28
|
+
# tags:
|
29
|
+
#
|
30
|
+
# ```
|
27
31
|
# + PII
|
28
32
|
# + Account number
|
29
33
|
# + Age
|
@@ -31,32 +35,41 @@ module Google
|
|
31
35
|
# + Zipcode
|
32
36
|
# + Financials
|
33
37
|
# + Revenue
|
34
|
-
#
|
38
|
+
# ```
|
39
|
+
#
|
40
|
+
# A "data origin" taxonomy might contain the following policy tags:
|
41
|
+
#
|
42
|
+
# ```
|
35
43
|
# + User data
|
36
44
|
# + Employee data
|
37
45
|
# + Partner data
|
38
46
|
# + Public data
|
47
|
+
# ```
|
39
48
|
# @!attribute [r] name
|
40
49
|
# @return [::String]
|
41
|
-
# Output only. Resource name of this taxonomy in format
|
42
|
-
#
|
43
|
-
# Note
|
50
|
+
# Output only. Resource name of this taxonomy in URL format.
|
51
|
+
#
|
52
|
+
# Note: Policy tag manager generates unique taxonomy IDs.
|
44
53
|
# @!attribute [rw] display_name
|
45
54
|
# @return [::String]
|
46
|
-
# Required. User-defined name of this taxonomy.
|
47
|
-
#
|
48
|
-
#
|
55
|
+
# Required. User-defined name of this taxonomy.
|
56
|
+
#
|
57
|
+
# The name can't start or end with spaces, must contain only Unicode letters,
|
58
|
+
# numbers, underscores, dashes, and spaces, and be at most 200 bytes long
|
59
|
+
# when encoded in UTF-8.
|
49
60
|
# @!attribute [rw] description
|
50
61
|
# @return [::String]
|
51
|
-
# Optional. Description of this taxonomy.
|
52
|
-
#
|
53
|
-
#
|
62
|
+
# Optional. Description of this taxonomy. If not set, defaults to empty.
|
63
|
+
#
|
64
|
+
# The description must contain only Unicode characters, tabs, newlines,
|
65
|
+
# carriage returns, and page breaks, and be at most 2000 bytes long when
|
66
|
+
# encoded in UTF-8.
|
54
67
|
# @!attribute [r] policy_tag_count
|
55
68
|
# @return [::Integer]
|
56
|
-
# Output only. Number of policy tags
|
69
|
+
# Output only. Number of policy tags in this taxonomy.
|
57
70
|
# @!attribute [r] taxonomy_timestamps
|
58
71
|
# @return [::Google::Cloud::DataCatalog::V1::SystemTimestamps]
|
59
|
-
# Output only.
|
72
|
+
# Output only. Creation and modification timestamps of this taxonomy.
|
60
73
|
# @!attribute [rw] activated_policy_types
|
61
74
|
# @return [::Array<::Google::Cloud::DataCatalog::V1::Taxonomy::PolicyType>]
|
62
75
|
# Optional. A list of policy types that are activated for this taxonomy. If not set,
|
@@ -70,46 +83,52 @@ module Google
|
|
70
83
|
# Unspecified policy type.
|
71
84
|
POLICY_TYPE_UNSPECIFIED = 0
|
72
85
|
|
73
|
-
# Fine-grained access control policy
|
86
|
+
# Fine-grained access control policy that enables access control on
|
74
87
|
# tagged sub-resources.
|
75
88
|
FINE_GRAINED_ACCESS_CONTROL = 1
|
76
89
|
end
|
77
90
|
end
|
78
91
|
|
79
|
-
# Denotes one policy tag in a taxonomy
|
80
|
-
#
|
92
|
+
# Denotes one policy tag in a taxonomy, for example, SSN.
|
93
|
+
#
|
94
|
+
# Policy tags can be defined in a hierarchy. For example:
|
95
|
+
#
|
96
|
+
# ```
|
81
97
|
# + Geolocation
|
82
98
|
# + LatLong
|
83
99
|
# + City
|
84
100
|
# + ZipCode
|
85
|
-
#
|
86
|
-
#
|
101
|
+
# ```
|
102
|
+
#
|
103
|
+
# Where the "Geolocation" policy tag contains three children.
|
87
104
|
# @!attribute [r] name
|
88
105
|
# @return [::String]
|
89
|
-
# Output only. Resource name of this policy tag in format
|
90
|
-
#
|
91
|
-
#
|
92
|
-
#
|
106
|
+
# Output only. Resource name of this policy tag in the URL format.
|
107
|
+
#
|
108
|
+
# The policy tag manager generates unique taxonomy IDs and policy tag IDs.<br
|
109
|
+
# /><br />
|
93
110
|
# @!attribute [rw] display_name
|
94
111
|
# @return [::String]
|
95
|
-
# Required. User-defined name of this policy tag.
|
96
|
-
#
|
97
|
-
#
|
98
|
-
#
|
112
|
+
# Required. User-defined name of this policy tag.
|
113
|
+
#
|
114
|
+
# The name can't start or end with spaces and must be unique within the
|
115
|
+
# parent taxonomy, contain only Unicode letters, numbers, underscores, dashes
|
116
|
+
# and spaces, and be at most 200 bytes long when encoded in UTF-8.
|
99
117
|
# @!attribute [rw] description
|
100
118
|
# @return [::String]
|
101
|
-
# Description of this policy tag.
|
102
|
-
#
|
103
|
-
#
|
104
|
-
#
|
119
|
+
# Description of this policy tag. If not set, defaults to empty.
|
120
|
+
#
|
121
|
+
# The description must contain only Unicode characters,
|
122
|
+
# tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes
|
123
|
+
# long when encoded in UTF-8.
|
105
124
|
# @!attribute [rw] parent_policy_tag
|
106
125
|
# @return [::String]
|
107
|
-
# Resource name of this policy tag's parent policy tag
|
108
|
-
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
#
|
112
|
-
# empty
|
126
|
+
# Resource name of this policy tag's parent policy tag. If empty, this is a
|
127
|
+
# top level tag. If not set, defaults to an empty string.
|
128
|
+
#
|
129
|
+
# For example, for the "LatLong" policy tag in the example above, this field
|
130
|
+
# contains the resource name of the "Geolocation" policy tag, and, for
|
131
|
+
# "Geolocation", this field is empty.
|
113
132
|
# @!attribute [r] child_policy_tags
|
114
133
|
# @return [::Array<::String>]
|
115
134
|
# Output only. Resource names of child policy tags of this policy tag.
|
@@ -125,7 +144,7 @@ module Google
|
|
125
144
|
# Required. Resource name of the project that the taxonomy will belong to.
|
126
145
|
# @!attribute [rw] taxonomy
|
127
146
|
# @return [::Google::Cloud::DataCatalog::V1::Taxonomy]
|
128
|
-
# The taxonomy to
|
147
|
+
# The taxonomy to create.
|
129
148
|
class CreateTaxonomyRequest
|
130
149
|
include ::Google::Protobuf::MessageExts
|
131
150
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -135,8 +154,9 @@ module Google
|
|
135
154
|
# {::Google::Cloud::DataCatalog::V1::PolicyTagManager::Client#delete_taxonomy DeleteTaxonomy}.
|
136
155
|
# @!attribute [rw] name
|
137
156
|
# @return [::String]
|
138
|
-
# Required. Resource name of the taxonomy to
|
139
|
-
#
|
157
|
+
# Required. Resource name of the taxonomy to delete.
|
158
|
+
#
|
159
|
+
# Note: All policy tags in this taxonomy are also deleted.
|
140
160
|
class DeleteTaxonomyRequest
|
141
161
|
include ::Google::Protobuf::MessageExts
|
142
162
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -146,14 +166,15 @@ module Google
|
|
146
166
|
# {::Google::Cloud::DataCatalog::V1::PolicyTagManager::Client#update_taxonomy UpdateTaxonomy}.
|
147
167
|
# @!attribute [rw] taxonomy
|
148
168
|
# @return [::Google::Cloud::DataCatalog::V1::Taxonomy]
|
149
|
-
# The taxonomy to update.
|
150
|
-
# policy types
|
169
|
+
# The taxonomy to update. You can update only its description, display name,
|
170
|
+
# and activated policy types.
|
151
171
|
# @!attribute [rw] update_mask
|
152
172
|
# @return [::Google::Protobuf::FieldMask]
|
153
|
-
#
|
154
|
-
#
|
155
|
-
#
|
156
|
-
#
|
173
|
+
# Specifies fields to update. If not set, defaults to all fields you can
|
174
|
+
# update.
|
175
|
+
#
|
176
|
+
# For more information, see [FieldMask]
|
177
|
+
# (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
|
157
178
|
class UpdateTaxonomyRequest
|
158
179
|
include ::Google::Protobuf::MessageExts
|
159
180
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -166,12 +187,14 @@ module Google
|
|
166
187
|
# Required. Resource name of the project to list the taxonomies of.
|
167
188
|
# @!attribute [rw] page_size
|
168
189
|
# @return [::Integer]
|
169
|
-
# The maximum number of items to return. Must be a value between 1 and 1000
|
170
|
-
# If not set, defaults to 50.
|
190
|
+
# The maximum number of items to return. Must be a value between 1 and 1000
|
191
|
+
# inclusively. If not set, defaults to 50.
|
171
192
|
# @!attribute [rw] page_token
|
172
193
|
# @return [::String]
|
173
|
-
# The
|
174
|
-
#
|
194
|
+
# The pagination token of the next results page. If not set,
|
195
|
+
# the first page is returned.
|
196
|
+
#
|
197
|
+
# The token is returned in the response to a previous list request.
|
175
198
|
class ListTaxonomiesRequest
|
176
199
|
include ::Google::Protobuf::MessageExts
|
177
200
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -184,7 +207,7 @@ module Google
|
|
184
207
|
# Taxonomies that the project contains.
|
185
208
|
# @!attribute [rw] next_page_token
|
186
209
|
# @return [::String]
|
187
|
-
#
|
210
|
+
# Pagination token of the next results page. Empty if there are no
|
188
211
|
# more results in the list.
|
189
212
|
class ListTaxonomiesResponse
|
190
213
|
include ::Google::Protobuf::MessageExts
|
@@ -195,7 +218,7 @@ module Google
|
|
195
218
|
# {::Google::Cloud::DataCatalog::V1::PolicyTagManager::Client#get_taxonomy GetTaxonomy}.
|
196
219
|
# @!attribute [rw] name
|
197
220
|
# @return [::String]
|
198
|
-
# Required. Resource name of the
|
221
|
+
# Required. Resource name of the taxonomy to get.
|
199
222
|
class GetTaxonomyRequest
|
200
223
|
include ::Google::Protobuf::MessageExts
|
201
224
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -205,10 +228,11 @@ module Google
|
|
205
228
|
# {::Google::Cloud::DataCatalog::V1::PolicyTagManager::Client#create_policy_tag CreatePolicyTag}.
|
206
229
|
# @!attribute [rw] parent
|
207
230
|
# @return [::String]
|
208
|
-
# Required. Resource name of the taxonomy that the policy tag will belong to
|
231
|
+
# Required. Resource name of the taxonomy that the policy tag will belong to.<br /><br
|
232
|
+
# />
|
209
233
|
# @!attribute [rw] policy_tag
|
210
234
|
# @return [::Google::Cloud::DataCatalog::V1::PolicyTag]
|
211
|
-
# The policy tag to
|
235
|
+
# The policy tag to create.
|
212
236
|
class CreatePolicyTagRequest
|
213
237
|
include ::Google::Protobuf::MessageExts
|
214
238
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -218,8 +242,9 @@ module Google
|
|
218
242
|
# {::Google::Cloud::DataCatalog::V1::PolicyTagManager::Client#delete_policy_tag DeletePolicyTag}.
|
219
243
|
# @!attribute [rw] name
|
220
244
|
# @return [::String]
|
221
|
-
# Required. Resource name of the policy tag to
|
222
|
-
#
|
245
|
+
# Required. Resource name of the policy tag to delete.
|
246
|
+
#
|
247
|
+
# Note: All of its descendant policy tags are also deleted.
|
223
248
|
class DeletePolicyTagRequest
|
224
249
|
include ::Google::Protobuf::MessageExts
|
225
250
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -229,17 +254,16 @@ module Google
|
|
229
254
|
# {::Google::Cloud::DataCatalog::V1::PolicyTagManager::Client#update_policy_tag UpdatePolicyTag}.
|
230
255
|
# @!attribute [rw] policy_tag
|
231
256
|
# @return [::Google::Cloud::DataCatalog::V1::PolicyTag]
|
232
|
-
# The policy tag to update.
|
233
|
-
#
|
257
|
+
# The policy tag to update. You can update only its description, display
|
258
|
+
# name, and parent policy tag fields.
|
234
259
|
# @!attribute [rw] update_mask
|
235
260
|
# @return [::Google::Protobuf::FieldMask]
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
|
242
|
-
# If not set, defaults to all of the fields that are allowed to update.
|
261
|
+
# Specifies the fields to update.
|
262
|
+
#
|
263
|
+
# You can update only display name, description, and parent policy tag.
|
264
|
+
# If not set, defaults to all updatable fields.
|
265
|
+
# For more information, see [FieldMask]
|
266
|
+
# (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
|
243
267
|
class UpdatePolicyTagRequest
|
244
268
|
include ::Google::Protobuf::MessageExts
|
245
269
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -252,12 +276,15 @@ module Google
|
|
252
276
|
# Required. Resource name of the taxonomy to list the policy tags of.
|
253
277
|
# @!attribute [rw] page_size
|
254
278
|
# @return [::Integer]
|
255
|
-
# The maximum number of items to return. Must be a value between 1 and 1000
|
279
|
+
# The maximum number of items to return. Must be a value between 1 and 1000
|
280
|
+
# inclusively.
|
256
281
|
# If not set, defaults to 50.
|
257
282
|
# @!attribute [rw] page_token
|
258
283
|
# @return [::String]
|
259
|
-
# The
|
260
|
-
#
|
284
|
+
# The pagination token of the next results page. If not set, returns the
|
285
|
+
# first page.
|
286
|
+
#
|
287
|
+
# The token is returned in the response to a previous list request.
|
261
288
|
class ListPolicyTagsRequest
|
262
289
|
include ::Google::Protobuf::MessageExts
|
263
290
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -267,10 +294,10 @@ module Google
|
|
267
294
|
# {::Google::Cloud::DataCatalog::V1::PolicyTagManager::Client#list_policy_tags ListPolicyTags}.
|
268
295
|
# @!attribute [rw] policy_tags
|
269
296
|
# @return [::Array<::Google::Cloud::DataCatalog::V1::PolicyTag>]
|
270
|
-
# The policy tags that
|
297
|
+
# The policy tags that belong to the taxonomy.
|
271
298
|
# @!attribute [rw] next_page_token
|
272
299
|
# @return [::String]
|
273
|
-
#
|
300
|
+
# Pagination token of the next results page. Empty if there are no
|
274
301
|
# more results in the list.
|
275
302
|
class ListPolicyTagsResponse
|
276
303
|
include ::Google::Protobuf::MessageExts
|
@@ -281,7 +308,7 @@ module Google
|
|
281
308
|
# {::Google::Cloud::DataCatalog::V1::PolicyTagManager::Client#get_policy_tag GetPolicyTag}.
|
282
309
|
# @!attribute [rw] name
|
283
310
|
# @return [::String]
|
284
|
-
# Required. Resource name of the
|
311
|
+
# Required. Resource name of the policy tag.
|
285
312
|
class GetPolicyTagRequest
|
286
313
|
include ::Google::Protobuf::MessageExts
|
287
314
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -21,15 +21,16 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module DataCatalog
|
23
23
|
module V1
|
24
|
-
#
|
25
|
-
#
|
24
|
+
# A nested protocol buffer that represents a taxonomy and the hierarchy of its
|
25
|
+
# policy tags. Used for taxonomy replacement, import, and
|
26
|
+
# export.
|
26
27
|
# @!attribute [rw] display_name
|
27
28
|
# @return [::String]
|
28
29
|
# Required. Display name of the taxonomy. At most 200 bytes when encoded in UTF-8.
|
29
30
|
# @!attribute [rw] description
|
30
31
|
# @return [::String]
|
31
|
-
# Description of the serialized taxonomy. At most 2000 bytes when
|
32
|
-
# UTF-8. If not set, defaults to an empty description.
|
32
|
+
# Description of the serialized taxonomy. At most 2000 bytes when
|
33
|
+
# encoded in UTF-8. If not set, defaults to an empty description.
|
33
34
|
# @!attribute [rw] policy_tags
|
34
35
|
# @return [::Array<::Google::Cloud::DataCatalog::V1::SerializedPolicyTag>]
|
35
36
|
# Top level policy tags associated with the taxonomy, if any.
|
@@ -41,20 +42,21 @@ module Google
|
|
41
42
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
42
43
|
end
|
43
44
|
|
44
|
-
#
|
45
|
-
#
|
45
|
+
# A nested protocol buffer that represents a policy tag and all its
|
46
|
+
# descendants.
|
46
47
|
# @!attribute [rw] policy_tag
|
47
48
|
# @return [::String]
|
48
49
|
# Resource name of the policy tag.
|
49
50
|
#
|
50
|
-
# This field
|
51
|
+
# This field is ignored when calling `ImportTaxonomies`.
|
51
52
|
# @!attribute [rw] display_name
|
52
53
|
# @return [::String]
|
53
|
-
# Required. Display name of the policy tag. At most 200 bytes when encoded
|
54
|
+
# Required. Display name of the policy tag. At most 200 bytes when encoded
|
55
|
+
# in UTF-8.
|
54
56
|
# @!attribute [rw] description
|
55
57
|
# @return [::String]
|
56
|
-
# Description of the serialized policy tag.
|
57
|
-
#
|
58
|
+
# Description of the serialized policy tag. At most
|
59
|
+
# 2000 bytes when encoded in UTF-8. If not set, defaults to an
|
58
60
|
# empty description.
|
59
61
|
# @!attribute [rw] child_policy_tags
|
60
62
|
# @return [::Array<::Google::Cloud::DataCatalog::V1::SerializedPolicyTag>]
|
@@ -64,6 +66,19 @@ module Google
|
|
64
66
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
67
|
end
|
66
68
|
|
69
|
+
# Request message for
|
70
|
+
# {::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client#replace_taxonomy ReplaceTaxonomy}.
|
71
|
+
# @!attribute [rw] name
|
72
|
+
# @return [::String]
|
73
|
+
# Required. Resource name of the taxonomy to update.
|
74
|
+
# @!attribute [rw] serialized_taxonomy
|
75
|
+
# @return [::Google::Cloud::DataCatalog::V1::SerializedTaxonomy]
|
76
|
+
# Required. Taxonomy to update along with its child policy tags.
|
77
|
+
class ReplaceTaxonomyRequest
|
78
|
+
include ::Google::Protobuf::MessageExts
|
79
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
80
|
+
end
|
81
|
+
|
67
82
|
# Request message for
|
68
83
|
# {::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client#import_taxonomies ImportTaxonomies}.
|
69
84
|
# @!attribute [rw] parent
|
@@ -71,10 +86,10 @@ module Google
|
|
71
86
|
# Required. Resource name of project that the imported taxonomies will belong to.
|
72
87
|
# @!attribute [rw] inline_source
|
73
88
|
# @return [::Google::Cloud::DataCatalog::V1::InlineSource]
|
74
|
-
# Inline source
|
89
|
+
# Inline source taxonomy to import.
|
75
90
|
# @!attribute [rw] cross_regional_source
|
76
91
|
# @return [::Google::Cloud::DataCatalog::V1::CrossRegionalSource]
|
77
|
-
# Cross-regional source taxonomy to
|
92
|
+
# Cross-regional source taxonomy to import.
|
78
93
|
class ImportTaxonomiesRequest
|
79
94
|
include ::Google::Protobuf::MessageExts
|
80
95
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -83,7 +98,7 @@ module Google
|
|
83
98
|
# Inline source containing taxonomies to import.
|
84
99
|
# @!attribute [rw] taxonomies
|
85
100
|
# @return [::Array<::Google::Cloud::DataCatalog::V1::SerializedTaxonomy>]
|
86
|
-
# Required. Taxonomies to
|
101
|
+
# Required. Taxonomies to import.
|
87
102
|
class InlineSource
|
88
103
|
include ::Google::Protobuf::MessageExts
|
89
104
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -93,7 +108,7 @@ module Google
|
|
93
108
|
# region.
|
94
109
|
# @!attribute [rw] taxonomy
|
95
110
|
# @return [::String]
|
96
|
-
# Required. The resource name of the source taxonomy to
|
111
|
+
# Required. The resource name of the source taxonomy to import.
|
97
112
|
class CrossRegionalSource
|
98
113
|
include ::Google::Protobuf::MessageExts
|
99
114
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -103,7 +118,7 @@ module Google
|
|
103
118
|
# {::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client#import_taxonomies ImportTaxonomies}.
|
104
119
|
# @!attribute [rw] taxonomies
|
105
120
|
# @return [::Array<::Google::Cloud::DataCatalog::V1::Taxonomy>]
|
106
|
-
#
|
121
|
+
# Imported taxonomies.
|
107
122
|
class ImportTaxonomiesResponse
|
108
123
|
include ::Google::Protobuf::MessageExts
|
109
124
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -116,11 +131,11 @@ module Google
|
|
116
131
|
# Required. Resource name of the project that the exported taxonomies belong to.
|
117
132
|
# @!attribute [rw] taxonomies
|
118
133
|
# @return [::Array<::String>]
|
119
|
-
# Required. Resource names of the taxonomies to
|
134
|
+
# Required. Resource names of the taxonomies to export.
|
120
135
|
# @!attribute [rw] serialized_taxonomies
|
121
136
|
# @return [::Boolean]
|
122
|
-
#
|
123
|
-
# tags as nested
|
137
|
+
# Serialized export taxonomies that contain all the policy
|
138
|
+
# tags as nested protocol buffers.
|
124
139
|
class ExportTaxonomiesRequest
|
125
140
|
include ::Google::Protobuf::MessageExts
|
126
141
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -130,7 +145,7 @@ module Google
|
|
130
145
|
# {::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client#export_taxonomies ExportTaxonomies}.
|
131
146
|
# @!attribute [rw] taxonomies
|
132
147
|
# @return [::Array<::Google::Cloud::DataCatalog::V1::SerializedTaxonomy>]
|
133
|
-
# List of taxonomies and policy tags as nested
|
148
|
+
# List of taxonomies and policy tags as nested protocol buffers.
|
134
149
|
class ExportTaxonomiesResponse
|
135
150
|
include ::Google::Protobuf::MessageExts
|
136
151
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|