google-apis-datacatalog_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8b9d6246dc0e093b68bfc478e8af14c0b5aa57b4b9f66b04374d3c9266b15e3d
4
+ data.tar.gz: 871d01450052897a96832ed242f94b55c8138da19ca2da93385e8c718f55b94c
5
+ SHA512:
6
+ metadata.gz: 31e6177cda3b346d6eb83a9c442c8733d7ced866bf519221bf1b6e961235f8efa293ec0cf87845c3f9a467d01c24fb7558723b140f5dee1c63394dc1105a15c1
7
+ data.tar.gz: fd32955828a890ee7e845cd23b8fbc50c03e95fdbf92b57330ef8898323b8ba0e112870f5f265802a6c99a1c776145b96c8efaee5ab28389fee67a45af746070
data/.yardopts ADDED
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-datacatalog_v1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/datacatalog_v1/*.rb
9
+ lib/google/apis/datacatalog_v1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-datacatalog_v1
2
+
3
+ ### v0.1.0 (2021-06-24)
4
+
5
+ * Regenerated from discovery document revision 20210618
6
+ * Regenerated using generator version 0.3.0
7
+
data/LICENSE.md ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/OVERVIEW.md ADDED
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1 of the Google Cloud Data Catalog API
2
+
3
+ This is a simple client library for version V1 of the Google Cloud Data Catalog API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/datacatalog.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-datacatalog_v1', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-datacatalog_v1
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/datacatalog_v1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::DatacatalogV1::DataCatalogService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
62
+
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
+
66
+ (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Datacatalog service in particular.)
67
+
68
+ For reference information on specific calls in the Google Cloud Data Catalog API, see the {Google::Apis::DatacatalogV1::DataCatalogService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-datacatalog_v1`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://cloud.google.com/data-catalog/docs/) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
87
+
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "google/apis/datacatalog_v1"
@@ -0,0 +1,37 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/datacatalog_v1/service.rb'
16
+ require 'google/apis/datacatalog_v1/classes.rb'
17
+ require 'google/apis/datacatalog_v1/representations.rb'
18
+ require 'google/apis/datacatalog_v1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Google Cloud Data Catalog API
23
+ #
24
+ # A fully managed and highly scalable data discovery and metadata management
25
+ # service.
26
+ #
27
+ # @see https://cloud.google.com/data-catalog/docs/
28
+ module DatacatalogV1
29
+ # Version of the Google Cloud Data Catalog API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V1'
32
+
33
+ # See, edit, configure, and delete your Google Cloud Platform data
34
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,2118 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module DatacatalogV1
24
+
25
+ # Associates `members` with a `role`.
26
+ class Binding
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
30
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
31
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
32
+ # "Summary size limit" description: "Determines if a summary is less than 100
33
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
34
+ # Requestor is owner" description: "Determines if requestor is the document
35
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
36
+ # Logic): title: "Public documents" description: "Determine whether the document
37
+ # should be publicly visible" expression: "document.type != 'private' &&
38
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
39
+ # string" description: "Create a notification string with a timestamp."
40
+ # expression: "'New message received at ' + string(document.create_time)" The
41
+ # exact variables and functions that may be referenced within an expression are
42
+ # determined by the service that evaluates it. See the service documentation for
43
+ # additional information.
44
+ # Corresponds to the JSON property `condition`
45
+ # @return [Google::Apis::DatacatalogV1::Expr]
46
+ attr_accessor :condition
47
+
48
+ # Specifies the identities requesting access for a Cloud Platform resource. `
49
+ # members` can have the following values: * `allUsers`: A special identifier
50
+ # that represents anyone who is on the internet; with or without a Google
51
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
52
+ # anyone who is authenticated with a Google account or a service account. * `
53
+ # user:`emailid``: An email address that represents a specific Google account.
54
+ # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
55
+ # address that represents a service account. For example, `my-other-app@appspot.
56
+ # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
57
+ # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
58
+ # `uniqueid``: An email address (plus unique identifier) representing a user
59
+ # that has been recently deleted. For example, `alice@example.com?uid=
60
+ # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
61
+ # emailid`` and the recovered user retains the role in the binding. * `deleted:
62
+ # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
63
+ # identifier) representing a service account that has been recently deleted. For
64
+ # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
65
+ # If the service account is undeleted, this value reverts to `serviceAccount:`
66
+ # emailid`` and the undeleted service account retains the role in the binding. *
67
+ # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
68
+ # identifier) representing a Google group that has been recently deleted. For
69
+ # example, `admins@example.com?uid=123456789012345678901`. If the group is
70
+ # recovered, this value reverts to `group:`emailid`` and the recovered group
71
+ # retains the role in the binding. * `domain:`domain``: The G Suite domain (
72
+ # primary) that represents all the users of that domain. For example, `google.
73
+ # com` or `example.com`.
74
+ # Corresponds to the JSON property `members`
75
+ # @return [Array<String>]
76
+ attr_accessor :members
77
+
78
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
79
+ # , or `roles/owner`.
80
+ # Corresponds to the JSON property `role`
81
+ # @return [String]
82
+ attr_accessor :role
83
+
84
+ def initialize(**args)
85
+ update!(**args)
86
+ end
87
+
88
+ # Update properties of this object
89
+ def update!(**args)
90
+ @condition = args[:condition] if args.key?(:condition)
91
+ @members = args[:members] if args.key?(:members)
92
+ @role = args[:role] if args.key?(:role)
93
+ end
94
+ end
95
+
96
+ # A generic empty message that you can re-use to avoid defining duplicated empty
97
+ # messages in your APIs. A typical example is to use it as the request or the
98
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
99
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
100
+ # `Empty` is empty JSON object ````.
101
+ class Empty
102
+ include Google::Apis::Core::Hashable
103
+
104
+ def initialize(**args)
105
+ update!(**args)
106
+ end
107
+
108
+ # Update properties of this object
109
+ def update!(**args)
110
+ end
111
+ end
112
+
113
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
114
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
115
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
116
+ # "Summary size limit" description: "Determines if a summary is less than 100
117
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
118
+ # Requestor is owner" description: "Determines if requestor is the document
119
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
120
+ # Logic): title: "Public documents" description: "Determine whether the document
121
+ # should be publicly visible" expression: "document.type != 'private' &&
122
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
123
+ # string" description: "Create a notification string with a timestamp."
124
+ # expression: "'New message received at ' + string(document.create_time)" The
125
+ # exact variables and functions that may be referenced within an expression are
126
+ # determined by the service that evaluates it. See the service documentation for
127
+ # additional information.
128
+ class Expr
129
+ include Google::Apis::Core::Hashable
130
+
131
+ # Optional. Description of the expression. This is a longer text which describes
132
+ # the expression, e.g. when hovered over it in a UI.
133
+ # Corresponds to the JSON property `description`
134
+ # @return [String]
135
+ attr_accessor :description
136
+
137
+ # Textual representation of an expression in Common Expression Language syntax.
138
+ # Corresponds to the JSON property `expression`
139
+ # @return [String]
140
+ attr_accessor :expression
141
+
142
+ # Optional. String indicating the location of the expression for error reporting,
143
+ # e.g. a file name and a position in the file.
144
+ # Corresponds to the JSON property `location`
145
+ # @return [String]
146
+ attr_accessor :location
147
+
148
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
149
+ # This can be used e.g. in UIs which allow to enter the expression.
150
+ # Corresponds to the JSON property `title`
151
+ # @return [String]
152
+ attr_accessor :title
153
+
154
+ def initialize(**args)
155
+ update!(**args)
156
+ end
157
+
158
+ # Update properties of this object
159
+ def update!(**args)
160
+ @description = args[:description] if args.key?(:description)
161
+ @expression = args[:expression] if args.key?(:expression)
162
+ @location = args[:location] if args.key?(:location)
163
+ @title = args[:title] if args.key?(:title)
164
+ end
165
+ end
166
+
167
+ # Request message for `GetIamPolicy` method.
168
+ class GetIamPolicyRequest
169
+ include Google::Apis::Core::Hashable
170
+
171
+ # Encapsulates settings provided to GetIamPolicy.
172
+ # Corresponds to the JSON property `options`
173
+ # @return [Google::Apis::DatacatalogV1::GetPolicyOptions]
174
+ attr_accessor :options
175
+
176
+ def initialize(**args)
177
+ update!(**args)
178
+ end
179
+
180
+ # Update properties of this object
181
+ def update!(**args)
182
+ @options = args[:options] if args.key?(:options)
183
+ end
184
+ end
185
+
186
+ # Encapsulates settings provided to GetIamPolicy.
187
+ class GetPolicyOptions
188
+ include Google::Apis::Core::Hashable
189
+
190
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
191
+ # 3. Requests specifying an invalid value will be rejected. Requests for
192
+ # policies with any conditional bindings must specify version 3. Policies
193
+ # without any conditional bindings may specify any valid value or leave the
194
+ # field unset. To learn which resources support conditions in their IAM policies,
195
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
196
+ # resource-policies).
197
+ # Corresponds to the JSON property `requestedPolicyVersion`
198
+ # @return [Fixnum]
199
+ attr_accessor :requested_policy_version
200
+
201
+ def initialize(**args)
202
+ update!(**args)
203
+ end
204
+
205
+ # Update properties of this object
206
+ def update!(**args)
207
+ @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
208
+ end
209
+ end
210
+
211
+ # Specification for a group of BigQuery tables with the `[prefix]YYYYMMDD` name
212
+ # pattern. For more information, see [Introduction to partitioned tables] (https:
213
+ # //cloud.google.com/bigquery/docs/partitioned-tables#
214
+ # partitioning_versus_sharding).
215
+ class GoogleCloudDatacatalogV1BigQueryDateShardedSpec
216
+ include Google::Apis::Core::Hashable
217
+
218
+ # Output only. The Data Catalog resource name of the dataset entry the current
219
+ # table belongs to. For example: `projects/`PROJECT_ID`/locations/`LOCATION`/
220
+ # entrygroups/`ENTRY_GROUP_ID`/entries/`ENTRY_ID``.
221
+ # Corresponds to the JSON property `dataset`
222
+ # @return [String]
223
+ attr_accessor :dataset
224
+
225
+ # Output only. Total number of shards.
226
+ # Corresponds to the JSON property `shardCount`
227
+ # @return [Fixnum]
228
+ attr_accessor :shard_count
229
+
230
+ # Output only. The table name prefix of the shards. The name of any given shard
231
+ # is `[table_prefix]YYYYMMDD`. For example, for the `MyTable20180101` shard, the
232
+ # `table_prefix` is `MyTable`.
233
+ # Corresponds to the JSON property `tablePrefix`
234
+ # @return [String]
235
+ attr_accessor :table_prefix
236
+
237
+ def initialize(**args)
238
+ update!(**args)
239
+ end
240
+
241
+ # Update properties of this object
242
+ def update!(**args)
243
+ @dataset = args[:dataset] if args.key?(:dataset)
244
+ @shard_count = args[:shard_count] if args.key?(:shard_count)
245
+ @table_prefix = args[:table_prefix] if args.key?(:table_prefix)
246
+ end
247
+ end
248
+
249
+ # Fields specific for BigQuery routines.
250
+ class GoogleCloudDatacatalogV1BigQueryRoutineSpec
251
+ include Google::Apis::Core::Hashable
252
+
253
+ # Paths of the imported libraries.
254
+ # Corresponds to the JSON property `importedLibraries`
255
+ # @return [Array<String>]
256
+ attr_accessor :imported_libraries
257
+
258
+ def initialize(**args)
259
+ update!(**args)
260
+ end
261
+
262
+ # Update properties of this object
263
+ def update!(**args)
264
+ @imported_libraries = args[:imported_libraries] if args.key?(:imported_libraries)
265
+ end
266
+ end
267
+
268
+ # Describes a BigQuery table.
269
+ class GoogleCloudDatacatalogV1BigQueryTableSpec
270
+ include Google::Apis::Core::Hashable
271
+
272
+ # Output only. The table source type.
273
+ # Corresponds to the JSON property `tableSourceType`
274
+ # @return [String]
275
+ attr_accessor :table_source_type
276
+
277
+ # Normal BigQuery table specification.
278
+ # Corresponds to the JSON property `tableSpec`
279
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1TableSpec]
280
+ attr_accessor :table_spec
281
+
282
+ # Table view specification.
283
+ # Corresponds to the JSON property `viewSpec`
284
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1ViewSpec]
285
+ attr_accessor :view_spec
286
+
287
+ def initialize(**args)
288
+ update!(**args)
289
+ end
290
+
291
+ # Update properties of this object
292
+ def update!(**args)
293
+ @table_source_type = args[:table_source_type] if args.key?(:table_source_type)
294
+ @table_spec = args[:table_spec] if args.key?(:table_spec)
295
+ @view_spec = args[:view_spec] if args.key?(:view_spec)
296
+ end
297
+ end
298
+
299
+ # A column within a schema. Columns can be nested inside other columns.
300
+ class GoogleCloudDatacatalogV1ColumnSchema
301
+ include Google::Apis::Core::Hashable
302
+
303
+ # Required. Name of the column. Must be a UTF-8 string without dots (.). The
304
+ # maximum size is 64 bytes.
305
+ # Corresponds to the JSON property `column`
306
+ # @return [String]
307
+ attr_accessor :column
308
+
309
+ # Optional. Description of the column. Default value is an empty string. The
310
+ # description must be a UTF-8 string with the maximum size of 2000 bytes.
311
+ # Corresponds to the JSON property `description`
312
+ # @return [String]
313
+ attr_accessor :description
314
+
315
+ # Optional. A column's mode indicates whether values in this column are required,
316
+ # nullable, or repeated. Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are
317
+ # supported. Default mode is `NULLABLE`.
318
+ # Corresponds to the JSON property `mode`
319
+ # @return [String]
320
+ attr_accessor :mode
321
+
322
+ # Optional. Schema of sub-columns. A column can have zero or more sub-columns.
323
+ # Corresponds to the JSON property `subcolumns`
324
+ # @return [Array<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1ColumnSchema>]
325
+ attr_accessor :subcolumns
326
+
327
+ # Required. Type of the column. Must be a UTF-8 string with the maximum size of
328
+ # 128 bytes.
329
+ # Corresponds to the JSON property `type`
330
+ # @return [String]
331
+ attr_accessor :type
332
+
333
+ def initialize(**args)
334
+ update!(**args)
335
+ end
336
+
337
+ # Update properties of this object
338
+ def update!(**args)
339
+ @column = args[:column] if args.key?(:column)
340
+ @description = args[:description] if args.key?(:description)
341
+ @mode = args[:mode] if args.key?(:mode)
342
+ @subcolumns = args[:subcolumns] if args.key?(:subcolumns)
343
+ @type = args[:type] if args.key?(:type)
344
+ end
345
+ end
346
+
347
+ # Cross-regional source used to import an existing taxonomy into a different
348
+ # region.
349
+ class GoogleCloudDatacatalogV1CrossRegionalSource
350
+ include Google::Apis::Core::Hashable
351
+
352
+ # Required. The resource name of the source taxonomy to import.
353
+ # Corresponds to the JSON property `taxonomy`
354
+ # @return [String]
355
+ attr_accessor :taxonomy
356
+
357
+ def initialize(**args)
358
+ update!(**args)
359
+ end
360
+
361
+ # Update properties of this object
362
+ def update!(**args)
363
+ @taxonomy = args[:taxonomy] if args.key?(:taxonomy)
364
+ end
365
+ end
366
+
367
+ # Physical location of an entry.
368
+ class GoogleCloudDatacatalogV1DataSource
369
+ include Google::Apis::Core::Hashable
370
+
371
+ # Full name of a resource as defined by the service. For example: `//bigquery.
372
+ # googleapis.com/projects/`PROJECT_ID`/locations/`LOCATION`/datasets/`DATASET_ID`
373
+ # /tables/`TABLE_ID``
374
+ # Corresponds to the JSON property `resource`
375
+ # @return [String]
376
+ attr_accessor :resource
377
+
378
+ # Service that physically stores the data.
379
+ # Corresponds to the JSON property `service`
380
+ # @return [String]
381
+ attr_accessor :service
382
+
383
+ def initialize(**args)
384
+ update!(**args)
385
+ end
386
+
387
+ # Update properties of this object
388
+ def update!(**args)
389
+ @resource = args[:resource] if args.key?(:resource)
390
+ @service = args[:service] if args.key?(:service)
391
+ end
392
+ end
393
+
394
+ # Specification that applies to a table resource. Valid only for entries with
395
+ # the `TABLE` type.
396
+ class GoogleCloudDatacatalogV1DatabaseTableSpec
397
+ include Google::Apis::Core::Hashable
398
+
399
+ # Type of this table.
400
+ # Corresponds to the JSON property `type`
401
+ # @return [String]
402
+ attr_accessor :type
403
+
404
+ def initialize(**args)
405
+ update!(**args)
406
+ end
407
+
408
+ # Update properties of this object
409
+ def update!(**args)
410
+ @type = args[:type] if args.key?(:type)
411
+ end
412
+ end
413
+
414
+ # Entry metadata. A Data Catalog entry represents another resource in Google
415
+ # Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic) or outside of
416
+ # it. You can use the `linked_resource` field in the entry resource to refer to
417
+ # the original resource ID of the source system. An entry resource contains
418
+ # resource details, for example, its schema. Additionally, you can attach
419
+ # flexible metadata to an entry in the form of a Tag.
420
+ class GoogleCloudDatacatalogV1Entry
421
+ include Google::Apis::Core::Hashable
422
+
423
+ # Specification for a group of BigQuery tables with the `[prefix]YYYYMMDD` name
424
+ # pattern. For more information, see [Introduction to partitioned tables] (https:
425
+ # //cloud.google.com/bigquery/docs/partitioned-tables#
426
+ # partitioning_versus_sharding).
427
+ # Corresponds to the JSON property `bigqueryDateShardedSpec`
428
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1BigQueryDateShardedSpec]
429
+ attr_accessor :bigquery_date_sharded_spec
430
+
431
+ # Describes a BigQuery table.
432
+ # Corresponds to the JSON property `bigqueryTableSpec`
433
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1BigQueryTableSpec]
434
+ attr_accessor :bigquery_table_spec
435
+
436
+ # Physical location of an entry.
437
+ # Corresponds to the JSON property `dataSource`
438
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1DataSource]
439
+ attr_accessor :data_source
440
+
441
+ # Specification that applies to a table resource. Valid only for entries with
442
+ # the `TABLE` type.
443
+ # Corresponds to the JSON property `databaseTableSpec`
444
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1DatabaseTableSpec]
445
+ attr_accessor :database_table_spec
446
+
447
+ # Entry description that can consist of several sentences or paragraphs that
448
+ # describe entry contents. The description must not contain Unicode non-
449
+ # characters as well as C0 and C1 control codes except tabs (HT), new lines (LF),
450
+ # carriage returns (CR), and page breaks (FF). The maximum size is 2000 bytes
451
+ # when encoded in UTF-8. Default value is an empty string.
452
+ # Corresponds to the JSON property `description`
453
+ # @return [String]
454
+ attr_accessor :description
455
+
456
+ # Display name of an entry. The name must contain only Unicode letters, numbers (
457
+ # 0-9), underscores (_), dashes (-), spaces ( ), and can't start or end with
458
+ # spaces. The maximum size is 200 bytes when encoded in UTF-8. Default value is
459
+ # an empty string.
460
+ # Corresponds to the JSON property `displayName`
461
+ # @return [String]
462
+ attr_accessor :display_name
463
+
464
+ # Fully qualified name (FQN) of the resource. Set automatically for entries
465
+ # representing resources from synced systems. Settable only during creation and
466
+ # read-only afterwards. Can be used for search and lookup of the entries. FQNs
467
+ # take two forms: * For non-regionalized resources: ``SYSTEM`:`PROJECT`.`
468
+ # PATH_TO_RESOURCE_SEPARATED_WITH_DOTS`` * For regionalized resources: ``SYSTEM`:
469
+ # `PROJECT`.`LOCATION_ID`.`PATH_TO_RESOURCE_SEPARATED_WITH_DOTS`` Example for a
470
+ # DPMS table: `dataproc_metastore:`PROJECT_ID`.`LOCATION_ID`.`INSTANCE_ID`.`
471
+ # DATABASE_ID`.`TABLE_ID``
472
+ # Corresponds to the JSON property `fullyQualifiedName`
473
+ # @return [String]
474
+ attr_accessor :fully_qualified_name
475
+
476
+ # Describes a Cloud Storage fileset entry.
477
+ # Corresponds to the JSON property `gcsFilesetSpec`
478
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1GcsFilesetSpec]
479
+ attr_accessor :gcs_fileset_spec
480
+
481
+ # Output only. Indicates the entry's source system that Data Catalog integrates
482
+ # with, such as BigQuery, Pub/Sub, or Dataproc Metastore.
483
+ # Corresponds to the JSON property `integratedSystem`
484
+ # @return [String]
485
+ attr_accessor :integrated_system
486
+
487
+ # The resource this metadata entry refers to. For Google Cloud Platform
488
+ # resources, `linked_resource` is the [Full Resource Name] (https://cloud.google.
489
+ # com/apis/design/resource_names#full_resource_name). For example, the `
490
+ # linked_resource` for a table resource from BigQuery is: `//bigquery.googleapis.
491
+ # com/projects/`PROJECT_ID`/datasets/`DATASET_ID`/tables/`TABLE_ID`` Output only
492
+ # when the entry is one of the types in the `EntryType` enum. For entries with a
493
+ # `user_specified_type`, this field is optional and defaults to an empty string.
494
+ # The resource string must contain only letters (a-z, A-Z), numbers (0-9),
495
+ # underscores (_), periods (.), colons (:), slashes (/), dashes (-), and hashes (
496
+ # #). The maximum size is 200 bytes when encoded in UTF-8.
497
+ # Corresponds to the JSON property `linkedResource`
498
+ # @return [String]
499
+ attr_accessor :linked_resource
500
+
501
+ # Output only. The resource name of an entry in URL format. Note: The entry
502
+ # itself and its child resources might not be stored in the location specified
503
+ # in its name.
504
+ # Corresponds to the JSON property `name`
505
+ # @return [String]
506
+ attr_accessor :name
507
+
508
+ # Specification that applies to a routine. Valid only for entries with the `
509
+ # ROUTINE` type.
510
+ # Corresponds to the JSON property `routineSpec`
511
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1RoutineSpec]
512
+ attr_accessor :routine_spec
513
+
514
+ # Represents a schema, for example, a BigQuery, GoogleSQL, or Avro schema.
515
+ # Corresponds to the JSON property `schema`
516
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1Schema]
517
+ attr_accessor :schema
518
+
519
+ # Timestamps associated with this resource in a particular system.
520
+ # Corresponds to the JSON property `sourceSystemTimestamps`
521
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1SystemTimestamps]
522
+ attr_accessor :source_system_timestamps
523
+
524
+ # The type of the entry. Only used for entries with types listed in the `
525
+ # EntryType` enum. Currently, only `FILESET` enum value is allowed. All other
526
+ # entries created in Data Catalog must use the `user_specified_type`.
527
+ # Corresponds to the JSON property `type`
528
+ # @return [String]
529
+ attr_accessor :type
530
+
531
+ # The set of all usage signals that Data Catalog stores. Note: Usually, these
532
+ # signals are updated daily. In rare cases, an update may fail but will be
533
+ # performed again on the next day.
534
+ # Corresponds to the JSON property `usageSignal`
535
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1UsageSignal]
536
+ attr_accessor :usage_signal
537
+
538
+ # Indicates the entry's source system that Data Catalog doesn't automatically
539
+ # integrate with. The `user_specified_system` string has the following
540
+ # limitations: * Is case insensitive. * Must begin with a letter or underscore. *
541
+ # Can only contain letters, numbers, and underscores. * Must be at least 1
542
+ # character and at most 64 characters long.
543
+ # Corresponds to the JSON property `userSpecifiedSystem`
544
+ # @return [String]
545
+ attr_accessor :user_specified_system
546
+
547
+ # Custom entry type that doesn't match any of the values allowed for input and
548
+ # listed in the `EntryType` enum. When creating an entry, first check the type
549
+ # values in the enum. If there are no appropriate types for the new entry,
550
+ # provide a custom value, for example, `my_special_type`. The `
551
+ # user_specified_type` string has the following limitations: * Is case
552
+ # insensitive. * Must begin with a letter or underscore. * Can only contain
553
+ # letters, numbers, and underscores. * Must be at least 1 character and at most
554
+ # 64 characters long.
555
+ # Corresponds to the JSON property `userSpecifiedType`
556
+ # @return [String]
557
+ attr_accessor :user_specified_type
558
+
559
+ def initialize(**args)
560
+ update!(**args)
561
+ end
562
+
563
+ # Update properties of this object
564
+ def update!(**args)
565
+ @bigquery_date_sharded_spec = args[:bigquery_date_sharded_spec] if args.key?(:bigquery_date_sharded_spec)
566
+ @bigquery_table_spec = args[:bigquery_table_spec] if args.key?(:bigquery_table_spec)
567
+ @data_source = args[:data_source] if args.key?(:data_source)
568
+ @database_table_spec = args[:database_table_spec] if args.key?(:database_table_spec)
569
+ @description = args[:description] if args.key?(:description)
570
+ @display_name = args[:display_name] if args.key?(:display_name)
571
+ @fully_qualified_name = args[:fully_qualified_name] if args.key?(:fully_qualified_name)
572
+ @gcs_fileset_spec = args[:gcs_fileset_spec] if args.key?(:gcs_fileset_spec)
573
+ @integrated_system = args[:integrated_system] if args.key?(:integrated_system)
574
+ @linked_resource = args[:linked_resource] if args.key?(:linked_resource)
575
+ @name = args[:name] if args.key?(:name)
576
+ @routine_spec = args[:routine_spec] if args.key?(:routine_spec)
577
+ @schema = args[:schema] if args.key?(:schema)
578
+ @source_system_timestamps = args[:source_system_timestamps] if args.key?(:source_system_timestamps)
579
+ @type = args[:type] if args.key?(:type)
580
+ @usage_signal = args[:usage_signal] if args.key?(:usage_signal)
581
+ @user_specified_system = args[:user_specified_system] if args.key?(:user_specified_system)
582
+ @user_specified_type = args[:user_specified_type] if args.key?(:user_specified_type)
583
+ end
584
+ end
585
+
586
+ # Entry group metadata. An `EntryGroup` resource represents a logical grouping
587
+ # of zero or more Data Catalog Entry resources.
588
+ class GoogleCloudDatacatalogV1EntryGroup
589
+ include Google::Apis::Core::Hashable
590
+
591
+ # Timestamps associated with this resource in a particular system.
592
+ # Corresponds to the JSON property `dataCatalogTimestamps`
593
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1SystemTimestamps]
594
+ attr_accessor :data_catalog_timestamps
595
+
596
+ # Entry group description. Can consist of several sentences or paragraphs that
597
+ # describe the entry group contents. Default value is an empty string.
598
+ # Corresponds to the JSON property `description`
599
+ # @return [String]
600
+ attr_accessor :description
601
+
602
+ # A short name to identify the entry group, for example, "analytics data - jan
603
+ # 2011". Default value is an empty string.
604
+ # Corresponds to the JSON property `displayName`
605
+ # @return [String]
606
+ attr_accessor :display_name
607
+
608
+ # The resource name of the entry group in URL format. Note: The entry group
609
+ # itself and its child resources might not be stored in the location specified
610
+ # in its name.
611
+ # Corresponds to the JSON property `name`
612
+ # @return [String]
613
+ attr_accessor :name
614
+
615
+ def initialize(**args)
616
+ update!(**args)
617
+ end
618
+
619
+ # Update properties of this object
620
+ def update!(**args)
621
+ @data_catalog_timestamps = args[:data_catalog_timestamps] if args.key?(:data_catalog_timestamps)
622
+ @description = args[:description] if args.key?(:description)
623
+ @display_name = args[:display_name] if args.key?(:display_name)
624
+ @name = args[:name] if args.key?(:name)
625
+ end
626
+ end
627
+
628
+ # Response message for ExportTaxonomies.
629
+ class GoogleCloudDatacatalogV1ExportTaxonomiesResponse
630
+ include Google::Apis::Core::Hashable
631
+
632
+ # List of taxonomies and policy tags as nested protocol buffers.
633
+ # Corresponds to the JSON property `taxonomies`
634
+ # @return [Array<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1SerializedTaxonomy>]
635
+ attr_accessor :taxonomies
636
+
637
+ def initialize(**args)
638
+ update!(**args)
639
+ end
640
+
641
+ # Update properties of this object
642
+ def update!(**args)
643
+ @taxonomies = args[:taxonomies] if args.key?(:taxonomies)
644
+ end
645
+ end
646
+
647
+ #
648
+ class GoogleCloudDatacatalogV1FieldType
649
+ include Google::Apis::Core::Hashable
650
+
651
+ # An enum type.
652
+ # Corresponds to the JSON property `enumType`
653
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1FieldTypeEnumType]
654
+ attr_accessor :enum_type
655
+
656
+ # Primitive types, such as string, boolean, etc.
657
+ # Corresponds to the JSON property `primitiveType`
658
+ # @return [String]
659
+ attr_accessor :primitive_type
660
+
661
+ def initialize(**args)
662
+ update!(**args)
663
+ end
664
+
665
+ # Update properties of this object
666
+ def update!(**args)
667
+ @enum_type = args[:enum_type] if args.key?(:enum_type)
668
+ @primitive_type = args[:primitive_type] if args.key?(:primitive_type)
669
+ end
670
+ end
671
+
672
+ #
673
+ class GoogleCloudDatacatalogV1FieldTypeEnumType
674
+ include Google::Apis::Core::Hashable
675
+
676
+ # The set of allowed values for this enum. This set must not be empty and can
677
+ # include up to 100 allowed values. The display names of the values in this set
678
+ # must not be empty and must be case-insensitively unique within this set. The
679
+ # order of items in this set is preserved. This field can be used to create,
680
+ # remove, and reorder enum values. To rename enum values, use the `
681
+ # RenameTagTemplateFieldEnumValue` method.
682
+ # Corresponds to the JSON property `allowedValues`
683
+ # @return [Array<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue>]
684
+ attr_accessor :allowed_values
685
+
686
+ def initialize(**args)
687
+ update!(**args)
688
+ end
689
+
690
+ # Update properties of this object
691
+ def update!(**args)
692
+ @allowed_values = args[:allowed_values] if args.key?(:allowed_values)
693
+ end
694
+ end
695
+
696
+ #
697
+ class GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue
698
+ include Google::Apis::Core::Hashable
699
+
700
+ # Required. The display name of the enum value. Must not be an empty string. The
701
+ # name must contain only Unicode letters, numbers (0-9), underscores (_), dashes
702
+ # (-), spaces ( ), and can't start or end with spaces. The maximum length is 200
703
+ # characters.
704
+ # Corresponds to the JSON property `displayName`
705
+ # @return [String]
706
+ attr_accessor :display_name
707
+
708
+ def initialize(**args)
709
+ update!(**args)
710
+ end
711
+
712
+ # Update properties of this object
713
+ def update!(**args)
714
+ @display_name = args[:display_name] if args.key?(:display_name)
715
+ end
716
+ end
717
+
718
+ # Specification of a single file in Cloud Storage.
719
+ class GoogleCloudDatacatalogV1GcsFileSpec
720
+ include Google::Apis::Core::Hashable
721
+
722
+ # Required. Full file path. Example: `gs://bucket_name/a/b.txt`.
723
+ # Corresponds to the JSON property `filePath`
724
+ # @return [String]
725
+ attr_accessor :file_path
726
+
727
+ # Timestamps associated with this resource in a particular system.
728
+ # Corresponds to the JSON property `gcsTimestamps`
729
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1SystemTimestamps]
730
+ attr_accessor :gcs_timestamps
731
+
732
+ # Output only. File size in bytes.
733
+ # Corresponds to the JSON property `sizeBytes`
734
+ # @return [Fixnum]
735
+ attr_accessor :size_bytes
736
+
737
+ def initialize(**args)
738
+ update!(**args)
739
+ end
740
+
741
+ # Update properties of this object
742
+ def update!(**args)
743
+ @file_path = args[:file_path] if args.key?(:file_path)
744
+ @gcs_timestamps = args[:gcs_timestamps] if args.key?(:gcs_timestamps)
745
+ @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
746
+ end
747
+ end
748
+
749
+ # Describes a Cloud Storage fileset entry.
750
+ class GoogleCloudDatacatalogV1GcsFilesetSpec
751
+ include Google::Apis::Core::Hashable
752
+
753
+ # Required. Patterns to identify a set of files in Google Cloud Storage. For
754
+ # more information, see [Wildcard Names] (https://cloud.google.com/storage/docs/
755
+ # gsutil/addlhelp/WildcardNames). Note: Currently, bucket wildcards are not
756
+ # supported. Examples of valid `file_patterns`: * `gs://bucket_name/dir/*`:
757
+ # matches all files in `bucket_name/dir` directory * `gs://bucket_name/dir/**`:
758
+ # matches all files in `bucket_name/dir` and all subdirectories * `gs://
759
+ # bucket_name/file*`: matches files prefixed by `file` in `bucket_name` * `gs://
760
+ # bucket_name/??.txt`: matches files with two characters followed by `.txt` in `
761
+ # bucket_name` * `gs://bucket_name/[aeiou].txt`: matches files that contain a
762
+ # single vowel character followed by `.txt` in `bucket_name` * `gs://bucket_name/
763
+ # [a-m].txt`: matches files that contain `a`, `b`, ... or `m` followed by `.txt`
764
+ # in `bucket_name` * `gs://bucket_name/a/*/b`: matches all files in `bucket_name`
765
+ # that match the `a/*/b` pattern, such as `a/c/b`, `a/d/b` * `gs://
766
+ # another_bucket/a.txt`: matches `gs://another_bucket/a.txt` You can combine
767
+ # wildcards to match complex sets of files, for example: `gs://bucket_name/[a-m]?
768
+ # ?.j*g`
769
+ # Corresponds to the JSON property `filePatterns`
770
+ # @return [Array<String>]
771
+ attr_accessor :file_patterns
772
+
773
+ # Output only. Sample files contained in this fileset, not all files contained
774
+ # in this fileset are represented here.
775
+ # Corresponds to the JSON property `sampleGcsFileSpecs`
776
+ # @return [Array<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1GcsFileSpec>]
777
+ attr_accessor :sample_gcs_file_specs
778
+
779
+ def initialize(**args)
780
+ update!(**args)
781
+ end
782
+
783
+ # Update properties of this object
784
+ def update!(**args)
785
+ @file_patterns = args[:file_patterns] if args.key?(:file_patterns)
786
+ @sample_gcs_file_specs = args[:sample_gcs_file_specs] if args.key?(:sample_gcs_file_specs)
787
+ end
788
+ end
789
+
790
+ # Request message for ImportTaxonomies.
791
+ class GoogleCloudDatacatalogV1ImportTaxonomiesRequest
792
+ include Google::Apis::Core::Hashable
793
+
794
+ # Cross-regional source used to import an existing taxonomy into a different
795
+ # region.
796
+ # Corresponds to the JSON property `crossRegionalSource`
797
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1CrossRegionalSource]
798
+ attr_accessor :cross_regional_source
799
+
800
+ # Inline source containing taxonomies to import.
801
+ # Corresponds to the JSON property `inlineSource`
802
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1InlineSource]
803
+ attr_accessor :inline_source
804
+
805
+ def initialize(**args)
806
+ update!(**args)
807
+ end
808
+
809
+ # Update properties of this object
810
+ def update!(**args)
811
+ @cross_regional_source = args[:cross_regional_source] if args.key?(:cross_regional_source)
812
+ @inline_source = args[:inline_source] if args.key?(:inline_source)
813
+ end
814
+ end
815
+
816
+ # Response message for ImportTaxonomies.
817
+ class GoogleCloudDatacatalogV1ImportTaxonomiesResponse
818
+ include Google::Apis::Core::Hashable
819
+
820
+ # Imported taxonomies.
821
+ # Corresponds to the JSON property `taxonomies`
822
+ # @return [Array<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1Taxonomy>]
823
+ attr_accessor :taxonomies
824
+
825
+ def initialize(**args)
826
+ update!(**args)
827
+ end
828
+
829
+ # Update properties of this object
830
+ def update!(**args)
831
+ @taxonomies = args[:taxonomies] if args.key?(:taxonomies)
832
+ end
833
+ end
834
+
835
+ # Inline source containing taxonomies to import.
836
+ class GoogleCloudDatacatalogV1InlineSource
837
+ include Google::Apis::Core::Hashable
838
+
839
+ # Required. Taxonomies to import.
840
+ # Corresponds to the JSON property `taxonomies`
841
+ # @return [Array<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1SerializedTaxonomy>]
842
+ attr_accessor :taxonomies
843
+
844
+ def initialize(**args)
845
+ update!(**args)
846
+ end
847
+
848
+ # Update properties of this object
849
+ def update!(**args)
850
+ @taxonomies = args[:taxonomies] if args.key?(:taxonomies)
851
+ end
852
+ end
853
+
854
+ # Response message for ListEntries.
855
+ class GoogleCloudDatacatalogV1ListEntriesResponse
856
+ include Google::Apis::Core::Hashable
857
+
858
+ # Entry details.
859
+ # Corresponds to the JSON property `entries`
860
+ # @return [Array<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1Entry>]
861
+ attr_accessor :entries
862
+
863
+ # Pagination token of the next results page. Empty if there are no more items in
864
+ # results.
865
+ # Corresponds to the JSON property `nextPageToken`
866
+ # @return [String]
867
+ attr_accessor :next_page_token
868
+
869
+ def initialize(**args)
870
+ update!(**args)
871
+ end
872
+
873
+ # Update properties of this object
874
+ def update!(**args)
875
+ @entries = args[:entries] if args.key?(:entries)
876
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
877
+ end
878
+ end
879
+
880
+ # Response message for ListEntryGroups.
881
+ class GoogleCloudDatacatalogV1ListEntryGroupsResponse
882
+ include Google::Apis::Core::Hashable
883
+
884
+ # Entry group details.
885
+ # Corresponds to the JSON property `entryGroups`
886
+ # @return [Array<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1EntryGroup>]
887
+ attr_accessor :entry_groups
888
+
889
+ # Pagination token to specify in the next call to retrieve the next page of
890
+ # results. Empty if there are no more items.
891
+ # Corresponds to the JSON property `nextPageToken`
892
+ # @return [String]
893
+ attr_accessor :next_page_token
894
+
895
+ def initialize(**args)
896
+ update!(**args)
897
+ end
898
+
899
+ # Update properties of this object
900
+ def update!(**args)
901
+ @entry_groups = args[:entry_groups] if args.key?(:entry_groups)
902
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
903
+ end
904
+ end
905
+
906
+ # Response message for ListPolicyTags.
907
+ class GoogleCloudDatacatalogV1ListPolicyTagsResponse
908
+ include Google::Apis::Core::Hashable
909
+
910
+ # Pagination token of the next results page. Empty if there are no more results
911
+ # in the list.
912
+ # Corresponds to the JSON property `nextPageToken`
913
+ # @return [String]
914
+ attr_accessor :next_page_token
915
+
916
+ # The policy tags that belong to the taxonomy.
917
+ # Corresponds to the JSON property `policyTags`
918
+ # @return [Array<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1PolicyTag>]
919
+ attr_accessor :policy_tags
920
+
921
+ def initialize(**args)
922
+ update!(**args)
923
+ end
924
+
925
+ # Update properties of this object
926
+ def update!(**args)
927
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
928
+ @policy_tags = args[:policy_tags] if args.key?(:policy_tags)
929
+ end
930
+ end
931
+
932
+ # Response message for ListTags.
933
+ class GoogleCloudDatacatalogV1ListTagsResponse
934
+ include Google::Apis::Core::Hashable
935
+
936
+ # Pagination token of the next results page. Empty if there are no more items in
937
+ # results.
938
+ # Corresponds to the JSON property `nextPageToken`
939
+ # @return [String]
940
+ attr_accessor :next_page_token
941
+
942
+ # Tag details.
943
+ # Corresponds to the JSON property `tags`
944
+ # @return [Array<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1Tag>]
945
+ attr_accessor :tags
946
+
947
+ def initialize(**args)
948
+ update!(**args)
949
+ end
950
+
951
+ # Update properties of this object
952
+ def update!(**args)
953
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
954
+ @tags = args[:tags] if args.key?(:tags)
955
+ end
956
+ end
957
+
958
+ # Response message for ListTaxonomies.
959
+ class GoogleCloudDatacatalogV1ListTaxonomiesResponse
960
+ include Google::Apis::Core::Hashable
961
+
962
+ # Pagination token of the next results page. Empty if there are no more results
963
+ # in the list.
964
+ # Corresponds to the JSON property `nextPageToken`
965
+ # @return [String]
966
+ attr_accessor :next_page_token
967
+
968
+ # Taxonomies that the project contains.
969
+ # Corresponds to the JSON property `taxonomies`
970
+ # @return [Array<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1Taxonomy>]
971
+ attr_accessor :taxonomies
972
+
973
+ def initialize(**args)
974
+ update!(**args)
975
+ end
976
+
977
+ # Update properties of this object
978
+ def update!(**args)
979
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
980
+ @taxonomies = args[:taxonomies] if args.key?(:taxonomies)
981
+ end
982
+ end
983
+
984
+ # Denotes one policy tag in a taxonomy, for example, SSN. Policy tags can be
985
+ # defined in a hierarchy. For example: ``` + Geolocation + LatLong + City +
986
+ # ZipCode ``` Where the "Geolocation" policy tag contains three children.
987
+ class GoogleCloudDatacatalogV1PolicyTag
988
+ include Google::Apis::Core::Hashable
989
+
990
+ # Output only. Resource names of child policy tags of this policy tag.
991
+ # Corresponds to the JSON property `childPolicyTags`
992
+ # @return [Array<String>]
993
+ attr_accessor :child_policy_tags
994
+
995
+ # Description of this policy tag. If not set, defaults to empty. The description
996
+ # must contain only Unicode characters, tabs, newlines, carriage returns and
997
+ # page breaks, and be at most 2000 bytes long when encoded in UTF-8.
998
+ # Corresponds to the JSON property `description`
999
+ # @return [String]
1000
+ attr_accessor :description
1001
+
1002
+ # Required. User-defined name of this policy tag. The name can't start or end
1003
+ # with spaces and must be unique within the parent taxonomy, contain only
1004
+ # Unicode letters, numbers, underscores, dashes and spaces, and be at most 200
1005
+ # bytes long when encoded in UTF-8.
1006
+ # Corresponds to the JSON property `displayName`
1007
+ # @return [String]
1008
+ attr_accessor :display_name
1009
+
1010
+ # Output only. Resource name of this policy tag in the URL format. The policy
1011
+ # tag manager generates unique taxonomy IDs and policy tag IDs.
1012
+ # Corresponds to the JSON property `name`
1013
+ # @return [String]
1014
+ attr_accessor :name
1015
+
1016
+ # Resource name of this policy tag's parent policy tag. If empty, this is a top
1017
+ # level tag. If not set, defaults to an empty string. For example, for the "
1018
+ # LatLong" policy tag in the example above, this field contains the resource
1019
+ # name of the "Geolocation" policy tag, and, for "Geolocation", this field is
1020
+ # empty.
1021
+ # Corresponds to the JSON property `parentPolicyTag`
1022
+ # @return [String]
1023
+ attr_accessor :parent_policy_tag
1024
+
1025
+ def initialize(**args)
1026
+ update!(**args)
1027
+ end
1028
+
1029
+ # Update properties of this object
1030
+ def update!(**args)
1031
+ @child_policy_tags = args[:child_policy_tags] if args.key?(:child_policy_tags)
1032
+ @description = args[:description] if args.key?(:description)
1033
+ @display_name = args[:display_name] if args.key?(:display_name)
1034
+ @name = args[:name] if args.key?(:name)
1035
+ @parent_policy_tag = args[:parent_policy_tag] if args.key?(:parent_policy_tag)
1036
+ end
1037
+ end
1038
+
1039
+ # Request message for RenameTagTemplateFieldEnumValue.
1040
+ class GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest
1041
+ include Google::Apis::Core::Hashable
1042
+
1043
+ # Required. The new display name of the enum value. For example, `
1044
+ # my_new_enum_value`.
1045
+ # Corresponds to the JSON property `newEnumValueDisplayName`
1046
+ # @return [String]
1047
+ attr_accessor :new_enum_value_display_name
1048
+
1049
+ def initialize(**args)
1050
+ update!(**args)
1051
+ end
1052
+
1053
+ # Update properties of this object
1054
+ def update!(**args)
1055
+ @new_enum_value_display_name = args[:new_enum_value_display_name] if args.key?(:new_enum_value_display_name)
1056
+ end
1057
+ end
1058
+
1059
+ # Request message for RenameTagTemplateField.
1060
+ class GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest
1061
+ include Google::Apis::Core::Hashable
1062
+
1063
+ # Required. The new ID of this tag template field. For example, `my_new_field`.
1064
+ # Corresponds to the JSON property `newTagTemplateFieldId`
1065
+ # @return [String]
1066
+ attr_accessor :new_tag_template_field_id
1067
+
1068
+ def initialize(**args)
1069
+ update!(**args)
1070
+ end
1071
+
1072
+ # Update properties of this object
1073
+ def update!(**args)
1074
+ @new_tag_template_field_id = args[:new_tag_template_field_id] if args.key?(:new_tag_template_field_id)
1075
+ end
1076
+ end
1077
+
1078
+ # Request message for ReplaceTaxonomy.
1079
+ class GoogleCloudDatacatalogV1ReplaceTaxonomyRequest
1080
+ include Google::Apis::Core::Hashable
1081
+
1082
+ # A nested protocol buffer that represents a taxonomy and the hierarchy of its
1083
+ # policy tags. Used for taxonomy replacement, import, and export.
1084
+ # Corresponds to the JSON property `serializedTaxonomy`
1085
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1SerializedTaxonomy]
1086
+ attr_accessor :serialized_taxonomy
1087
+
1088
+ def initialize(**args)
1089
+ update!(**args)
1090
+ end
1091
+
1092
+ # Update properties of this object
1093
+ def update!(**args)
1094
+ @serialized_taxonomy = args[:serialized_taxonomy] if args.key?(:serialized_taxonomy)
1095
+ end
1096
+ end
1097
+
1098
+ # Specification that applies to a routine. Valid only for entries with the `
1099
+ # ROUTINE` type.
1100
+ class GoogleCloudDatacatalogV1RoutineSpec
1101
+ include Google::Apis::Core::Hashable
1102
+
1103
+ # Fields specific for BigQuery routines.
1104
+ # Corresponds to the JSON property `bigqueryRoutineSpec`
1105
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1BigQueryRoutineSpec]
1106
+ attr_accessor :bigquery_routine_spec
1107
+
1108
+ # The body of the routine.
1109
+ # Corresponds to the JSON property `definitionBody`
1110
+ # @return [String]
1111
+ attr_accessor :definition_body
1112
+
1113
+ # The language the routine is written in. The exact value depends on the source
1114
+ # system. For BigQuery routines, possible values are: * `SQL` * `JAVASCRIPT`
1115
+ # Corresponds to the JSON property `language`
1116
+ # @return [String]
1117
+ attr_accessor :language
1118
+
1119
+ # Return type of the argument. The exact value depends on the source system and
1120
+ # the language.
1121
+ # Corresponds to the JSON property `returnType`
1122
+ # @return [String]
1123
+ attr_accessor :return_type
1124
+
1125
+ # Arguments of the routine.
1126
+ # Corresponds to the JSON property `routineArguments`
1127
+ # @return [Array<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1RoutineSpecArgument>]
1128
+ attr_accessor :routine_arguments
1129
+
1130
+ # The type of the routine.
1131
+ # Corresponds to the JSON property `routineType`
1132
+ # @return [String]
1133
+ attr_accessor :routine_type
1134
+
1135
+ def initialize(**args)
1136
+ update!(**args)
1137
+ end
1138
+
1139
+ # Update properties of this object
1140
+ def update!(**args)
1141
+ @bigquery_routine_spec = args[:bigquery_routine_spec] if args.key?(:bigquery_routine_spec)
1142
+ @definition_body = args[:definition_body] if args.key?(:definition_body)
1143
+ @language = args[:language] if args.key?(:language)
1144
+ @return_type = args[:return_type] if args.key?(:return_type)
1145
+ @routine_arguments = args[:routine_arguments] if args.key?(:routine_arguments)
1146
+ @routine_type = args[:routine_type] if args.key?(:routine_type)
1147
+ end
1148
+ end
1149
+
1150
+ # Input or output argument of a function or stored procedure.
1151
+ class GoogleCloudDatacatalogV1RoutineSpecArgument
1152
+ include Google::Apis::Core::Hashable
1153
+
1154
+ # Specifies whether the argument is input or output.
1155
+ # Corresponds to the JSON property `mode`
1156
+ # @return [String]
1157
+ attr_accessor :mode
1158
+
1159
+ # The name of the argument. A return argument of a function might not have a
1160
+ # name.
1161
+ # Corresponds to the JSON property `name`
1162
+ # @return [String]
1163
+ attr_accessor :name
1164
+
1165
+ # Type of the argument. The exact value depends on the source system and the
1166
+ # language.
1167
+ # Corresponds to the JSON property `type`
1168
+ # @return [String]
1169
+ attr_accessor :type
1170
+
1171
+ def initialize(**args)
1172
+ update!(**args)
1173
+ end
1174
+
1175
+ # Update properties of this object
1176
+ def update!(**args)
1177
+ @mode = args[:mode] if args.key?(:mode)
1178
+ @name = args[:name] if args.key?(:name)
1179
+ @type = args[:type] if args.key?(:type)
1180
+ end
1181
+ end
1182
+
1183
+ # Represents a schema, for example, a BigQuery, GoogleSQL, or Avro schema.
1184
+ class GoogleCloudDatacatalogV1Schema
1185
+ include Google::Apis::Core::Hashable
1186
+
1187
+ # The unified GoogleSQL-like schema of columns. The overall maximum number of
1188
+ # columns and nested columns is 10,000. The maximum nested depth is 15 levels.
1189
+ # Corresponds to the JSON property `columns`
1190
+ # @return [Array<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1ColumnSchema>]
1191
+ attr_accessor :columns
1192
+
1193
+ def initialize(**args)
1194
+ update!(**args)
1195
+ end
1196
+
1197
+ # Update properties of this object
1198
+ def update!(**args)
1199
+ @columns = args[:columns] if args.key?(:columns)
1200
+ end
1201
+ end
1202
+
1203
+ # Request message for SearchCatalog.
1204
+ class GoogleCloudDatacatalogV1SearchCatalogRequest
1205
+ include Google::Apis::Core::Hashable
1206
+
1207
+ # Specifies the order of results. Currently supported case-sensitive values are:
1208
+ # * `relevance` that can only be descending * `last_modified_timestamp [asc|desc]
1209
+ # ` with descending (`desc`) as default If this parameter is omitted, it
1210
+ # defaults to the descending `relevance`.
1211
+ # Corresponds to the JSON property `orderBy`
1212
+ # @return [String]
1213
+ attr_accessor :order_by
1214
+
1215
+ # Number of results to return in a single search page. Can't be negative or 0,
1216
+ # defaults to 10 in this case. The maximum number is 1000. If exceeded, throws
1217
+ # an "invalid argument" exception.
1218
+ # Corresponds to the JSON property `pageSize`
1219
+ # @return [Fixnum]
1220
+ attr_accessor :page_size
1221
+
1222
+ # Optional. Pagination token that, if specified, returns the next page of search
1223
+ # results. If empty, returns the first page. This token is returned in the
1224
+ # SearchCatalogResponse.next_page_token field of the response to a previous
1225
+ # SearchCatalogRequest call.
1226
+ # Corresponds to the JSON property `pageToken`
1227
+ # @return [String]
1228
+ attr_accessor :page_token
1229
+
1230
+ # Optional. The query string with a minimum of 3 characters and specific syntax.
1231
+ # For more information, see [Data Catalog search syntax](/data-catalog/docs/how-
1232
+ # to/search-reference). An empty query string returns all data assets (in the
1233
+ # specified scope) that you have access to. A query string can be a simple `xyz`
1234
+ # or qualified by predicates: * `name:x` * `column:y` * `description:z`
1235
+ # Corresponds to the JSON property `query`
1236
+ # @return [String]
1237
+ attr_accessor :query
1238
+
1239
+ # The criteria that select the subspace used for query matching.
1240
+ # Corresponds to the JSON property `scope`
1241
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1SearchCatalogRequestScope]
1242
+ attr_accessor :scope
1243
+
1244
+ def initialize(**args)
1245
+ update!(**args)
1246
+ end
1247
+
1248
+ # Update properties of this object
1249
+ def update!(**args)
1250
+ @order_by = args[:order_by] if args.key?(:order_by)
1251
+ @page_size = args[:page_size] if args.key?(:page_size)
1252
+ @page_token = args[:page_token] if args.key?(:page_token)
1253
+ @query = args[:query] if args.key?(:query)
1254
+ @scope = args[:scope] if args.key?(:scope)
1255
+ end
1256
+ end
1257
+
1258
+ # The criteria that select the subspace used for query matching.
1259
+ class GoogleCloudDatacatalogV1SearchCatalogRequestScope
1260
+ include Google::Apis::Core::Hashable
1261
+
1262
+ # If `true`, include Google Cloud Platform (GCP) public datasets in search
1263
+ # results. By default, they are excluded. See [Google Cloud Public Datasets](/
1264
+ # public-datasets) for more information.
1265
+ # Corresponds to the JSON property `includeGcpPublicDatasets`
1266
+ # @return [Boolean]
1267
+ attr_accessor :include_gcp_public_datasets
1268
+ alias_method :include_gcp_public_datasets?, :include_gcp_public_datasets
1269
+
1270
+ # The list of organization IDs to search within. To find your organization ID,
1271
+ # follow the steps from [Creating and managing organizations] (/resource-manager/
1272
+ # docs/creating-managing-organization).
1273
+ # Corresponds to the JSON property `includeOrgIds`
1274
+ # @return [Array<String>]
1275
+ attr_accessor :include_org_ids
1276
+
1277
+ # The list of project IDs to search within. For more information on the
1278
+ # distinction between project names, IDs, and numbers, see [Projects](/docs/
1279
+ # overview/#projects).
1280
+ # Corresponds to the JSON property `includeProjectIds`
1281
+ # @return [Array<String>]
1282
+ attr_accessor :include_project_ids
1283
+
1284
+ # Optional. The list of locations to search within. If empty, all locations are
1285
+ # searched. Returns an error if any location in the list isn't one of the [
1286
+ # Supported regions](https://cloud.google.com/data-catalog/docs/concepts/regions#
1287
+ # supported_regions). If a location is unreachable, its name is returned in the `
1288
+ # SearchCatalogResponse.unreachable` field. To get additional information on the
1289
+ # error, repeat the search request and set the location name as the value of
1290
+ # this parameter.
1291
+ # Corresponds to the JSON property `restrictedLocations`
1292
+ # @return [Array<String>]
1293
+ attr_accessor :restricted_locations
1294
+
1295
+ def initialize(**args)
1296
+ update!(**args)
1297
+ end
1298
+
1299
+ # Update properties of this object
1300
+ def update!(**args)
1301
+ @include_gcp_public_datasets = args[:include_gcp_public_datasets] if args.key?(:include_gcp_public_datasets)
1302
+ @include_org_ids = args[:include_org_ids] if args.key?(:include_org_ids)
1303
+ @include_project_ids = args[:include_project_ids] if args.key?(:include_project_ids)
1304
+ @restricted_locations = args[:restricted_locations] if args.key?(:restricted_locations)
1305
+ end
1306
+ end
1307
+
1308
+ # Response message for SearchCatalog.
1309
+ class GoogleCloudDatacatalogV1SearchCatalogResponse
1310
+ include Google::Apis::Core::Hashable
1311
+
1312
+ # Pagination token that can be used in subsequent calls to retrieve the next
1313
+ # page of results.
1314
+ # Corresponds to the JSON property `nextPageToken`
1315
+ # @return [String]
1316
+ attr_accessor :next_page_token
1317
+
1318
+ # Search results.
1319
+ # Corresponds to the JSON property `results`
1320
+ # @return [Array<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1SearchCatalogResult>]
1321
+ attr_accessor :results
1322
+
1323
+ # Unreachable locations. Search results don't include data from those locations.
1324
+ # To get additional information on an error, repeat the search request and
1325
+ # restrict it to specific locations by setting the `SearchCatalogRequest.scope.
1326
+ # restricted_locations` parameter.
1327
+ # Corresponds to the JSON property `unreachable`
1328
+ # @return [Array<String>]
1329
+ attr_accessor :unreachable
1330
+
1331
+ def initialize(**args)
1332
+ update!(**args)
1333
+ end
1334
+
1335
+ # Update properties of this object
1336
+ def update!(**args)
1337
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1338
+ @results = args[:results] if args.key?(:results)
1339
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1340
+ end
1341
+ end
1342
+
1343
+ # Result in the response to a search request. Each result captures details of
1344
+ # one entry that matches the search.
1345
+ class GoogleCloudDatacatalogV1SearchCatalogResult
1346
+ include Google::Apis::Core::Hashable
1347
+
1348
+ # Fully qualified name (FQN) of the resource. FQNs take two forms: * For non-
1349
+ # regionalized resources: ``SYSTEM`:`PROJECT`.`
1350
+ # PATH_TO_RESOURCE_SEPARATED_WITH_DOTS`` * For regionalized resources: ``SYSTEM`:
1351
+ # `PROJECT`.`LOCATION_ID`.`PATH_TO_RESOURCE_SEPARATED_WITH_DOTS`` Example for a
1352
+ # DPMS table: `dataproc_metastore:PROJECT_ID.LOCATION_ID.INSTANCE_ID.DATABASE_ID.
1353
+ # TABLE_ID`
1354
+ # Corresponds to the JSON property `fullyQualifiedName`
1355
+ # @return [String]
1356
+ attr_accessor :fully_qualified_name
1357
+
1358
+ # Output only. The source system that Data Catalog automatically integrates with,
1359
+ # such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore.
1360
+ # Corresponds to the JSON property `integratedSystem`
1361
+ # @return [String]
1362
+ attr_accessor :integrated_system
1363
+
1364
+ # The full name of the Google Cloud resource the entry belongs to. For more
1365
+ # information, see [Full Resource Name] (/apis/design/resource_names#
1366
+ # full_resource_name). Example: `//bigquery.googleapis.com/projects/PROJECT_ID/
1367
+ # datasets/DATASET_ID/tables/TABLE_ID`
1368
+ # Corresponds to the JSON property `linkedResource`
1369
+ # @return [String]
1370
+ attr_accessor :linked_resource
1371
+
1372
+ # The last modification timestamp of the entry in the source system.
1373
+ # Corresponds to the JSON property `modifyTime`
1374
+ # @return [String]
1375
+ attr_accessor :modify_time
1376
+
1377
+ # The relative name of the resource in URL format. Examples: * `projects/`
1378
+ # PROJECT_ID`/locations/`LOCATION_ID`/entryGroups/`ENTRY_GROUP_ID`/entries/`
1379
+ # ENTRY_ID`` * `projects/`PROJECT_ID`/tagTemplates/`TAG_TEMPLATE_ID``
1380
+ # Corresponds to the JSON property `relativeResourceName`
1381
+ # @return [String]
1382
+ attr_accessor :relative_resource_name
1383
+
1384
+ # Sub-type of the search result. A dot-delimited full type of the resource. The
1385
+ # same type you specify in the `type` search predicate. Examples: `entry.table`,
1386
+ # `entry.dataStream`, `tagTemplate`.
1387
+ # Corresponds to the JSON property `searchResultSubtype`
1388
+ # @return [String]
1389
+ attr_accessor :search_result_subtype
1390
+
1391
+ # Type of the search result. You can use this field to determine which get
1392
+ # method to call to fetch the full resource.
1393
+ # Corresponds to the JSON property `searchResultType`
1394
+ # @return [String]
1395
+ attr_accessor :search_result_type
1396
+
1397
+ # Custom source system that you can manually integrate Data Catalog with.
1398
+ # Corresponds to the JSON property `userSpecifiedSystem`
1399
+ # @return [String]
1400
+ attr_accessor :user_specified_system
1401
+
1402
+ def initialize(**args)
1403
+ update!(**args)
1404
+ end
1405
+
1406
+ # Update properties of this object
1407
+ def update!(**args)
1408
+ @fully_qualified_name = args[:fully_qualified_name] if args.key?(:fully_qualified_name)
1409
+ @integrated_system = args[:integrated_system] if args.key?(:integrated_system)
1410
+ @linked_resource = args[:linked_resource] if args.key?(:linked_resource)
1411
+ @modify_time = args[:modify_time] if args.key?(:modify_time)
1412
+ @relative_resource_name = args[:relative_resource_name] if args.key?(:relative_resource_name)
1413
+ @search_result_subtype = args[:search_result_subtype] if args.key?(:search_result_subtype)
1414
+ @search_result_type = args[:search_result_type] if args.key?(:search_result_type)
1415
+ @user_specified_system = args[:user_specified_system] if args.key?(:user_specified_system)
1416
+ end
1417
+ end
1418
+
1419
+ # A nested protocol buffer that represents a policy tag and all its descendants.
1420
+ class GoogleCloudDatacatalogV1SerializedPolicyTag
1421
+ include Google::Apis::Core::Hashable
1422
+
1423
+ # Children of the policy tag, if any.
1424
+ # Corresponds to the JSON property `childPolicyTags`
1425
+ # @return [Array<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1SerializedPolicyTag>]
1426
+ attr_accessor :child_policy_tags
1427
+
1428
+ # Description of the serialized policy tag. At most 2000 bytes when encoded in
1429
+ # UTF-8. If not set, defaults to an empty description.
1430
+ # Corresponds to the JSON property `description`
1431
+ # @return [String]
1432
+ attr_accessor :description
1433
+
1434
+ # Required. Display name of the policy tag. At most 200 bytes when encoded in
1435
+ # UTF-8.
1436
+ # Corresponds to the JSON property `displayName`
1437
+ # @return [String]
1438
+ attr_accessor :display_name
1439
+
1440
+ # Resource name of the policy tag. This field is ignored when calling `
1441
+ # ImportTaxonomies`.
1442
+ # Corresponds to the JSON property `policyTag`
1443
+ # @return [String]
1444
+ attr_accessor :policy_tag
1445
+
1446
+ def initialize(**args)
1447
+ update!(**args)
1448
+ end
1449
+
1450
+ # Update properties of this object
1451
+ def update!(**args)
1452
+ @child_policy_tags = args[:child_policy_tags] if args.key?(:child_policy_tags)
1453
+ @description = args[:description] if args.key?(:description)
1454
+ @display_name = args[:display_name] if args.key?(:display_name)
1455
+ @policy_tag = args[:policy_tag] if args.key?(:policy_tag)
1456
+ end
1457
+ end
1458
+
1459
+ # A nested protocol buffer that represents a taxonomy and the hierarchy of its
1460
+ # policy tags. Used for taxonomy replacement, import, and export.
1461
+ class GoogleCloudDatacatalogV1SerializedTaxonomy
1462
+ include Google::Apis::Core::Hashable
1463
+
1464
+ # A list of policy types that are activated per taxonomy.
1465
+ # Corresponds to the JSON property `activatedPolicyTypes`
1466
+ # @return [Array<String>]
1467
+ attr_accessor :activated_policy_types
1468
+
1469
+ # Description of the serialized taxonomy. At most 2000 bytes when encoded in UTF-
1470
+ # 8. If not set, defaults to an empty description.
1471
+ # Corresponds to the JSON property `description`
1472
+ # @return [String]
1473
+ attr_accessor :description
1474
+
1475
+ # Required. Display name of the taxonomy. At most 200 bytes when encoded in UTF-
1476
+ # 8.
1477
+ # Corresponds to the JSON property `displayName`
1478
+ # @return [String]
1479
+ attr_accessor :display_name
1480
+
1481
+ # Top level policy tags associated with the taxonomy, if any.
1482
+ # Corresponds to the JSON property `policyTags`
1483
+ # @return [Array<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1SerializedPolicyTag>]
1484
+ attr_accessor :policy_tags
1485
+
1486
+ def initialize(**args)
1487
+ update!(**args)
1488
+ end
1489
+
1490
+ # Update properties of this object
1491
+ def update!(**args)
1492
+ @activated_policy_types = args[:activated_policy_types] if args.key?(:activated_policy_types)
1493
+ @description = args[:description] if args.key?(:description)
1494
+ @display_name = args[:display_name] if args.key?(:display_name)
1495
+ @policy_tags = args[:policy_tags] if args.key?(:policy_tags)
1496
+ end
1497
+ end
1498
+
1499
+ # Timestamps associated with this resource in a particular system.
1500
+ class GoogleCloudDatacatalogV1SystemTimestamps
1501
+ include Google::Apis::Core::Hashable
1502
+
1503
+ # Creation timestamp of the resource within the given system.
1504
+ # Corresponds to the JSON property `createTime`
1505
+ # @return [String]
1506
+ attr_accessor :create_time
1507
+
1508
+ # Output only. Expiration timestamp of the resource within the given system.
1509
+ # Currently only applicable to BigQuery resources.
1510
+ # Corresponds to the JSON property `expireTime`
1511
+ # @return [String]
1512
+ attr_accessor :expire_time
1513
+
1514
+ # Timestamp of the last modification of the resource or its metadata within a
1515
+ # given system. Note: Depending on the source system, not every modification
1516
+ # updates this timestamp. For example, BigQuery timestamps every metadata
1517
+ # modification but not data or permission changes.
1518
+ # Corresponds to the JSON property `updateTime`
1519
+ # @return [String]
1520
+ attr_accessor :update_time
1521
+
1522
+ def initialize(**args)
1523
+ update!(**args)
1524
+ end
1525
+
1526
+ # Update properties of this object
1527
+ def update!(**args)
1528
+ @create_time = args[:create_time] if args.key?(:create_time)
1529
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
1530
+ @update_time = args[:update_time] if args.key?(:update_time)
1531
+ end
1532
+ end
1533
+
1534
+ # Normal BigQuery table specification.
1535
+ class GoogleCloudDatacatalogV1TableSpec
1536
+ include Google::Apis::Core::Hashable
1537
+
1538
+ # Output only. If the table is date-sharded, that is, it matches the `[prefix]
1539
+ # YYYYMMDD` name pattern, this field is the Data Catalog resource name of the
1540
+ # date-sharded grouped entry. For example: `projects/`PROJECT_ID`/locations/`
1541
+ # LOCATION`/entrygroups/`ENTRY_GROUP_ID`/entries/`ENTRY_ID``. Otherwise, `
1542
+ # grouped_entry` is empty.
1543
+ # Corresponds to the JSON property `groupedEntry`
1544
+ # @return [String]
1545
+ attr_accessor :grouped_entry
1546
+
1547
+ def initialize(**args)
1548
+ update!(**args)
1549
+ end
1550
+
1551
+ # Update properties of this object
1552
+ def update!(**args)
1553
+ @grouped_entry = args[:grouped_entry] if args.key?(:grouped_entry)
1554
+ end
1555
+ end
1556
+
1557
+ # Tags contain custom metadata and are attached to Data Catalog resources. Tags
1558
+ # conform with the specification of their tag template. See [Data Catalog IAM](
1559
+ # https://cloud.google.com/data-catalog/docs/concepts/iam) for information on
1560
+ # the permissions needed to create or view tags.
1561
+ class GoogleCloudDatacatalogV1Tag
1562
+ include Google::Apis::Core::Hashable
1563
+
1564
+ # Resources like entry can have schemas associated with them. This scope allows
1565
+ # you to attach tags to an individual column based on that schema. To attach a
1566
+ # tag to a nested column, separate column names with a dot (`.`). Example: `
1567
+ # column.nested_column`.
1568
+ # Corresponds to the JSON property `column`
1569
+ # @return [String]
1570
+ attr_accessor :column
1571
+
1572
+ # Required. Maps the ID of a tag field to its value and additional information
1573
+ # about that field. Tag template defines valid field IDs. A tag must have at
1574
+ # least 1 field and at most 500 fields.
1575
+ # Corresponds to the JSON property `fields`
1576
+ # @return [Hash<String,Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1TagField>]
1577
+ attr_accessor :fields
1578
+
1579
+ # The resource name of the tag in URL format where tag ID is a system-generated
1580
+ # identifier. Note: The tag itself might not be stored in the location specified
1581
+ # in its name.
1582
+ # Corresponds to the JSON property `name`
1583
+ # @return [String]
1584
+ attr_accessor :name
1585
+
1586
+ # Required. The resource name of the tag template this tag uses. Example: `
1587
+ # projects/`PROJECT_ID`/locations/`LOCATION`/tagTemplates/`TAG_TEMPLATE_ID``
1588
+ # This field cannot be modified after creation.
1589
+ # Corresponds to the JSON property `template`
1590
+ # @return [String]
1591
+ attr_accessor :template
1592
+
1593
+ # Output only. The display name of the tag template.
1594
+ # Corresponds to the JSON property `templateDisplayName`
1595
+ # @return [String]
1596
+ attr_accessor :template_display_name
1597
+
1598
+ def initialize(**args)
1599
+ update!(**args)
1600
+ end
1601
+
1602
+ # Update properties of this object
1603
+ def update!(**args)
1604
+ @column = args[:column] if args.key?(:column)
1605
+ @fields = args[:fields] if args.key?(:fields)
1606
+ @name = args[:name] if args.key?(:name)
1607
+ @template = args[:template] if args.key?(:template)
1608
+ @template_display_name = args[:template_display_name] if args.key?(:template_display_name)
1609
+ end
1610
+ end
1611
+
1612
+ # Contains the value and additional information on a field within a Tag.
1613
+ class GoogleCloudDatacatalogV1TagField
1614
+ include Google::Apis::Core::Hashable
1615
+
1616
+ # The value of a tag field with a boolean type.
1617
+ # Corresponds to the JSON property `boolValue`
1618
+ # @return [Boolean]
1619
+ attr_accessor :bool_value
1620
+ alias_method :bool_value?, :bool_value
1621
+
1622
+ # Output only. The display name of this field.
1623
+ # Corresponds to the JSON property `displayName`
1624
+ # @return [String]
1625
+ attr_accessor :display_name
1626
+
1627
+ # The value of a tag field with a double type.
1628
+ # Corresponds to the JSON property `doubleValue`
1629
+ # @return [Float]
1630
+ attr_accessor :double_value
1631
+
1632
+ # An enum value.
1633
+ # Corresponds to the JSON property `enumValue`
1634
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1TagFieldEnumValue]
1635
+ attr_accessor :enum_value
1636
+
1637
+ # Output only. The order of this field with respect to other fields in this tag.
1638
+ # Can be set by Tag. For example, a higher value can indicate a more important
1639
+ # field. The value can be negative. Multiple fields can have the same order, and
1640
+ # field orders within a tag don't have to be sequential.
1641
+ # Corresponds to the JSON property `order`
1642
+ # @return [Fixnum]
1643
+ attr_accessor :order
1644
+
1645
+ # The value of a tag field with a string type. The maximum length is 2000 UTF-8
1646
+ # characters.
1647
+ # Corresponds to the JSON property `stringValue`
1648
+ # @return [String]
1649
+ attr_accessor :string_value
1650
+
1651
+ # The value of a tag field with a timestamp type.
1652
+ # Corresponds to the JSON property `timestampValue`
1653
+ # @return [String]
1654
+ attr_accessor :timestamp_value
1655
+
1656
+ def initialize(**args)
1657
+ update!(**args)
1658
+ end
1659
+
1660
+ # Update properties of this object
1661
+ def update!(**args)
1662
+ @bool_value = args[:bool_value] if args.key?(:bool_value)
1663
+ @display_name = args[:display_name] if args.key?(:display_name)
1664
+ @double_value = args[:double_value] if args.key?(:double_value)
1665
+ @enum_value = args[:enum_value] if args.key?(:enum_value)
1666
+ @order = args[:order] if args.key?(:order)
1667
+ @string_value = args[:string_value] if args.key?(:string_value)
1668
+ @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
1669
+ end
1670
+ end
1671
+
1672
+ # An enum value.
1673
+ class GoogleCloudDatacatalogV1TagFieldEnumValue
1674
+ include Google::Apis::Core::Hashable
1675
+
1676
+ # The display name of the enum value.
1677
+ # Corresponds to the JSON property `displayName`
1678
+ # @return [String]
1679
+ attr_accessor :display_name
1680
+
1681
+ def initialize(**args)
1682
+ update!(**args)
1683
+ end
1684
+
1685
+ # Update properties of this object
1686
+ def update!(**args)
1687
+ @display_name = args[:display_name] if args.key?(:display_name)
1688
+ end
1689
+ end
1690
+
1691
+ # A tag template defines a tag that can have one or more typed fields. The
1692
+ # template is used to create tags that are attached to GCP resources. [Tag
1693
+ # template roles] (https://cloud.google.com/iam/docs/understanding-roles#data-
1694
+ # catalog-roles) provide permissions to create, edit, and use the template. For
1695
+ # example, see the [TagTemplate User] (https://cloud.google.com/data-catalog/
1696
+ # docs/how-to/template-user) role that includes a permission to use the tag
1697
+ # template to tag resources.
1698
+ class GoogleCloudDatacatalogV1TagTemplate
1699
+ include Google::Apis::Core::Hashable
1700
+
1701
+ # Display name for this template. Defaults to an empty string. The name must
1702
+ # contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
1703
+ # spaces ( ), and can't start or end with spaces. The maximum length is 200
1704
+ # characters.
1705
+ # Corresponds to the JSON property `displayName`
1706
+ # @return [String]
1707
+ attr_accessor :display_name
1708
+
1709
+ # Required. Map of tag template field IDs to the settings for the field. This
1710
+ # map is an exhaustive list of the allowed fields. The map must contain at least
1711
+ # one field and at most 500 fields. The keys to this map are tag template field
1712
+ # IDs. The IDs have the following limitations: * Can contain uppercase and
1713
+ # lowercase letters, numbers (0-9) and underscores (_). * Must be at least 1
1714
+ # character and at most 64 characters long. * Must start with a letter or
1715
+ # underscore.
1716
+ # Corresponds to the JSON property `fields`
1717
+ # @return [Hash<String,Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1TagTemplateField>]
1718
+ attr_accessor :fields
1719
+
1720
+ # The resource name of the tag template in URL format. Note: The tag template
1721
+ # itself and its child resources might not be stored in the location specified
1722
+ # in its name.
1723
+ # Corresponds to the JSON property `name`
1724
+ # @return [String]
1725
+ attr_accessor :name
1726
+
1727
+ def initialize(**args)
1728
+ update!(**args)
1729
+ end
1730
+
1731
+ # Update properties of this object
1732
+ def update!(**args)
1733
+ @display_name = args[:display_name] if args.key?(:display_name)
1734
+ @fields = args[:fields] if args.key?(:fields)
1735
+ @name = args[:name] if args.key?(:name)
1736
+ end
1737
+ end
1738
+
1739
+ # The template for an individual field within a tag template.
1740
+ class GoogleCloudDatacatalogV1TagTemplateField
1741
+ include Google::Apis::Core::Hashable
1742
+
1743
+ # The description for this field. Defaults to an empty string.
1744
+ # Corresponds to the JSON property `description`
1745
+ # @return [String]
1746
+ attr_accessor :description
1747
+
1748
+ # The display name for this field. Defaults to an empty string. The name must
1749
+ # contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
1750
+ # spaces ( ), and can't start or end with spaces. The maximum length is 200
1751
+ # characters.
1752
+ # Corresponds to the JSON property `displayName`
1753
+ # @return [String]
1754
+ attr_accessor :display_name
1755
+
1756
+ # If true, this field is required. Defaults to false.
1757
+ # Corresponds to the JSON property `isRequired`
1758
+ # @return [Boolean]
1759
+ attr_accessor :is_required
1760
+ alias_method :is_required?, :is_required
1761
+
1762
+ # Output only. The resource name of the tag template field in URL format.
1763
+ # Example: `projects/`PROJECT_ID`/locations/`LOCATION`/tagTemplates/`
1764
+ # TAG_TEMPLATE`/fields/`FIELD`` Note: The tag template field itself might not be
1765
+ # stored in the location specified in its name. The name must contain only
1766
+ # letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a
1767
+ # letter or underscore. The maximum length is 64 characters.
1768
+ # Corresponds to the JSON property `name`
1769
+ # @return [String]
1770
+ attr_accessor :name
1771
+
1772
+ # The order of this field with respect to other fields in this tag template. For
1773
+ # example, a higher value can indicate a more important field. The value can be
1774
+ # negative. Multiple fields can have the same order and field orders within a
1775
+ # tag don't have to be sequential.
1776
+ # Corresponds to the JSON property `order`
1777
+ # @return [Fixnum]
1778
+ attr_accessor :order
1779
+
1780
+ # Required. The type of value this tag field can contain.
1781
+ # Corresponds to the JSON property `type`
1782
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1FieldType]
1783
+ attr_accessor :type
1784
+
1785
+ def initialize(**args)
1786
+ update!(**args)
1787
+ end
1788
+
1789
+ # Update properties of this object
1790
+ def update!(**args)
1791
+ @description = args[:description] if args.key?(:description)
1792
+ @display_name = args[:display_name] if args.key?(:display_name)
1793
+ @is_required = args[:is_required] if args.key?(:is_required)
1794
+ @name = args[:name] if args.key?(:name)
1795
+ @order = args[:order] if args.key?(:order)
1796
+ @type = args[:type] if args.key?(:type)
1797
+ end
1798
+ end
1799
+
1800
+ # A taxonomy is a collection of hierarchical policy tags that classify data
1801
+ # along a common axis. For example, a "data sensitivity" taxonomy might contain
1802
+ # the following policy tags: ``` + PII + Account number + Age + SSN + Zipcode +
1803
+ # Financials + Revenue ``` A "data origin" taxonomy might contain the following
1804
+ # policy tags: ``` + User data + Employee data + Partner data + Public data ```
1805
+ class GoogleCloudDatacatalogV1Taxonomy
1806
+ include Google::Apis::Core::Hashable
1807
+
1808
+ # Optional. A list of policy types that are activated for this taxonomy. If not
1809
+ # set, defaults to an empty list.
1810
+ # Corresponds to the JSON property `activatedPolicyTypes`
1811
+ # @return [Array<String>]
1812
+ attr_accessor :activated_policy_types
1813
+
1814
+ # Optional. Description of this taxonomy. If not set, defaults to empty. The
1815
+ # description must contain only Unicode characters, tabs, newlines, carriage
1816
+ # returns, and page breaks, and be at most 2000 bytes long when encoded in UTF-8.
1817
+ # Corresponds to the JSON property `description`
1818
+ # @return [String]
1819
+ attr_accessor :description
1820
+
1821
+ # Required. User-defined name of this taxonomy. The name can't start or end with
1822
+ # spaces, must contain only Unicode letters, numbers, underscores, dashes, and
1823
+ # spaces, and be at most 200 bytes long when encoded in UTF-8.
1824
+ # Corresponds to the JSON property `displayName`
1825
+ # @return [String]
1826
+ attr_accessor :display_name
1827
+
1828
+ # Output only. Resource name of this taxonomy in URL format. Note: Policy tag
1829
+ # manager generates unique taxonomy IDs.
1830
+ # Corresponds to the JSON property `name`
1831
+ # @return [String]
1832
+ attr_accessor :name
1833
+
1834
+ # Output only. Number of policy tags in this taxonomy.
1835
+ # Corresponds to the JSON property `policyTagCount`
1836
+ # @return [Fixnum]
1837
+ attr_accessor :policy_tag_count
1838
+
1839
+ # Timestamps associated with this resource in a particular system.
1840
+ # Corresponds to the JSON property `taxonomyTimestamps`
1841
+ # @return [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1SystemTimestamps]
1842
+ attr_accessor :taxonomy_timestamps
1843
+
1844
+ def initialize(**args)
1845
+ update!(**args)
1846
+ end
1847
+
1848
+ # Update properties of this object
1849
+ def update!(**args)
1850
+ @activated_policy_types = args[:activated_policy_types] if args.key?(:activated_policy_types)
1851
+ @description = args[:description] if args.key?(:description)
1852
+ @display_name = args[:display_name] if args.key?(:display_name)
1853
+ @name = args[:name] if args.key?(:name)
1854
+ @policy_tag_count = args[:policy_tag_count] if args.key?(:policy_tag_count)
1855
+ @taxonomy_timestamps = args[:taxonomy_timestamps] if args.key?(:taxonomy_timestamps)
1856
+ end
1857
+ end
1858
+
1859
+ # The set of all usage signals that Data Catalog stores. Note: Usually, these
1860
+ # signals are updated daily. In rare cases, an update may fail but will be
1861
+ # performed again on the next day.
1862
+ class GoogleCloudDatacatalogV1UsageSignal
1863
+ include Google::Apis::Core::Hashable
1864
+
1865
+ # The end timestamp of the duration of usage statistics.
1866
+ # Corresponds to the JSON property `updateTime`
1867
+ # @return [String]
1868
+ attr_accessor :update_time
1869
+
1870
+ # Usage statistics over each of the predefined time ranges. Supported time
1871
+ # ranges are ``"24H", "7D", "30D"``.
1872
+ # Corresponds to the JSON property `usageWithinTimeRange`
1873
+ # @return [Hash<String,Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1UsageStats>]
1874
+ attr_accessor :usage_within_time_range
1875
+
1876
+ def initialize(**args)
1877
+ update!(**args)
1878
+ end
1879
+
1880
+ # Update properties of this object
1881
+ def update!(**args)
1882
+ @update_time = args[:update_time] if args.key?(:update_time)
1883
+ @usage_within_time_range = args[:usage_within_time_range] if args.key?(:usage_within_time_range)
1884
+ end
1885
+ end
1886
+
1887
+ # Detailed statistics on the entry's usage. Usage statistics have the following
1888
+ # limitations: - Only BigQuery tables have them. - They only include BigQuery
1889
+ # query jobs. - They might be underestimated because wildcard table references
1890
+ # are not yet counted. For more information, see [Querying multiple tables using
1891
+ # a wildcard table] (https://cloud.google.com/bigquery/docs/querying-wildcard-
1892
+ # tables)
1893
+ class GoogleCloudDatacatalogV1UsageStats
1894
+ include Google::Apis::Core::Hashable
1895
+
1896
+ # The number of cancelled attempts to use the underlying entry.
1897
+ # Corresponds to the JSON property `totalCancellations`
1898
+ # @return [Float]
1899
+ attr_accessor :total_cancellations
1900
+
1901
+ # The number of successful uses of the underlying entry.
1902
+ # Corresponds to the JSON property `totalCompletions`
1903
+ # @return [Float]
1904
+ attr_accessor :total_completions
1905
+
1906
+ # Total time spent only on successful uses, in milliseconds.
1907
+ # Corresponds to the JSON property `totalExecutionTimeForCompletionsMillis`
1908
+ # @return [Float]
1909
+ attr_accessor :total_execution_time_for_completions_millis
1910
+
1911
+ # The number of failed attempts to use the underlying entry.
1912
+ # Corresponds to the JSON property `totalFailures`
1913
+ # @return [Float]
1914
+ attr_accessor :total_failures
1915
+
1916
+ def initialize(**args)
1917
+ update!(**args)
1918
+ end
1919
+
1920
+ # Update properties of this object
1921
+ def update!(**args)
1922
+ @total_cancellations = args[:total_cancellations] if args.key?(:total_cancellations)
1923
+ @total_completions = args[:total_completions] if args.key?(:total_completions)
1924
+ @total_execution_time_for_completions_millis = args[:total_execution_time_for_completions_millis] if args.key?(:total_execution_time_for_completions_millis)
1925
+ @total_failures = args[:total_failures] if args.key?(:total_failures)
1926
+ end
1927
+ end
1928
+
1929
+ # Table view specification.
1930
+ class GoogleCloudDatacatalogV1ViewSpec
1931
+ include Google::Apis::Core::Hashable
1932
+
1933
+ # Output only. The query that defines the table view.
1934
+ # Corresponds to the JSON property `viewQuery`
1935
+ # @return [String]
1936
+ attr_accessor :view_query
1937
+
1938
+ def initialize(**args)
1939
+ update!(**args)
1940
+ end
1941
+
1942
+ # Update properties of this object
1943
+ def update!(**args)
1944
+ @view_query = args[:view_query] if args.key?(:view_query)
1945
+ end
1946
+ end
1947
+
1948
+ # An Identity and Access Management (IAM) policy, which specifies access
1949
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1950
+ # A `binding` binds one or more `members` to a single `role`. Members can be
1951
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
1952
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
1953
+ # role or a user-created custom role. For some types of Google Cloud resources,
1954
+ # a `binding` can also specify a `condition`, which is a logical expression that
1955
+ # allows access to a resource only if the expression evaluates to `true`. A
1956
+ # condition can add constraints based on attributes of the request, the resource,
1957
+ # or both. To learn which resources support conditions in their IAM policies,
1958
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1959
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1960
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1961
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1962
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1963
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1964
+ # title": "expirable access", "description": "Does not grant access after Sep
1965
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1966
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1967
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
1968
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1969
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1970
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
1971
+ # description: Does not grant access after Sep 2020 expression: request.time <
1972
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1973
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
1974
+ # google.com/iam/docs/).
1975
+ class Policy
1976
+ include Google::Apis::Core::Hashable
1977
+
1978
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
1979
+ # condition` that determines how and when the `bindings` are applied. Each of
1980
+ # the `bindings` must contain at least one member.
1981
+ # Corresponds to the JSON property `bindings`
1982
+ # @return [Array<Google::Apis::DatacatalogV1::Binding>]
1983
+ attr_accessor :bindings
1984
+
1985
+ # `etag` is used for optimistic concurrency control as a way to help prevent
1986
+ # simultaneous updates of a policy from overwriting each other. It is strongly
1987
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
1988
+ # to perform policy updates in order to avoid race conditions: An `etag` is
1989
+ # returned in the response to `getIamPolicy`, and systems are expected to put
1990
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
1991
+ # applied to the same version of the policy. **Important:** If you use IAM
1992
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
1993
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
1994
+ # with a version `1` policy, and all of the conditions in the version `3` policy
1995
+ # are lost.
1996
+ # Corresponds to the JSON property `etag`
1997
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1998
+ # @return [String]
1999
+ attr_accessor :etag
2000
+
2001
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
2002
+ # Requests that specify an invalid value are rejected. Any operation that
2003
+ # affects conditional role bindings must specify version `3`. This requirement
2004
+ # applies to the following operations: * Getting a policy that includes a
2005
+ # conditional role binding * Adding a conditional role binding to a policy *
2006
+ # Changing a conditional role binding in a policy * Removing any role binding,
2007
+ # with or without a condition, from a policy that includes conditions **
2008
+ # Important:** If you use IAM Conditions, you must include the `etag` field
2009
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
2010
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
2011
+ # conditions in the version `3` policy are lost. If a policy does not include
2012
+ # any conditions, operations on that policy may specify any valid version or
2013
+ # leave the field unset. To learn which resources support conditions in their
2014
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
2015
+ # conditions/resource-policies).
2016
+ # Corresponds to the JSON property `version`
2017
+ # @return [Fixnum]
2018
+ attr_accessor :version
2019
+
2020
+ def initialize(**args)
2021
+ update!(**args)
2022
+ end
2023
+
2024
+ # Update properties of this object
2025
+ def update!(**args)
2026
+ @bindings = args[:bindings] if args.key?(:bindings)
2027
+ @etag = args[:etag] if args.key?(:etag)
2028
+ @version = args[:version] if args.key?(:version)
2029
+ end
2030
+ end
2031
+
2032
+ # Request message for `SetIamPolicy` method.
2033
+ class SetIamPolicyRequest
2034
+ include Google::Apis::Core::Hashable
2035
+
2036
+ # An Identity and Access Management (IAM) policy, which specifies access
2037
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
2038
+ # A `binding` binds one or more `members` to a single `role`. Members can be
2039
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
2040
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
2041
+ # role or a user-created custom role. For some types of Google Cloud resources,
2042
+ # a `binding` can also specify a `condition`, which is a logical expression that
2043
+ # allows access to a resource only if the expression evaluates to `true`. A
2044
+ # condition can add constraints based on attributes of the request, the resource,
2045
+ # or both. To learn which resources support conditions in their IAM policies,
2046
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
2047
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
2048
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
2049
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
2050
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
2051
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
2052
+ # title": "expirable access", "description": "Does not grant access after Sep
2053
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
2054
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
2055
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
2056
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
2057
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
2058
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
2059
+ # description: Does not grant access after Sep 2020 expression: request.time <
2060
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
2061
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
2062
+ # google.com/iam/docs/).
2063
+ # Corresponds to the JSON property `policy`
2064
+ # @return [Google::Apis::DatacatalogV1::Policy]
2065
+ attr_accessor :policy
2066
+
2067
+ def initialize(**args)
2068
+ update!(**args)
2069
+ end
2070
+
2071
+ # Update properties of this object
2072
+ def update!(**args)
2073
+ @policy = args[:policy] if args.key?(:policy)
2074
+ end
2075
+ end
2076
+
2077
+ # Request message for `TestIamPermissions` method.
2078
+ class TestIamPermissionsRequest
2079
+ include Google::Apis::Core::Hashable
2080
+
2081
+ # The set of permissions to check for the `resource`. Permissions with wildcards
2082
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
2083
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
2084
+ # Corresponds to the JSON property `permissions`
2085
+ # @return [Array<String>]
2086
+ attr_accessor :permissions
2087
+
2088
+ def initialize(**args)
2089
+ update!(**args)
2090
+ end
2091
+
2092
+ # Update properties of this object
2093
+ def update!(**args)
2094
+ @permissions = args[:permissions] if args.key?(:permissions)
2095
+ end
2096
+ end
2097
+
2098
+ # Response message for `TestIamPermissions` method.
2099
+ class TestIamPermissionsResponse
2100
+ include Google::Apis::Core::Hashable
2101
+
2102
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
2103
+ # Corresponds to the JSON property `permissions`
2104
+ # @return [Array<String>]
2105
+ attr_accessor :permissions
2106
+
2107
+ def initialize(**args)
2108
+ update!(**args)
2109
+ end
2110
+
2111
+ # Update properties of this object
2112
+ def update!(**args)
2113
+ @permissions = args[:permissions] if args.key?(:permissions)
2114
+ end
2115
+ end
2116
+ end
2117
+ end
2118
+ end