google-apis-datafusion_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: 02c4847c4a8a28a9b11e36fcecd215c6e961715b9fcbeae5af23913f5ec155b6
4
+ data.tar.gz: 74679bd46d021d35b822b53e79c57144e9a4517ee681ed1403b05fcf103c77f7
5
+ SHA512:
6
+ metadata.gz: f8c8e7bdb1cc1c14e185840b2ed8fce50425c2578101127a11d7650f5cbdcd85e37371eeda026a3d43569f608d84ef27585c4a079e83485a78f4a86badf8bfe4
7
+ data.tar.gz: 015a7f591438d4b44fefd3308a34f75af1b233a4dee6b8468637c433b1378d7905f07b0e2144640ffa4d58de6ffe52e895cf6493a03cc3f71f33e1a05331796c
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-datafusion_v1beta1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/datafusion_v1beta1/*.rb
9
+ lib/google/apis/datafusion_v1beta1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-datafusion_v1beta1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20200901
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 Cloud Data Fusion API
2
+
3
+ This is a simple client library for version V1beta1 of the Cloud Data Fusion 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/datafusion.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-datafusion_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-datafusion_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/datafusion_v1beta1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::DatafusionV1beta1::DataFusionService.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 Datafusion service in particular.)
67
+
68
+ For reference information on specific calls in the Cloud Data Fusion API, see the {Google::Apis::DatafusionV1beta1::DataFusionService 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-datafusion_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-fusion/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/datafusion_v1beta1"
@@ -0,0 +1,42 @@
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/datafusion_v1beta1/service.rb'
16
+ require 'google/apis/datafusion_v1beta1/classes.rb'
17
+ require 'google/apis/datafusion_v1beta1/representations.rb'
18
+ require 'google/apis/datafusion_v1beta1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Cloud Data Fusion API
23
+ #
24
+ # Cloud Data Fusion is a fully-managed, cloud native, enterprise data
25
+ # integration service for quickly building and managing data pipelines. It
26
+ # provides a graphical interface to increase time efficiency and reduce
27
+ # complexity, and allows business users, developers, and data scientists to
28
+ # easily and reliably build scalable data integration solutions to cleanse,
29
+ # prepare, blend, transfer and transform data without having to wrestle with
30
+ # infrastructure.
31
+ #
32
+ # @see https://cloud.google.com/data-fusion/docs
33
+ module DatafusionV1beta1
34
+ # Version of the Cloud Data Fusion API this client connects to.
35
+ # This is NOT the gem version.
36
+ VERSION = 'V1beta1'
37
+
38
+ # View and manage your data across Google Cloud Platform services
39
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,1052 @@
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 DatafusionV1beta1
24
+
25
+ # Identifies Data Fusion accelerators for an instance.
26
+ class Accelerator
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The type of an accelator for a CDF instance.
30
+ # Corresponds to the JSON property `acceleratorType`
31
+ # @return [String]
32
+ attr_accessor :accelerator_type
33
+
34
+ def initialize(**args)
35
+ update!(**args)
36
+ end
37
+
38
+ # Update properties of this object
39
+ def update!(**args)
40
+ @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
41
+ end
42
+ end
43
+
44
+ # Specifies the audit configuration for a service. The configuration determines
45
+ # which permission types are logged, and what identities, if any, are exempted
46
+ # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
47
+ # are AuditConfigs for both `allServices` and a specific service, the union of
48
+ # the two AuditConfigs is used for that service: the log_types specified in each
49
+ # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
50
+ # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
51
+ # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
52
+ # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
53
+ # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
54
+ # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
55
+ # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
56
+ # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
57
+ # exempts jose@example.com from DATA_READ logging, and aliya@example.com from
58
+ # DATA_WRITE logging.
59
+ class AuditConfig
60
+ include Google::Apis::Core::Hashable
61
+
62
+ # The configuration for logging of each type of permission.
63
+ # Corresponds to the JSON property `auditLogConfigs`
64
+ # @return [Array<Google::Apis::DatafusionV1beta1::AuditLogConfig>]
65
+ attr_accessor :audit_log_configs
66
+
67
+ # Specifies a service that will be enabled for audit logging. For example, `
68
+ # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
69
+ # value that covers all services.
70
+ # Corresponds to the JSON property `service`
71
+ # @return [String]
72
+ attr_accessor :service
73
+
74
+ def initialize(**args)
75
+ update!(**args)
76
+ end
77
+
78
+ # Update properties of this object
79
+ def update!(**args)
80
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
81
+ @service = args[:service] if args.key?(:service)
82
+ end
83
+ end
84
+
85
+ # Provides the configuration for logging a type of permissions. Example: ` "
86
+ # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
87
+ # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
88
+ # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
89
+ # DATA_READ logging.
90
+ class AuditLogConfig
91
+ include Google::Apis::Core::Hashable
92
+
93
+ # Specifies the identities that do not cause logging for this type of permission.
94
+ # Follows the same format of Binding.members.
95
+ # Corresponds to the JSON property `exemptedMembers`
96
+ # @return [Array<String>]
97
+ attr_accessor :exempted_members
98
+
99
+ # The log type that this config enables.
100
+ # Corresponds to the JSON property `logType`
101
+ # @return [String]
102
+ attr_accessor :log_type
103
+
104
+ def initialize(**args)
105
+ update!(**args)
106
+ end
107
+
108
+ # Update properties of this object
109
+ def update!(**args)
110
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
111
+ @log_type = args[:log_type] if args.key?(:log_type)
112
+ end
113
+ end
114
+
115
+ # Associates `members` with a `role`.
116
+ class Binding
117
+ include Google::Apis::Core::Hashable
118
+
119
+ # A client-specified ID for this binding. Expected to be globally unique to
120
+ # support the internal bindings-by-ID API.
121
+ # Corresponds to the JSON property `bindingId`
122
+ # @return [String]
123
+ attr_accessor :binding_id
124
+
125
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
126
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
127
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
128
+ # "Summary size limit" description: "Determines if a summary is less than 100
129
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
130
+ # Requestor is owner" description: "Determines if requestor is the document
131
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
132
+ # Logic): title: "Public documents" description: "Determine whether the document
133
+ # should be publicly visible" expression: "document.type != 'private' &&
134
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
135
+ # string" description: "Create a notification string with a timestamp."
136
+ # expression: "'New message received at ' + string(document.create_time)" The
137
+ # exact variables and functions that may be referenced within an expression are
138
+ # determined by the service that evaluates it. See the service documentation for
139
+ # additional information.
140
+ # Corresponds to the JSON property `condition`
141
+ # @return [Google::Apis::DatafusionV1beta1::Expr]
142
+ attr_accessor :condition
143
+
144
+ # Specifies the identities requesting access for a Cloud Platform resource. `
145
+ # members` can have the following values: * `allUsers`: A special identifier
146
+ # that represents anyone who is on the internet; with or without a Google
147
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
148
+ # anyone who is authenticated with a Google account or a service account. * `
149
+ # user:`emailid``: An email address that represents a specific Google account.
150
+ # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
151
+ # address that represents a service account. For example, `my-other-app@appspot.
152
+ # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
153
+ # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
154
+ # `uniqueid``: An email address (plus unique identifier) representing a user
155
+ # that has been recently deleted. For example, `alice@example.com?uid=
156
+ # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
157
+ # emailid`` and the recovered user retains the role in the binding. * `deleted:
158
+ # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
159
+ # identifier) representing a service account that has been recently deleted. For
160
+ # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
161
+ # If the service account is undeleted, this value reverts to `serviceAccount:`
162
+ # emailid`` and the undeleted service account retains the role in the binding. *
163
+ # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
164
+ # identifier) representing a Google group that has been recently deleted. For
165
+ # example, `admins@example.com?uid=123456789012345678901`. If the group is
166
+ # recovered, this value reverts to `group:`emailid`` and the recovered group
167
+ # retains the role in the binding. * `domain:`domain``: The G Suite domain (
168
+ # primary) that represents all the users of that domain. For example, `google.
169
+ # com` or `example.com`.
170
+ # Corresponds to the JSON property `members`
171
+ # @return [Array<String>]
172
+ attr_accessor :members
173
+
174
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
175
+ # , or `roles/owner`.
176
+ # Corresponds to the JSON property `role`
177
+ # @return [String]
178
+ attr_accessor :role
179
+
180
+ def initialize(**args)
181
+ update!(**args)
182
+ end
183
+
184
+ # Update properties of this object
185
+ def update!(**args)
186
+ @binding_id = args[:binding_id] if args.key?(:binding_id)
187
+ @condition = args[:condition] if args.key?(:condition)
188
+ @members = args[:members] if args.key?(:members)
189
+ @role = args[:role] if args.key?(:role)
190
+ end
191
+ end
192
+
193
+ # The request message for Operations.CancelOperation.
194
+ class CancelOperationRequest
195
+ include Google::Apis::Core::Hashable
196
+
197
+ def initialize(**args)
198
+ update!(**args)
199
+ end
200
+
201
+ # Update properties of this object
202
+ def update!(**args)
203
+ end
204
+ end
205
+
206
+ # A generic empty message that you can re-use to avoid defining duplicated empty
207
+ # messages in your APIs. A typical example is to use it as the request or the
208
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
209
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
210
+ # `Empty` is empty JSON object ````.
211
+ class Empty
212
+ include Google::Apis::Core::Hashable
213
+
214
+ def initialize(**args)
215
+ update!(**args)
216
+ end
217
+
218
+ # Update properties of this object
219
+ def update!(**args)
220
+ end
221
+ end
222
+
223
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
224
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
225
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
226
+ # "Summary size limit" description: "Determines if a summary is less than 100
227
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
228
+ # Requestor is owner" description: "Determines if requestor is the document
229
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
230
+ # Logic): title: "Public documents" description: "Determine whether the document
231
+ # should be publicly visible" expression: "document.type != 'private' &&
232
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
233
+ # string" description: "Create a notification string with a timestamp."
234
+ # expression: "'New message received at ' + string(document.create_time)" The
235
+ # exact variables and functions that may be referenced within an expression are
236
+ # determined by the service that evaluates it. See the service documentation for
237
+ # additional information.
238
+ class Expr
239
+ include Google::Apis::Core::Hashable
240
+
241
+ # Optional. Description of the expression. This is a longer text which describes
242
+ # the expression, e.g. when hovered over it in a UI.
243
+ # Corresponds to the JSON property `description`
244
+ # @return [String]
245
+ attr_accessor :description
246
+
247
+ # Textual representation of an expression in Common Expression Language syntax.
248
+ # Corresponds to the JSON property `expression`
249
+ # @return [String]
250
+ attr_accessor :expression
251
+
252
+ # Optional. String indicating the location of the expression for error reporting,
253
+ # e.g. a file name and a position in the file.
254
+ # Corresponds to the JSON property `location`
255
+ # @return [String]
256
+ attr_accessor :location
257
+
258
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
259
+ # This can be used e.g. in UIs which allow to enter the expression.
260
+ # Corresponds to the JSON property `title`
261
+ # @return [String]
262
+ attr_accessor :title
263
+
264
+ def initialize(**args)
265
+ update!(**args)
266
+ end
267
+
268
+ # Update properties of this object
269
+ def update!(**args)
270
+ @description = args[:description] if args.key?(:description)
271
+ @expression = args[:expression] if args.key?(:expression)
272
+ @location = args[:location] if args.key?(:location)
273
+ @title = args[:title] if args.key?(:title)
274
+ end
275
+ end
276
+
277
+ # Represents a Data Fusion instance.
278
+ class Instance
279
+ include Google::Apis::Core::Hashable
280
+
281
+ # List of accelerators enabled for this CDF instance.
282
+ # Corresponds to the JSON property `accelerators`
283
+ # @return [Array<Google::Apis::DatafusionV1beta1::Accelerator>]
284
+ attr_accessor :accelerators
285
+
286
+ # Output only. Endpoint on which the REST APIs is accessible.
287
+ # Corresponds to the JSON property `apiEndpoint`
288
+ # @return [String]
289
+ attr_accessor :api_endpoint
290
+
291
+ # Available versions that the instance can be upgraded to using
292
+ # UpdateInstanceRequest.
293
+ # Corresponds to the JSON property `availableVersion`
294
+ # @return [Array<Google::Apis::DatafusionV1beta1::Version>]
295
+ attr_accessor :available_version
296
+
297
+ # Output only. The time the instance was created.
298
+ # Corresponds to the JSON property `createTime`
299
+ # @return [String]
300
+ attr_accessor :create_time
301
+
302
+ # User-managed service account to set on Dataproc when Cloud Data Fusion creates
303
+ # Dataproc to run data processing pipelines. This allows users to have fine-
304
+ # grained access control on Dataproc's accesses to cloud resources.
305
+ # Corresponds to the JSON property `dataprocServiceAccount`
306
+ # @return [String]
307
+ attr_accessor :dataproc_service_account
308
+
309
+ # A description of this instance.
310
+ # Corresponds to the JSON property `description`
311
+ # @return [String]
312
+ attr_accessor :description
313
+
314
+ # Display name for an instance.
315
+ # Corresponds to the JSON property `displayName`
316
+ # @return [String]
317
+ attr_accessor :display_name
318
+
319
+ # Option to enable Stackdriver Logging.
320
+ # Corresponds to the JSON property `enableStackdriverLogging`
321
+ # @return [Boolean]
322
+ attr_accessor :enable_stackdriver_logging
323
+ alias_method :enable_stackdriver_logging?, :enable_stackdriver_logging
324
+
325
+ # Option to enable Stackdriver Monitoring.
326
+ # Corresponds to the JSON property `enableStackdriverMonitoring`
327
+ # @return [Boolean]
328
+ attr_accessor :enable_stackdriver_monitoring
329
+ alias_method :enable_stackdriver_monitoring?, :enable_stackdriver_monitoring
330
+
331
+ # Output only. Cloud Storage bucket generated by Data Fusion in the customer
332
+ # project.
333
+ # Corresponds to the JSON property `gcsBucket`
334
+ # @return [String]
335
+ attr_accessor :gcs_bucket
336
+
337
+ # The resource labels for instance to use to annotate any related underlying
338
+ # resources such as Compute Engine VMs. The character '=' is not allowed to be
339
+ # used within the labels.
340
+ # Corresponds to the JSON property `labels`
341
+ # @return [Hash<String,String>]
342
+ attr_accessor :labels
343
+
344
+ # Output only. The name of this instance is in the form of projects/`project`/
345
+ # locations/`location`/instances/`instance`.
346
+ # Corresponds to the JSON property `name`
347
+ # @return [String]
348
+ attr_accessor :name
349
+
350
+ # Network configuration for a Data Fusion instance. These configurations are
351
+ # used for peering with the customer network. Configurations are optional when a
352
+ # public Data Fusion instance is to be created. However, providing these
353
+ # configurations allows several benefits, such as reduced network latency while
354
+ # accessing the customer resources from managed Data Fusion instance nodes, as
355
+ # well as access to the customer on-prem resources.
356
+ # Corresponds to the JSON property `networkConfig`
357
+ # @return [Google::Apis::DatafusionV1beta1::NetworkConfig]
358
+ attr_accessor :network_config
359
+
360
+ # Map of additional options used to configure the behavior of Data Fusion
361
+ # instance.
362
+ # Corresponds to the JSON property `options`
363
+ # @return [Hash<String,String>]
364
+ attr_accessor :options
365
+
366
+ # Output only. P4 service account for the customer project.
367
+ # Corresponds to the JSON property `p4ServiceAccount`
368
+ # @return [String]
369
+ attr_accessor :p4_service_account
370
+
371
+ # Specifies whether the Data Fusion instance should be private. If set to true,
372
+ # all Data Fusion nodes will have private IP addresses and will not be able to
373
+ # access the public internet.
374
+ # Corresponds to the JSON property `privateInstance`
375
+ # @return [Boolean]
376
+ attr_accessor :private_instance
377
+ alias_method :private_instance?, :private_instance
378
+
379
+ # Output only. Deprecated. Use tenant_project_id instead to extract the tenant
380
+ # project ID.
381
+ # Corresponds to the JSON property `serviceAccount`
382
+ # @return [String]
383
+ attr_accessor :service_account
384
+
385
+ # Output only. Endpoint on which the Data Fusion UI is accessible.
386
+ # Corresponds to the JSON property `serviceEndpoint`
387
+ # @return [String]
388
+ attr_accessor :service_endpoint
389
+
390
+ # Output only. The current state of this Data Fusion instance.
391
+ # Corresponds to the JSON property `state`
392
+ # @return [String]
393
+ attr_accessor :state
394
+
395
+ # Output only. Additional information about the current state of this Data
396
+ # Fusion instance if available.
397
+ # Corresponds to the JSON property `stateMessage`
398
+ # @return [String]
399
+ attr_accessor :state_message
400
+
401
+ # Output only. The name of the tenant project.
402
+ # Corresponds to the JSON property `tenantProjectId`
403
+ # @return [String]
404
+ attr_accessor :tenant_project_id
405
+
406
+ # Required. Instance type.
407
+ # Corresponds to the JSON property `type`
408
+ # @return [String]
409
+ attr_accessor :type
410
+
411
+ # Output only. The time the instance was last updated.
412
+ # Corresponds to the JSON property `updateTime`
413
+ # @return [String]
414
+ attr_accessor :update_time
415
+
416
+ # Current version of Data Fusion.
417
+ # Corresponds to the JSON property `version`
418
+ # @return [String]
419
+ attr_accessor :version
420
+
421
+ # Name of the zone in which the Data Fusion instance will be created.
422
+ # Corresponds to the JSON property `zone`
423
+ # @return [String]
424
+ attr_accessor :zone
425
+
426
+ def initialize(**args)
427
+ update!(**args)
428
+ end
429
+
430
+ # Update properties of this object
431
+ def update!(**args)
432
+ @accelerators = args[:accelerators] if args.key?(:accelerators)
433
+ @api_endpoint = args[:api_endpoint] if args.key?(:api_endpoint)
434
+ @available_version = args[:available_version] if args.key?(:available_version)
435
+ @create_time = args[:create_time] if args.key?(:create_time)
436
+ @dataproc_service_account = args[:dataproc_service_account] if args.key?(:dataproc_service_account)
437
+ @description = args[:description] if args.key?(:description)
438
+ @display_name = args[:display_name] if args.key?(:display_name)
439
+ @enable_stackdriver_logging = args[:enable_stackdriver_logging] if args.key?(:enable_stackdriver_logging)
440
+ @enable_stackdriver_monitoring = args[:enable_stackdriver_monitoring] if args.key?(:enable_stackdriver_monitoring)
441
+ @gcs_bucket = args[:gcs_bucket] if args.key?(:gcs_bucket)
442
+ @labels = args[:labels] if args.key?(:labels)
443
+ @name = args[:name] if args.key?(:name)
444
+ @network_config = args[:network_config] if args.key?(:network_config)
445
+ @options = args[:options] if args.key?(:options)
446
+ @p4_service_account = args[:p4_service_account] if args.key?(:p4_service_account)
447
+ @private_instance = args[:private_instance] if args.key?(:private_instance)
448
+ @service_account = args[:service_account] if args.key?(:service_account)
449
+ @service_endpoint = args[:service_endpoint] if args.key?(:service_endpoint)
450
+ @state = args[:state] if args.key?(:state)
451
+ @state_message = args[:state_message] if args.key?(:state_message)
452
+ @tenant_project_id = args[:tenant_project_id] if args.key?(:tenant_project_id)
453
+ @type = args[:type] if args.key?(:type)
454
+ @update_time = args[:update_time] if args.key?(:update_time)
455
+ @version = args[:version] if args.key?(:version)
456
+ @zone = args[:zone] if args.key?(:zone)
457
+ end
458
+ end
459
+
460
+ # Response message for the list available versions request.
461
+ class ListAvailableVersionsResponse
462
+ include Google::Apis::Core::Hashable
463
+
464
+ # Represents a list of versions that are supported.
465
+ # Corresponds to the JSON property `availableVersions`
466
+ # @return [Array<Google::Apis::DatafusionV1beta1::Version>]
467
+ attr_accessor :available_versions
468
+
469
+ # Token to retrieve the next page of results or empty if there are no more
470
+ # results in the list.
471
+ # Corresponds to the JSON property `nextPageToken`
472
+ # @return [String]
473
+ attr_accessor :next_page_token
474
+
475
+ def initialize(**args)
476
+ update!(**args)
477
+ end
478
+
479
+ # Update properties of this object
480
+ def update!(**args)
481
+ @available_versions = args[:available_versions] if args.key?(:available_versions)
482
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
483
+ end
484
+ end
485
+
486
+ # Response message for the list instance request.
487
+ class ListInstancesResponse
488
+ include Google::Apis::Core::Hashable
489
+
490
+ # Represents a list of Data Fusion instances.
491
+ # Corresponds to the JSON property `instances`
492
+ # @return [Array<Google::Apis::DatafusionV1beta1::Instance>]
493
+ attr_accessor :instances
494
+
495
+ # Token to retrieve the next page of results or empty if there are no more
496
+ # results in the list.
497
+ # Corresponds to the JSON property `nextPageToken`
498
+ # @return [String]
499
+ attr_accessor :next_page_token
500
+
501
+ # Locations that could not be reached.
502
+ # Corresponds to the JSON property `unreachable`
503
+ # @return [Array<String>]
504
+ attr_accessor :unreachable
505
+
506
+ def initialize(**args)
507
+ update!(**args)
508
+ end
509
+
510
+ # Update properties of this object
511
+ def update!(**args)
512
+ @instances = args[:instances] if args.key?(:instances)
513
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
514
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
515
+ end
516
+ end
517
+
518
+ # The response message for Locations.ListLocations.
519
+ class ListLocationsResponse
520
+ include Google::Apis::Core::Hashable
521
+
522
+ # A list of locations that matches the specified filter in the request.
523
+ # Corresponds to the JSON property `locations`
524
+ # @return [Array<Google::Apis::DatafusionV1beta1::Location>]
525
+ attr_accessor :locations
526
+
527
+ # The standard List next-page token.
528
+ # Corresponds to the JSON property `nextPageToken`
529
+ # @return [String]
530
+ attr_accessor :next_page_token
531
+
532
+ def initialize(**args)
533
+ update!(**args)
534
+ end
535
+
536
+ # Update properties of this object
537
+ def update!(**args)
538
+ @locations = args[:locations] if args.key?(:locations)
539
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
540
+ end
541
+ end
542
+
543
+ # The response message for Operations.ListOperations.
544
+ class ListOperationsResponse
545
+ include Google::Apis::Core::Hashable
546
+
547
+ # The standard List next-page token.
548
+ # Corresponds to the JSON property `nextPageToken`
549
+ # @return [String]
550
+ attr_accessor :next_page_token
551
+
552
+ # A list of operations that matches the specified filter in the request.
553
+ # Corresponds to the JSON property `operations`
554
+ # @return [Array<Google::Apis::DatafusionV1beta1::Operation>]
555
+ attr_accessor :operations
556
+
557
+ def initialize(**args)
558
+ update!(**args)
559
+ end
560
+
561
+ # Update properties of this object
562
+ def update!(**args)
563
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
564
+ @operations = args[:operations] if args.key?(:operations)
565
+ end
566
+ end
567
+
568
+ # A resource that represents Google Cloud Platform location.
569
+ class Location
570
+ include Google::Apis::Core::Hashable
571
+
572
+ # The friendly name for this location, typically a nearby city name. For example,
573
+ # "Tokyo".
574
+ # Corresponds to the JSON property `displayName`
575
+ # @return [String]
576
+ attr_accessor :display_name
577
+
578
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
579
+ # region": "us-east1"`
580
+ # Corresponds to the JSON property `labels`
581
+ # @return [Hash<String,String>]
582
+ attr_accessor :labels
583
+
584
+ # The canonical id for this location. For example: `"us-east1"`.
585
+ # Corresponds to the JSON property `locationId`
586
+ # @return [String]
587
+ attr_accessor :location_id
588
+
589
+ # Service-specific metadata. For example the available capacity at the given
590
+ # location.
591
+ # Corresponds to the JSON property `metadata`
592
+ # @return [Hash<String,Object>]
593
+ attr_accessor :metadata
594
+
595
+ # Resource name for the location, which may vary between implementations. For
596
+ # example: `"projects/example-project/locations/us-east1"`
597
+ # Corresponds to the JSON property `name`
598
+ # @return [String]
599
+ attr_accessor :name
600
+
601
+ def initialize(**args)
602
+ update!(**args)
603
+ end
604
+
605
+ # Update properties of this object
606
+ def update!(**args)
607
+ @display_name = args[:display_name] if args.key?(:display_name)
608
+ @labels = args[:labels] if args.key?(:labels)
609
+ @location_id = args[:location_id] if args.key?(:location_id)
610
+ @metadata = args[:metadata] if args.key?(:metadata)
611
+ @name = args[:name] if args.key?(:name)
612
+ end
613
+ end
614
+
615
+ # Network configuration for a Data Fusion instance. These configurations are
616
+ # used for peering with the customer network. Configurations are optional when a
617
+ # public Data Fusion instance is to be created. However, providing these
618
+ # configurations allows several benefits, such as reduced network latency while
619
+ # accessing the customer resources from managed Data Fusion instance nodes, as
620
+ # well as access to the customer on-prem resources.
621
+ class NetworkConfig
622
+ include Google::Apis::Core::Hashable
623
+
624
+ # The IP range in CIDR notation to use for the managed Data Fusion instance
625
+ # nodes. This range must not overlap with any other ranges used in the Data
626
+ # Fusion instance network.
627
+ # Corresponds to the JSON property `ipAllocation`
628
+ # @return [String]
629
+ attr_accessor :ip_allocation
630
+
631
+ # Name of the network in the customer project with which the Tenant Project will
632
+ # be peered for executing pipelines. In case of shared VPC where the network
633
+ # resides in another host project the network should specified in the form of
634
+ # projects/`host-project-id`/global/networks/`network`
635
+ # Corresponds to the JSON property `network`
636
+ # @return [String]
637
+ attr_accessor :network
638
+
639
+ def initialize(**args)
640
+ update!(**args)
641
+ end
642
+
643
+ # Update properties of this object
644
+ def update!(**args)
645
+ @ip_allocation = args[:ip_allocation] if args.key?(:ip_allocation)
646
+ @network = args[:network] if args.key?(:network)
647
+ end
648
+ end
649
+
650
+ # This resource represents a long-running operation that is the result of a
651
+ # network API call.
652
+ class Operation
653
+ include Google::Apis::Core::Hashable
654
+
655
+ # If the value is `false`, it means the operation is still in progress. If `true`
656
+ # , the operation is completed, and either `error` or `response` is available.
657
+ # Corresponds to the JSON property `done`
658
+ # @return [Boolean]
659
+ attr_accessor :done
660
+ alias_method :done?, :done
661
+
662
+ # The `Status` type defines a logical error model that is suitable for different
663
+ # programming environments, including REST APIs and RPC APIs. It is used by [
664
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
665
+ # data: error code, error message, and error details. You can find out more
666
+ # about this error model and how to work with it in the [API Design Guide](https:
667
+ # //cloud.google.com/apis/design/errors).
668
+ # Corresponds to the JSON property `error`
669
+ # @return [Google::Apis::DatafusionV1beta1::Status]
670
+ attr_accessor :error
671
+
672
+ # Service-specific metadata associated with the operation. It typically contains
673
+ # progress information and common metadata such as create time. Some services
674
+ # might not provide such metadata. Any method that returns a long-running
675
+ # operation should document the metadata type, if any.
676
+ # Corresponds to the JSON property `metadata`
677
+ # @return [Hash<String,Object>]
678
+ attr_accessor :metadata
679
+
680
+ # The server-assigned name, which is only unique within the same service that
681
+ # originally returns it. If you use the default HTTP mapping, the `name` should
682
+ # be a resource name ending with `operations/`unique_id``.
683
+ # Corresponds to the JSON property `name`
684
+ # @return [String]
685
+ attr_accessor :name
686
+
687
+ # The normal response of the operation in case of success. If the original
688
+ # method returns no data on success, such as `Delete`, the response is `google.
689
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
690
+ # the response should be the resource. For other methods, the response should
691
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
692
+ # example, if the original method name is `TakeSnapshot()`, the inferred
693
+ # response type is `TakeSnapshotResponse`.
694
+ # Corresponds to the JSON property `response`
695
+ # @return [Hash<String,Object>]
696
+ attr_accessor :response
697
+
698
+ def initialize(**args)
699
+ update!(**args)
700
+ end
701
+
702
+ # Update properties of this object
703
+ def update!(**args)
704
+ @done = args[:done] if args.key?(:done)
705
+ @error = args[:error] if args.key?(:error)
706
+ @metadata = args[:metadata] if args.key?(:metadata)
707
+ @name = args[:name] if args.key?(:name)
708
+ @response = args[:response] if args.key?(:response)
709
+ end
710
+ end
711
+
712
+ # Represents the metadata of a long-running operation.
713
+ class OperationMetadata
714
+ include Google::Apis::Core::Hashable
715
+
716
+ # API version used to start the operation.
717
+ # Corresponds to the JSON property `apiVersion`
718
+ # @return [String]
719
+ attr_accessor :api_version
720
+
721
+ # The time the operation was created.
722
+ # Corresponds to the JSON property `createTime`
723
+ # @return [String]
724
+ attr_accessor :create_time
725
+
726
+ # The time the operation finished running.
727
+ # Corresponds to the JSON property `endTime`
728
+ # @return [String]
729
+ attr_accessor :end_time
730
+
731
+ # Identifies whether the user has requested cancellation of the operation.
732
+ # Operations that have successfully been cancelled have Operation.error value
733
+ # with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
734
+ # Corresponds to the JSON property `requestedCancellation`
735
+ # @return [Boolean]
736
+ attr_accessor :requested_cancellation
737
+ alias_method :requested_cancellation?, :requested_cancellation
738
+
739
+ # Human-readable status of the operation if any.
740
+ # Corresponds to the JSON property `statusDetail`
741
+ # @return [String]
742
+ attr_accessor :status_detail
743
+
744
+ # Server-defined resource path for the target of the operation.
745
+ # Corresponds to the JSON property `target`
746
+ # @return [String]
747
+ attr_accessor :target
748
+
749
+ # Name of the verb executed by the operation.
750
+ # Corresponds to the JSON property `verb`
751
+ # @return [String]
752
+ attr_accessor :verb
753
+
754
+ def initialize(**args)
755
+ update!(**args)
756
+ end
757
+
758
+ # Update properties of this object
759
+ def update!(**args)
760
+ @api_version = args[:api_version] if args.key?(:api_version)
761
+ @create_time = args[:create_time] if args.key?(:create_time)
762
+ @end_time = args[:end_time] if args.key?(:end_time)
763
+ @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
764
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
765
+ @target = args[:target] if args.key?(:target)
766
+ @verb = args[:verb] if args.key?(:verb)
767
+ end
768
+ end
769
+
770
+ # An Identity and Access Management (IAM) policy, which specifies access
771
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
772
+ # A `binding` binds one or more `members` to a single `role`. Members can be
773
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
774
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
775
+ # role or a user-created custom role. For some types of Google Cloud resources,
776
+ # a `binding` can also specify a `condition`, which is a logical expression that
777
+ # allows access to a resource only if the expression evaluates to `true`. A
778
+ # condition can add constraints based on attributes of the request, the resource,
779
+ # or both. To learn which resources support conditions in their IAM policies,
780
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
781
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
782
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
783
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
784
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
785
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
786
+ # title": "expirable access", "description": "Does not grant access after Sep
787
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
788
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
789
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
790
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
791
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
792
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
793
+ # description: Does not grant access after Sep 2020 expression: request.time <
794
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
795
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
796
+ # google.com/iam/docs/).
797
+ class Policy
798
+ include Google::Apis::Core::Hashable
799
+
800
+ # Specifies cloud audit logging configuration for this policy.
801
+ # Corresponds to the JSON property `auditConfigs`
802
+ # @return [Array<Google::Apis::DatafusionV1beta1::AuditConfig>]
803
+ attr_accessor :audit_configs
804
+
805
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
806
+ # condition` that determines how and when the `bindings` are applied. Each of
807
+ # the `bindings` must contain at least one member.
808
+ # Corresponds to the JSON property `bindings`
809
+ # @return [Array<Google::Apis::DatafusionV1beta1::Binding>]
810
+ attr_accessor :bindings
811
+
812
+ # `etag` is used for optimistic concurrency control as a way to help prevent
813
+ # simultaneous updates of a policy from overwriting each other. It is strongly
814
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
815
+ # to perform policy updates in order to avoid race conditions: An `etag` is
816
+ # returned in the response to `getIamPolicy`, and systems are expected to put
817
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
818
+ # applied to the same version of the policy. **Important:** If you use IAM
819
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
820
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
821
+ # with a version `1` policy, and all of the conditions in the version `3` policy
822
+ # are lost.
823
+ # Corresponds to the JSON property `etag`
824
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
825
+ # @return [String]
826
+ attr_accessor :etag
827
+
828
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
829
+ # Requests that specify an invalid value are rejected. Any operation that
830
+ # affects conditional role bindings must specify version `3`. This requirement
831
+ # applies to the following operations: * Getting a policy that includes a
832
+ # conditional role binding * Adding a conditional role binding to a policy *
833
+ # Changing a conditional role binding in a policy * Removing any role binding,
834
+ # with or without a condition, from a policy that includes conditions **
835
+ # Important:** If you use IAM Conditions, you must include the `etag` field
836
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
837
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
838
+ # conditions in the version `3` policy are lost. If a policy does not include
839
+ # any conditions, operations on that policy may specify any valid version or
840
+ # leave the field unset. To learn which resources support conditions in their
841
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
842
+ # conditions/resource-policies).
843
+ # Corresponds to the JSON property `version`
844
+ # @return [Fixnum]
845
+ attr_accessor :version
846
+
847
+ def initialize(**args)
848
+ update!(**args)
849
+ end
850
+
851
+ # Update properties of this object
852
+ def update!(**args)
853
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
854
+ @bindings = args[:bindings] if args.key?(:bindings)
855
+ @etag = args[:etag] if args.key?(:etag)
856
+ @version = args[:version] if args.key?(:version)
857
+ end
858
+ end
859
+
860
+ # Request message for restarting a Data Fusion instance.
861
+ class RestartInstanceRequest
862
+ include Google::Apis::Core::Hashable
863
+
864
+ def initialize(**args)
865
+ update!(**args)
866
+ end
867
+
868
+ # Update properties of this object
869
+ def update!(**args)
870
+ end
871
+ end
872
+
873
+ # Request message for `SetIamPolicy` method.
874
+ class SetIamPolicyRequest
875
+ include Google::Apis::Core::Hashable
876
+
877
+ # An Identity and Access Management (IAM) policy, which specifies access
878
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
879
+ # A `binding` binds one or more `members` to a single `role`. Members can be
880
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
881
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
882
+ # role or a user-created custom role. For some types of Google Cloud resources,
883
+ # a `binding` can also specify a `condition`, which is a logical expression that
884
+ # allows access to a resource only if the expression evaluates to `true`. A
885
+ # condition can add constraints based on attributes of the request, the resource,
886
+ # or both. To learn which resources support conditions in their IAM policies,
887
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
888
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
889
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
890
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
891
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
892
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
893
+ # title": "expirable access", "description": "Does not grant access after Sep
894
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
895
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
896
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
897
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
898
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
899
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
900
+ # description: Does not grant access after Sep 2020 expression: request.time <
901
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
902
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
903
+ # google.com/iam/docs/).
904
+ # Corresponds to the JSON property `policy`
905
+ # @return [Google::Apis::DatafusionV1beta1::Policy]
906
+ attr_accessor :policy
907
+
908
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
909
+ # the fields in the mask will be modified. If no mask is provided, the following
910
+ # default mask is used: `paths: "bindings, etag"`
911
+ # Corresponds to the JSON property `updateMask`
912
+ # @return [String]
913
+ attr_accessor :update_mask
914
+
915
+ def initialize(**args)
916
+ update!(**args)
917
+ end
918
+
919
+ # Update properties of this object
920
+ def update!(**args)
921
+ @policy = args[:policy] if args.key?(:policy)
922
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
923
+ end
924
+ end
925
+
926
+ # The `Status` type defines a logical error model that is suitable for different
927
+ # programming environments, including REST APIs and RPC APIs. It is used by [
928
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
929
+ # data: error code, error message, and error details. You can find out more
930
+ # about this error model and how to work with it in the [API Design Guide](https:
931
+ # //cloud.google.com/apis/design/errors).
932
+ class Status
933
+ include Google::Apis::Core::Hashable
934
+
935
+ # The status code, which should be an enum value of google.rpc.Code.
936
+ # Corresponds to the JSON property `code`
937
+ # @return [Fixnum]
938
+ attr_accessor :code
939
+
940
+ # A list of messages that carry the error details. There is a common set of
941
+ # message types for APIs to use.
942
+ # Corresponds to the JSON property `details`
943
+ # @return [Array<Hash<String,Object>>]
944
+ attr_accessor :details
945
+
946
+ # A developer-facing error message, which should be in English. Any user-facing
947
+ # error message should be localized and sent in the google.rpc.Status.details
948
+ # field, or localized by the client.
949
+ # Corresponds to the JSON property `message`
950
+ # @return [String]
951
+ attr_accessor :message
952
+
953
+ def initialize(**args)
954
+ update!(**args)
955
+ end
956
+
957
+ # Update properties of this object
958
+ def update!(**args)
959
+ @code = args[:code] if args.key?(:code)
960
+ @details = args[:details] if args.key?(:details)
961
+ @message = args[:message] if args.key?(:message)
962
+ end
963
+ end
964
+
965
+ # Request message for `TestIamPermissions` method.
966
+ class TestIamPermissionsRequest
967
+ include Google::Apis::Core::Hashable
968
+
969
+ # The set of permissions to check for the `resource`. Permissions with wildcards
970
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
971
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
972
+ # Corresponds to the JSON property `permissions`
973
+ # @return [Array<String>]
974
+ attr_accessor :permissions
975
+
976
+ def initialize(**args)
977
+ update!(**args)
978
+ end
979
+
980
+ # Update properties of this object
981
+ def update!(**args)
982
+ @permissions = args[:permissions] if args.key?(:permissions)
983
+ end
984
+ end
985
+
986
+ # Response message for `TestIamPermissions` method.
987
+ class TestIamPermissionsResponse
988
+ include Google::Apis::Core::Hashable
989
+
990
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
991
+ # Corresponds to the JSON property `permissions`
992
+ # @return [Array<String>]
993
+ attr_accessor :permissions
994
+
995
+ def initialize(**args)
996
+ update!(**args)
997
+ end
998
+
999
+ # Update properties of this object
1000
+ def update!(**args)
1001
+ @permissions = args[:permissions] if args.key?(:permissions)
1002
+ end
1003
+ end
1004
+
1005
+ # Request message for upgrading a Data Fusion instance. To change the instance
1006
+ # properties, instance update should be used.
1007
+ class UpgradeInstanceRequest
1008
+ include Google::Apis::Core::Hashable
1009
+
1010
+ def initialize(**args)
1011
+ update!(**args)
1012
+ end
1013
+
1014
+ # Update properties of this object
1015
+ def update!(**args)
1016
+ end
1017
+ end
1018
+
1019
+ # The Data Fusion version.
1020
+ class Version
1021
+ include Google::Apis::Core::Hashable
1022
+
1023
+ # Represents a list of available feature names for a given version.
1024
+ # Corresponds to the JSON property `availableFeatures`
1025
+ # @return [Array<String>]
1026
+ attr_accessor :available_features
1027
+
1028
+ # Whether this is currently the default version for Cloud Data Fusion
1029
+ # Corresponds to the JSON property `defaultVersion`
1030
+ # @return [Boolean]
1031
+ attr_accessor :default_version
1032
+ alias_method :default_version?, :default_version
1033
+
1034
+ # The version number of the Data Fusion instance, such as '6.0.1.0'.
1035
+ # Corresponds to the JSON property `versionNumber`
1036
+ # @return [String]
1037
+ attr_accessor :version_number
1038
+
1039
+ def initialize(**args)
1040
+ update!(**args)
1041
+ end
1042
+
1043
+ # Update properties of this object
1044
+ def update!(**args)
1045
+ @available_features = args[:available_features] if args.key?(:available_features)
1046
+ @default_version = args[:default_version] if args.key?(:default_version)
1047
+ @version_number = args[:version_number] if args.key?(:version_number)
1048
+ end
1049
+ end
1050
+ end
1051
+ end
1052
+ end