google-cloud-data_catalog-v1 0.4.5 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1e93d5ec146009d08e2a11d3bf7bc658d63f9507661e9033e7c778104e91a06
4
- data.tar.gz: eb2763470098a47b2f6e8d4e813c389fb282228fc4e46d49fe15a52fdb8c64d3
3
+ metadata.gz: 9cf2ea0f203399b530d99ac1f8ae24f376c7a72fd0c7bb7328ba29df38102e9e
4
+ data.tar.gz: e407680efd85be6d6039d025507732daf5fff7c30d76a52c218ed69b68e37f08
5
5
  SHA512:
6
- metadata.gz: 920f4bc2eb7a178432c9c7f57b5c12ba2e5996d9d55586ebe66ffd11393e9b8e3c53b3a05acd25c0ef510d63c1124fe004328a18a3d5b122b6325890136a87d0
7
- data.tar.gz: 553d39102f52a7e850d8583f4605ef40a91d7566db56df83f996e33a3412f4e48e89b1feadfcc4afc7fd5ad2a486a792d1157f5b6f747eba34d9daa9af1a5b7d
6
+ metadata.gz: c5c136f207374f420b02ef6578962a878bf93888dcf4c75e36d40f86717543e574046d0b4654ac20491ccae79e9c02ca233e5ef50a8c91459f8ee4644b8e344f
7
+ data.tar.gz: d7fd08588f50da823bf8f237e40b882eb7155d5c546d36e99f036c61f9dd057e21be106fc1d712faa91e5b035614f7913e340214dbd57f7d413c1073d9719eb8
@@ -33,3 +33,6 @@ module Google
33
33
  end
34
34
  end
35
35
  end
36
+
37
+ helper_path = ::File.join __dir__, "v1", "_helpers.rb"
38
+ require "google/cloud/data_catalog/v1/_helpers" if ::File.file? helper_path
@@ -2490,7 +2490,7 @@ module Google
2490
2490
  # Each configuration object is of type `Gapic::Config::Method` and includes
2491
2491
  # the following configuration fields:
2492
2492
  #
2493
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
2493
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
2494
2494
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
2495
2495
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
2496
2496
  # include the following keys:
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DataCatalog
23
23
  module V1
24
- VERSION = "0.4.5"
24
+ VERSION = "0.4.6"
25
25
  end
26
26
  end
27
27
  end
@@ -50,7 +50,7 @@ module Google
50
50
  # See [Data Catalog Search
51
51
  # Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
52
52
  # for more information.
53
- rpc :SearchCatalog, Google::Cloud::DataCatalog::V1::SearchCatalogRequest, Google::Cloud::DataCatalog::V1::SearchCatalogResponse
53
+ rpc :SearchCatalog, ::Google::Cloud::DataCatalog::V1::SearchCatalogRequest, ::Google::Cloud::DataCatalog::V1::SearchCatalogResponse
54
54
  # Creates an EntryGroup.
55
55
  #
56
56
  # An entry group contains logically related entries together with Cloud
@@ -70,23 +70,23 @@ module Google
70
70
  # the `parent` parameter (see [Data Catalog Resource Project]
71
71
  # (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
72
72
  # more information).
73
- rpc :CreateEntryGroup, Google::Cloud::DataCatalog::V1::CreateEntryGroupRequest, Google::Cloud::DataCatalog::V1::EntryGroup
73
+ rpc :CreateEntryGroup, ::Google::Cloud::DataCatalog::V1::CreateEntryGroupRequest, ::Google::Cloud::DataCatalog::V1::EntryGroup
74
74
  # Gets an EntryGroup.
75
- rpc :GetEntryGroup, Google::Cloud::DataCatalog::V1::GetEntryGroupRequest, Google::Cloud::DataCatalog::V1::EntryGroup
75
+ rpc :GetEntryGroup, ::Google::Cloud::DataCatalog::V1::GetEntryGroupRequest, ::Google::Cloud::DataCatalog::V1::EntryGroup
76
76
  # Updates an EntryGroup. The user should enable the Data Catalog API in the
77
77
  # project identified by the `entry_group.name` parameter (see [Data Catalog
78
78
  # Resource Project]
79
79
  # (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
80
80
  # more information).
