google-apis-datacatalog_v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 59bbfe7c98f9931b1160532f90edc7e6def02d9d5ac6e907ce287b1e98cb2f34
4
+ data.tar.gz: bdd3c77750ba7a6687e9aed0ff0e4de8b3e1426a23e5e2271b249e0ed2f0bdfb
5
+ SHA512:
6
+ metadata.gz: 1f8e6d49d787a98ac451c7300bb54f5391ac16706d73224f7989193403c265dfd1a3c34a75f9e988b6a9ee35ea127a945d5dc9df875686810a6335a447620628
7
+ data.tar.gz: 3cbcf8c9113d80f32c20209f8312592dcd57d2246a86b2f86659bd33b2cf622cc167b89e60d404147e8844eb57ba07236e0be0ca8f6cd508755ea9c3f94faa85
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-datacatalog_v1beta1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/datacatalog_v1beta1/*.rb
9
+ lib/google/apis/datacatalog_v1beta1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-datacatalog_v1beta1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201210
7
+
@@ -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.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1beta1 of the Google Cloud Data Catalog API
2
+
3
+ This is a simple client library for version V1beta1 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_v1beta1', '~> 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_v1beta1
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_v1beta1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::DatacatalogV1beta1::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::DatacatalogV1beta1::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_v1beta1`, 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_v1beta1"
@@ -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_v1beta1/service.rb'
16
+ require 'google/apis/datacatalog_v1beta1/classes.rb'
17
+ require 'google/apis/datacatalog_v1beta1/representations.rb'
18
+ require 'google/apis/datacatalog_v1beta1/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 DatacatalogV1beta1
29
+ # Version of the Google Cloud Data Catalog API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V1beta1'
32
+
33
+ # View and manage your data across Google Cloud Platform services
34
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,1764 @@
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 DatacatalogV1beta1
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::DatacatalogV1beta1::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::DatacatalogV1beta1::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
+ # Spec for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`.
212
+ # Context: https://cloud.google.com/bigquery/docs/partitioned-tables#
213
+ # partitioning_versus_sharding
214
+ class GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec
215
+ include Google::Apis::Core::Hashable
216
+
217
+ # Output only. The Data Catalog resource name of the dataset entry the current
218
+ # table belongs to, for example, `projects/`project_id`/locations/`location`/
219
+ # entrygroups/`entry_group_id`/entries/`entry_id``.
220
+ # Corresponds to the JSON property `dataset`
221
+ # @return [String]
222
+ attr_accessor :dataset
223
+
224
+ # Output only. Total number of shards.
225
+ # Corresponds to the JSON property `shardCount`
226
+ # @return [Fixnum]
227
+ attr_accessor :shard_count
228
+
229
+ # Output only. The table name prefix of the shards. The name of any given shard
230
+ # is `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the `
231
+ # table_prefix` is `MyTable`.
232
+ # Corresponds to the JSON property `tablePrefix`
233
+ # @return [String]
234
+ attr_accessor :table_prefix
235
+
236
+ def initialize(**args)
237
+ update!(**args)
238
+ end
239
+
240
+ # Update properties of this object
241
+ def update!(**args)
242
+ @dataset = args[:dataset] if args.key?(:dataset)
243
+ @shard_count = args[:shard_count] if args.key?(:shard_count)
244
+ @table_prefix = args[:table_prefix] if args.key?(:table_prefix)
245
+ end
246
+ end
247
+
248
+ # Describes a BigQuery table.
249
+ class GoogleCloudDatacatalogV1beta1BigQueryTableSpec
250
+ include Google::Apis::Core::Hashable
251
+
252
+ # Output only. The table source type.
253
+ # Corresponds to the JSON property `tableSourceType`
254
+ # @return [String]
255
+ attr_accessor :table_source_type
256
+
257
+ # Normal BigQuery table spec.
258
+ # Corresponds to the JSON property `tableSpec`
259
+ # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TableSpec]
260
+ attr_accessor :table_spec
261
+
262
+ # Table view specification.
263
+ # Corresponds to the JSON property `viewSpec`
264
+ # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ViewSpec]
265
+ attr_accessor :view_spec
266
+
267
+ def initialize(**args)
268
+ update!(**args)
269
+ end
270
+
271
+ # Update properties of this object
272
+ def update!(**args)
273
+ @table_source_type = args[:table_source_type] if args.key?(:table_source_type)
274
+ @table_spec = args[:table_spec] if args.key?(:table_spec)
275
+ @view_spec = args[:view_spec] if args.key?(:view_spec)
276
+ end
277
+ end
278
+
279
+ # Representation of a column within a schema. Columns could be nested inside
280
+ # other columns.
281
+ class GoogleCloudDatacatalogV1beta1ColumnSchema
282
+ include Google::Apis::Core::Hashable
283
+
284
+ # Required. Name of the column.
285
+ # Corresponds to the JSON property `column`
286
+ # @return [String]
287
+ attr_accessor :column
288
+
289
+ # Optional. Description of the column. Default value is an empty string.
290
+ # Corresponds to the JSON property `description`
291
+ # @return [String]
292
+ attr_accessor :description
293
+
294
+ # Optional. A column's mode indicates whether the values in this column are
295
+ # required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are
296
+ # supported. Default mode is `NULLABLE`.
297
+ # Corresponds to the JSON property `mode`
298
+ # @return [String]
299
+ attr_accessor :mode
300
+
301
+ # Optional. Schema of sub-columns. A column can have zero or more sub-columns.
302
+ # Corresponds to the JSON property `subcolumns`
303
+ # @return [Array<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ColumnSchema>]
304
+ attr_accessor :subcolumns
305
+
306
+ # Required. Type of the column.
307
+ # Corresponds to the JSON property `type`
308
+ # @return [String]
309
+ attr_accessor :type
310
+
311
+ def initialize(**args)
312
+ update!(**args)
313
+ end
314
+
315
+ # Update properties of this object
316
+ def update!(**args)
317
+ @column = args[:column] if args.key?(:column)
318
+ @description = args[:description] if args.key?(:description)
319
+ @mode = args[:mode] if args.key?(:mode)
320
+ @subcolumns = args[:subcolumns] if args.key?(:subcolumns)
321
+ @type = args[:type] if args.key?(:type)
322
+ end
323
+ end
324
+
325
+ # Entry Metadata. A Data Catalog Entry resource represents another resource in
326
+ # Google Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic), or
327
+ # outside of Google Cloud Platform. Clients can use the `linked_resource` field
328
+ # in the Entry resource to refer to the original resource ID of the source
329
+ # system. An Entry resource contains resource details, such as its schema. An
330
+ # Entry can also be used to attach flexible metadata, such as a Tag.
331
+ class GoogleCloudDatacatalogV1beta1Entry
332
+ include Google::Apis::Core::Hashable
333
+
334
+ # Spec for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`.
335
+ # Context: https://cloud.google.com/bigquery/docs/partitioned-tables#
336
+ # partitioning_versus_sharding
337
+ # Corresponds to the JSON property `bigqueryDateShardedSpec`
338
+ # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec]
339
+ attr_accessor :bigquery_date_sharded_spec
340
+
341
+ # Describes a BigQuery table.
342
+ # Corresponds to the JSON property `bigqueryTableSpec`
343
+ # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1BigQueryTableSpec]
344
+ attr_accessor :bigquery_table_spec
345
+
346
+ # Entry description, which can consist of several sentences or paragraphs that
347
+ # describe entry contents. Default value is an empty string.
348
+ # Corresponds to the JSON property `description`
349
+ # @return [String]
350
+ attr_accessor :description
351
+
352
+ # Display information such as title and description. A short name to identify
353
+ # the entry, for example, "Analytics Data - Jan 2011". Default value is an empty
354
+ # string.
355
+ # Corresponds to the JSON property `displayName`
356
+ # @return [String]
357
+ attr_accessor :display_name
358
+
359
+ # Describes a Cloud Storage fileset entry.
360
+ # Corresponds to the JSON property `gcsFilesetSpec`
361
+ # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1GcsFilesetSpec]
362
+ attr_accessor :gcs_fileset_spec
363
+
364
+ # Output only. This field indicates the entry's source system that Data Catalog
365
+ # integrates with, such as BigQuery or Pub/Sub.
366
+ # Corresponds to the JSON property `integratedSystem`
367
+ # @return [String]
368
+ attr_accessor :integrated_system
369
+
370
+ # The resource this metadata entry refers to. For Google Cloud Platform
371
+ # resources, `linked_resource` is the [full name of the resource](https://cloud.
372
+ # google.com/apis/design/resource_names#full_resource_name). For example, the `
373
+ # linked_resource` for a table resource from BigQuery is: * //bigquery.
374
+ # googleapis.com/projects/projectId/datasets/datasetId/tables/tableId Output
375
+ # only when Entry is of type in the EntryType enum. For entries with
376
+ # user_specified_type, this field is optional and defaults to an empty string.
377
+ # Corresponds to the JSON property `linkedResource`
378
+ # @return [String]
379
+ attr_accessor :linked_resource
380
+
381
+ # The Data Catalog resource name of the entry in URL format. Example: * projects/
382
+ # `project_id`/locations/`location`/entryGroups/`entry_group_id`/entries/`
383
+ # entry_id` Note that this Entry and its child resources may not actually be
384
+ # stored in the location in this name.
385
+ # Corresponds to the JSON property `name`
386
+ # @return [String]
387
+ attr_accessor :name
388
+
389
+ # Represents a schema (e.g. BigQuery, GoogleSQL, Avro schema).
390
+ # Corresponds to the JSON property `schema`
391
+ # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Schema]
392
+ attr_accessor :schema
393
+
394
+ # Timestamps about this resource according to a particular system.
395
+ # Corresponds to the JSON property `sourceSystemTimestamps`
396
+ # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SystemTimestamps]
397
+ attr_accessor :source_system_timestamps
398
+
399
+ # The type of the entry. Only used for Entries with types in the EntryType enum.
400
+ # Corresponds to the JSON property `type`
401
+ # @return [String]
402
+ attr_accessor :type
403
+
404
+ # This field indicates the entry's source system that Data Catalog does not
405
+ # integrate with. `user_specified_system` strings must begin with a letter or
406
+ # underscore and can only contain letters, numbers, and underscores; are case
407
+ # insensitive; must be at least 1 character and at most 64 characters long.
408
+ # Corresponds to the JSON property `userSpecifiedSystem`
409
+ # @return [String]
410
+ attr_accessor :user_specified_system
411
+
412
+ # Entry type if it does not fit any of the input-allowed values listed in `
413
+ # EntryType` enum above. When creating an entry, users should check the enum
414
+ # values first, if nothing matches the entry to be created, then provide a
415
+ # custom value, for example "my_special_type". `user_specified_type` strings
416
+ # must begin with a letter or underscore and can only contain letters, numbers,
417
+ # and underscores; are case insensitive; must be at least 1 character and at
418
+ # most 64 characters long. Currently, only FILESET enum value is allowed. All
419
+ # other entries created through Data Catalog must use `user_specified_type`.
420
+ # Corresponds to the JSON property `userSpecifiedType`
421
+ # @return [String]
422
+ attr_accessor :user_specified_type
423
+
424
+ def initialize(**args)
425
+ update!(**args)
426
+ end
427
+
428
+ # Update properties of this object
429
+ def update!(**args)
430
+ @bigquery_date_sharded_spec = args[:bigquery_date_sharded_spec] if args.key?(:bigquery_date_sharded_spec)
431
+ @bigquery_table_spec = args[:bigquery_table_spec] if args.key?(:bigquery_table_spec)
432
+ @description = args[:description] if args.key?(:description)
433
+ @display_name = args[:display_name] if args.key?(:display_name)
434
+ @gcs_fileset_spec = args[:gcs_fileset_spec] if args.key?(:gcs_fileset_spec)
435
+ @integrated_system = args[:integrated_system] if args.key?(:integrated_system)
436
+ @linked_resource = args[:linked_resource] if args.key?(:linked_resource)
437
+ @name = args[:name] if args.key?(:name)
438
+ @schema = args[:schema] if args.key?(:schema)
439
+ @source_system_timestamps = args[:source_system_timestamps] if args.key?(:source_system_timestamps)
440
+ @type = args[:type] if args.key?(:type)
441
+ @user_specified_system = args[:user_specified_system] if args.key?(:user_specified_system)
442
+ @user_specified_type = args[:user_specified_type] if args.key?(:user_specified_type)
443
+ end
444
+ end
445
+
446
+ # EntryGroup Metadata. An EntryGroup resource represents a logical grouping of
447
+ # zero or more Data Catalog Entry resources.
448
+ class GoogleCloudDatacatalogV1beta1EntryGroup
449
+ include Google::Apis::Core::Hashable
450
+
451
+ # Timestamps about this resource according to a particular system.
452
+ # Corresponds to the JSON property `dataCatalogTimestamps`
453
+ # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SystemTimestamps]
454
+ attr_accessor :data_catalog_timestamps
455
+
456
+ # Entry group description, which can consist of several sentences or paragraphs
457
+ # that describe entry group contents. Default value is an empty string.
458
+ # Corresponds to the JSON property `description`
459
+ # @return [String]
460
+ attr_accessor :description
461
+
462
+ # A short name to identify the entry group, for example, "analytics data - jan
463
+ # 2011". Default value is an empty string.
464
+ # Corresponds to the JSON property `displayName`
465
+ # @return [String]
466
+ attr_accessor :display_name
467
+
468
+ # The resource name of the entry group in URL format. Example: * projects/`
469
+ # project_id`/locations/`location`/entryGroups/`entry_group_id` Note that this
470
+ # EntryGroup and its child resources may not actually be stored in the location
471
+ # in this name.
472
+ # Corresponds to the JSON property `name`
473
+ # @return [String]
474
+ attr_accessor :name
475
+
476
+ def initialize(**args)
477
+ update!(**args)
478
+ end
479
+
480
+ # Update properties of this object
481
+ def update!(**args)
482
+ @data_catalog_timestamps = args[:data_catalog_timestamps] if args.key?(:data_catalog_timestamps)
483
+ @description = args[:description] if args.key?(:description)
484
+ @display_name = args[:display_name] if args.key?(:display_name)
485
+ @name = args[:name] if args.key?(:name)
486
+ end
487
+ end
488
+
489
+ # Response message for ExportTaxonomies.
490
+ class GoogleCloudDatacatalogV1beta1ExportTaxonomiesResponse
491
+ include Google::Apis::Core::Hashable
492
+
493
+ # List of taxonomies and policy tags in a tree structure.
494
+ # Corresponds to the JSON property `taxonomies`
495
+ # @return [Array<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SerializedTaxonomy>]
496
+ attr_accessor :taxonomies
497
+
498
+ def initialize(**args)
499
+ update!(**args)
500
+ end
501
+
502
+ # Update properties of this object
503
+ def update!(**args)
504
+ @taxonomies = args[:taxonomies] if args.key?(:taxonomies)
505
+ end
506
+ end
507
+
508
+ #
509
+ class GoogleCloudDatacatalogV1beta1FieldType
510
+ include Google::Apis::Core::Hashable
511
+
512
+ # Represents an enum type.
513
+ # Corresponds to the JSON property `enumType`
514
+ # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldTypeEnumType]
515
+ attr_accessor :enum_type
516
+
517
+ # Represents primitive types - string, bool etc.
518
+ # Corresponds to the JSON property `primitiveType`
519
+ # @return [String]
520
+ attr_accessor :primitive_type
521
+
522
+ def initialize(**args)
523
+ update!(**args)
524
+ end
525
+
526
+ # Update properties of this object
527
+ def update!(**args)
528
+ @enum_type = args[:enum_type] if args.key?(:enum_type)
529
+ @primitive_type = args[:primitive_type] if args.key?(:primitive_type)
530
+ end
531
+ end
532
+
533
+ #
534
+ class GoogleCloudDatacatalogV1beta1FieldTypeEnumType
535
+ include Google::Apis::Core::Hashable
536
+
537
+ #
538
+ # Corresponds to the JSON property `allowedValues`
539
+ # @return [Array<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue>]
540
+ attr_accessor :allowed_values
541
+
542
+ def initialize(**args)
543
+ update!(**args)
544
+ end
545
+
546
+ # Update properties of this object
547
+ def update!(**args)
548
+ @allowed_values = args[:allowed_values] if args.key?(:allowed_values)
549
+ end
550
+ end
551
+
552
+ #
553
+ class GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue
554
+ include Google::Apis::Core::Hashable
555
+
556
+ # Required. The display name of the enum value. Must not be an empty string.
557
+ # Corresponds to the JSON property `displayName`
558
+ # @return [String]
559
+ attr_accessor :display_name
560
+
561
+ def initialize(**args)
562
+ update!(**args)
563
+ end
564
+
565
+ # Update properties of this object
566
+ def update!(**args)
567
+ @display_name = args[:display_name] if args.key?(:display_name)
568
+ end
569
+ end
570
+
571
+ # Specifications of a single file in Cloud Storage.
572
+ class GoogleCloudDatacatalogV1beta1GcsFileSpec
573
+ include Google::Apis::Core::Hashable
574
+
575
+ # Required. The full file path. Example: `gs://bucket_name/a/b.txt`.
576
+ # Corresponds to the JSON property `filePath`
577
+ # @return [String]
578
+ attr_accessor :file_path
579
+
580
+ # Timestamps about this resource according to a particular system.
581
+ # Corresponds to the JSON property `gcsTimestamps`
582
+ # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SystemTimestamps]
583
+ attr_accessor :gcs_timestamps
584
+
585
+ # Output only. The size of the file, in bytes.
586
+ # Corresponds to the JSON property `sizeBytes`
587
+ # @return [Fixnum]
588
+ attr_accessor :size_bytes
589
+
590
+ def initialize(**args)
591
+ update!(**args)
592
+ end
593
+
594
+ # Update properties of this object
595
+ def update!(**args)
596
+ @file_path = args[:file_path] if args.key?(:file_path)
597
+ @gcs_timestamps = args[:gcs_timestamps] if args.key?(:gcs_timestamps)
598
+ @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
599
+ end
600
+ end
601
+
602
+ # Describes a Cloud Storage fileset entry.
603
+ class GoogleCloudDatacatalogV1beta1GcsFilesetSpec
604
+ include Google::Apis::Core::Hashable
605
+
606
+ # Required. Patterns to identify a set of files in Google Cloud Storage. See [
607
+ # Cloud Storage documentation](https://cloud.google.com/storage/docs/gsutil/
608
+ # addlhelp/WildcardNames) for more information. Note that bucket wildcards are
609
+ # currently not supported. Examples of valid file_patterns: * `gs://bucket_name/
610
+ # dir/*`: matches all files within `bucket_name/dir` directory. * `gs://
611
+ # bucket_name/dir/**`: matches all files in `bucket_name/dir` spanning all
612
+ # subdirectories. * `gs://bucket_name/file*`: matches files prefixed by `file`
613
+ # in `bucket_name` * `gs://bucket_name/??.txt`: matches files with two
614
+ # characters followed by `.txt` in `bucket_name` * `gs://bucket_name/[aeiou].txt`
615
+ # : matches files that contain a single vowel character followed by `.txt` in `
616
+ # bucket_name` * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `
617
+ # b`, ... or `m` followed by `.txt` in `bucket_name` * `gs://bucket_name/a/*/b`:
618
+ # matches all files in `bucket_name` that match `a/*/b` pattern, such as `a/c/b`,
619
+ # `a/d/b` * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
620
+ # You can combine wildcards to provide more powerful matches, for example: * `gs:
621
+ # //bucket_name/[a-m]??.j*g`
622
+ # Corresponds to the JSON property `filePatterns`
623
+ # @return [Array<String>]
624
+ attr_accessor :file_patterns
625
+
626
+ # Output only. Sample files contained in this fileset, not all files contained
627
+ # in this fileset are represented here.
628
+ # Corresponds to the JSON property `sampleGcsFileSpecs`
629
+ # @return [Array<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1GcsFileSpec>]
630
+ attr_accessor :sample_gcs_file_specs
631
+
632
+ def initialize(**args)
633
+ update!(**args)
634
+ end
635
+
636
+ # Update properties of this object
637
+ def update!(**args)
638
+ @file_patterns = args[:file_patterns] if args.key?(:file_patterns)
639
+ @sample_gcs_file_specs = args[:sample_gcs_file_specs] if args.key?(:sample_gcs_file_specs)
640
+ end
641
+ end
642
+
643
+ # Request message for ImportTaxonomies.
644
+ class GoogleCloudDatacatalogV1beta1ImportTaxonomiesRequest
645
+ include Google::Apis::Core::Hashable
646
+
647
+ # Inline source used for taxonomies import.
648
+ # Corresponds to the JSON property `inlineSource`
649
+ # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1InlineSource]
650
+ attr_accessor :inline_source
651
+
652
+ def initialize(**args)
653
+ update!(**args)
654
+ end
655
+
656
+ # Update properties of this object
657
+ def update!(**args)
658
+ @inline_source = args[:inline_source] if args.key?(:inline_source)
659
+ end
660
+ end
661
+
662
+ # Response message for ImportTaxonomies.
663
+ class GoogleCloudDatacatalogV1beta1ImportTaxonomiesResponse
664
+ include Google::Apis::Core::Hashable
665
+
666
+ # Taxonomies that were imported.
667
+ # Corresponds to the JSON property `taxonomies`
668
+ # @return [Array<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy>]
669
+ attr_accessor :taxonomies
670
+
671
+ def initialize(**args)
672
+ update!(**args)
673
+ end
674
+
675
+ # Update properties of this object
676
+ def update!(**args)
677
+ @taxonomies = args[:taxonomies] if args.key?(:taxonomies)
678
+ end
679
+ end
680
+
681
+ # Inline source used for taxonomies import.
682
+ class GoogleCloudDatacatalogV1beta1InlineSource
683
+ include Google::Apis::Core::Hashable
684
+
685
+ # Required. Taxonomies to be imported.
686
+ # Corresponds to the JSON property `taxonomies`
687
+ # @return [Array<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SerializedTaxonomy>]
688
+ attr_accessor :taxonomies
689
+
690
+ def initialize(**args)
691
+ update!(**args)
692
+ end
693
+
694
+ # Update properties of this object
695
+ def update!(**args)
696
+ @taxonomies = args[:taxonomies] if args.key?(:taxonomies)
697
+ end
698
+ end
699
+
700
+ # Response message for ListEntries.
701
+ class GoogleCloudDatacatalogV1beta1ListEntriesResponse
702
+ include Google::Apis::Core::Hashable
703
+
704
+ # Entry details.
705
+ # Corresponds to the JSON property `entries`
706
+ # @return [Array<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Entry>]
707
+ attr_accessor :entries
708
+
709
+ # Token to retrieve the next page of results. It is set to empty if no items
710
+ # remain in results.
711
+ # Corresponds to the JSON property `nextPageToken`
712
+ # @return [String]
713
+ attr_accessor :next_page_token
714
+
715
+ def initialize(**args)
716
+ update!(**args)
717
+ end
718
+
719
+ # Update properties of this object
720
+ def update!(**args)
721
+ @entries = args[:entries] if args.key?(:entries)
722
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
723
+ end
724
+ end
725
+
726
+ # Response message for ListEntryGroups.
727
+ class GoogleCloudDatacatalogV1beta1ListEntryGroupsResponse
728
+ include Google::Apis::Core::Hashable
729
+
730
+ # EntryGroup details.
731
+ # Corresponds to the JSON property `entryGroups`
732
+ # @return [Array<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1EntryGroup>]
733
+ attr_accessor :entry_groups
734
+
735
+ # Token to retrieve the next page of results. It is set to empty if no items
736
+ # remain in results.
737
+ # Corresponds to the JSON property `nextPageToken`
738
+ # @return [String]
739
+ attr_accessor :next_page_token
740
+
741
+ def initialize(**args)
742
+ update!(**args)
743
+ end
744
+
745
+ # Update properties of this object
746
+ def update!(**args)
747
+ @entry_groups = args[:entry_groups] if args.key?(:entry_groups)
748
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
749
+ end
750
+ end
751
+
752
+ # Response message for ListPolicyTags.
753
+ class GoogleCloudDatacatalogV1beta1ListPolicyTagsResponse
754
+ include Google::Apis::Core::Hashable
755
+
756
+ # Token used to retrieve the next page of results, or empty if there are no more
757
+ # results in the list.
758
+ # Corresponds to the JSON property `nextPageToken`
759
+ # @return [String]
760
+ attr_accessor :next_page_token
761
+
762
+ # The policy tags that are in the requested taxonomy.
763
+ # Corresponds to the JSON property `policyTags`
764
+ # @return [Array<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1PolicyTag>]
765
+ attr_accessor :policy_tags
766
+
767
+ def initialize(**args)
768
+ update!(**args)
769
+ end
770
+
771
+ # Update properties of this object
772
+ def update!(**args)
773
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
774
+ @policy_tags = args[:policy_tags] if args.key?(:policy_tags)
775
+ end
776
+ end
777
+
778
+ # Response message for ListTags.
779
+ class GoogleCloudDatacatalogV1beta1ListTagsResponse
780
+ include Google::Apis::Core::Hashable
781
+
782
+ # Token to retrieve the next page of results. It is set to empty if no items
783
+ # remain in results.
784
+ # Corresponds to the JSON property `nextPageToken`
785
+ # @return [String]
786
+ attr_accessor :next_page_token
787
+
788
+ # Tag details.
789
+ # Corresponds to the JSON property `tags`
790
+ # @return [Array<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Tag>]
791
+ attr_accessor :tags
792
+
793
+ def initialize(**args)
794
+ update!(**args)
795
+ end
796
+
797
+ # Update properties of this object
798
+ def update!(**args)
799
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
800
+ @tags = args[:tags] if args.key?(:tags)
801
+ end
802
+ end
803
+
804
+ # Response message for ListTaxonomies.
805
+ class GoogleCloudDatacatalogV1beta1ListTaxonomiesResponse
806
+ include Google::Apis::Core::Hashable
807
+
808
+ # Token used to retrieve the next page of results, or empty if there are no more
809
+ # results in the list.
810
+ # Corresponds to the JSON property `nextPageToken`
811
+ # @return [String]
812
+ attr_accessor :next_page_token
813
+
814
+ # Taxonomies that the project contains.
815
+ # Corresponds to the JSON property `taxonomies`
816
+ # @return [Array<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1Taxonomy>]
817
+ attr_accessor :taxonomies
818
+
819
+ def initialize(**args)
820
+ update!(**args)
821
+ end
822
+
823
+ # Update properties of this object
824
+ def update!(**args)
825
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
826
+ @taxonomies = args[:taxonomies] if args.key?(:taxonomies)
827
+ end
828
+ end
829
+
830
+ # Denotes one policy tag in a taxonomy (e.g. ssn). Policy Tags can be defined in
831
+ # a hierarchy. For example, consider the following hierarchy: Geolocation -> (
832
+ # LatLong, City, ZipCode). PolicyTag "Geolocation" contains three child policy
833
+ # tags: "LatLong", "City", and "ZipCode".
834
+ class GoogleCloudDatacatalogV1beta1PolicyTag
835
+ include Google::Apis::Core::Hashable
836
+
837
+ # Output only. Resource names of child policy tags of this policy tag.
838
+ # Corresponds to the JSON property `childPolicyTags`
839
+ # @return [Array<String>]
840
+ attr_accessor :child_policy_tags
841
+
842
+ # Description of this policy tag. It must: contain only unicode characters, tabs,
843
+ # newlines, carriage returns and page breaks; and be at most 2000 bytes long
844
+ # when encoded in UTF-8. If not set, defaults to an empty description. If not
845
+ # set, defaults to an empty description.
846
+ # Corresponds to the JSON property `description`
847
+ # @return [String]
848
+ attr_accessor :description
849
+
850
+ # Required. User defined name of this policy tag. It must: be unique within the
851
+ # parent taxonomy; contain only unicode letters, numbers, underscores, dashes
852
+ # and spaces; not start or end with spaces; and be at most 200 bytes long when
853
+ # encoded in UTF-8.
854
+ # Corresponds to the JSON property `displayName`
855
+ # @return [String]
856
+ attr_accessor :display_name
857
+
858
+ # Output only. Resource name of this policy tag, whose format is: "projects/`
859
+ # project_number`/locations/`location_id`/taxonomies/`taxonomy_id`/policyTags/`
860
+ # id`".
861
+ # Corresponds to the JSON property `name`
862
+ # @return [String]
863
+ attr_accessor :name
864
+
865
+ # Resource name of this policy tag's parent policy tag (e.g. for the "LatLong"
866
+ # policy tag in the example above, this field contains the resource name of the "
867
+ # Geolocation" policy tag). If empty, it means this policy tag is a top level
868
+ # policy tag (e.g. this field is empty for the "Geolocation" policy tag in the
869
+ # example above). If not set, defaults to an empty string.
870
+ # Corresponds to the JSON property `parentPolicyTag`
871
+ # @return [String]
872
+ attr_accessor :parent_policy_tag
873
+
874
+ def initialize(**args)
875
+ update!(**args)
876
+ end
877
+
878
+ # Update properties of this object
879
+ def update!(**args)
880
+ @child_policy_tags = args[:child_policy_tags] if args.key?(:child_policy_tags)
881
+ @description = args[:description] if args.key?(:description)
882
+ @display_name = args[:display_name] if args.key?(:display_name)
883
+ @name = args[:name] if args.key?(:name)
884
+ @parent_policy_tag = args[:parent_policy_tag] if args.key?(:parent_policy_tag)
885
+ end
886
+ end
887
+
888
+ # Request message for RenameTagTemplateFieldEnumValue.
889
+ class GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldEnumValueRequest
890
+ include Google::Apis::Core::Hashable
891
+
892
+ # Required. The new display name of the enum value. For example, `
893
+ # my_new_enum_value`.
894
+ # Corresponds to the JSON property `newEnumValueDisplayName`
895
+ # @return [String]
896
+ attr_accessor :new_enum_value_display_name
897
+
898
+ def initialize(**args)
899
+ update!(**args)
900
+ end
901
+
902
+ # Update properties of this object
903
+ def update!(**args)
904
+ @new_enum_value_display_name = args[:new_enum_value_display_name] if args.key?(:new_enum_value_display_name)
905
+ end
906
+ end
907
+
908
+ # Request message for RenameTagTemplateField.
909
+ class GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest
910
+ include Google::Apis::Core::Hashable
911
+
912
+ # Required. The new ID of this tag template field. For example, `my_new_field`.
913
+ # Corresponds to the JSON property `newTagTemplateFieldId`
914
+ # @return [String]
915
+ attr_accessor :new_tag_template_field_id
916
+
917
+ def initialize(**args)
918
+ update!(**args)
919
+ end
920
+
921
+ # Update properties of this object
922
+ def update!(**args)
923
+ @new_tag_template_field_id = args[:new_tag_template_field_id] if args.key?(:new_tag_template_field_id)
924
+ end
925
+ end
926
+
927
+ # Represents a schema (e.g. BigQuery, GoogleSQL, Avro schema).
928
+ class GoogleCloudDatacatalogV1beta1Schema
929
+ include Google::Apis::Core::Hashable
930
+
931
+ # Required. Schema of columns. A maximum of 10,000 columns and sub-columns can
932
+ # be specified.
933
+ # Corresponds to the JSON property `columns`
934
+ # @return [Array<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1ColumnSchema>]
935
+ attr_accessor :columns
936
+
937
+ def initialize(**args)
938
+ update!(**args)
939
+ end
940
+
941
+ # Update properties of this object
942
+ def update!(**args)
943
+ @columns = args[:columns] if args.key?(:columns)
944
+ end
945
+ end
946
+
947
+ # Request message for SearchCatalog.
948
+ class GoogleCloudDatacatalogV1beta1SearchCatalogRequest
949
+ include Google::Apis::Core::Hashable
950
+
951
+ # Specifies the ordering of results, currently supported case-sensitive choices
952
+ # are: * `relevance`, only supports descending * `last_modified_timestamp [asc|
953
+ # desc]`, defaults to descending if not specified If not specified, defaults to `
954
+ # relevance` descending.
955
+ # Corresponds to the JSON property `orderBy`
956
+ # @return [String]
957
+ attr_accessor :order_by
958
+
959
+ # Number of results in the search page. If <=0 then defaults to 10. Max limit
960
+ # for page_size is 1000. Throws an invalid argument for page_size > 1000.
961
+ # Corresponds to the JSON property `pageSize`
962
+ # @return [Fixnum]
963
+ attr_accessor :page_size
964
+
965
+ # Optional. Pagination token returned in an earlier SearchCatalogResponse.
966
+ # next_page_token, which indicates that this is a continuation of a prior
967
+ # SearchCatalogRequest call, and that the system should return the next page of
968
+ # data. If empty, the first page is returned.
969
+ # Corresponds to the JSON property `pageToken`
970
+ # @return [String]
971
+ attr_accessor :page_token
972
+
973
+ # Optional. The query string in search query syntax. An empty query string will
974
+ # result in all data assets (in the specified scope) that the user has access to.
975
+ # Query strings can be simple as "x" or more qualified as: * name:x * column:x *
976
+ # description:y Note: Query tokens need to have a minimum of 3 characters for
977
+ # substring matching to work correctly. See [Data Catalog Search Syntax](https://
978
+ # cloud.google.com/data-catalog/docs/how-to/search-reference) for more
979
+ # information.
980
+ # Corresponds to the JSON property `query`
981
+ # @return [String]
982
+ attr_accessor :query
983
+
984
+ # The criteria that select the subspace used for query matching.
985
+ # Corresponds to the JSON property `scope`
986
+ # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope]
987
+ attr_accessor :scope
988
+
989
+ def initialize(**args)
990
+ update!(**args)
991
+ end
992
+
993
+ # Update properties of this object
994
+ def update!(**args)
995
+ @order_by = args[:order_by] if args.key?(:order_by)
996
+ @page_size = args[:page_size] if args.key?(:page_size)
997
+ @page_token = args[:page_token] if args.key?(:page_token)
998
+ @query = args[:query] if args.key?(:query)
999
+ @scope = args[:scope] if args.key?(:scope)
1000
+ end
1001
+ end
1002
+
1003
+ # The criteria that select the subspace used for query matching.
1004
+ class GoogleCloudDatacatalogV1beta1SearchCatalogRequestScope
1005
+ include Google::Apis::Core::Hashable
1006
+
1007
+ # If `true`, include Google Cloud Platform (GCP) public datasets in the search
1008
+ # results. Info on GCP public datasets is available at https://cloud.google.com/
1009
+ # public-datasets/. By default, GCP public datasets are excluded.
1010
+ # Corresponds to the JSON property `includeGcpPublicDatasets`
1011
+ # @return [Boolean]
1012
+ attr_accessor :include_gcp_public_datasets
1013
+ alias_method :include_gcp_public_datasets?, :include_gcp_public_datasets
1014
+
1015
+ # The list of organization IDs to search within. To find your organization ID,
1016
+ # follow instructions in https://cloud.google.com/resource-manager/docs/creating-
1017
+ # managing-organization.
1018
+ # Corresponds to the JSON property `includeOrgIds`
1019
+ # @return [Array<String>]
1020
+ attr_accessor :include_org_ids
1021
+
1022
+ # The list of project IDs to search within. To learn more about the distinction
1023
+ # between project names/IDs/numbers, go to https://cloud.google.com/docs/
1024
+ # overview/#projects.
1025
+ # Corresponds to the JSON property `includeProjectIds`
1026
+ # @return [Array<String>]
1027
+ attr_accessor :include_project_ids
1028
+
1029
+ # Optional. The list of locations to search within. 1. If empty, search will be
1030
+ # performed in all locations; 2. If any of the locations are NOT in the valid
1031
+ # locations list, error will be returned; 3. Otherwise, search only the given
1032
+ # locations for matching results. Typical usage is to leave this field empty.
1033
+ # When a location is unreachable as returned in the `SearchCatalogResponse.
1034
+ # unreachable` field, users can repeat the search request with this parameter
1035
+ # set to get additional information on the error. Valid locations: * asia-east1 *
1036
+ # asia-east2 * asia-northeast1 * asia-northeast2 * asia-northeast3 * asia-
1037
+ # south1 * asia-southeast1 * australia-southeast1 * eu * europe-north1 * europe-
1038
+ # west1 * europe-west2 * europe-west3 * europe-west4 * europe-west6 * global *
1039
+ # northamerica-northeast1 * southamerica-east1 * us * us-central1 * us-east1 *
1040
+ # us-east4 * us-west1 * us-west2
1041
+ # Corresponds to the JSON property `restrictedLocations`
1042
+ # @return [Array<String>]
1043
+ attr_accessor :restricted_locations
1044
+
1045
+ def initialize(**args)
1046
+ update!(**args)
1047
+ end
1048
+
1049
+ # Update properties of this object
1050
+ def update!(**args)
1051
+ @include_gcp_public_datasets = args[:include_gcp_public_datasets] if args.key?(:include_gcp_public_datasets)
1052
+ @include_org_ids = args[:include_org_ids] if args.key?(:include_org_ids)
1053
+ @include_project_ids = args[:include_project_ids] if args.key?(:include_project_ids)
1054
+ @restricted_locations = args[:restricted_locations] if args.key?(:restricted_locations)
1055
+ end
1056
+ end
1057
+
1058
+ # Response message for SearchCatalog.
1059
+ class GoogleCloudDatacatalogV1beta1SearchCatalogResponse
1060
+ include Google::Apis::Core::Hashable
1061
+
1062
+ # The token that can be used to retrieve the next page of results.
1063
+ # Corresponds to the JSON property `nextPageToken`
1064
+ # @return [String]
1065
+ attr_accessor :next_page_token
1066
+
1067
+ # Search results.
1068
+ # Corresponds to the JSON property `results`
1069
+ # @return [Array<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SearchCatalogResult>]
1070
+ attr_accessor :results
1071
+
1072
+ # Unreachable locations. Search result does not include data from those
1073
+ # locations. Users can get additional information on the error by repeating the
1074
+ # search request with a more restrictive parameter -- setting the value for `
1075
+ # SearchDataCatalogRequest.scope.restricted_locations`.
1076
+ # Corresponds to the JSON property `unreachable`
1077
+ # @return [Array<String>]
1078
+ attr_accessor :unreachable
1079
+
1080
+ def initialize(**args)
1081
+ update!(**args)
1082
+ end
1083
+
1084
+ # Update properties of this object
1085
+ def update!(**args)
1086
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1087
+ @results = args[:results] if args.key?(:results)
1088
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1089
+ end
1090
+ end
1091
+
1092
+ # A result that appears in the response of a search request. Each result
1093
+ # captures details of one entry that matches the search.
1094
+ class GoogleCloudDatacatalogV1beta1SearchCatalogResult
1095
+ include Google::Apis::Core::Hashable
1096
+
1097
+ # The full name of the cloud resource the entry belongs to. See: https://cloud.
1098
+ # google.com/apis/design/resource_names#full_resource_name. Example: * `//
1099
+ # bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId`
1100
+ # Corresponds to the JSON property `linkedResource`
1101
+ # @return [String]
1102
+ attr_accessor :linked_resource
1103
+
1104
+ # Last-modified timestamp of the entry from the managing system.
1105
+ # Corresponds to the JSON property `modifyTime`
1106
+ # @return [String]
1107
+ attr_accessor :modify_time
1108
+
1109
+ # The relative resource name of the resource in URL format. Examples: * `
1110
+ # projects/`project_id`/locations/`location_id`/entryGroups/`entry_group_id`/
1111
+ # entries/`entry_id`` * `projects/`project_id`/tagTemplates/`tag_template_id``
1112
+ # Corresponds to the JSON property `relativeResourceName`
1113
+ # @return [String]
1114
+ attr_accessor :relative_resource_name
1115
+
1116
+ # Sub-type of the search result. This is a dot-delimited description of the
1117
+ # resource's full type, and is the same as the value callers would provide in
1118
+ # the "type" search facet. Examples: `entry.table`, `entry.dataStream`, `
1119
+ # tagTemplate`.
1120
+ # Corresponds to the JSON property `searchResultSubtype`
1121
+ # @return [String]
1122
+ attr_accessor :search_result_subtype
1123
+
1124
+ # Type of the search result. This field can be used to determine which Get
1125
+ # method to call to fetch the full resource.
1126
+ # Corresponds to the JSON property `searchResultType`
1127
+ # @return [String]
1128
+ attr_accessor :search_result_type
1129
+
1130
+ def initialize(**args)
1131
+ update!(**args)
1132
+ end
1133
+
1134
+ # Update properties of this object
1135
+ def update!(**args)
1136
+ @linked_resource = args[:linked_resource] if args.key?(:linked_resource)
1137
+ @modify_time = args[:modify_time] if args.key?(:modify_time)
1138
+ @relative_resource_name = args[:relative_resource_name] if args.key?(:relative_resource_name)
1139
+ @search_result_subtype = args[:search_result_subtype] if args.key?(:search_result_subtype)
1140
+ @search_result_type = args[:search_result_type] if args.key?(:search_result_type)
1141
+ end
1142
+ end
1143
+
1144
+ # Message representing one policy tag when exported as a nested proto.
1145
+ class GoogleCloudDatacatalogV1beta1SerializedPolicyTag
1146
+ include Google::Apis::Core::Hashable
1147
+
1148
+ # Children of the policy tag if any.
1149
+ # Corresponds to the JSON property `childPolicyTags`
1150
+ # @return [Array<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SerializedPolicyTag>]
1151
+ attr_accessor :child_policy_tags
1152
+
1153
+ # Description of the serialized policy tag. The length of the description is
1154
+ # limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty
1155
+ # description.
1156
+ # Corresponds to the JSON property `description`
1157
+ # @return [String]
1158
+ attr_accessor :description
1159
+
1160
+ # Required. Display name of the policy tag. Max 200 bytes when encoded in UTF-8.
1161
+ # Corresponds to the JSON property `displayName`
1162
+ # @return [String]
1163
+ attr_accessor :display_name
1164
+
1165
+ # Resource name of the policy tag. This field will be ignored when calling
1166
+ # ImportTaxonomies.
1167
+ # Corresponds to the JSON property `policyTag`
1168
+ # @return [String]
1169
+ attr_accessor :policy_tag
1170
+
1171
+ def initialize(**args)
1172
+ update!(**args)
1173
+ end
1174
+
1175
+ # Update properties of this object
1176
+ def update!(**args)
1177
+ @child_policy_tags = args[:child_policy_tags] if args.key?(:child_policy_tags)
1178
+ @description = args[:description] if args.key?(:description)
1179
+ @display_name = args[:display_name] if args.key?(:display_name)
1180
+ @policy_tag = args[:policy_tag] if args.key?(:policy_tag)
1181
+ end
1182
+ end
1183
+
1184
+ # Message capturing a taxonomy and its policy tag hierarchy as a nested proto.
1185
+ # Used for taxonomy import/export and mutation.
1186
+ class GoogleCloudDatacatalogV1beta1SerializedTaxonomy
1187
+ include Google::Apis::Core::Hashable
1188
+
1189
+ # A list of policy types that are activated for a taxonomy.
1190
+ # Corresponds to the JSON property `activatedPolicyTypes`
1191
+ # @return [Array<String>]
1192
+ attr_accessor :activated_policy_types
1193
+
1194
+ # Description of the serialized taxonomy. The length of the description is
1195
+ # limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty
1196
+ # description.
1197
+ # Corresponds to the JSON property `description`
1198
+ # @return [String]
1199
+ attr_accessor :description
1200
+
1201
+ # Required. Display name of the taxonomy. Max 200 bytes when encoded in UTF-8.
1202
+ # Corresponds to the JSON property `displayName`
1203
+ # @return [String]
1204
+ attr_accessor :display_name
1205
+
1206
+ # Top level policy tags associated with the taxonomy if any.
1207
+ # Corresponds to the JSON property `policyTags`
1208
+ # @return [Array<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SerializedPolicyTag>]
1209
+ attr_accessor :policy_tags
1210
+
1211
+ def initialize(**args)
1212
+ update!(**args)
1213
+ end
1214
+
1215
+ # Update properties of this object
1216
+ def update!(**args)
1217
+ @activated_policy_types = args[:activated_policy_types] if args.key?(:activated_policy_types)
1218
+ @description = args[:description] if args.key?(:description)
1219
+ @display_name = args[:display_name] if args.key?(:display_name)
1220
+ @policy_tags = args[:policy_tags] if args.key?(:policy_tags)
1221
+ end
1222
+ end
1223
+
1224
+ # Timestamps about this resource according to a particular system.
1225
+ class GoogleCloudDatacatalogV1beta1SystemTimestamps
1226
+ include Google::Apis::Core::Hashable
1227
+
1228
+ # The creation time of the resource within the given system.
1229
+ # Corresponds to the JSON property `createTime`
1230
+ # @return [String]
1231
+ attr_accessor :create_time
1232
+
1233
+ # Output only. The expiration time of the resource within the given system.
1234
+ # Currently only apllicable to BigQuery resources.
1235
+ # Corresponds to the JSON property `expireTime`
1236
+ # @return [String]
1237
+ attr_accessor :expire_time
1238
+
1239
+ # The last-modified time of the resource within the given system.
1240
+ # Corresponds to the JSON property `updateTime`
1241
+ # @return [String]
1242
+ attr_accessor :update_time
1243
+
1244
+ def initialize(**args)
1245
+ update!(**args)
1246
+ end
1247
+
1248
+ # Update properties of this object
1249
+ def update!(**args)
1250
+ @create_time = args[:create_time] if args.key?(:create_time)
1251
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
1252
+ @update_time = args[:update_time] if args.key?(:update_time)
1253
+ end
1254
+ end
1255
+
1256
+ # Normal BigQuery table spec.
1257
+ class GoogleCloudDatacatalogV1beta1TableSpec
1258
+ include Google::Apis::Core::Hashable
1259
+
1260
+ # Output only. If the table is a dated shard, i.e., with name pattern `[prefix]
1261
+ # YYYYMMDD`, `grouped_entry` is the Data Catalog resource name of the date
1262
+ # sharded grouped entry, for example, `projects/`project_id`/locations/`location`
1263
+ # /entrygroups/`entry_group_id`/entries/`entry_id``. Otherwise, `grouped_entry`
1264
+ # is empty.
1265
+ # Corresponds to the JSON property `groupedEntry`
1266
+ # @return [String]
1267
+ attr_accessor :grouped_entry
1268
+
1269
+ def initialize(**args)
1270
+ update!(**args)
1271
+ end
1272
+
1273
+ # Update properties of this object
1274
+ def update!(**args)
1275
+ @grouped_entry = args[:grouped_entry] if args.key?(:grouped_entry)
1276
+ end
1277
+ end
1278
+
1279
+ # Tags are used to attach custom metadata to Data Catalog resources. Tags
1280
+ # conform to the specifications within their tag template. See [Data Catalog IAM]
1281
+ # (https://cloud.google.com/data-catalog/docs/concepts/iam) for information on
1282
+ # the permissions needed to create or view tags.
1283
+ class GoogleCloudDatacatalogV1beta1Tag
1284
+ include Google::Apis::Core::Hashable
1285
+
1286
+ # Resources like Entry can have schemas associated with them. This scope allows
1287
+ # users to attach tags to an individual column based on that schema. For
1288
+ # attaching a tag to a nested column, use `.` to separate the column names.
1289
+ # Example: * `outer_column.inner_column`
1290
+ # Corresponds to the JSON property `column`
1291
+ # @return [String]
1292
+ attr_accessor :column
1293
+
1294
+ # Required. This maps the ID of a tag field to the value of and additional
1295
+ # information about that field. Valid field IDs are defined by the tag's
1296
+ # template. A tag must have at least 1 field and at most 500 fields.
1297
+ # Corresponds to the JSON property `fields`
1298
+ # @return [Hash<String,Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagField>]
1299
+ attr_accessor :fields
1300
+
1301
+ # The resource name of the tag in URL format. Example: * projects/`project_id`/
1302
+ # locations/`location`/entrygroups/`entry_group_id`/entries/`entry_id`/tags/`
1303
+ # tag_id` where `tag_id` is a system-generated identifier. Note that this Tag
1304
+ # may not actually be stored in the location in this name.
1305
+ # Corresponds to the JSON property `name`
1306
+ # @return [String]
1307
+ attr_accessor :name
1308
+
1309
+ # Required. The resource name of the tag template that this tag uses. Example: *
1310
+ # projects/`project_id`/locations/`location`/tagTemplates/`tag_template_id` This
1311
+ # field cannot be modified after creation.
1312
+ # Corresponds to the JSON property `template`
1313
+ # @return [String]
1314
+ attr_accessor :template
1315
+
1316
+ # Output only. The display name of the tag template.
1317
+ # Corresponds to the JSON property `templateDisplayName`
1318
+ # @return [String]
1319
+ attr_accessor :template_display_name
1320
+
1321
+ def initialize(**args)
1322
+ update!(**args)
1323
+ end
1324
+
1325
+ # Update properties of this object
1326
+ def update!(**args)
1327
+ @column = args[:column] if args.key?(:column)
1328
+ @fields = args[:fields] if args.key?(:fields)
1329
+ @name = args[:name] if args.key?(:name)
1330
+ @template = args[:template] if args.key?(:template)
1331
+ @template_display_name = args[:template_display_name] if args.key?(:template_display_name)
1332
+ end
1333
+ end
1334
+
1335
+ # Contains the value and supporting information for a field within a Tag.
1336
+ class GoogleCloudDatacatalogV1beta1TagField
1337
+ include Google::Apis::Core::Hashable
1338
+
1339
+ # Holds the value for a tag field with boolean type.
1340
+ # Corresponds to the JSON property `boolValue`
1341
+ # @return [Boolean]
1342
+ attr_accessor :bool_value
1343
+ alias_method :bool_value?, :bool_value
1344
+
1345
+ # Output only. The display name of this field.
1346
+ # Corresponds to the JSON property `displayName`
1347
+ # @return [String]
1348
+ attr_accessor :display_name
1349
+
1350
+ # Holds the value for a tag field with double type.
1351
+ # Corresponds to the JSON property `doubleValue`
1352
+ # @return [Float]
1353
+ attr_accessor :double_value
1354
+
1355
+ # Holds an enum value.
1356
+ # Corresponds to the JSON property `enumValue`
1357
+ # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagFieldEnumValue]
1358
+ attr_accessor :enum_value
1359
+
1360
+ # Output only. The order of this field with respect to other fields in this tag.
1361
+ # It can be set in Tag. For example, a higher value can indicate a more
1362
+ # important field. The value can be negative. Multiple fields can have the same
1363
+ # order, and field orders within a tag do not have to be sequential.
1364
+ # Corresponds to the JSON property `order`
1365
+ # @return [Fixnum]
1366
+ attr_accessor :order
1367
+
1368
+ # Holds the value for a tag field with string type.
1369
+ # Corresponds to the JSON property `stringValue`
1370
+ # @return [String]
1371
+ attr_accessor :string_value
1372
+
1373
+ # Holds the value for a tag field with timestamp type.
1374
+ # Corresponds to the JSON property `timestampValue`
1375
+ # @return [String]
1376
+ attr_accessor :timestamp_value
1377
+
1378
+ def initialize(**args)
1379
+ update!(**args)
1380
+ end
1381
+
1382
+ # Update properties of this object
1383
+ def update!(**args)
1384
+ @bool_value = args[:bool_value] if args.key?(:bool_value)
1385
+ @display_name = args[:display_name] if args.key?(:display_name)
1386
+ @double_value = args[:double_value] if args.key?(:double_value)
1387
+ @enum_value = args[:enum_value] if args.key?(:enum_value)
1388
+ @order = args[:order] if args.key?(:order)
1389
+ @string_value = args[:string_value] if args.key?(:string_value)
1390
+ @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
1391
+ end
1392
+ end
1393
+
1394
+ # Holds an enum value.
1395
+ class GoogleCloudDatacatalogV1beta1TagFieldEnumValue
1396
+ include Google::Apis::Core::Hashable
1397
+
1398
+ # The display name of the enum value.
1399
+ # Corresponds to the JSON property `displayName`
1400
+ # @return [String]
1401
+ attr_accessor :display_name
1402
+
1403
+ def initialize(**args)
1404
+ update!(**args)
1405
+ end
1406
+
1407
+ # Update properties of this object
1408
+ def update!(**args)
1409
+ @display_name = args[:display_name] if args.key?(:display_name)
1410
+ end
1411
+ end
1412
+
1413
+ # A tag template defines a tag, which can have one or more typed fields. The
1414
+ # template is used to create and attach the tag to GCP resources. [Tag template
1415
+ # roles](https://cloud.google.com/iam/docs/understanding-roles#data-catalog-
1416
+ # roles) provide permissions to create, edit, and use the template. See, for
1417
+ # example, the [TagTemplate User](https://cloud.google.com/data-catalog/docs/how-
1418
+ # to/template-user) role, which includes permission to use the tag template to
1419
+ # tag resources.
1420
+ class GoogleCloudDatacatalogV1beta1TagTemplate
1421
+ include Google::Apis::Core::Hashable
1422
+
1423
+ # The display name for this template. Defaults to an empty string.
1424
+ # Corresponds to the JSON property `displayName`
1425
+ # @return [String]
1426
+ attr_accessor :display_name
1427
+
1428
+ # Required. Map of tag template field IDs to the settings for the field. This
1429
+ # map is an exhaustive list of the allowed fields. This map must contain at
1430
+ # least one field and at most 500 fields. The keys to this map are tag template
1431
+ # field IDs. Field IDs can contain letters (both uppercase and lowercase),
1432
+ # numbers (0-9) and underscores (_). Field IDs must be at least 1 character long
1433
+ # and at most 64 characters long. Field IDs must start with a letter or
1434
+ # underscore.
1435
+ # Corresponds to the JSON property `fields`
1436
+ # @return [Hash<String,Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1TagTemplateField>]
1437
+ attr_accessor :fields
1438
+
1439
+ # The resource name of the tag template in URL format. Example: * projects/`
1440
+ # project_id`/locations/`location`/tagTemplates/`tag_template_id` Note that this
1441
+ # TagTemplate and its child resources may not actually be stored in the location
1442
+ # in this name.
1443
+ # Corresponds to the JSON property `name`
1444
+ # @return [String]
1445
+ attr_accessor :name
1446
+
1447
+ def initialize(**args)
1448
+ update!(**args)
1449
+ end
1450
+
1451
+ # Update properties of this object
1452
+ def update!(**args)
1453
+ @display_name = args[:display_name] if args.key?(:display_name)
1454
+ @fields = args[:fields] if args.key?(:fields)
1455
+ @name = args[:name] if args.key?(:name)
1456
+ end
1457
+ end
1458
+
1459
+ # The template for an individual field within a tag template.
1460
+ class GoogleCloudDatacatalogV1beta1TagTemplateField
1461
+ include Google::Apis::Core::Hashable
1462
+
1463
+ # The description for this field. Defaults to an empty string.
1464
+ # Corresponds to the JSON property `description`
1465
+ # @return [String]
1466
+ attr_accessor :description
1467
+
1468
+ # The display name for this field. Defaults to an empty string.
1469
+ # Corresponds to the JSON property `displayName`
1470
+ # @return [String]
1471
+ attr_accessor :display_name
1472
+
1473
+ # Whether this is a required field. Defaults to false.
1474
+ # Corresponds to the JSON property `isRequired`
1475
+ # @return [Boolean]
1476
+ attr_accessor :is_required
1477
+ alias_method :is_required?, :is_required
1478
+
1479
+ # Output only. The resource name of the tag template field in URL format.
1480
+ # Example: * projects/`project_id`/locations/`location`/tagTemplates/`
1481
+ # tag_template`/fields/`field` Note that this TagTemplateField may not actually
1482
+ # be stored in the location in this name.
1483
+ # Corresponds to the JSON property `name`
1484
+ # @return [String]
1485
+ attr_accessor :name
1486
+
1487
+ # The order of this field with respect to other fields in this tag template. A
1488
+ # higher value indicates a more important field. The value can be negative.
1489
+ # Multiple fields can have the same order, and field orders within a tag do not
1490
+ # have to be sequential.
1491
+ # Corresponds to the JSON property `order`
1492
+ # @return [Fixnum]
1493
+ attr_accessor :order
1494
+
1495
+ # Required. The type of value this tag field can contain.
1496
+ # Corresponds to the JSON property `type`
1497
+ # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1FieldType]
1498
+ attr_accessor :type
1499
+
1500
+ def initialize(**args)
1501
+ update!(**args)
1502
+ end
1503
+
1504
+ # Update properties of this object
1505
+ def update!(**args)
1506
+ @description = args[:description] if args.key?(:description)
1507
+ @display_name = args[:display_name] if args.key?(:display_name)
1508
+ @is_required = args[:is_required] if args.key?(:is_required)
1509
+ @name = args[:name] if args.key?(:name)
1510
+ @order = args[:order] if args.key?(:order)
1511
+ @type = args[:type] if args.key?(:type)
1512
+ end
1513
+ end
1514
+
1515
+ # A taxonomy is a collection of policy tags that classify data along a common
1516
+ # axis. For instance a data *sensitivity* taxonomy could contain policy tags
1517
+ # denoting PII such as age, zipcode, and SSN. A data *origin* taxonomy could
1518
+ # contain policy tags to distinguish user data, employee data, partner data,
1519
+ # public data.
1520
+ class GoogleCloudDatacatalogV1beta1Taxonomy
1521
+ include Google::Apis::Core::Hashable
1522
+
1523
+ # Optional. A list of policy types that are activated for this taxonomy. If not
1524
+ # set, defaults to an empty list.
1525
+ # Corresponds to the JSON property `activatedPolicyTypes`
1526
+ # @return [Array<String>]
1527
+ attr_accessor :activated_policy_types
1528
+
1529
+ # Optional. Description of this taxonomy. It must: contain only unicode
1530
+ # characters, tabs, newlines, carriage returns and page breaks; and be at most
1531
+ # 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty
1532
+ # description.
1533
+ # Corresponds to the JSON property `description`
1534
+ # @return [String]
1535
+ attr_accessor :description
1536
+
1537
+ # Required. User defined name of this taxonomy. It must: contain only unicode
1538
+ # letters, numbers, underscores, dashes and spaces; not start or end with spaces;
1539
+ # and be at most 200 bytes long when encoded in UTF-8.
1540
+ # Corresponds to the JSON property `displayName`
1541
+ # @return [String]
1542
+ attr_accessor :display_name
1543
+
1544
+ # Output only. Resource name of this taxonomy, whose format is: "projects/`
1545
+ # project_number`/locations/`location_id`/taxonomies/`id`".
1546
+ # Corresponds to the JSON property `name`
1547
+ # @return [String]
1548
+ attr_accessor :name
1549
+
1550
+ # Output only. Number of policy tags contained in this taxonomy.
1551
+ # Corresponds to the JSON property `policyTagCount`
1552
+ # @return [Fixnum]
1553
+ attr_accessor :policy_tag_count
1554
+
1555
+ # Timestamps about this resource according to a particular system.
1556
+ # Corresponds to the JSON property `taxonomyTimestamps`
1557
+ # @return [Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1beta1SystemTimestamps]
1558
+ attr_accessor :taxonomy_timestamps
1559
+
1560
+ def initialize(**args)
1561
+ update!(**args)
1562
+ end
1563
+
1564
+ # Update properties of this object
1565
+ def update!(**args)
1566
+ @activated_policy_types = args[:activated_policy_types] if args.key?(:activated_policy_types)
1567
+ @description = args[:description] if args.key?(:description)
1568
+ @display_name = args[:display_name] if args.key?(:display_name)
1569
+ @name = args[:name] if args.key?(:name)
1570
+ @policy_tag_count = args[:policy_tag_count] if args.key?(:policy_tag_count)
1571
+ @taxonomy_timestamps = args[:taxonomy_timestamps] if args.key?(:taxonomy_timestamps)
1572
+ end
1573
+ end
1574
+
1575
+ # Table view specification.
1576
+ class GoogleCloudDatacatalogV1beta1ViewSpec
1577
+ include Google::Apis::Core::Hashable
1578
+
1579
+ # Output only. The query that defines the table view.
1580
+ # Corresponds to the JSON property `viewQuery`
1581
+ # @return [String]
1582
+ attr_accessor :view_query
1583
+
1584
+ def initialize(**args)
1585
+ update!(**args)
1586
+ end
1587
+
1588
+ # Update properties of this object
1589
+ def update!(**args)
1590
+ @view_query = args[:view_query] if args.key?(:view_query)
1591
+ end
1592
+ end
1593
+
1594
+ # An Identity and Access Management (IAM) policy, which specifies access
1595
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1596
+ # A `binding` binds one or more `members` to a single `role`. Members can be
1597
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
1598
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
1599
+ # role or a user-created custom role. For some types of Google Cloud resources,
1600
+ # a `binding` can also specify a `condition`, which is a logical expression that
1601
+ # allows access to a resource only if the expression evaluates to `true`. A
1602
+ # condition can add constraints based on attributes of the request, the resource,
1603
+ # or both. To learn which resources support conditions in their IAM policies,
1604
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1605
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1606
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1607
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1608
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1609
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1610
+ # title": "expirable access", "description": "Does not grant access after Sep
1611
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1612
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1613
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
1614
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1615
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1616
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
1617
+ # description: Does not grant access after Sep 2020 expression: request.time <
1618
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1619
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
1620
+ # google.com/iam/docs/).
1621
+ class Policy
1622
+ include Google::Apis::Core::Hashable
1623
+
1624
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
1625
+ # condition` that determines how and when the `bindings` are applied. Each of
1626
+ # the `bindings` must contain at least one member.
1627
+ # Corresponds to the JSON property `bindings`
1628
+ # @return [Array<Google::Apis::DatacatalogV1beta1::Binding>]
1629
+ attr_accessor :bindings
1630
+
1631
+ # `etag` is used for optimistic concurrency control as a way to help prevent
1632
+ # simultaneous updates of a policy from overwriting each other. It is strongly
1633
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
1634
+ # to perform policy updates in order to avoid race conditions: An `etag` is
1635
+ # returned in the response to `getIamPolicy`, and systems are expected to put
1636
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
1637
+ # applied to the same version of the policy. **Important:** If you use IAM
1638
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
1639
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
1640
+ # with a version `1` policy, and all of the conditions in the version `3` policy
1641
+ # are lost.
1642
+ # Corresponds to the JSON property `etag`
1643
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1644
+ # @return [String]
1645
+ attr_accessor :etag
1646
+
1647
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
1648
+ # Requests that specify an invalid value are rejected. Any operation that
1649
+ # affects conditional role bindings must specify version `3`. This requirement
1650
+ # applies to the following operations: * Getting a policy that includes a
1651
+ # conditional role binding * Adding a conditional role binding to a policy *
1652
+ # Changing a conditional role binding in a policy * Removing any role binding,
1653
+ # with or without a condition, from a policy that includes conditions **
1654
+ # Important:** If you use IAM Conditions, you must include the `etag` field
1655
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
1656
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
1657
+ # conditions in the version `3` policy are lost. If a policy does not include
1658
+ # any conditions, operations on that policy may specify any valid version or
1659
+ # leave the field unset. To learn which resources support conditions in their
1660
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
1661
+ # conditions/resource-policies).
1662
+ # Corresponds to the JSON property `version`
1663
+ # @return [Fixnum]
1664
+ attr_accessor :version
1665
+
1666
+ def initialize(**args)
1667
+ update!(**args)
1668
+ end
1669
+
1670
+ # Update properties of this object
1671
+ def update!(**args)
1672
+ @bindings = args[:bindings] if args.key?(:bindings)
1673
+ @etag = args[:etag] if args.key?(:etag)
1674
+ @version = args[:version] if args.key?(:version)
1675
+ end
1676
+ end
1677
+
1678
+ # Request message for `SetIamPolicy` method.
1679
+ class SetIamPolicyRequest
1680
+ include Google::Apis::Core::Hashable
1681
+
1682
+ # An Identity and Access Management (IAM) policy, which specifies access
1683
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1684
+ # A `binding` binds one or more `members` to a single `role`. Members can be
1685
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
1686
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
1687
+ # role or a user-created custom role. For some types of Google Cloud resources,
1688
+ # a `binding` can also specify a `condition`, which is a logical expression that
1689
+ # allows access to a resource only if the expression evaluates to `true`. A
1690
+ # condition can add constraints based on attributes of the request, the resource,
1691
+ # or both. To learn which resources support conditions in their IAM policies,
1692
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1693
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1694
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1695
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1696
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1697
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1698
+ # title": "expirable access", "description": "Does not grant access after Sep
1699
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1700
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1701
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
1702
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1703
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1704
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
1705
+ # description: Does not grant access after Sep 2020 expression: request.time <
1706
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1707
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
1708
+ # google.com/iam/docs/).
1709
+ # Corresponds to the JSON property `policy`
1710
+ # @return [Google::Apis::DatacatalogV1beta1::Policy]
1711
+ attr_accessor :policy
1712
+
1713
+ def initialize(**args)
1714
+ update!(**args)
1715
+ end
1716
+
1717
+ # Update properties of this object
1718
+ def update!(**args)
1719
+ @policy = args[:policy] if args.key?(:policy)
1720
+ end
1721
+ end
1722
+
1723
+ # Request message for `TestIamPermissions` method.
1724
+ class TestIamPermissionsRequest
1725
+ include Google::Apis::Core::Hashable
1726
+
1727
+ # The set of permissions to check for the `resource`. Permissions with wildcards
1728
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
1729
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
1730
+ # Corresponds to the JSON property `permissions`
1731
+ # @return [Array<String>]
1732
+ attr_accessor :permissions
1733
+
1734
+ def initialize(**args)
1735
+ update!(**args)
1736
+ end
1737
+
1738
+ # Update properties of this object
1739
+ def update!(**args)
1740
+ @permissions = args[:permissions] if args.key?(:permissions)
1741
+ end
1742
+ end
1743
+
1744
+ # Response message for `TestIamPermissions` method.
1745
+ class TestIamPermissionsResponse
1746
+ include Google::Apis::Core::Hashable
1747
+
1748
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1749
+ # Corresponds to the JSON property `permissions`
1750
+ # @return [Array<String>]
1751
+ attr_accessor :permissions
1752
+
1753
+ def initialize(**args)
1754
+ update!(**args)
1755
+ end
1756
+
1757
+ # Update properties of this object
1758
+ def update!(**args)
1759
+ @permissions = args[:permissions] if args.key?(:permissions)
1760
+ end
1761
+ end
1762
+ end
1763
+ end
1764
+ end