google-apis-datafusion_v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-datafusion_v1.rb +15 -0
- data/lib/google/apis/datafusion_v1.rb +42 -0
- data/lib/google/apis/datafusion_v1/classes.rb +1040 -0
- data/lib/google/apis/datafusion_v1/gem_version.rb +28 -0
- data/lib/google/apis/datafusion_v1/representations.rb +395 -0
- data/lib/google/apis/datafusion_v1/service.rb +669 -0
- metadata +76 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ccf7523d00da7864c5468f7a097e2e6911454c5b7dcb5f7a9d2dc37effe6d6cc
|
4
|
+
data.tar.gz: 6a18509805e09dba11449da97b57e3e019f0471eb3aa71d78ada8eb6a1df3104
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 557ff75c94d5638445f5eca8f505029370eea2ea90b8959000dbe17a2101259c8a643f59389af8e693d8c13a568f0efb8a52436d7e3c27346dcf8ce34c272bfc
|
7
|
+
data.tar.gz: cdedd787ddc0dd526b2ff7c20fa7571cceac7937ce8a7173ab27147e190e0f535780a3df6a76efdbf4a2e2f72e86abe9bfd7ee255d5b337d5c3757bf42e84341
|
data/.yardopts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
--hide-void-return
|
2
|
+
--no-private
|
3
|
+
--verbose
|
4
|
+
--title=google-apis-datafusion_v1
|
5
|
+
--markup-provider=redcarpet
|
6
|
+
--markup=markdown
|
7
|
+
--main OVERVIEW.md
|
8
|
+
lib/google/apis/datafusion_v1/*.rb
|
9
|
+
lib/google/apis/datafusion_v1.rb
|
10
|
+
-
|
11
|
+
OVERVIEW.md
|
12
|
+
CHANGELOG.md
|
13
|
+
LICENSE.md
|
data/CHANGELOG.md
ADDED
data/LICENSE.md
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/OVERVIEW.md
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
# Simple REST client for version V1 of the Cloud Data Fusion API
|
2
|
+
|
3
|
+
This is a simple client library for version V1 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_v1', '~> 0.1'
|
28
|
+
```
|
29
|
+
|
30
|
+
And then execute:
|
31
|
+
|
32
|
+
```
|
33
|
+
$ bundle
|
34
|
+
```
|
35
|
+
|
36
|
+
Or install it yourself as:
|
37
|
+
|
38
|
+
```
|
39
|
+
$ gem install google-apis-datafusion_v1
|
40
|
+
```
|
41
|
+
|
42
|
+
### Creating a client object
|
43
|
+
|
44
|
+
Once the gem is installed, you can load the client code and instantiate a client.
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
# Load the client
|
48
|
+
require "google/apis/datafusion_v1"
|
49
|
+
|
50
|
+
# Create a client object
|
51
|
+
client = Google::Apis::DatafusionV1::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::DatafusionV1::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_v1`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
|
75
|
+
|
76
|
+
Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
|
77
|
+
|
78
|
+
Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
|
79
|
+
|
80
|
+
**For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
|
81
|
+
|
82
|
+
The [product documentation](https://cloud.google.com/data-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_v1"
|
@@ -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_v1/service.rb'
|
16
|
+
require 'google/apis/datafusion_v1/classes.rb'
|
17
|
+
require 'google/apis/datafusion_v1/representations.rb'
|
18
|
+
require 'google/apis/datafusion_v1/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 DatafusionV1
|
34
|
+
# Version of the Cloud Data Fusion API this client connects to.
|
35
|
+
# This is NOT the gem version.
|
36
|
+
VERSION = 'V1'
|
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,1040 @@
|
|
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 DatafusionV1
|
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::DatafusionV1::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::DatafusionV1::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::DatafusionV1::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::DatafusionV1::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 GCE VMs. The character '=' is not allowed to be used within
|
339
|
+
# 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::DatafusionV1::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 the Data Fusion. Only specifiable in Update.
|
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. Only
|
422
|
+
# DEVELOPER instances use this field.
|
423
|
+
# Corresponds to the JSON property `zone`
|
424
|
+
# @return [String]
|
425
|
+
attr_accessor :zone
|
426
|
+
|
427
|
+
def initialize(**args)
|
428
|
+
update!(**args)
|
429
|
+
end
|
430
|
+
|
431
|
+
# Update properties of this object
|
432
|
+
def update!(**args)
|
433
|
+
@accelerators = args[:accelerators] if args.key?(:accelerators)
|
434
|
+
@api_endpoint = args[:api_endpoint] if args.key?(:api_endpoint)
|
435
|
+
@available_version = args[:available_version] if args.key?(:available_version)
|
436
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
437
|
+
@dataproc_service_account = args[:dataproc_service_account] if args.key?(:dataproc_service_account)
|
438
|
+
@description = args[:description] if args.key?(:description)
|
439
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
440
|
+
@enable_stackdriver_logging = args[:enable_stackdriver_logging] if args.key?(:enable_stackdriver_logging)
|
441
|
+
@enable_stackdriver_monitoring = args[:enable_stackdriver_monitoring] if args.key?(:enable_stackdriver_monitoring)
|
442
|
+
@gcs_bucket = args[:gcs_bucket] if args.key?(:gcs_bucket)
|
443
|
+
@labels = args[:labels] if args.key?(:labels)
|
444
|
+
@name = args[:name] if args.key?(:name)
|
445
|
+
@network_config = args[:network_config] if args.key?(:network_config)
|
446
|
+
@options = args[:options] if args.key?(:options)
|
447
|
+
@p4_service_account = args[:p4_service_account] if args.key?(:p4_service_account)
|
448
|
+
@private_instance = args[:private_instance] if args.key?(:private_instance)
|
449
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
450
|
+
@service_endpoint = args[:service_endpoint] if args.key?(:service_endpoint)
|
451
|
+
@state = args[:state] if args.key?(:state)
|
452
|
+
@state_message = args[:state_message] if args.key?(:state_message)
|
453
|
+
@tenant_project_id = args[:tenant_project_id] if args.key?(:tenant_project_id)
|
454
|
+
@type = args[:type] if args.key?(:type)
|
455
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
456
|
+
@version = args[:version] if args.key?(:version)
|
457
|
+
@zone = args[:zone] if args.key?(:zone)
|
458
|
+
end
|
459
|
+
end
|
460
|
+
|
461
|
+
# Response message for the list available versions request.
|
462
|
+
class ListAvailableVersionsResponse
|
463
|
+
include Google::Apis::Core::Hashable
|
464
|
+
|
465
|
+
# Represents a list of versions that are supported.
|
466
|
+
# Corresponds to the JSON property `availableVersions`
|
467
|
+
# @return [Array<Google::Apis::DatafusionV1::Version>]
|
468
|
+
attr_accessor :available_versions
|
469
|
+
|
470
|
+
# Token to retrieve the next page of results or empty if there are no more
|
471
|
+
# results in the list.
|
472
|
+
# Corresponds to the JSON property `nextPageToken`
|
473
|
+
# @return [String]
|
474
|
+
attr_accessor :next_page_token
|
475
|
+
|
476
|
+
def initialize(**args)
|
477
|
+
update!(**args)
|
478
|
+
end
|
479
|
+
|
480
|
+
# Update properties of this object
|
481
|
+
def update!(**args)
|
482
|
+
@available_versions = args[:available_versions] if args.key?(:available_versions)
|
483
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
487
|
+
# Response message for the list instance request.
|
488
|
+
class ListInstancesResponse
|
489
|
+
include Google::Apis::Core::Hashable
|
490
|
+
|
491
|
+
# Represents a list of Data Fusion instances.
|
492
|
+
# Corresponds to the JSON property `instances`
|
493
|
+
# @return [Array<Google::Apis::DatafusionV1::Instance>]
|
494
|
+
attr_accessor :instances
|
495
|
+
|
496
|
+
# Token to retrieve the next page of results or empty if there are no more
|
497
|
+
# results in the list.
|
498
|
+
# Corresponds to the JSON property `nextPageToken`
|
499
|
+
# @return [String]
|
500
|
+
attr_accessor :next_page_token
|
501
|
+
|
502
|
+
# Locations that could not be reached.
|
503
|
+
# Corresponds to the JSON property `unreachable`
|
504
|
+
# @return [Array<String>]
|
505
|
+
attr_accessor :unreachable
|
506
|
+
|
507
|
+
def initialize(**args)
|
508
|
+
update!(**args)
|
509
|
+
end
|
510
|
+
|
511
|
+
# Update properties of this object
|
512
|
+
def update!(**args)
|
513
|
+
@instances = args[:instances] if args.key?(:instances)
|
514
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
515
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
516
|
+
end
|
517
|
+
end
|
518
|
+
|
519
|
+
# The response message for Locations.ListLocations.
|
520
|
+
class ListLocationsResponse
|
521
|
+
include Google::Apis::Core::Hashable
|
522
|
+
|
523
|
+
# A list of locations that matches the specified filter in the request.
|
524
|
+
# Corresponds to the JSON property `locations`
|
525
|
+
# @return [Array<Google::Apis::DatafusionV1::Location>]
|
526
|
+
attr_accessor :locations
|
527
|
+
|
528
|
+
# The standard List next-page token.
|
529
|
+
# Corresponds to the JSON property `nextPageToken`
|
530
|
+
# @return [String]
|
531
|
+
attr_accessor :next_page_token
|
532
|
+
|
533
|
+
def initialize(**args)
|
534
|
+
update!(**args)
|
535
|
+
end
|
536
|
+
|
537
|
+
# Update properties of this object
|
538
|
+
def update!(**args)
|
539
|
+
@locations = args[:locations] if args.key?(:locations)
|
540
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
541
|
+
end
|
542
|
+
end
|
543
|
+
|
544
|
+
# The response message for Operations.ListOperations.
|
545
|
+
class ListOperationsResponse
|
546
|
+
include Google::Apis::Core::Hashable
|
547
|
+
|
548
|
+
# The standard List next-page token.
|
549
|
+
# Corresponds to the JSON property `nextPageToken`
|
550
|
+
# @return [String]
|
551
|
+
attr_accessor :next_page_token
|
552
|
+
|
553
|
+
# A list of operations that matches the specified filter in the request.
|
554
|
+
# Corresponds to the JSON property `operations`
|
555
|
+
# @return [Array<Google::Apis::DatafusionV1::Operation>]
|
556
|
+
attr_accessor :operations
|
557
|
+
|
558
|
+
def initialize(**args)
|
559
|
+
update!(**args)
|
560
|
+
end
|
561
|
+
|
562
|
+
# Update properties of this object
|
563
|
+
def update!(**args)
|
564
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
565
|
+
@operations = args[:operations] if args.key?(:operations)
|
566
|
+
end
|
567
|
+
end
|
568
|
+
|
569
|
+
# A resource that represents Google Cloud Platform location.
|
570
|
+
class Location
|
571
|
+
include Google::Apis::Core::Hashable
|
572
|
+
|
573
|
+
# The friendly name for this location, typically a nearby city name. For example,
|
574
|
+
# "Tokyo".
|
575
|
+
# Corresponds to the JSON property `displayName`
|
576
|
+
# @return [String]
|
577
|
+
attr_accessor :display_name
|
578
|
+
|
579
|
+
# Cross-service attributes for the location. For example `"cloud.googleapis.com/
|
580
|
+
# region": "us-east1"`
|
581
|
+
# Corresponds to the JSON property `labels`
|
582
|
+
# @return [Hash<String,String>]
|
583
|
+
attr_accessor :labels
|
584
|
+
|
585
|
+
# The canonical id for this location. For example: `"us-east1"`.
|
586
|
+
# Corresponds to the JSON property `locationId`
|
587
|
+
# @return [String]
|
588
|
+
attr_accessor :location_id
|
589
|
+
|
590
|
+
# Service-specific metadata. For example the available capacity at the given
|
591
|
+
# location.
|
592
|
+
# Corresponds to the JSON property `metadata`
|
593
|
+
# @return [Hash<String,Object>]
|
594
|
+
attr_accessor :metadata
|
595
|
+
|
596
|
+
# Resource name for the location, which may vary between implementations. For
|
597
|
+
# example: `"projects/example-project/locations/us-east1"`
|
598
|
+
# Corresponds to the JSON property `name`
|
599
|
+
# @return [String]
|
600
|
+
attr_accessor :name
|
601
|
+
|
602
|
+
def initialize(**args)
|
603
|
+
update!(**args)
|
604
|
+
end
|
605
|
+
|
606
|
+
# Update properties of this object
|
607
|
+
def update!(**args)
|
608
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
609
|
+
@labels = args[:labels] if args.key?(:labels)
|
610
|
+
@location_id = args[:location_id] if args.key?(:location_id)
|
611
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
612
|
+
@name = args[:name] if args.key?(:name)
|
613
|
+
end
|
614
|
+
end
|
615
|
+
|
616
|
+
# Network configuration for a Data Fusion instance. These configurations are
|
617
|
+
# used for peering with the customer network. Configurations are optional when a
|
618
|
+
# public Data Fusion instance is to be created. However, providing these
|
619
|
+
# configurations allows several benefits, such as reduced network latency while
|
620
|
+
# accessing the customer resources from managed Data Fusion instance nodes, as
|
621
|
+
# well as access to the customer on-prem resources.
|
622
|
+
class NetworkConfig
|
623
|
+
include Google::Apis::Core::Hashable
|
624
|
+
|
625
|
+
# The IP range in CIDR notation to use for the managed Data Fusion instance
|
626
|
+
# nodes. This range must not overlap with any other ranges used in the customer
|
627
|
+
# network.
|
628
|
+
# Corresponds to the JSON property `ipAllocation`
|
629
|
+
# @return [String]
|
630
|
+
attr_accessor :ip_allocation
|
631
|
+
|
632
|
+
# Name of the network in the customer project with which the Tenant Project will
|
633
|
+
# be peered for executing pipelines. In case of shared VPC where the network
|
634
|
+
# resides in another host project the network should specified in the form of
|
635
|
+
# projects/`host-project-id`/global/networks/`network`
|
636
|
+
# Corresponds to the JSON property `network`
|
637
|
+
# @return [String]
|
638
|
+
attr_accessor :network
|
639
|
+
|
640
|
+
def initialize(**args)
|
641
|
+
update!(**args)
|
642
|
+
end
|
643
|
+
|
644
|
+
# Update properties of this object
|
645
|
+
def update!(**args)
|
646
|
+
@ip_allocation = args[:ip_allocation] if args.key?(:ip_allocation)
|
647
|
+
@network = args[:network] if args.key?(:network)
|
648
|
+
end
|
649
|
+
end
|
650
|
+
|
651
|
+
# This resource represents a long-running operation that is the result of a
|
652
|
+
# network API call.
|
653
|
+
class Operation
|
654
|
+
include Google::Apis::Core::Hashable
|
655
|
+
|
656
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
657
|
+
# , the operation is completed, and either `error` or `response` is available.
|
658
|
+
# Corresponds to the JSON property `done`
|
659
|
+
# @return [Boolean]
|
660
|
+
attr_accessor :done
|
661
|
+
alias_method :done?, :done
|
662
|
+
|
663
|
+
# The `Status` type defines a logical error model that is suitable for different
|
664
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
665
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
666
|
+
# data: error code, error message, and error details. You can find out more
|
667
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
668
|
+
# //cloud.google.com/apis/design/errors).
|
669
|
+
# Corresponds to the JSON property `error`
|
670
|
+
# @return [Google::Apis::DatafusionV1::Status]
|
671
|
+
attr_accessor :error
|
672
|
+
|
673
|
+
# Service-specific metadata associated with the operation. It typically contains
|
674
|
+
# progress information and common metadata such as create time. Some services
|
675
|
+
# might not provide such metadata. Any method that returns a long-running
|
676
|
+
# operation should document the metadata type, if any.
|
677
|
+
# Corresponds to the JSON property `metadata`
|
678
|
+
# @return [Hash<String,Object>]
|
679
|
+
attr_accessor :metadata
|
680
|
+
|
681
|
+
# The server-assigned name, which is only unique within the same service that
|
682
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
683
|
+
# be a resource name ending with `operations/`unique_id``.
|
684
|
+
# Corresponds to the JSON property `name`
|
685
|
+
# @return [String]
|
686
|
+
attr_accessor :name
|
687
|
+
|
688
|
+
# The normal response of the operation in case of success. If the original
|
689
|
+
# method returns no data on success, such as `Delete`, the response is `google.
|
690
|
+
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
691
|
+
# the response should be the resource. For other methods, the response should
|
692
|
+
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
693
|
+
# example, if the original method name is `TakeSnapshot()`, the inferred
|
694
|
+
# response type is `TakeSnapshotResponse`.
|
695
|
+
# Corresponds to the JSON property `response`
|
696
|
+
# @return [Hash<String,Object>]
|
697
|
+
attr_accessor :response
|
698
|
+
|
699
|
+
def initialize(**args)
|
700
|
+
update!(**args)
|
701
|
+
end
|
702
|
+
|
703
|
+
# Update properties of this object
|
704
|
+
def update!(**args)
|
705
|
+
@done = args[:done] if args.key?(:done)
|
706
|
+
@error = args[:error] if args.key?(:error)
|
707
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
708
|
+
@name = args[:name] if args.key?(:name)
|
709
|
+
@response = args[:response] if args.key?(:response)
|
710
|
+
end
|
711
|
+
end
|
712
|
+
|
713
|
+
# Represents the metadata of a long-running operation.
|
714
|
+
class OperationMetadata
|
715
|
+
include Google::Apis::Core::Hashable
|
716
|
+
|
717
|
+
# API version used to start the operation.
|
718
|
+
# Corresponds to the JSON property `apiVersion`
|
719
|
+
# @return [String]
|
720
|
+
attr_accessor :api_version
|
721
|
+
|
722
|
+
# The time the operation was created.
|
723
|
+
# Corresponds to the JSON property `createTime`
|
724
|
+
# @return [String]
|
725
|
+
attr_accessor :create_time
|
726
|
+
|
727
|
+
# The time the operation finished running.
|
728
|
+
# Corresponds to the JSON property `endTime`
|
729
|
+
# @return [String]
|
730
|
+
attr_accessor :end_time
|
731
|
+
|
732
|
+
# Identifies whether the user has requested cancellation of the operation.
|
733
|
+
# Operations that have successfully been cancelled have Operation.error value
|
734
|
+
# with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
|
735
|
+
# Corresponds to the JSON property `requestedCancellation`
|
736
|
+
# @return [Boolean]
|
737
|
+
attr_accessor :requested_cancellation
|
738
|
+
alias_method :requested_cancellation?, :requested_cancellation
|
739
|
+
|
740
|
+
# Human-readable status of the operation if any.
|
741
|
+
# Corresponds to the JSON property `statusDetail`
|
742
|
+
# @return [String]
|
743
|
+
attr_accessor :status_detail
|
744
|
+
|
745
|
+
# Server-defined resource path for the target of the operation.
|
746
|
+
# Corresponds to the JSON property `target`
|
747
|
+
# @return [String]
|
748
|
+
attr_accessor :target
|
749
|
+
|
750
|
+
# Name of the verb executed by the operation.
|
751
|
+
# Corresponds to the JSON property `verb`
|
752
|
+
# @return [String]
|
753
|
+
attr_accessor :verb
|
754
|
+
|
755
|
+
def initialize(**args)
|
756
|
+
update!(**args)
|
757
|
+
end
|
758
|
+
|
759
|
+
# Update properties of this object
|
760
|
+
def update!(**args)
|
761
|
+
@api_version = args[:api_version] if args.key?(:api_version)
|
762
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
763
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
764
|
+
@requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
|
765
|
+
@status_detail = args[:status_detail] if args.key?(:status_detail)
|
766
|
+
@target = args[:target] if args.key?(:target)
|
767
|
+
@verb = args[:verb] if args.key?(:verb)
|
768
|
+
end
|
769
|
+
end
|
770
|
+
|
771
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
772
|
+
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
773
|
+
# A `binding` binds one or more `members` to a single `role`. Members can be
|
774
|
+
# user accounts, service accounts, Google groups, and domains (such as G Suite).
|
775
|
+
# A `role` is a named list of permissions; each `role` can be an IAM predefined
|
776
|
+
# role or a user-created custom role. For some types of Google Cloud resources,
|
777
|
+
# a `binding` can also specify a `condition`, which is a logical expression that
|
778
|
+
# allows access to a resource only if the expression evaluates to `true`. A
|
779
|
+
# condition can add constraints based on attributes of the request, the resource,
|
780
|
+
# or both. To learn which resources support conditions in their IAM policies,
|
781
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
782
|
+
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
|
783
|
+
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
784
|
+
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
785
|
+
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
786
|
+
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
787
|
+
# title": "expirable access", "description": "Does not grant access after Sep
|
788
|
+
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
789
|
+
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
|
790
|
+
# members: - user:mike@example.com - group:admins@example.com - domain:google.
|
791
|
+
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
792
|
+
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
793
|
+
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
794
|
+
# description: Does not grant access after Sep 2020 expression: request.time <
|
795
|
+
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
796
|
+
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
797
|
+
# google.com/iam/docs/).
|
798
|
+
class Policy
|
799
|
+
include Google::Apis::Core::Hashable
|
800
|
+
|
801
|
+
# Specifies cloud audit logging configuration for this policy.
|
802
|
+
# Corresponds to the JSON property `auditConfigs`
|
803
|
+
# @return [Array<Google::Apis::DatafusionV1::AuditConfig>]
|
804
|
+
attr_accessor :audit_configs
|
805
|
+
|
806
|
+
# Associates a list of `members` to a `role`. Optionally, may specify a `
|
807
|
+
# condition` that determines how and when the `bindings` are applied. Each of
|
808
|
+
# the `bindings` must contain at least one member.
|
809
|
+
# Corresponds to the JSON property `bindings`
|
810
|
+
# @return [Array<Google::Apis::DatafusionV1::Binding>]
|
811
|
+
attr_accessor :bindings
|
812
|
+
|
813
|
+
# `etag` is used for optimistic concurrency control as a way to help prevent
|
814
|
+
# simultaneous updates of a policy from overwriting each other. It is strongly
|
815
|
+
# suggested that systems make use of the `etag` in the read-modify-write cycle
|
816
|
+
# to perform policy updates in order to avoid race conditions: An `etag` is
|
817
|
+
# returned in the response to `getIamPolicy`, and systems are expected to put
|
818
|
+
# that etag in the request to `setIamPolicy` to ensure that their change will be
|
819
|
+
# applied to the same version of the policy. **Important:** If you use IAM
|
820
|
+
# Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
|
821
|
+
# If you omit this field, then IAM allows you to overwrite a version `3` policy
|
822
|
+
# with a version `1` policy, and all of the conditions in the version `3` policy
|
823
|
+
# are lost.
|
824
|
+
# Corresponds to the JSON property `etag`
|
825
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
826
|
+
# @return [String]
|
827
|
+
attr_accessor :etag
|
828
|
+
|
829
|
+
# Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
|
830
|
+
# Requests that specify an invalid value are rejected. Any operation that
|
831
|
+
# affects conditional role bindings must specify version `3`. This requirement
|
832
|
+
# applies to the following operations: * Getting a policy that includes a
|
833
|
+
# conditional role binding * Adding a conditional role binding to a policy *
|
834
|
+
# Changing a conditional role binding in a policy * Removing any role binding,
|
835
|
+
# with or without a condition, from a policy that includes conditions **
|
836
|
+
# Important:** If you use IAM Conditions, you must include the `etag` field
|
837
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
|
838
|
+
# to overwrite a version `3` policy with a version `1` policy, and all of the
|
839
|
+
# conditions in the version `3` policy are lost. If a policy does not include
|
840
|
+
# any conditions, operations on that policy may specify any valid version or
|
841
|
+
# leave the field unset. To learn which resources support conditions in their
|
842
|
+
# IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
|
843
|
+
# conditions/resource-policies).
|
844
|
+
# Corresponds to the JSON property `version`
|
845
|
+
# @return [Fixnum]
|
846
|
+
attr_accessor :version
|
847
|
+
|
848
|
+
def initialize(**args)
|
849
|
+
update!(**args)
|
850
|
+
end
|
851
|
+
|
852
|
+
# Update properties of this object
|
853
|
+
def update!(**args)
|
854
|
+
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
855
|
+
@bindings = args[:bindings] if args.key?(:bindings)
|
856
|
+
@etag = args[:etag] if args.key?(:etag)
|
857
|
+
@version = args[:version] if args.key?(:version)
|
858
|
+
end
|
859
|
+
end
|
860
|
+
|
861
|
+
# Request message for restarting a Data Fusion instance.
|
862
|
+
class RestartInstanceRequest
|
863
|
+
include Google::Apis::Core::Hashable
|
864
|
+
|
865
|
+
def initialize(**args)
|
866
|
+
update!(**args)
|
867
|
+
end
|
868
|
+
|
869
|
+
# Update properties of this object
|
870
|
+
def update!(**args)
|
871
|
+
end
|
872
|
+
end
|
873
|
+
|
874
|
+
# Request message for `SetIamPolicy` method.
|
875
|
+
class SetIamPolicyRequest
|
876
|
+
include Google::Apis::Core::Hashable
|
877
|
+
|
878
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
879
|
+
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
880
|
+
# A `binding` binds one or more `members` to a single `role`. Members can be
|
881
|
+
# user accounts, service accounts, Google groups, and domains (such as G Suite).
|
882
|
+
# A `role` is a named list of permissions; each `role` can be an IAM predefined
|
883
|
+
# role or a user-created custom role. For some types of Google Cloud resources,
|
884
|
+
# a `binding` can also specify a `condition`, which is a logical expression that
|
885
|
+
# allows access to a resource only if the expression evaluates to `true`. A
|
886
|
+
# condition can add constraints based on attributes of the request, the resource,
|
887
|
+
# or both. To learn which resources support conditions in their IAM policies,
|
888
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
889
|
+
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
|
890
|
+
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
891
|
+
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
892
|
+
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
893
|
+
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
894
|
+
# title": "expirable access", "description": "Does not grant access after Sep
|
895
|
+
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
896
|
+
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
|
897
|
+
# members: - user:mike@example.com - group:admins@example.com - domain:google.
|
898
|
+
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
899
|
+
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
900
|
+
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
901
|
+
# description: Does not grant access after Sep 2020 expression: request.time <
|
902
|
+
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
903
|
+
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
904
|
+
# google.com/iam/docs/).
|
905
|
+
# Corresponds to the JSON property `policy`
|
906
|
+
# @return [Google::Apis::DatafusionV1::Policy]
|
907
|
+
attr_accessor :policy
|
908
|
+
|
909
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
910
|
+
# the fields in the mask will be modified. If no mask is provided, the following
|
911
|
+
# default mask is used: `paths: "bindings, etag"`
|
912
|
+
# Corresponds to the JSON property `updateMask`
|
913
|
+
# @return [String]
|
914
|
+
attr_accessor :update_mask
|
915
|
+
|
916
|
+
def initialize(**args)
|
917
|
+
update!(**args)
|
918
|
+
end
|
919
|
+
|
920
|
+
# Update properties of this object
|
921
|
+
def update!(**args)
|
922
|
+
@policy = args[:policy] if args.key?(:policy)
|
923
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
924
|
+
end
|
925
|
+
end
|
926
|
+
|
927
|
+
# The `Status` type defines a logical error model that is suitable for different
|
928
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
929
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
930
|
+
# data: error code, error message, and error details. You can find out more
|
931
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
932
|
+
# //cloud.google.com/apis/design/errors).
|
933
|
+
class Status
|
934
|
+
include Google::Apis::Core::Hashable
|
935
|
+
|
936
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
937
|
+
# Corresponds to the JSON property `code`
|
938
|
+
# @return [Fixnum]
|
939
|
+
attr_accessor :code
|
940
|
+
|
941
|
+
# A list of messages that carry the error details. There is a common set of
|
942
|
+
# message types for APIs to use.
|
943
|
+
# Corresponds to the JSON property `details`
|
944
|
+
# @return [Array<Hash<String,Object>>]
|
945
|
+
attr_accessor :details
|
946
|
+
|
947
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
948
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
949
|
+
# field, or localized by the client.
|
950
|
+
# Corresponds to the JSON property `message`
|
951
|
+
# @return [String]
|
952
|
+
attr_accessor :message
|
953
|
+
|
954
|
+
def initialize(**args)
|
955
|
+
update!(**args)
|
956
|
+
end
|
957
|
+
|
958
|
+
# Update properties of this object
|
959
|
+
def update!(**args)
|
960
|
+
@code = args[:code] if args.key?(:code)
|
961
|
+
@details = args[:details] if args.key?(:details)
|
962
|
+
@message = args[:message] if args.key?(:message)
|
963
|
+
end
|
964
|
+
end
|
965
|
+
|
966
|
+
# Request message for `TestIamPermissions` method.
|
967
|
+
class TestIamPermissionsRequest
|
968
|
+
include Google::Apis::Core::Hashable
|
969
|
+
|
970
|
+
# The set of permissions to check for the `resource`. Permissions with wildcards
|
971
|
+
# (such as '*' or 'storage.*') are not allowed. For more information see [IAM
|
972
|
+
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
973
|
+
# Corresponds to the JSON property `permissions`
|
974
|
+
# @return [Array<String>]
|
975
|
+
attr_accessor :permissions
|
976
|
+
|
977
|
+
def initialize(**args)
|
978
|
+
update!(**args)
|
979
|
+
end
|
980
|
+
|
981
|
+
# Update properties of this object
|
982
|
+
def update!(**args)
|
983
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
984
|
+
end
|
985
|
+
end
|
986
|
+
|
987
|
+
# Response message for `TestIamPermissions` method.
|
988
|
+
class TestIamPermissionsResponse
|
989
|
+
include Google::Apis::Core::Hashable
|
990
|
+
|
991
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
|
992
|
+
# Corresponds to the JSON property `permissions`
|
993
|
+
# @return [Array<String>]
|
994
|
+
attr_accessor :permissions
|
995
|
+
|
996
|
+
def initialize(**args)
|
997
|
+
update!(**args)
|
998
|
+
end
|
999
|
+
|
1000
|
+
# Update properties of this object
|
1001
|
+
def update!(**args)
|
1002
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
1003
|
+
end
|
1004
|
+
end
|
1005
|
+
|
1006
|
+
# The Data Fusion version. This proto message stores information about certain
|
1007
|
+
# Data Fusion version, which is used for Data Fusion version upgrade.
|
1008
|
+
class Version
|
1009
|
+
include Google::Apis::Core::Hashable
|
1010
|
+
|
1011
|
+
# Represents a list of available feature names for a given version.
|
1012
|
+
# Corresponds to the JSON property `availableFeatures`
|
1013
|
+
# @return [Array<String>]
|
1014
|
+
attr_accessor :available_features
|
1015
|
+
|
1016
|
+
# Whether this is currently the default version for Cloud Data Fusion
|
1017
|
+
# Corresponds to the JSON property `defaultVersion`
|
1018
|
+
# @return [Boolean]
|
1019
|
+
attr_accessor :default_version
|
1020
|
+
alias_method :default_version?, :default_version
|
1021
|
+
|
1022
|
+
# The version number of the Data Fusion instance, such as '6.0.1.0'.
|
1023
|
+
# Corresponds to the JSON property `versionNumber`
|
1024
|
+
# @return [String]
|
1025
|
+
attr_accessor :version_number
|
1026
|
+
|
1027
|
+
def initialize(**args)
|
1028
|
+
update!(**args)
|
1029
|
+
end
|
1030
|
+
|
1031
|
+
# Update properties of this object
|
1032
|
+
def update!(**args)
|
1033
|
+
@available_features = args[:available_features] if args.key?(:available_features)
|
1034
|
+
@default_version = args[:default_version] if args.key?(:default_version)
|
1035
|
+
@version_number = args[:version_number] if args.key?(:version_number)
|
1036
|
+
end
|
1037
|
+
end
|
1038
|
+
end
|
1039
|
+
end
|
1040
|
+
end
|