81
- rpc :UpdateEntryGroup, Google::Cloud::DataCatalog::V1::UpdateEntryGroupRequest, Google::Cloud::DataCatalog::V1::EntryGroup
81
+ rpc :UpdateEntryGroup, ::Google::Cloud::DataCatalog::V1::UpdateEntryGroupRequest, ::Google::Cloud::DataCatalog::V1::EntryGroup
82
82
  # Deletes an EntryGroup. Only entry groups that do not contain entries can be
83
83
  # deleted. Users should enable the Data Catalog API in the project
84
84
  # identified by the `name` parameter (see [Data Catalog Resource Project]
85
85
  # (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
86
86
  # more information).
87
- rpc :DeleteEntryGroup, Google::Cloud::DataCatalog::V1::DeleteEntryGroupRequest, Google::Protobuf::Empty
87
+ rpc :DeleteEntryGroup, ::Google::Cloud::DataCatalog::V1::DeleteEntryGroupRequest, ::Google::Protobuf::Empty
88
88
  # Lists entry groups.
89
- rpc :ListEntryGroups, Google::Cloud::DataCatalog::V1::ListEntryGroupsRequest, Google::Cloud::DataCatalog::V1::ListEntryGroupsResponse
89
+ rpc :ListEntryGroups, ::Google::Cloud::DataCatalog::V1::ListEntryGroupsRequest, ::Google::Cloud::DataCatalog::V1::ListEntryGroupsResponse
90
90
  # Creates an entry. Only entries of 'FILESET' type or user-specified type can
91
91
  # be created.
92
92
  #
@@ -96,13 +96,13 @@ module Google
96
96
  # more information).
97
97
  #
98
98
  # A maximum of 100,000 entries may be created per entry group.
99
- rpc :CreateEntry, Google::Cloud::DataCatalog::V1::CreateEntryRequest, Google::Cloud::DataCatalog::V1::Entry
99
+ rpc :CreateEntry, ::Google::Cloud::DataCatalog::V1::CreateEntryRequest, ::Google::Cloud::DataCatalog::V1::Entry
100
100
  # Updates an existing entry.
101
101
  # Users should enable the Data Catalog API in the project identified by
102
102
  # the `entry.name` parameter (see [Data Catalog Resource Project]
103
103
  # (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
104
104
  # more information).
105
- rpc :UpdateEntry, Google::Cloud::DataCatalog::V1::UpdateEntryRequest, Google::Cloud::DataCatalog::V1::Entry
105
+ rpc :UpdateEntry, ::Google::Cloud::DataCatalog::V1::UpdateEntryRequest, ::Google::Cloud::DataCatalog::V1::Entry
106
106
  # Deletes an existing entry. Only entries created through
107
107
  # [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry]
108
108
  # method can be deleted.
@@ -110,23 +110,23 @@ module Google
110
110
  # the `name` parameter (see [Data Catalog Resource Project]
111
111
  # (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
112
112
  # more information).
113
- rpc :DeleteEntry, Google::Cloud::DataCatalog::V1::DeleteEntryRequest, Google::Protobuf::Empty
113
+ rpc :DeleteEntry, ::Google::Cloud::DataCatalog::V1::DeleteEntryRequest, ::Google::Protobuf::Empty
114
114
  # Gets an entry.
115
- rpc :GetEntry, Google::Cloud::DataCatalog::V1::GetEntryRequest, Google::Cloud::DataCatalog::V1::Entry
115
+ rpc :GetEntry, ::Google::Cloud::DataCatalog::V1::GetEntryRequest, ::Google::Cloud::DataCatalog::V1::Entry
116
116
  # Get an entry by target resource name. This method allows clients to use
117
117
  # the resource name from the source Google Cloud Platform service to get the
118
118
  # Data Catalog Entry.
119
- rpc :LookupEntry, Google::Cloud::DataCatalog::V1::LookupEntryRequest, Google::Cloud::DataCatalog::V1::Entry
119
+ rpc :LookupEntry, ::Google::Cloud::DataCatalog::V1::LookupEntryRequest, ::Google::Cloud::DataCatalog::V1::Entry
120
120
  # Lists entries.
121
- rpc :ListEntries, Google::Cloud::DataCatalog::V1::ListEntriesRequest, Google::Cloud::DataCatalog::V1::ListEntriesResponse
121
+ rpc :ListEntries, ::Google::Cloud::DataCatalog::V1::ListEntriesRequest, ::Google::Cloud::DataCatalog::V1::ListEntriesResponse
122
122
  # Creates a tag template. The user should enable the Data Catalog API in
123
123
  # the project identified by the `parent` parameter (see [Data Catalog
124
124
  # Resource
125
125
  # Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
126
126
  # for more information).
127
- rpc :CreateTagTemplate, Google::Cloud::DataCatalog::V1::CreateTagTemplateRequest, Google::Cloud::DataCatalog::V1::TagTemplate
127
+ rpc :CreateTagTemplate, ::Google::Cloud::DataCatalog::V1::CreateTagTemplateRequest, ::Google::Cloud::DataCatalog::V1::TagTemplate
128
128
  # Gets a tag template.
129
- rpc :GetTagTemplate, Google::Cloud::DataCatalog::V1::GetTagTemplateRequest, Google::Cloud::DataCatalog::V1::TagTemplate
129
+ rpc :GetTagTemplate, ::Google::Cloud::DataCatalog::V1::GetTagTemplateRequest, ::Google::Cloud::DataCatalog::V1::TagTemplate
130
130
  # Updates a tag template. This method cannot be used to update the fields of
131
131
  # a template. The tag template fields are represented as separate resources
132
132
  # and should be updated using their own create/update/delete methods.
@@ -134,37 +134,37 @@ module Google
134
134
  # the `tag_template.name` parameter (see [Data Catalog Resource Project]
135
135
  # (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
136
136
  # more information).
137
- rpc :UpdateTagTemplate, Google::Cloud::DataCatalog::V1::UpdateTagTemplateRequest, Google::Cloud::DataCatalog::V1::TagTemplate
137
+ rpc :UpdateTagTemplate, ::Google::Cloud::DataCatalog::V1::UpdateTagTemplateRequest, ::Google::Cloud::DataCatalog::V1::TagTemplate
138
138
  # Deletes a tag template and all tags using the template.
139
139
  # Users should enable the Data Catalog API in the project identified by
140
140
  # the `name` parameter (see [Data Catalog Resource Project]
141
141
  # (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
142
142
  # more information).
143
- rpc :DeleteTagTemplate, Google::Cloud::DataCatalog::V1::DeleteTagTemplateRequest, Google::Protobuf::Empty
143
+ rpc :DeleteTagTemplate, ::Google::Cloud::DataCatalog::V1::DeleteTagTemplateRequest, ::Google::Protobuf::Empty
144
144
  # Creates a field in a tag template. The user should enable the Data Catalog
145
145
  # API in the project identified by the `parent` parameter (see
146
146
  # [Data Catalog Resource
147
147
  # Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
148
148
  # for more information).
149
- rpc :CreateTagTemplateField, Google::Cloud::DataCatalog::V1::CreateTagTemplateFieldRequest, Google::Cloud::DataCatalog::V1::TagTemplateField
149
+ rpc :CreateTagTemplateField, ::Google::Cloud::DataCatalog::V1::CreateTagTemplateFieldRequest, ::Google::Cloud::DataCatalog::V1::TagTemplateField
150
150
  # Updates a field in a tag template. This method cannot be used to update the
151
151
  # field type. Users should enable the Data Catalog API in the project
152
152
  # identified by the `name` parameter (see [Data Catalog Resource Project]
153
153
  # (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
154
154
  # more information).
155
- rpc :UpdateTagTemplateField, Google::Cloud::DataCatalog::V1::UpdateTagTemplateFieldRequest, Google::Cloud::DataCatalog::V1::TagTemplateField
155
+ rpc :UpdateTagTemplateField, ::Google::Cloud::DataCatalog::V1::UpdateTagTemplateFieldRequest, ::Google::Cloud::DataCatalog::V1::TagTemplateField
156
156
  # Renames a field in a tag template. The user should enable the Data Catalog
157
157
  # API in the project identified by the `name` parameter (see [Data Catalog
158
158
  # Resource
159
159
  # Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
160
160
  # for more information).
161
- rpc :RenameTagTemplateField, Google::Cloud::DataCatalog::V1::RenameTagTemplateFieldRequest, Google::Cloud::DataCatalog::V1::TagTemplateField
161
+ rpc :RenameTagTemplateField, ::Google::Cloud::DataCatalog::V1::RenameTagTemplateFieldRequest, ::Google::Cloud::DataCatalog::V1::TagTemplateField
162
162
  # Deletes a field in a tag template and all uses of that field.
163
163
  # Users should enable the Data Catalog API in the project identified by
164
164
  # the `name` parameter (see [Data Catalog Resource Project]
165
165
  # (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
166
166
  # more information).
167
- rpc :DeleteTagTemplateField, Google::Cloud::DataCatalog::V1::DeleteTagTemplateFieldRequest, Google::Protobuf::Empty
167
+ rpc :DeleteTagTemplateField, ::Google::Cloud::DataCatalog::V1::DeleteTagTemplateFieldRequest, ::Google::Protobuf::Empty
168
168
  # Creates a tag on an [Entry][google.cloud.datacatalog.v1.Entry].
169
169
  # Note: The project identified by the `parent` parameter for the
170
170
  # [tag](https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters)
@@ -172,13 +172,13 @@ module Google
172
172
  # [tag
173
173
  # template](https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters)
174
174
  # used to create the tag must be from the same organization.
175
- rpc :CreateTag, Google::Cloud::DataCatalog::V1::CreateTagRequest, Google::Cloud::DataCatalog::V1::Tag
175
+ rpc :CreateTag, ::Google::Cloud::DataCatalog::V1::CreateTagRequest, ::Google::Cloud::DataCatalog::V1::Tag
176
176
  # Updates an existing tag.
177
- rpc :UpdateTag, Google::Cloud::DataCatalog::V1::UpdateTagRequest, Google::Cloud::DataCatalog::V1::Tag
177
+ rpc :UpdateTag, ::Google::Cloud::DataCatalog::V1::UpdateTagRequest, ::Google::Cloud::DataCatalog::V1::Tag
178
178
  # Deletes a tag.
179
- rpc :DeleteTag, Google::Cloud::DataCatalog::V1::DeleteTagRequest, Google::Protobuf::Empty
179
+ rpc :DeleteTag, ::Google::Cloud::DataCatalog::V1::DeleteTagRequest, ::Google::Protobuf::Empty
180
180
  # Lists the tags on an [Entry][google.cloud.datacatalog.v1.Entry].
181
- rpc :ListTags, Google::Cloud::DataCatalog::V1::ListTagsRequest, Google::Cloud::DataCatalog::V1::ListTagsResponse
181
+ rpc :ListTags, ::Google::Cloud::DataCatalog::V1::ListTagsRequest, ::Google::Cloud::DataCatalog::V1::ListTagsResponse
182
182
  # Sets the access control policy for a resource. Replaces any existing
183
183
  # policy.
184
184
  # Supported resources are:
@@ -193,7 +193,7 @@ module Google
193
193
  # templates.
194
194
  # - `datacatalog.entries.setIamPolicy` to set policies on entries.
195
195
  # - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
196
- rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
196
+ rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
197
197
  # Gets the access control policy for a resource. A `NOT_FOUND` error
198
198
  # is returned if the resource does not exist. An empty policy is returned
199
199
  # if the resource exists but does not have a policy set on it.
@@ -210,7 +210,7 @@ module Google
210
210
  # templates.
211
211
  # - `datacatalog.entries.getIamPolicy` to get policies on entries.
212
212
  # - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.
213
- rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
213
+ rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
214
214
  # Returns the caller's permissions on a resource.
215
215
  # If the resource does not exist, an empty set of permissions is returned
216
216
  # (We don't return a `NOT_FOUND` error).
@@ -224,7 +224,7 @@ module Google
224
224
  #
225
225
  # A caller is not required to have Google IAM permission to make this
226
226
  # request.
227
- rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
227
+ rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
228
228
  end
229
229
 
230
230
  Stub = Service.rpc_stub_class
@@ -43,12 +43,12 @@ module Google
43
43
  #
44
44
  # The ResourceDescriptor Yaml config will look like:
45
45
  #
46
- # resources:
47
- # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/\\{project}/topics/\\{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/\\{project}"
46
+ # resources:
47
+ # - type: "pubsub.googleapis.com/Topic"
48
+ # name_descriptor:
49
+ # - pattern: "projects/{project}/topics/{topic}"
50
+ # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
+ # parent_name_extractor: "projects/{project}"
52
52
  #
53
53
  # Sometimes, resources have multiple patterns, typically because they can
54
54
  # live under multiple parents.
@@ -183,15 +183,24 @@ module Google
183
183
  # }
184
184
  # @!attribute [rw] plural
185
185
  # @return [::String]
186
- # The plural name used in the resource name, such as 'projects' for
187
- # the name of 'projects/\\{project}'. It is the same concept of the `plural`
188
- # field in k8s CRD spec
186
+ # The plural name used in the resource name and permission names, such as
187
+ # 'projects' for the resource name of 'projects/\\{project}' and the permission
188
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
189
+ # concept of the `plural` field in k8s CRD spec
189
190
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
191
+ #
192
+ # Note: The plural form is required even for singleton resources. See
193
+ # https://aip.dev/156
190
194
  # @!attribute [rw] singular
191
195
  # @return [::String]
192
196
  # The same concept of the `singular` field in k8s CRD spec
193
197
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
194
198
  # Such as "project" for the `resourcemanager.googleapis.com/Project` type.
199
+ # @!attribute [rw] style
200
+ # @return [::Array<::Google::Api::ResourceDescriptor::Style>]
201
+ # Style flag(s) for this resource.
202
+ # These indicate that a resource is expected to conform to a given
203
+ # style. See the specific style flags for additional information.
195
204
  class ResourceDescriptor
196
205
  include ::Google::Protobuf::MessageExts
197
206
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -211,6 +220,22 @@ module Google
211
220
  # that from being necessary once there are multiple patterns.)
212
221
  FUTURE_MULTI_PATTERN = 2
213
222
  end
223
+
224
+ # A flag representing a specific style that a resource claims to conform to.
225
+ module Style
226
+ # The unspecified value. Do not use.
227
+ STYLE_UNSPECIFIED = 0
228
+
229
+ # This resource is intended to be "declarative-friendly".
230
+ #
231
+ # Declarative-friendly resources must be more strictly consistent, and
232
+ # setting this to true communicates to tools that this resource should
233
+ # adhere to declarative-friendly expectations.
234
+ #
235
+ # Note: This is used by the API linter (linter.aip.dev) to enable
236
+ # additional checks.
237
+ DECLARATIVE_FRIENDLY = 1
238
+ end
214
239
  end
215
240
 
216
241
  # Defines a proto annotation that describes a string field that refers to
@@ -226,6 +251,17 @@ module Google
226
251
  # type: "pubsub.googleapis.com/Topic"
227
252
  # }];
228
253
  # }
254
+ #
255
+ # Occasionally, a field may reference an arbitrary resource. In this case,
256
+ # APIs use the special value * in their resource reference.
257
+ #
258
+ # Example:
259
+ #
260
+ # message GetIamPolicyRequest {
261
+ # string resource = 2 [(google.api.resource_reference) = {
262
+ # type: "*"
263
+ # }];
264
+ # }
229
265
  # @!attribute [rw] child_type
230
266
  # @return [::String]
231
267
  # The resource type of a child collection that the annotated field
@@ -234,11 +270,11 @@ module Google
234
270
  #
235
271
  # Example:
236
272
  #
237
- # message ListLogEntriesRequest {
238
- # string parent = 1 [(google.api.resource_reference) = {
239
- # child_type: "logging.googleapis.com/LogEntry"
240
- # };
241
- # }
273
+ # message ListLogEntriesRequest {
274
+ # string parent = 1 [(google.api.resource_reference) = {
275
+ # child_type: "logging.googleapis.com/LogEntry"
276
+ # };
277
+ # }
242
278
  class ResourceReference
243
279
  include ::Google::Protobuf::MessageExts
244
280
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-data_catalog-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
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-08-10 00:00:00.000000000 Z
11
+ date: 2021-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  requirements: []
238
- rubygems_version: 3.1.3
238
+ rubygems_version: 3.2.6
239
239
  signing_key:
240
240
  specification_version: 4
241
241
  summary: API Client library for the Data Catalog V1 API