google-apis-datamigration_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-datamigration_v1.rb +15 -0
- data/lib/google/apis/datamigration_v1.rb +36 -0
- data/lib/google/apis/datamigration_v1/classes.rb +1737 -0
- data/lib/google/apis/datamigration_v1/gem_version.rb +28 -0
- data/lib/google/apis/datamigration_v1/representations.rb +700 -0
- data/lib/google/apis/datamigration_v1/service.rb +1178 -0
- metadata +76 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8324179bf7ee6264ced9b6490315e4744364e1e95df18caeeb10d01409ad52e5
|
4
|
+
data.tar.gz: 97b7620deb6e6dccfda00e477b0d1bac2d9088b61e42e52a846221152094d50e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 31c72de75e76184dcdf9952858e4579bacf1f402e0fef1383f8c919e52cd4b3c8e4883c700688296d8fdd8400b24060e5c5a4ffc641fac7352b529b77c51e8f8
|
7
|
+
data.tar.gz: e6e3203ccc2744de407c798e067fd8dd0919f9b3b4e7e64f9b42596a6f164aab2066c36c9cbfa0276e6255878b9b1a6bc78322829c9a37d89f6c218790ca49fb
|
data/.yardopts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
--hide-void-return
|
2
|
+
--no-private
|
3
|
+
--verbose
|
4
|
+
--title=google-apis-datamigration_v1
|
5
|
+
--markup-provider=redcarpet
|
6
|
+
--markup=markdown
|
7
|
+
--main OVERVIEW.md
|
8
|
+
lib/google/apis/datamigration_v1/*.rb
|
9
|
+
lib/google/apis/datamigration_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 Database Migration API
|
2
|
+
|
3
|
+
This is a simple client library for version V1 of the Database Migration 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/datamigration.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-datamigration_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-datamigration_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/datamigration_v1"
|
49
|
+
|
50
|
+
# Create a client object
|
51
|
+
client = Google::Apis::DatamigrationV1::DatabaseMigrationServiceService.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 Datamigration service in particular.)
|
67
|
+
|
68
|
+
For reference information on specific calls in the Database Migration API, see the {Google::Apis::DatamigrationV1::DatabaseMigrationServiceService 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-datamigration_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/database-migration/) 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/datamigration_v1"
|
@@ -0,0 +1,36 @@
|
|
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/datamigration_v1/service.rb'
|
16
|
+
require 'google/apis/datamigration_v1/classes.rb'
|
17
|
+
require 'google/apis/datamigration_v1/representations.rb'
|
18
|
+
require 'google/apis/datamigration_v1/gem_version.rb'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
# Database Migration API
|
23
|
+
#
|
24
|
+
# Manage Cloud Database Migration Service resources on Google Cloud Platform.
|
25
|
+
#
|
26
|
+
# @see https://cloud.google.com/database-migration/
|
27
|
+
module DatamigrationV1
|
28
|
+
# Version of the Database Migration API this client connects to.
|
29
|
+
# This is NOT the gem version.
|
30
|
+
VERSION = 'V1'
|
31
|
+
|
32
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
33
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,1737 @@
|
|
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 DatamigrationV1
|
24
|
+
|
25
|
+
# Specifies the audit configuration for a service. The configuration determines
|
26
|
+
# which permission types are logged, and what identities, if any, are exempted
|
27
|
+
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
|
28
|
+
# are AuditConfigs for both `allServices` and a specific service, the union of
|
29
|
+
# the two AuditConfigs is used for that service: the log_types specified in each
|
30
|
+
# AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
|
31
|
+
# exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
|
32
|
+
# service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
|
33
|
+
# exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
|
34
|
+
# ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
|
35
|
+
# "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
|
36
|
+
# , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
|
37
|
+
# this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
|
38
|
+
# exempts jose@example.com from DATA_READ logging, and aliya@example.com from
|
39
|
+
# DATA_WRITE logging.
|
40
|
+
class AuditConfig
|
41
|
+
include Google::Apis::Core::Hashable
|
42
|
+
|
43
|
+
# The configuration for logging of each type of permission.
|
44
|
+
# Corresponds to the JSON property `auditLogConfigs`
|
45
|
+
# @return [Array<Google::Apis::DatamigrationV1::AuditLogConfig>]
|
46
|
+
attr_accessor :audit_log_configs
|
47
|
+
|
48
|
+
# Specifies a service that will be enabled for audit logging. For example, `
|
49
|
+
# storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
|
50
|
+
# value that covers all services.
|
51
|
+
# Corresponds to the JSON property `service`
|
52
|
+
# @return [String]
|
53
|
+
attr_accessor :service
|
54
|
+
|
55
|
+
def initialize(**args)
|
56
|
+
update!(**args)
|
57
|
+
end
|
58
|
+
|
59
|
+
# Update properties of this object
|
60
|
+
def update!(**args)
|
61
|
+
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
|
62
|
+
@service = args[:service] if args.key?(:service)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# Provides the configuration for logging a type of permissions. Example: ` "
|
67
|
+
# audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
|
68
|
+
# jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
|
69
|
+
# DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
|
70
|
+
# DATA_READ logging.
|
71
|
+
class AuditLogConfig
|
72
|
+
include Google::Apis::Core::Hashable
|
73
|
+
|
74
|
+
# Specifies the identities that do not cause logging for this type of permission.
|
75
|
+
# Follows the same format of Binding.members.
|
76
|
+
# Corresponds to the JSON property `exemptedMembers`
|
77
|
+
# @return [Array<String>]
|
78
|
+
attr_accessor :exempted_members
|
79
|
+
|
80
|
+
# The log type that this config enables.
|
81
|
+
# Corresponds to the JSON property `logType`
|
82
|
+
# @return [String]
|
83
|
+
attr_accessor :log_type
|
84
|
+
|
85
|
+
def initialize(**args)
|
86
|
+
update!(**args)
|
87
|
+
end
|
88
|
+
|
89
|
+
# Update properties of this object
|
90
|
+
def update!(**args)
|
91
|
+
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
92
|
+
@log_type = args[:log_type] if args.key?(:log_type)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
# Associates `members` with a `role`.
|
97
|
+
class Binding
|
98
|
+
include Google::Apis::Core::Hashable
|
99
|
+
|
100
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
101
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
102
|
+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
103
|
+
# "Summary size limit" description: "Determines if a summary is less than 100
|
104
|
+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
105
|
+
# Requestor is owner" description: "Determines if requestor is the document
|
106
|
+
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
107
|
+
# Logic): title: "Public documents" description: "Determine whether the document
|
108
|
+
# should be publicly visible" expression: "document.type != 'private' &&
|
109
|
+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
110
|
+
# string" description: "Create a notification string with a timestamp."
|
111
|
+
# expression: "'New message received at ' + string(document.create_time)" The
|
112
|
+
# exact variables and functions that may be referenced within an expression are
|
113
|
+
# determined by the service that evaluates it. See the service documentation for
|
114
|
+
# additional information.
|
115
|
+
# Corresponds to the JSON property `condition`
|
116
|
+
# @return [Google::Apis::DatamigrationV1::Expr]
|
117
|
+
attr_accessor :condition
|
118
|
+
|
119
|
+
# Specifies the identities requesting access for a Cloud Platform resource. `
|
120
|
+
# members` can have the following values: * `allUsers`: A special identifier
|
121
|
+
# that represents anyone who is on the internet; with or without a Google
|
122
|
+
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
123
|
+
# anyone who is authenticated with a Google account or a service account. * `
|
124
|
+
# user:`emailid``: An email address that represents a specific Google account.
|
125
|
+
# For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
|
126
|
+
# address that represents a service account. For example, `my-other-app@appspot.
|
127
|
+
# gserviceaccount.com`. * `group:`emailid``: An email address that represents a
|
128
|
+
# Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
|
129
|
+
# `uniqueid``: An email address (plus unique identifier) representing a user
|
130
|
+
# that has been recently deleted. For example, `alice@example.com?uid=
|
131
|
+
# 123456789012345678901`. If the user is recovered, this value reverts to `user:`
|
132
|
+
# emailid`` and the recovered user retains the role in the binding. * `deleted:
|
133
|
+
# serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
|
134
|
+
# identifier) representing a service account that has been recently deleted. For
|
135
|
+
# example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
136
|
+
# If the service account is undeleted, this value reverts to `serviceAccount:`
|
137
|
+
# emailid`` and the undeleted service account retains the role in the binding. *
|
138
|
+
# `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
|
139
|
+
# identifier) representing a Google group that has been recently deleted. For
|
140
|
+
# example, `admins@example.com?uid=123456789012345678901`. If the group is
|
141
|
+
# recovered, this value reverts to `group:`emailid`` and the recovered group
|
142
|
+
# retains the role in the binding. * `domain:`domain``: The G Suite domain (
|
143
|
+
# primary) that represents all the users of that domain. For example, `google.
|
144
|
+
# com` or `example.com`.
|
145
|
+
# Corresponds to the JSON property `members`
|
146
|
+
# @return [Array<String>]
|
147
|
+
attr_accessor :members
|
148
|
+
|
149
|
+
# Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
|
150
|
+
# , or `roles/owner`.
|
151
|
+
# Corresponds to the JSON property `role`
|
152
|
+
# @return [String]
|
153
|
+
attr_accessor :role
|
154
|
+
|
155
|
+
def initialize(**args)
|
156
|
+
update!(**args)
|
157
|
+
end
|
158
|
+
|
159
|
+
# Update properties of this object
|
160
|
+
def update!(**args)
|
161
|
+
@condition = args[:condition] if args.key?(:condition)
|
162
|
+
@members = args[:members] if args.key?(:members)
|
163
|
+
@role = args[:role] if args.key?(:role)
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
# The request message for Operations.CancelOperation.
|
168
|
+
class CancelOperationRequest
|
169
|
+
include Google::Apis::Core::Hashable
|
170
|
+
|
171
|
+
def initialize(**args)
|
172
|
+
update!(**args)
|
173
|
+
end
|
174
|
+
|
175
|
+
# Update properties of this object
|
176
|
+
def update!(**args)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# Specifies required connection parameters, and, optionally, the parameters
|
181
|
+
# required to create a Cloud SQL destination database instance.
|
182
|
+
class CloudSqlConnectionProfile
|
183
|
+
include Google::Apis::Core::Hashable
|
184
|
+
|
185
|
+
# Output only. The Cloud SQL instance ID that this connection profile is
|
186
|
+
# associated with.
|
187
|
+
# Corresponds to the JSON property `cloudSqlId`
|
188
|
+
# @return [String]
|
189
|
+
attr_accessor :cloud_sql_id
|
190
|
+
|
191
|
+
# Output only. The Cloud SQL database instance's private IP.
|
192
|
+
# Corresponds to the JSON property `privateIp`
|
193
|
+
# @return [String]
|
194
|
+
attr_accessor :private_ip
|
195
|
+
|
196
|
+
# Output only. The Cloud SQL database instance's public IP.
|
197
|
+
# Corresponds to the JSON property `publicIp`
|
198
|
+
# @return [String]
|
199
|
+
attr_accessor :public_ip
|
200
|
+
|
201
|
+
# Settings for creating a Cloud SQL database instance.
|
202
|
+
# Corresponds to the JSON property `settings`
|
203
|
+
# @return [Google::Apis::DatamigrationV1::CloudSqlSettings]
|
204
|
+
attr_accessor :settings
|
205
|
+
|
206
|
+
def initialize(**args)
|
207
|
+
update!(**args)
|
208
|
+
end
|
209
|
+
|
210
|
+
# Update properties of this object
|
211
|
+
def update!(**args)
|
212
|
+
@cloud_sql_id = args[:cloud_sql_id] if args.key?(:cloud_sql_id)
|
213
|
+
@private_ip = args[:private_ip] if args.key?(:private_ip)
|
214
|
+
@public_ip = args[:public_ip] if args.key?(:public_ip)
|
215
|
+
@settings = args[:settings] if args.key?(:settings)
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
# Settings for creating a Cloud SQL database instance.
|
220
|
+
class CloudSqlSettings
|
221
|
+
include Google::Apis::Core::Hashable
|
222
|
+
|
223
|
+
# The activation policy specifies when the instance is activated; it is
|
224
|
+
# applicable only when the instance state is 'RUNNABLE'. Valid values: 'ALWAYS':
|
225
|
+
# The instance is on, and remains so even in the absence of connection requests.
|
226
|
+
# `NEVER`: The instance is off; it is not activated, even if a connection
|
227
|
+
# request arrives.
|
228
|
+
# Corresponds to the JSON property `activationPolicy`
|
229
|
+
# @return [String]
|
230
|
+
attr_accessor :activation_policy
|
231
|
+
|
232
|
+
# [default: ON] If you enable this setting, Cloud SQL checks your available
|
233
|
+
# storage every 30 seconds. If the available storage falls below a threshold
|
234
|
+
# size, Cloud SQL automatically adds additional storage capacity. If the
|
235
|
+
# available storage repeatedly falls below the threshold size, Cloud SQL
|
236
|
+
# continues to add storage until it reaches the maximum of 30 TB.
|
237
|
+
# Corresponds to the JSON property `autoStorageIncrease`
|
238
|
+
# @return [Boolean]
|
239
|
+
attr_accessor :auto_storage_increase
|
240
|
+
alias_method :auto_storage_increase?, :auto_storage_increase
|
241
|
+
|
242
|
+
# The Cloud SQL default instance level collation.
|
243
|
+
# Corresponds to the JSON property `collation`
|
244
|
+
# @return [String]
|
245
|
+
attr_accessor :collation
|
246
|
+
|
247
|
+
# The storage capacity available to the database, in GB. The minimum (and
|
248
|
+
# default) size is 10GB.
|
249
|
+
# Corresponds to the JSON property `dataDiskSizeGb`
|
250
|
+
# @return [Fixnum]
|
251
|
+
attr_accessor :data_disk_size_gb
|
252
|
+
|
253
|
+
# The type of storage: `PD_SSD` (default) or `PD_HDD`.
|
254
|
+
# Corresponds to the JSON property `dataDiskType`
|
255
|
+
# @return [String]
|
256
|
+
attr_accessor :data_disk_type
|
257
|
+
|
258
|
+
# The database flags passed to the Cloud SQL instance at startup. An object
|
259
|
+
# containing a list of "key": value pairs. Example: ` "name": "wrench", "mass": "
|
260
|
+
# 1.3kg", "count": "3" `.
|
261
|
+
# Corresponds to the JSON property `databaseFlags`
|
262
|
+
# @return [Hash<String,String>]
|
263
|
+
attr_accessor :database_flags
|
264
|
+
|
265
|
+
# The database engine type and version.
|
266
|
+
# Corresponds to the JSON property `databaseVersion`
|
267
|
+
# @return [String]
|
268
|
+
attr_accessor :database_version
|
269
|
+
|
270
|
+
# IP Management configuration.
|
271
|
+
# Corresponds to the JSON property `ipConfig`
|
272
|
+
# @return [Google::Apis::DatamigrationV1::SqlIpConfig]
|
273
|
+
attr_accessor :ip_config
|
274
|
+
|
275
|
+
# Input only. Initial root password.
|
276
|
+
# Corresponds to the JSON property `rootPassword`
|
277
|
+
# @return [String]
|
278
|
+
attr_accessor :root_password
|
279
|
+
|
280
|
+
# Output only. Indicates If this connection profile root password is stored.
|
281
|
+
# Corresponds to the JSON property `rootPasswordSet`
|
282
|
+
# @return [Boolean]
|
283
|
+
attr_accessor :root_password_set
|
284
|
+
alias_method :root_password_set?, :root_password_set
|
285
|
+
|
286
|
+
# The Database Migration Service source connection profile ID, in the format: `
|
287
|
+
# projects/my_project_name/locations/us-central1/connectionProfiles/
|
288
|
+
# connection_profile_ID`
|
289
|
+
# Corresponds to the JSON property `sourceId`
|
290
|
+
# @return [String]
|
291
|
+
attr_accessor :source_id
|
292
|
+
|
293
|
+
# The maximum size to which storage capacity can be automatically increased. The
|
294
|
+
# default value is 0, which specifies that there is no limit.
|
295
|
+
# Corresponds to the JSON property `storageAutoResizeLimit`
|
296
|
+
# @return [Fixnum]
|
297
|
+
attr_accessor :storage_auto_resize_limit
|
298
|
+
|
299
|
+
# The tier (or machine type) for this instance, for example: `db-n1-standard-1` (
|
300
|
+
# MySQL instances) or `db-custom-1-3840` (PostgreSQL instances). For more
|
301
|
+
# information, see [Cloud SQL Instance Settings](https://cloud.google.com/sql/
|
302
|
+
# docs/mysql/instance-settings).
|
303
|
+
# Corresponds to the JSON property `tier`
|
304
|
+
# @return [String]
|
305
|
+
attr_accessor :tier
|
306
|
+
|
307
|
+
# The resource labels for a Cloud SQL instance to use to annotate any related
|
308
|
+
# underlying resources such as Compute Engine VMs. An object containing a list
|
309
|
+
# of "key": "value" pairs. Example: `` "name": "wrench", "mass": "18kg", "count":
|
310
|
+
# "3" ``.
|
311
|
+
# Corresponds to the JSON property `userLabels`
|
312
|
+
# @return [Hash<String,String>]
|
313
|
+
attr_accessor :user_labels
|
314
|
+
|
315
|
+
# The Google Cloud Platform zone where your Cloud SQL datdabse instance is
|
316
|
+
# located.
|
317
|
+
# Corresponds to the JSON property `zone`
|
318
|
+
# @return [String]
|
319
|
+
attr_accessor :zone
|
320
|
+
|
321
|
+
def initialize(**args)
|
322
|
+
update!(**args)
|
323
|
+
end
|
324
|
+
|
325
|
+
# Update properties of this object
|
326
|
+
def update!(**args)
|
327
|
+
@activation_policy = args[:activation_policy] if args.key?(:activation_policy)
|
328
|
+
@auto_storage_increase = args[:auto_storage_increase] if args.key?(:auto_storage_increase)
|
329
|
+
@collation = args[:collation] if args.key?(:collation)
|
330
|
+
@data_disk_size_gb = args[:data_disk_size_gb] if args.key?(:data_disk_size_gb)
|
331
|
+
@data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type)
|
332
|
+
@database_flags = args[:database_flags] if args.key?(:database_flags)
|
333
|
+
@database_version = args[:database_version] if args.key?(:database_version)
|
334
|
+
@ip_config = args[:ip_config] if args.key?(:ip_config)
|
335
|
+
@root_password = args[:root_password] if args.key?(:root_password)
|
336
|
+
@root_password_set = args[:root_password_set] if args.key?(:root_password_set)
|
337
|
+
@source_id = args[:source_id] if args.key?(:source_id)
|
338
|
+
@storage_auto_resize_limit = args[:storage_auto_resize_limit] if args.key?(:storage_auto_resize_limit)
|
339
|
+
@tier = args[:tier] if args.key?(:tier)
|
340
|
+
@user_labels = args[:user_labels] if args.key?(:user_labels)
|
341
|
+
@zone = args[:zone] if args.key?(:zone)
|
342
|
+
end
|
343
|
+
end
|
344
|
+
|
345
|
+
# A connection profile definition.
|
346
|
+
class ConnectionProfile
|
347
|
+
include Google::Apis::Core::Hashable
|
348
|
+
|
349
|
+
# Specifies required connection parameters, and, optionally, the parameters
|
350
|
+
# required to create a Cloud SQL destination database instance.
|
351
|
+
# Corresponds to the JSON property `cloudsql`
|
352
|
+
# @return [Google::Apis::DatamigrationV1::CloudSqlConnectionProfile]
|
353
|
+
attr_accessor :cloudsql
|
354
|
+
|
355
|
+
# Output only. The timestamp when the resource was created. A timestamp in
|
356
|
+
# RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:
|
357
|
+
# 23.045123456Z".
|
358
|
+
# Corresponds to the JSON property `createTime`
|
359
|
+
# @return [String]
|
360
|
+
attr_accessor :create_time
|
361
|
+
|
362
|
+
# The connection profile display name.
|
363
|
+
# Corresponds to the JSON property `displayName`
|
364
|
+
# @return [String]
|
365
|
+
attr_accessor :display_name
|
366
|
+
|
367
|
+
# The `Status` type defines a logical error model that is suitable for different
|
368
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
369
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
370
|
+
# data: error code, error message, and error details. You can find out more
|
371
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
372
|
+
# //cloud.google.com/apis/design/errors).
|
373
|
+
# Corresponds to the JSON property `error`
|
374
|
+
# @return [Google::Apis::DatamigrationV1::Status]
|
375
|
+
attr_accessor :error
|
376
|
+
|
377
|
+
# The resource labels for connection profile to use to annotate any related
|
378
|
+
# underlying resources such as Compute Engine VMs. An object containing a list
|
379
|
+
# of "key": "value" pairs. Example: `` "name": "wrench", "mass": "1.3kg", "count"
|
380
|
+
# : "3" ``.
|
381
|
+
# Corresponds to the JSON property `labels`
|
382
|
+
# @return [Hash<String,String>]
|
383
|
+
attr_accessor :labels
|
384
|
+
|
385
|
+
# Specifies connection parameters required specifically for MySQL databases.
|
386
|
+
# Corresponds to the JSON property `mysql`
|
387
|
+
# @return [Google::Apis::DatamigrationV1::MySqlConnectionProfile]
|
388
|
+
attr_accessor :mysql
|
389
|
+
|
390
|
+
# The name of this connection profile resource in the form of projects/`project`/
|
391
|
+
# locations/`location`/instances/`instance`.
|
392
|
+
# Corresponds to the JSON property `name`
|
393
|
+
# @return [String]
|
394
|
+
attr_accessor :name
|
395
|
+
|
396
|
+
# Specifies connection parameters required specifically for PostgreSQL databases.
|
397
|
+
# Corresponds to the JSON property `postgresql`
|
398
|
+
# @return [Google::Apis::DatamigrationV1::PostgreSqlConnectionProfile]
|
399
|
+
attr_accessor :postgresql
|
400
|
+
|
401
|
+
# The database provider.
|
402
|
+
# Corresponds to the JSON property `provider`
|
403
|
+
# @return [String]
|
404
|
+
attr_accessor :provider
|
405
|
+
|
406
|
+
# The current connection profile state (e.g. DRAFT, READY, or FAILED).
|
407
|
+
# Corresponds to the JSON property `state`
|
408
|
+
# @return [String]
|
409
|
+
attr_accessor :state
|
410
|
+
|
411
|
+
# Output only. The timestamp when the resource was last updated. A timestamp in
|
412
|
+
# RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:
|
413
|
+
# 23.045123456Z".
|
414
|
+
# Corresponds to the JSON property `updateTime`
|
415
|
+
# @return [String]
|
416
|
+
attr_accessor :update_time
|
417
|
+
|
418
|
+
def initialize(**args)
|
419
|
+
update!(**args)
|
420
|
+
end
|
421
|
+
|
422
|
+
# Update properties of this object
|
423
|
+
def update!(**args)
|
424
|
+
@cloudsql = args[:cloudsql] if args.key?(:cloudsql)
|
425
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
426
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
427
|
+
@error = args[:error] if args.key?(:error)
|
428
|
+
@labels = args[:labels] if args.key?(:labels)
|
429
|
+
@mysql = args[:mysql] if args.key?(:mysql)
|
430
|
+
@name = args[:name] if args.key?(:name)
|
431
|
+
@postgresql = args[:postgresql] if args.key?(:postgresql)
|
432
|
+
@provider = args[:provider] if args.key?(:provider)
|
433
|
+
@state = args[:state] if args.key?(:state)
|
434
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
435
|
+
end
|
436
|
+
end
|
437
|
+
|
438
|
+
# A message defining the database engine and provider.
|
439
|
+
class DatabaseType
|
440
|
+
include Google::Apis::Core::Hashable
|
441
|
+
|
442
|
+
# The database engine.
|
443
|
+
# Corresponds to the JSON property `engine`
|
444
|
+
# @return [String]
|
445
|
+
attr_accessor :engine
|
446
|
+
|
447
|
+
# The database provider.
|
448
|
+
# Corresponds to the JSON property `provider`
|
449
|
+
# @return [String]
|
450
|
+
attr_accessor :provider
|
451
|
+
|
452
|
+
def initialize(**args)
|
453
|
+
update!(**args)
|
454
|
+
end
|
455
|
+
|
456
|
+
# Update properties of this object
|
457
|
+
def update!(**args)
|
458
|
+
@engine = args[:engine] if args.key?(:engine)
|
459
|
+
@provider = args[:provider] if args.key?(:provider)
|
460
|
+
end
|
461
|
+
end
|
462
|
+
|
463
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
464
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
465
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
466
|
+
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
467
|
+
# `Empty` is empty JSON object ````.
|
468
|
+
class Empty
|
469
|
+
include Google::Apis::Core::Hashable
|
470
|
+
|
471
|
+
def initialize(**args)
|
472
|
+
update!(**args)
|
473
|
+
end
|
474
|
+
|
475
|
+
# Update properties of this object
|
476
|
+
def update!(**args)
|
477
|
+
end
|
478
|
+
end
|
479
|
+
|
480
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
481
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
482
|
+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
483
|
+
# "Summary size limit" description: "Determines if a summary is less than 100
|
484
|
+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
485
|
+
# Requestor is owner" description: "Determines if requestor is the document
|
486
|
+
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
487
|
+
# Logic): title: "Public documents" description: "Determine whether the document
|
488
|
+
# should be publicly visible" expression: "document.type != 'private' &&
|
489
|
+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
490
|
+
# string" description: "Create a notification string with a timestamp."
|
491
|
+
# expression: "'New message received at ' + string(document.create_time)" The
|
492
|
+
# exact variables and functions that may be referenced within an expression are
|
493
|
+
# determined by the service that evaluates it. See the service documentation for
|
494
|
+
# additional information.
|
495
|
+
class Expr
|
496
|
+
include Google::Apis::Core::Hashable
|
497
|
+
|
498
|
+
# Optional. Description of the expression. This is a longer text which describes
|
499
|
+
# the expression, e.g. when hovered over it in a UI.
|
500
|
+
# Corresponds to the JSON property `description`
|
501
|
+
# @return [String]
|
502
|
+
attr_accessor :description
|
503
|
+
|
504
|
+
# Textual representation of an expression in Common Expression Language syntax.
|
505
|
+
# Corresponds to the JSON property `expression`
|
506
|
+
# @return [String]
|
507
|
+
attr_accessor :expression
|
508
|
+
|
509
|
+
# Optional. String indicating the location of the expression for error reporting,
|
510
|
+
# e.g. a file name and a position in the file.
|
511
|
+
# Corresponds to the JSON property `location`
|
512
|
+
# @return [String]
|
513
|
+
attr_accessor :location
|
514
|
+
|
515
|
+
# Optional. Title for the expression, i.e. a short string describing its purpose.
|
516
|
+
# This can be used e.g. in UIs which allow to enter the expression.
|
517
|
+
# Corresponds to the JSON property `title`
|
518
|
+
# @return [String]
|
519
|
+
attr_accessor :title
|
520
|
+
|
521
|
+
def initialize(**args)
|
522
|
+
update!(**args)
|
523
|
+
end
|
524
|
+
|
525
|
+
# Update properties of this object
|
526
|
+
def update!(**args)
|
527
|
+
@description = args[:description] if args.key?(:description)
|
528
|
+
@expression = args[:expression] if args.key?(:expression)
|
529
|
+
@location = args[:location] if args.key?(:location)
|
530
|
+
@title = args[:title] if args.key?(:title)
|
531
|
+
end
|
532
|
+
end
|
533
|
+
|
534
|
+
# Request message for 'GenerateSshScript' request.
|
535
|
+
class GenerateSshScriptRequest
|
536
|
+
include Google::Apis::Core::Hashable
|
537
|
+
|
538
|
+
# Required. Bastion VM Instance name to use or to create.
|
539
|
+
# Corresponds to the JSON property `vm`
|
540
|
+
# @return [String]
|
541
|
+
attr_accessor :vm
|
542
|
+
|
543
|
+
# VM creation configuration message
|
544
|
+
# Corresponds to the JSON property `vmCreationConfig`
|
545
|
+
# @return [Google::Apis::DatamigrationV1::VmCreationConfig]
|
546
|
+
attr_accessor :vm_creation_config
|
547
|
+
|
548
|
+
# The port that will be open on the bastion host
|
549
|
+
# Corresponds to the JSON property `vmPort`
|
550
|
+
# @return [Fixnum]
|
551
|
+
attr_accessor :vm_port
|
552
|
+
|
553
|
+
# VM selection configuration message
|
554
|
+
# Corresponds to the JSON property `vmSelectionConfig`
|
555
|
+
# @return [Google::Apis::DatamigrationV1::VmSelectionConfig]
|
556
|
+
attr_accessor :vm_selection_config
|
557
|
+
|
558
|
+
def initialize(**args)
|
559
|
+
update!(**args)
|
560
|
+
end
|
561
|
+
|
562
|
+
# Update properties of this object
|
563
|
+
def update!(**args)
|
564
|
+
@vm = args[:vm] if args.key?(:vm)
|
565
|
+
@vm_creation_config = args[:vm_creation_config] if args.key?(:vm_creation_config)
|
566
|
+
@vm_port = args[:vm_port] if args.key?(:vm_port)
|
567
|
+
@vm_selection_config = args[:vm_selection_config] if args.key?(:vm_selection_config)
|
568
|
+
end
|
569
|
+
end
|
570
|
+
|
571
|
+
# Represents the metadata of the long-running operation.
|
572
|
+
class GoogleCloudClouddmsV1OperationMetadata
|
573
|
+
include Google::Apis::Core::Hashable
|
574
|
+
|
575
|
+
# Output only. API version used to start the operation.
|
576
|
+
# Corresponds to the JSON property `apiVersion`
|
577
|
+
# @return [String]
|
578
|
+
attr_accessor :api_version
|
579
|
+
|
580
|
+
# Output only. The time the operation was created.
|
581
|
+
# Corresponds to the JSON property `createTime`
|
582
|
+
# @return [String]
|
583
|
+
attr_accessor :create_time
|
584
|
+
|
585
|
+
# Output only. The time the operation finished running.
|
586
|
+
# Corresponds to the JSON property `endTime`
|
587
|
+
# @return [String]
|
588
|
+
attr_accessor :end_time
|
589
|
+
|
590
|
+
# Output only. Identifies whether the user has requested cancellation of the
|
591
|
+
# operation. Operations that have successfully been cancelled have Operation.
|
592
|
+
# error value with a google.rpc.Status.code of 1, corresponding to `Code.
|
593
|
+
# CANCELLED`.
|
594
|
+
# Corresponds to the JSON property `requestedCancellation`
|
595
|
+
# @return [Boolean]
|
596
|
+
attr_accessor :requested_cancellation
|
597
|
+
alias_method :requested_cancellation?, :requested_cancellation
|
598
|
+
|
599
|
+
# Output only. Human-readable status of the operation, if any.
|
600
|
+
# Corresponds to the JSON property `statusMessage`
|
601
|
+
# @return [String]
|
602
|
+
attr_accessor :status_message
|
603
|
+
|
604
|
+
# Output only. Server-defined resource path for the target of the operation.
|
605
|
+
# Corresponds to the JSON property `target`
|
606
|
+
# @return [String]
|
607
|
+
attr_accessor :target
|
608
|
+
|
609
|
+
# Output only. Name of the verb executed by the operation.
|
610
|
+
# Corresponds to the JSON property `verb`
|
611
|
+
# @return [String]
|
612
|
+
attr_accessor :verb
|
613
|
+
|
614
|
+
def initialize(**args)
|
615
|
+
update!(**args)
|
616
|
+
end
|
617
|
+
|
618
|
+
# Update properties of this object
|
619
|
+
def update!(**args)
|
620
|
+
@api_version = args[:api_version] if args.key?(:api_version)
|
621
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
622
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
623
|
+
@requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
|
624
|
+
@status_message = args[:status_message] if args.key?(:status_message)
|
625
|
+
@target = args[:target] if args.key?(:target)
|
626
|
+
@verb = args[:verb] if args.key?(:verb)
|
627
|
+
end
|
628
|
+
end
|
629
|
+
|
630
|
+
# Response message for 'ListConnectionProfiles' request.
|
631
|
+
class ListConnectionProfilesResponse
|
632
|
+
include Google::Apis::Core::Hashable
|
633
|
+
|
634
|
+
# The response list of connection profiles.
|
635
|
+
# Corresponds to the JSON property `connectionProfiles`
|
636
|
+
# @return [Array<Google::Apis::DatamigrationV1::ConnectionProfile>]
|
637
|
+
attr_accessor :connection_profiles
|
638
|
+
|
639
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
640
|
+
# field is omitted, there are no subsequent pages.
|
641
|
+
# Corresponds to the JSON property `nextPageToken`
|
642
|
+
# @return [String]
|
643
|
+
attr_accessor :next_page_token
|
644
|
+
|
645
|
+
# Locations that could not be reached.
|
646
|
+
# Corresponds to the JSON property `unreachable`
|
647
|
+
# @return [Array<String>]
|
648
|
+
attr_accessor :unreachable
|
649
|
+
|
650
|
+
def initialize(**args)
|
651
|
+
update!(**args)
|
652
|
+
end
|
653
|
+
|
654
|
+
# Update properties of this object
|
655
|
+
def update!(**args)
|
656
|
+
@connection_profiles = args[:connection_profiles] if args.key?(:connection_profiles)
|
657
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
658
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
659
|
+
end
|
660
|
+
end
|
661
|
+
|
662
|
+
# The response message for Locations.ListLocations.
|
663
|
+
class ListLocationsResponse
|
664
|
+
include Google::Apis::Core::Hashable
|
665
|
+
|
666
|
+
# A list of locations that matches the specified filter in the request.
|
667
|
+
# Corresponds to the JSON property `locations`
|
668
|
+
# @return [Array<Google::Apis::DatamigrationV1::Location>]
|
669
|
+
attr_accessor :locations
|
670
|
+
|
671
|
+
# The standard List next-page token.
|
672
|
+
# Corresponds to the JSON property `nextPageToken`
|
673
|
+
# @return [String]
|
674
|
+
attr_accessor :next_page_token
|
675
|
+
|
676
|
+
def initialize(**args)
|
677
|
+
update!(**args)
|
678
|
+
end
|
679
|
+
|
680
|
+
# Update properties of this object
|
681
|
+
def update!(**args)
|
682
|
+
@locations = args[:locations] if args.key?(:locations)
|
683
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
684
|
+
end
|
685
|
+
end
|
686
|
+
|
687
|
+
# Response message for 'ListMigrationJobs' request.
|
688
|
+
class ListMigrationJobsResponse
|
689
|
+
include Google::Apis::Core::Hashable
|
690
|
+
|
691
|
+
# The list of migration jobs objects.
|
692
|
+
# Corresponds to the JSON property `migrationJobs`
|
693
|
+
# @return [Array<Google::Apis::DatamigrationV1::MigrationJob>]
|
694
|
+
attr_accessor :migration_jobs
|
695
|
+
|
696
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
697
|
+
# field is omitted, there are no subsequent pages.
|
698
|
+
# Corresponds to the JSON property `nextPageToken`
|
699
|
+
# @return [String]
|
700
|
+
attr_accessor :next_page_token
|
701
|
+
|
702
|
+
# Locations that could not be reached.
|
703
|
+
# Corresponds to the JSON property `unreachable`
|
704
|
+
# @return [Array<String>]
|
705
|
+
attr_accessor :unreachable
|
706
|
+
|
707
|
+
def initialize(**args)
|
708
|
+
update!(**args)
|
709
|
+
end
|
710
|
+
|
711
|
+
# Update properties of this object
|
712
|
+
def update!(**args)
|
713
|
+
@migration_jobs = args[:migration_jobs] if args.key?(:migration_jobs)
|
714
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
715
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
716
|
+
end
|
717
|
+
end
|
718
|
+
|
719
|
+
# The response message for Operations.ListOperations.
|
720
|
+
class ListOperationsResponse
|
721
|
+
include Google::Apis::Core::Hashable
|
722
|
+
|
723
|
+
# The standard List next-page token.
|
724
|
+
# Corresponds to the JSON property `nextPageToken`
|
725
|
+
# @return [String]
|
726
|
+
attr_accessor :next_page_token
|
727
|
+
|
728
|
+
# A list of operations that matches the specified filter in the request.
|
729
|
+
# Corresponds to the JSON property `operations`
|
730
|
+
# @return [Array<Google::Apis::DatamigrationV1::Operation>]
|
731
|
+
attr_accessor :operations
|
732
|
+
|
733
|
+
def initialize(**args)
|
734
|
+
update!(**args)
|
735
|
+
end
|
736
|
+
|
737
|
+
# Update properties of this object
|
738
|
+
def update!(**args)
|
739
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
740
|
+
@operations = args[:operations] if args.key?(:operations)
|
741
|
+
end
|
742
|
+
end
|
743
|
+
|
744
|
+
# A resource that represents Google Cloud Platform location.
|
745
|
+
class Location
|
746
|
+
include Google::Apis::Core::Hashable
|
747
|
+
|
748
|
+
# The friendly name for this location, typically a nearby city name. For example,
|
749
|
+
# "Tokyo".
|
750
|
+
# Corresponds to the JSON property `displayName`
|
751
|
+
# @return [String]
|
752
|
+
attr_accessor :display_name
|
753
|
+
|
754
|
+
# Cross-service attributes for the location. For example `"cloud.googleapis.com/
|
755
|
+
# region": "us-east1"`
|
756
|
+
# Corresponds to the JSON property `labels`
|
757
|
+
# @return [Hash<String,String>]
|
758
|
+
attr_accessor :labels
|
759
|
+
|
760
|
+
# The canonical id for this location. For example: `"us-east1"`.
|
761
|
+
# Corresponds to the JSON property `locationId`
|
762
|
+
# @return [String]
|
763
|
+
attr_accessor :location_id
|
764
|
+
|
765
|
+
# Service-specific metadata. For example the available capacity at the given
|
766
|
+
# location.
|
767
|
+
# Corresponds to the JSON property `metadata`
|
768
|
+
# @return [Hash<String,Object>]
|
769
|
+
attr_accessor :metadata
|
770
|
+
|
771
|
+
# Resource name for the location, which may vary between implementations. For
|
772
|
+
# example: `"projects/example-project/locations/us-east1"`
|
773
|
+
# Corresponds to the JSON property `name`
|
774
|
+
# @return [String]
|
775
|
+
attr_accessor :name
|
776
|
+
|
777
|
+
def initialize(**args)
|
778
|
+
update!(**args)
|
779
|
+
end
|
780
|
+
|
781
|
+
# Update properties of this object
|
782
|
+
def update!(**args)
|
783
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
784
|
+
@labels = args[:labels] if args.key?(:labels)
|
785
|
+
@location_id = args[:location_id] if args.key?(:location_id)
|
786
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
787
|
+
@name = args[:name] if args.key?(:name)
|
788
|
+
end
|
789
|
+
end
|
790
|
+
|
791
|
+
# Represents a Database Migration Service migration job object.
|
792
|
+
class MigrationJob
|
793
|
+
include Google::Apis::Core::Hashable
|
794
|
+
|
795
|
+
# Output only. The timestamp when the migration job resource was created. A
|
796
|
+
# timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "
|
797
|
+
# 2014-10-02T15:01:23.045123456Z".
|
798
|
+
# Corresponds to the JSON property `createTime`
|
799
|
+
# @return [String]
|
800
|
+
attr_accessor :create_time
|
801
|
+
|
802
|
+
# Required. The resource name (URI) of the destination connection profile.
|
803
|
+
# Corresponds to the JSON property `destination`
|
804
|
+
# @return [String]
|
805
|
+
attr_accessor :destination
|
806
|
+
|
807
|
+
# A message defining the database engine and provider.
|
808
|
+
# Corresponds to the JSON property `destinationDatabase`
|
809
|
+
# @return [Google::Apis::DatamigrationV1::DatabaseType]
|
810
|
+
attr_accessor :destination_database
|
811
|
+
|
812
|
+
# The migration job display name.
|
813
|
+
# Corresponds to the JSON property `displayName`
|
814
|
+
# @return [String]
|
815
|
+
attr_accessor :display_name
|
816
|
+
|
817
|
+
# The path to the dump file in Google Cloud Storage, in the format: (gs://[
|
818
|
+
# BUCKET_NAME]/[OBJECT_NAME]).
|
819
|
+
# Corresponds to the JSON property `dumpPath`
|
820
|
+
# @return [String]
|
821
|
+
attr_accessor :dump_path
|
822
|
+
|
823
|
+
# Output only. The duration of the migration job (in seconds). A duration in
|
824
|
+
# seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
|
825
|
+
# Corresponds to the JSON property `duration`
|
826
|
+
# @return [String]
|
827
|
+
attr_accessor :duration
|
828
|
+
|
829
|
+
# Output only. If the migration job is completed, the time when it was completed.
|
830
|
+
# Corresponds to the JSON property `endTime`
|
831
|
+
# @return [String]
|
832
|
+
attr_accessor :end_time
|
833
|
+
|
834
|
+
# The `Status` type defines a logical error model that is suitable for different
|
835
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
836
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
837
|
+
# data: error code, error message, and error details. You can find out more
|
838
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
839
|
+
# //cloud.google.com/apis/design/errors).
|
840
|
+
# Corresponds to the JSON property `error`
|
841
|
+
# @return [Google::Apis::DatamigrationV1::Status]
|
842
|
+
attr_accessor :error
|
843
|
+
|
844
|
+
# The resource labels for migration job to use to annotate any related
|
845
|
+
# underlying resources such as Compute Engine VMs. An object containing a list
|
846
|
+
# of "key": "value" pairs. Example: `` "name": "wrench", "mass": "1.3kg", "count"
|
847
|
+
# : "3" ``.
|
848
|
+
# Corresponds to the JSON property `labels`
|
849
|
+
# @return [Hash<String,String>]
|
850
|
+
attr_accessor :labels
|
851
|
+
|
852
|
+
# The name (URI) of this migration job resource, in the form of: projects/`
|
853
|
+
# project`/locations/`location`/instances/`instance`.
|
854
|
+
# Corresponds to the JSON property `name`
|
855
|
+
# @return [String]
|
856
|
+
attr_accessor :name
|
857
|
+
|
858
|
+
# Output only. The current migration job phase.
|
859
|
+
# Corresponds to the JSON property `phase`
|
860
|
+
# @return [String]
|
861
|
+
attr_accessor :phase
|
862
|
+
|
863
|
+
# The details needed to configure a reverse SSH tunnel between the source and
|
864
|
+
# destination databases. These details will be used when calling the
|
865
|
+
# generateSshScript method (see https://cloud.google.com/database-migration/docs/
|
866
|
+
# reference/rest/v1/projects.locations.migrationJobs/generateSshScript) to
|
867
|
+
# produce the script that will help set up the reverse SSH tunnel, and to set up
|
868
|
+
# the VPC peering between the Cloud SQL private network and the VPC.
|
869
|
+
# Corresponds to the JSON property `reverseSshConnectivity`
|
870
|
+
# @return [Google::Apis::DatamigrationV1::ReverseSshConnectivity]
|
871
|
+
attr_accessor :reverse_ssh_connectivity
|
872
|
+
|
873
|
+
# Required. The resource name (URI) of the source connection profile.
|
874
|
+
# Corresponds to the JSON property `source`
|
875
|
+
# @return [String]
|
876
|
+
attr_accessor :source
|
877
|
+
|
878
|
+
# A message defining the database engine and provider.
|
879
|
+
# Corresponds to the JSON property `sourceDatabase`
|
880
|
+
# @return [Google::Apis::DatamigrationV1::DatabaseType]
|
881
|
+
attr_accessor :source_database
|
882
|
+
|
883
|
+
# The current migration job state.
|
884
|
+
# Corresponds to the JSON property `state`
|
885
|
+
# @return [String]
|
886
|
+
attr_accessor :state
|
887
|
+
|
888
|
+
# The source database will allow incoming connections from the destination
|
889
|
+
# database's public IP. You can retrieve the Cloud SQL instance's public IP from
|
890
|
+
# the Cloud SQL console or using Cloud SQL APIs. No additional configuration is
|
891
|
+
# required.
|
892
|
+
# Corresponds to the JSON property `staticIpConnectivity`
|
893
|
+
# @return [Google::Apis::DatamigrationV1::StaticIpConnectivity]
|
894
|
+
attr_accessor :static_ip_connectivity
|
895
|
+
|
896
|
+
# Required. The migration job type.
|
897
|
+
# Corresponds to the JSON property `type`
|
898
|
+
# @return [String]
|
899
|
+
attr_accessor :type
|
900
|
+
|
901
|
+
# Output only. The timestamp when the migration job resource was last updated. A
|
902
|
+
# timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "
|
903
|
+
# 2014-10-02T15:01:23.045123456Z".
|
904
|
+
# Corresponds to the JSON property `updateTime`
|
905
|
+
# @return [String]
|
906
|
+
attr_accessor :update_time
|
907
|
+
|
908
|
+
# The details of the VPC where the source database is located in Google Cloud.
|
909
|
+
# We will use this information to set up the VPC peering connection between
|
910
|
+
# Cloud SQL and this VPC.
|
911
|
+
# Corresponds to the JSON property `vpcPeeringConnectivity`
|
912
|
+
# @return [Google::Apis::DatamigrationV1::VpcPeeringConnectivity]
|
913
|
+
attr_accessor :vpc_peering_connectivity
|
914
|
+
|
915
|
+
def initialize(**args)
|
916
|
+
update!(**args)
|
917
|
+
end
|
918
|
+
|
919
|
+
# Update properties of this object
|
920
|
+
def update!(**args)
|
921
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
922
|
+
@destination = args[:destination] if args.key?(:destination)
|
923
|
+
@destination_database = args[:destination_database] if args.key?(:destination_database)
|
924
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
925
|
+
@dump_path = args[:dump_path] if args.key?(:dump_path)
|
926
|
+
@duration = args[:duration] if args.key?(:duration)
|
927
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
928
|
+
@error = args[:error] if args.key?(:error)
|
929
|
+
@labels = args[:labels] if args.key?(:labels)
|
930
|
+
@name = args[:name] if args.key?(:name)
|
931
|
+
@phase = args[:phase] if args.key?(:phase)
|
932
|
+
@reverse_ssh_connectivity = args[:reverse_ssh_connectivity] if args.key?(:reverse_ssh_connectivity)
|
933
|
+
@source = args[:source] if args.key?(:source)
|
934
|
+
@source_database = args[:source_database] if args.key?(:source_database)
|
935
|
+
@state = args[:state] if args.key?(:state)
|
936
|
+
@static_ip_connectivity = args[:static_ip_connectivity] if args.key?(:static_ip_connectivity)
|
937
|
+
@type = args[:type] if args.key?(:type)
|
938
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
939
|
+
@vpc_peering_connectivity = args[:vpc_peering_connectivity] if args.key?(:vpc_peering_connectivity)
|
940
|
+
end
|
941
|
+
end
|
942
|
+
|
943
|
+
# Error message of a verification Migration job.
|
944
|
+
class MigrationJobVerificationError
|
945
|
+
include Google::Apis::Core::Hashable
|
946
|
+
|
947
|
+
# Output only. An instance of ErrorCode specifying the error that occurred.
|
948
|
+
# Corresponds to the JSON property `errorCode`
|
949
|
+
# @return [String]
|
950
|
+
attr_accessor :error_code
|
951
|
+
|
952
|
+
# Output only. A specific detailed error message, if supplied by the engine.
|
953
|
+
# Corresponds to the JSON property `errorDetailMessage`
|
954
|
+
# @return [String]
|
955
|
+
attr_accessor :error_detail_message
|
956
|
+
|
957
|
+
# Output only. A formatted message with further details about the error and a
|
958
|
+
# CTA.
|
959
|
+
# Corresponds to the JSON property `errorMessage`
|
960
|
+
# @return [String]
|
961
|
+
attr_accessor :error_message
|
962
|
+
|
963
|
+
def initialize(**args)
|
964
|
+
update!(**args)
|
965
|
+
end
|
966
|
+
|
967
|
+
# Update properties of this object
|
968
|
+
def update!(**args)
|
969
|
+
@error_code = args[:error_code] if args.key?(:error_code)
|
970
|
+
@error_detail_message = args[:error_detail_message] if args.key?(:error_detail_message)
|
971
|
+
@error_message = args[:error_message] if args.key?(:error_message)
|
972
|
+
end
|
973
|
+
end
|
974
|
+
|
975
|
+
# Specifies connection parameters required specifically for MySQL databases.
|
976
|
+
class MySqlConnectionProfile
|
977
|
+
include Google::Apis::Core::Hashable
|
978
|
+
|
979
|
+
# If the source is a Cloud SQL database, use this field to provide the Cloud SQL
|
980
|
+
# instance ID of the source.
|
981
|
+
# Corresponds to the JSON property `cloudSqlId`
|
982
|
+
# @return [String]
|
983
|
+
attr_accessor :cloud_sql_id
|
984
|
+
|
985
|
+
# Required. The IP or hostname of the source MySQL database.
|
986
|
+
# Corresponds to the JSON property `host`
|
987
|
+
# @return [String]
|
988
|
+
attr_accessor :host
|
989
|
+
|
990
|
+
# Required. Input only. The password for the user that Database Migration
|
991
|
+
# Service will be using to connect to the database. This field is not returned
|
992
|
+
# on request, and the value is encrypted when stored in Database Migration
|
993
|
+
# Service.
|
994
|
+
# Corresponds to the JSON property `password`
|
995
|
+
# @return [String]
|
996
|
+
attr_accessor :password
|
997
|
+
|
998
|
+
# Output only. Indicates If this connection profile password is stored.
|
999
|
+
# Corresponds to the JSON property `passwordSet`
|
1000
|
+
# @return [Boolean]
|
1001
|
+
attr_accessor :password_set
|
1002
|
+
alias_method :password_set?, :password_set
|
1003
|
+
|
1004
|
+
# Required. The network port of the source MySQL database.
|
1005
|
+
# Corresponds to the JSON property `port`
|
1006
|
+
# @return [Fixnum]
|
1007
|
+
attr_accessor :port
|
1008
|
+
|
1009
|
+
# SSL configuration information.
|
1010
|
+
# Corresponds to the JSON property `ssl`
|
1011
|
+
# @return [Google::Apis::DatamigrationV1::SslConfig]
|
1012
|
+
attr_accessor :ssl
|
1013
|
+
|
1014
|
+
# Required. The username that Database Migration Service will use to connect to
|
1015
|
+
# the database. The value is encrypted when stored in Database Migration Service.
|
1016
|
+
# Corresponds to the JSON property `username`
|
1017
|
+
# @return [String]
|
1018
|
+
attr_accessor :username
|
1019
|
+
|
1020
|
+
def initialize(**args)
|
1021
|
+
update!(**args)
|
1022
|
+
end
|
1023
|
+
|
1024
|
+
# Update properties of this object
|
1025
|
+
def update!(**args)
|
1026
|
+
@cloud_sql_id = args[:cloud_sql_id] if args.key?(:cloud_sql_id)
|
1027
|
+
@host = args[:host] if args.key?(:host)
|
1028
|
+
@password = args[:password] if args.key?(:password)
|
1029
|
+
@password_set = args[:password_set] if args.key?(:password_set)
|
1030
|
+
@port = args[:port] if args.key?(:port)
|
1031
|
+
@ssl = args[:ssl] if args.key?(:ssl)
|
1032
|
+
@username = args[:username] if args.key?(:username)
|
1033
|
+
end
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
# This resource represents a long-running operation that is the result of a
|
1037
|
+
# network API call.
|
1038
|
+
class Operation
|
1039
|
+
include Google::Apis::Core::Hashable
|
1040
|
+
|
1041
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
1042
|
+
# , the operation is completed, and either `error` or `response` is available.
|
1043
|
+
# Corresponds to the JSON property `done`
|
1044
|
+
# @return [Boolean]
|
1045
|
+
attr_accessor :done
|
1046
|
+
alias_method :done?, :done
|
1047
|
+
|
1048
|
+
# The `Status` type defines a logical error model that is suitable for different
|
1049
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
1050
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
1051
|
+
# data: error code, error message, and error details. You can find out more
|
1052
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
1053
|
+
# //cloud.google.com/apis/design/errors).
|
1054
|
+
# Corresponds to the JSON property `error`
|
1055
|
+
# @return [Google::Apis::DatamigrationV1::Status]
|
1056
|
+
attr_accessor :error
|
1057
|
+
|
1058
|
+
# Service-specific metadata associated with the operation. It typically contains
|
1059
|
+
# progress information and common metadata such as create time. Some services
|
1060
|
+
# might not provide such metadata. Any method that returns a long-running
|
1061
|
+
# operation should document the metadata type, if any.
|
1062
|
+
# Corresponds to the JSON property `metadata`
|
1063
|
+
# @return [Hash<String,Object>]
|
1064
|
+
attr_accessor :metadata
|
1065
|
+
|
1066
|
+
# The server-assigned name, which is only unique within the same service that
|
1067
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
1068
|
+
# be a resource name ending with `operations/`unique_id``.
|
1069
|
+
# Corresponds to the JSON property `name`
|
1070
|
+
# @return [String]
|
1071
|
+
attr_accessor :name
|
1072
|
+
|
1073
|
+
# The normal response of the operation in case of success. If the original
|
1074
|
+
# method returns no data on success, such as `Delete`, the response is `google.
|
1075
|
+
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
1076
|
+
# the response should be the resource. For other methods, the response should
|
1077
|
+
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
1078
|
+
# example, if the original method name is `TakeSnapshot()`, the inferred
|
1079
|
+
# response type is `TakeSnapshotResponse`.
|
1080
|
+
# Corresponds to the JSON property `response`
|
1081
|
+
# @return [Hash<String,Object>]
|
1082
|
+
attr_accessor :response
|
1083
|
+
|
1084
|
+
def initialize(**args)
|
1085
|
+
update!(**args)
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
# Update properties of this object
|
1089
|
+
def update!(**args)
|
1090
|
+
@done = args[:done] if args.key?(:done)
|
1091
|
+
@error = args[:error] if args.key?(:error)
|
1092
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
1093
|
+
@name = args[:name] if args.key?(:name)
|
1094
|
+
@response = args[:response] if args.key?(:response)
|
1095
|
+
end
|
1096
|
+
end
|
1097
|
+
|
1098
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
1099
|
+
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
1100
|
+
# A `binding` binds one or more `members` to a single `role`. Members can be
|
1101
|
+
# user accounts, service accounts, Google groups, and domains (such as G Suite).
|
1102
|
+
# A `role` is a named list of permissions; each `role` can be an IAM predefined
|
1103
|
+
# role or a user-created custom role. For some types of Google Cloud resources,
|
1104
|
+
# a `binding` can also specify a `condition`, which is a logical expression that
|
1105
|
+
# allows access to a resource only if the expression evaluates to `true`. A
|
1106
|
+
# condition can add constraints based on attributes of the request, the resource,
|
1107
|
+
# or both. To learn which resources support conditions in their IAM policies,
|
1108
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
1109
|
+
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
|
1110
|
+
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
1111
|
+
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
1112
|
+
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
1113
|
+
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
1114
|
+
# title": "expirable access", "description": "Does not grant access after Sep
|
1115
|
+
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
1116
|
+
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
|
1117
|
+
# members: - user:mike@example.com - group:admins@example.com - domain:google.
|
1118
|
+
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
1119
|
+
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
1120
|
+
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
1121
|
+
# description: Does not grant access after Sep 2020 expression: request.time <
|
1122
|
+
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
1123
|
+
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
1124
|
+
# google.com/iam/docs/).
|
1125
|
+
class Policy
|
1126
|
+
include Google::Apis::Core::Hashable
|
1127
|
+
|
1128
|
+
# Specifies cloud audit logging configuration for this policy.
|
1129
|
+
# Corresponds to the JSON property `auditConfigs`
|
1130
|
+
# @return [Array<Google::Apis::DatamigrationV1::AuditConfig>]
|
1131
|
+
attr_accessor :audit_configs
|
1132
|
+
|
1133
|
+
# Associates a list of `members` to a `role`. Optionally, may specify a `
|
1134
|
+
# condition` that determines how and when the `bindings` are applied. Each of
|
1135
|
+
# the `bindings` must contain at least one member.
|
1136
|
+
# Corresponds to the JSON property `bindings`
|
1137
|
+
# @return [Array<Google::Apis::DatamigrationV1::Binding>]
|
1138
|
+
attr_accessor :bindings
|
1139
|
+
|
1140
|
+
# `etag` is used for optimistic concurrency control as a way to help prevent
|
1141
|
+
# simultaneous updates of a policy from overwriting each other. It is strongly
|
1142
|
+
# suggested that systems make use of the `etag` in the read-modify-write cycle
|
1143
|
+
# to perform policy updates in order to avoid race conditions: An `etag` is
|
1144
|
+
# returned in the response to `getIamPolicy`, and systems are expected to put
|
1145
|
+
# that etag in the request to `setIamPolicy` to ensure that their change will be
|
1146
|
+
# applied to the same version of the policy. **Important:** If you use IAM
|
1147
|
+
# Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
|
1148
|
+
# If you omit this field, then IAM allows you to overwrite a version `3` policy
|
1149
|
+
# with a version `1` policy, and all of the conditions in the version `3` policy
|
1150
|
+
# are lost.
|
1151
|
+
# Corresponds to the JSON property `etag`
|
1152
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1153
|
+
# @return [String]
|
1154
|
+
attr_accessor :etag
|
1155
|
+
|
1156
|
+
# Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
|
1157
|
+
# Requests that specify an invalid value are rejected. Any operation that
|
1158
|
+
# affects conditional role bindings must specify version `3`. This requirement
|
1159
|
+
# applies to the following operations: * Getting a policy that includes a
|
1160
|
+
# conditional role binding * Adding a conditional role binding to a policy *
|
1161
|
+
# Changing a conditional role binding in a policy * Removing any role binding,
|
1162
|
+
# with or without a condition, from a policy that includes conditions **
|
1163
|
+
# Important:** If you use IAM Conditions, you must include the `etag` field
|
1164
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
|
1165
|
+
# to overwrite a version `3` policy with a version `1` policy, and all of the
|
1166
|
+
# conditions in the version `3` policy are lost. If a policy does not include
|
1167
|
+
# any conditions, operations on that policy may specify any valid version or
|
1168
|
+
# leave the field unset. To learn which resources support conditions in their
|
1169
|
+
# IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
|
1170
|
+
# conditions/resource-policies).
|
1171
|
+
# Corresponds to the JSON property `version`
|
1172
|
+
# @return [Fixnum]
|
1173
|
+
attr_accessor :version
|
1174
|
+
|
1175
|
+
def initialize(**args)
|
1176
|
+
update!(**args)
|
1177
|
+
end
|
1178
|
+
|
1179
|
+
# Update properties of this object
|
1180
|
+
def update!(**args)
|
1181
|
+
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
1182
|
+
@bindings = args[:bindings] if args.key?(:bindings)
|
1183
|
+
@etag = args[:etag] if args.key?(:etag)
|
1184
|
+
@version = args[:version] if args.key?(:version)
|
1185
|
+
end
|
1186
|
+
end
|
1187
|
+
|
1188
|
+
# Specifies connection parameters required specifically for PostgreSQL databases.
|
1189
|
+
class PostgreSqlConnectionProfile
|
1190
|
+
include Google::Apis::Core::Hashable
|
1191
|
+
|
1192
|
+
# If the source is a Cloud SQL database, use this field to provide the Cloud SQL
|
1193
|
+
# instance ID of the source.
|
1194
|
+
# Corresponds to the JSON property `cloudSqlId`
|
1195
|
+
# @return [String]
|
1196
|
+
attr_accessor :cloud_sql_id
|
1197
|
+
|
1198
|
+
# Required. The IP or hostname of the source PostgreSQL database.
|
1199
|
+
# Corresponds to the JSON property `host`
|
1200
|
+
# @return [String]
|
1201
|
+
attr_accessor :host
|
1202
|
+
|
1203
|
+
# Required. Input only. The password for the user that Database Migration
|
1204
|
+
# Service will be using to connect to the database. This field is not returned
|
1205
|
+
# on request, and the value is encrypted when stored in Database Migration
|
1206
|
+
# Service.
|
1207
|
+
# Corresponds to the JSON property `password`
|
1208
|
+
# @return [String]
|
1209
|
+
attr_accessor :password
|
1210
|
+
|
1211
|
+
# Output only. Indicates If this connection profile password is stored.
|
1212
|
+
# Corresponds to the JSON property `passwordSet`
|
1213
|
+
# @return [Boolean]
|
1214
|
+
attr_accessor :password_set
|
1215
|
+
alias_method :password_set?, :password_set
|
1216
|
+
|
1217
|
+
# Required. The network port of the source PostgreSQL database.
|
1218
|
+
# Corresponds to the JSON property `port`
|
1219
|
+
# @return [Fixnum]
|
1220
|
+
attr_accessor :port
|
1221
|
+
|
1222
|
+
# SSL configuration information.
|
1223
|
+
# Corresponds to the JSON property `ssl`
|
1224
|
+
# @return [Google::Apis::DatamigrationV1::SslConfig]
|
1225
|
+
attr_accessor :ssl
|
1226
|
+
|
1227
|
+
# Required. The username that Database Migration Service will use to connect to
|
1228
|
+
# the database. The value is encrypted when stored in Database Migration Service.
|
1229
|
+
# Corresponds to the JSON property `username`
|
1230
|
+
# @return [String]
|
1231
|
+
attr_accessor :username
|
1232
|
+
|
1233
|
+
def initialize(**args)
|
1234
|
+
update!(**args)
|
1235
|
+
end
|
1236
|
+
|
1237
|
+
# Update properties of this object
|
1238
|
+
def update!(**args)
|
1239
|
+
@cloud_sql_id = args[:cloud_sql_id] if args.key?(:cloud_sql_id)
|
1240
|
+
@host = args[:host] if args.key?(:host)
|
1241
|
+
@password = args[:password] if args.key?(:password)
|
1242
|
+
@password_set = args[:password_set] if args.key?(:password_set)
|
1243
|
+
@port = args[:port] if args.key?(:port)
|
1244
|
+
@ssl = args[:ssl] if args.key?(:ssl)
|
1245
|
+
@username = args[:username] if args.key?(:username)
|
1246
|
+
end
|
1247
|
+
end
|
1248
|
+
|
1249
|
+
# Request message for 'PromoteMigrationJob' request.
|
1250
|
+
class PromoteMigrationJobRequest
|
1251
|
+
include Google::Apis::Core::Hashable
|
1252
|
+
|
1253
|
+
def initialize(**args)
|
1254
|
+
update!(**args)
|
1255
|
+
end
|
1256
|
+
|
1257
|
+
# Update properties of this object
|
1258
|
+
def update!(**args)
|
1259
|
+
end
|
1260
|
+
end
|
1261
|
+
|
1262
|
+
# Request message for 'RestartMigrationJob' request.
|
1263
|
+
class RestartMigrationJobRequest
|
1264
|
+
include Google::Apis::Core::Hashable
|
1265
|
+
|
1266
|
+
def initialize(**args)
|
1267
|
+
update!(**args)
|
1268
|
+
end
|
1269
|
+
|
1270
|
+
# Update properties of this object
|
1271
|
+
def update!(**args)
|
1272
|
+
end
|
1273
|
+
end
|
1274
|
+
|
1275
|
+
# Request message for 'ResumeMigrationJob' request.
|
1276
|
+
class ResumeMigrationJobRequest
|
1277
|
+
include Google::Apis::Core::Hashable
|
1278
|
+
|
1279
|
+
def initialize(**args)
|
1280
|
+
update!(**args)
|
1281
|
+
end
|
1282
|
+
|
1283
|
+
# Update properties of this object
|
1284
|
+
def update!(**args)
|
1285
|
+
end
|
1286
|
+
end
|
1287
|
+
|
1288
|
+
# The details needed to configure a reverse SSH tunnel between the source and
|
1289
|
+
# destination databases. These details will be used when calling the
|
1290
|
+
# generateSshScript method (see https://cloud.google.com/database-migration/docs/
|
1291
|
+
# reference/rest/v1/projects.locations.migrationJobs/generateSshScript) to
|
1292
|
+
# produce the script that will help set up the reverse SSH tunnel, and to set up
|
1293
|
+
# the VPC peering between the Cloud SQL private network and the VPC.
|
1294
|
+
class ReverseSshConnectivity
|
1295
|
+
include Google::Apis::Core::Hashable
|
1296
|
+
|
1297
|
+
# The name of the virtual machine (Compute Engine) used as the bastion server
|
1298
|
+
# for the SSH tunnel.
|
1299
|
+
# Corresponds to the JSON property `vm`
|
1300
|
+
# @return [String]
|
1301
|
+
attr_accessor :vm
|
1302
|
+
|
1303
|
+
# Required. The IP of the virtual machine (Compute Engine) used as the bastion
|
1304
|
+
# server for the SSH tunnel.
|
1305
|
+
# Corresponds to the JSON property `vmIp`
|
1306
|
+
# @return [String]
|
1307
|
+
attr_accessor :vm_ip
|
1308
|
+
|
1309
|
+
# Required. The forwarding port of the virtual machine (Compute Engine) used as
|
1310
|
+
# the bastion server for the SSH tunnel.
|
1311
|
+
# Corresponds to the JSON property `vmPort`
|
1312
|
+
# @return [Fixnum]
|
1313
|
+
attr_accessor :vm_port
|
1314
|
+
|
1315
|
+
# The name of the VPC to peer with the Cloud SQL private network.
|
1316
|
+
# Corresponds to the JSON property `vpc`
|
1317
|
+
# @return [String]
|
1318
|
+
attr_accessor :vpc
|
1319
|
+
|
1320
|
+
def initialize(**args)
|
1321
|
+
update!(**args)
|
1322
|
+
end
|
1323
|
+
|
1324
|
+
# Update properties of this object
|
1325
|
+
def update!(**args)
|
1326
|
+
@vm = args[:vm] if args.key?(:vm)
|
1327
|
+
@vm_ip = args[:vm_ip] if args.key?(:vm_ip)
|
1328
|
+
@vm_port = args[:vm_port] if args.key?(:vm_port)
|
1329
|
+
@vpc = args[:vpc] if args.key?(:vpc)
|
1330
|
+
end
|
1331
|
+
end
|
1332
|
+
|
1333
|
+
# Request message for `SetIamPolicy` method.
|
1334
|
+
class SetIamPolicyRequest
|
1335
|
+
include Google::Apis::Core::Hashable
|
1336
|
+
|
1337
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
1338
|
+
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
1339
|
+
# A `binding` binds one or more `members` to a single `role`. Members can be
|
1340
|
+
# user accounts, service accounts, Google groups, and domains (such as G Suite).
|
1341
|
+
# A `role` is a named list of permissions; each `role` can be an IAM predefined
|
1342
|
+
# role or a user-created custom role. For some types of Google Cloud resources,
|
1343
|
+
# a `binding` can also specify a `condition`, which is a logical expression that
|
1344
|
+
# allows access to a resource only if the expression evaluates to `true`. A
|
1345
|
+
# condition can add constraints based on attributes of the request, the resource,
|
1346
|
+
# or both. To learn which resources support conditions in their IAM policies,
|
1347
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
1348
|
+
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
|
1349
|
+
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
1350
|
+
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
1351
|
+
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
1352
|
+
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
1353
|
+
# title": "expirable access", "description": "Does not grant access after Sep
|
1354
|
+
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
1355
|
+
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
|
1356
|
+
# members: - user:mike@example.com - group:admins@example.com - domain:google.
|
1357
|
+
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
1358
|
+
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
1359
|
+
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
1360
|
+
# description: Does not grant access after Sep 2020 expression: request.time <
|
1361
|
+
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
1362
|
+
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
1363
|
+
# google.com/iam/docs/).
|
1364
|
+
# Corresponds to the JSON property `policy`
|
1365
|
+
# @return [Google::Apis::DatamigrationV1::Policy]
|
1366
|
+
attr_accessor :policy
|
1367
|
+
|
1368
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
1369
|
+
# the fields in the mask will be modified. If no mask is provided, the following
|
1370
|
+
# default mask is used: `paths: "bindings, etag"`
|
1371
|
+
# Corresponds to the JSON property `updateMask`
|
1372
|
+
# @return [String]
|
1373
|
+
attr_accessor :update_mask
|
1374
|
+
|
1375
|
+
def initialize(**args)
|
1376
|
+
update!(**args)
|
1377
|
+
end
|
1378
|
+
|
1379
|
+
# Update properties of this object
|
1380
|
+
def update!(**args)
|
1381
|
+
@policy = args[:policy] if args.key?(:policy)
|
1382
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
1383
|
+
end
|
1384
|
+
end
|
1385
|
+
|
1386
|
+
# An entry for an Access Control list.
|
1387
|
+
class SqlAclEntry
|
1388
|
+
include Google::Apis::Core::Hashable
|
1389
|
+
|
1390
|
+
# The time when this access control entry expires in [RFC 3339](https://tools.
|
1391
|
+
# ietf.org/html/rfc3339) format, for example: `2012-11-15T16:19:00.094Z`.
|
1392
|
+
# Corresponds to the JSON property `expireTime`
|
1393
|
+
# @return [String]
|
1394
|
+
attr_accessor :expire_time
|
1395
|
+
|
1396
|
+
# A label to identify this entry.
|
1397
|
+
# Corresponds to the JSON property `label`
|
1398
|
+
# @return [String]
|
1399
|
+
attr_accessor :label
|
1400
|
+
|
1401
|
+
# Input only. The time-to-leave of this access control entry.
|
1402
|
+
# Corresponds to the JSON property `ttl`
|
1403
|
+
# @return [String]
|
1404
|
+
attr_accessor :ttl
|
1405
|
+
|
1406
|
+
# The allowlisted value for the access control list.
|
1407
|
+
# Corresponds to the JSON property `value`
|
1408
|
+
# @return [String]
|
1409
|
+
attr_accessor :value
|
1410
|
+
|
1411
|
+
def initialize(**args)
|
1412
|
+
update!(**args)
|
1413
|
+
end
|
1414
|
+
|
1415
|
+
# Update properties of this object
|
1416
|
+
def update!(**args)
|
1417
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
1418
|
+
@label = args[:label] if args.key?(:label)
|
1419
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
1420
|
+
@value = args[:value] if args.key?(:value)
|
1421
|
+
end
|
1422
|
+
end
|
1423
|
+
|
1424
|
+
# IP Management configuration.
|
1425
|
+
class SqlIpConfig
|
1426
|
+
include Google::Apis::Core::Hashable
|
1427
|
+
|
1428
|
+
# The list of external networks that are allowed to connect to the instance
|
1429
|
+
# using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation,
|
1430
|
+
# also known as 'slash' notation (e.g. `192.168.100.0/24`).
|
1431
|
+
# Corresponds to the JSON property `authorizedNetworks`
|
1432
|
+
# @return [Array<Google::Apis::DatamigrationV1::SqlAclEntry>]
|
1433
|
+
attr_accessor :authorized_networks
|
1434
|
+
|
1435
|
+
# Whether the instance should be assigned an IPv4 address or not.
|
1436
|
+
# Corresponds to the JSON property `enableIpv4`
|
1437
|
+
# @return [Boolean]
|
1438
|
+
attr_accessor :enable_ipv4
|
1439
|
+
alias_method :enable_ipv4?, :enable_ipv4
|
1440
|
+
|
1441
|
+
# The resource link for the VPC network from which the Cloud SQL instance is
|
1442
|
+
# accessible for private IP. For example, `/projects/myProject/global/networks/
|
1443
|
+
# default`. This setting can be updated, but it cannot be removed after it is
|
1444
|
+
# set.
|
1445
|
+
# Corresponds to the JSON property `privateNetwork`
|
1446
|
+
# @return [String]
|
1447
|
+
attr_accessor :private_network
|
1448
|
+
|
1449
|
+
# Whether SSL connections over IP should be enforced or not.
|
1450
|
+
# Corresponds to the JSON property `requireSsl`
|
1451
|
+
# @return [Boolean]
|
1452
|
+
attr_accessor :require_ssl
|
1453
|
+
alias_method :require_ssl?, :require_ssl
|
1454
|
+
|
1455
|
+
def initialize(**args)
|
1456
|
+
update!(**args)
|
1457
|
+
end
|
1458
|
+
|
1459
|
+
# Update properties of this object
|
1460
|
+
def update!(**args)
|
1461
|
+
@authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks)
|
1462
|
+
@enable_ipv4 = args[:enable_ipv4] if args.key?(:enable_ipv4)
|
1463
|
+
@private_network = args[:private_network] if args.key?(:private_network)
|
1464
|
+
@require_ssl = args[:require_ssl] if args.key?(:require_ssl)
|
1465
|
+
end
|
1466
|
+
end
|
1467
|
+
|
1468
|
+
# Response message for 'GenerateSshScript' request.
|
1469
|
+
class SshScript
|
1470
|
+
include Google::Apis::Core::Hashable
|
1471
|
+
|
1472
|
+
# The ssh configuration script.
|
1473
|
+
# Corresponds to the JSON property `script`
|
1474
|
+
# @return [String]
|
1475
|
+
attr_accessor :script
|
1476
|
+
|
1477
|
+
def initialize(**args)
|
1478
|
+
update!(**args)
|
1479
|
+
end
|
1480
|
+
|
1481
|
+
# Update properties of this object
|
1482
|
+
def update!(**args)
|
1483
|
+
@script = args[:script] if args.key?(:script)
|
1484
|
+
end
|
1485
|
+
end
|
1486
|
+
|
1487
|
+
# SSL configuration information.
|
1488
|
+
class SslConfig
|
1489
|
+
include Google::Apis::Core::Hashable
|
1490
|
+
|
1491
|
+
# Required. Input only. The x509 PEM-encoded certificate of the CA that signed
|
1492
|
+
# the source database server's certificate. The replica will use this
|
1493
|
+
# certificate to verify it's connecting to the right host.
|
1494
|
+
# Corresponds to the JSON property `caCertificate`
|
1495
|
+
# @return [String]
|
1496
|
+
attr_accessor :ca_certificate
|
1497
|
+
|
1498
|
+
# Input only. The x509 PEM-encoded certificate that will be used by the replica
|
1499
|
+
# to authenticate against the source database server.If this field is used then
|
1500
|
+
# the 'client_key' field is mandatory.
|
1501
|
+
# Corresponds to the JSON property `clientCertificate`
|
1502
|
+
# @return [String]
|
1503
|
+
attr_accessor :client_certificate
|
1504
|
+
|
1505
|
+
# Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key
|
1506
|
+
# associated with the Client Certificate. If this field is used then the '
|
1507
|
+
# client_certificate' field is mandatory.
|
1508
|
+
# Corresponds to the JSON property `clientKey`
|
1509
|
+
# @return [String]
|
1510
|
+
attr_accessor :client_key
|
1511
|
+
|
1512
|
+
# Output only. The ssl config type according to 'client_key', '
|
1513
|
+
# client_certificate' and 'ca_certificate'.
|
1514
|
+
# Corresponds to the JSON property `type`
|
1515
|
+
# @return [String]
|
1516
|
+
attr_accessor :type
|
1517
|
+
|
1518
|
+
def initialize(**args)
|
1519
|
+
update!(**args)
|
1520
|
+
end
|
1521
|
+
|
1522
|
+
# Update properties of this object
|
1523
|
+
def update!(**args)
|
1524
|
+
@ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate)
|
1525
|
+
@client_certificate = args[:client_certificate] if args.key?(:client_certificate)
|
1526
|
+
@client_key = args[:client_key] if args.key?(:client_key)
|
1527
|
+
@type = args[:type] if args.key?(:type)
|
1528
|
+
end
|
1529
|
+
end
|
1530
|
+
|
1531
|
+
# Request message for 'StartMigrationJob' request.
|
1532
|
+
class StartMigrationJobRequest
|
1533
|
+
include Google::Apis::Core::Hashable
|
1534
|
+
|
1535
|
+
def initialize(**args)
|
1536
|
+
update!(**args)
|
1537
|
+
end
|
1538
|
+
|
1539
|
+
# Update properties of this object
|
1540
|
+
def update!(**args)
|
1541
|
+
end
|
1542
|
+
end
|
1543
|
+
|
1544
|
+
# The source database will allow incoming connections from the destination
|
1545
|
+
# database's public IP. You can retrieve the Cloud SQL instance's public IP from
|
1546
|
+
# the Cloud SQL console or using Cloud SQL APIs. No additional configuration is
|
1547
|
+
# required.
|
1548
|
+
class StaticIpConnectivity
|
1549
|
+
include Google::Apis::Core::Hashable
|
1550
|
+
|
1551
|
+
def initialize(**args)
|
1552
|
+
update!(**args)
|
1553
|
+
end
|
1554
|
+
|
1555
|
+
# Update properties of this object
|
1556
|
+
def update!(**args)
|
1557
|
+
end
|
1558
|
+
end
|
1559
|
+
|
1560
|
+
# The `Status` type defines a logical error model that is suitable for different
|
1561
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
1562
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
1563
|
+
# data: error code, error message, and error details. You can find out more
|
1564
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
1565
|
+
# //cloud.google.com/apis/design/errors).
|
1566
|
+
class Status
|
1567
|
+
include Google::Apis::Core::Hashable
|
1568
|
+
|
1569
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
1570
|
+
# Corresponds to the JSON property `code`
|
1571
|
+
# @return [Fixnum]
|
1572
|
+
attr_accessor :code
|
1573
|
+
|
1574
|
+
# A list of messages that carry the error details. There is a common set of
|
1575
|
+
# message types for APIs to use.
|
1576
|
+
# Corresponds to the JSON property `details`
|
1577
|
+
# @return [Array<Hash<String,Object>>]
|
1578
|
+
attr_accessor :details
|
1579
|
+
|
1580
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
1581
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
1582
|
+
# field, or localized by the client.
|
1583
|
+
# Corresponds to the JSON property `message`
|
1584
|
+
# @return [String]
|
1585
|
+
attr_accessor :message
|
1586
|
+
|
1587
|
+
def initialize(**args)
|
1588
|
+
update!(**args)
|
1589
|
+
end
|
1590
|
+
|
1591
|
+
# Update properties of this object
|
1592
|
+
def update!(**args)
|
1593
|
+
@code = args[:code] if args.key?(:code)
|
1594
|
+
@details = args[:details] if args.key?(:details)
|
1595
|
+
@message = args[:message] if args.key?(:message)
|
1596
|
+
end
|
1597
|
+
end
|
1598
|
+
|
1599
|
+
# Request message for 'StopMigrationJob' request.
|
1600
|
+
class StopMigrationJobRequest
|
1601
|
+
include Google::Apis::Core::Hashable
|
1602
|
+
|
1603
|
+
def initialize(**args)
|
1604
|
+
update!(**args)
|
1605
|
+
end
|
1606
|
+
|
1607
|
+
# Update properties of this object
|
1608
|
+
def update!(**args)
|
1609
|
+
end
|
1610
|
+
end
|
1611
|
+
|
1612
|
+
# Request message for `TestIamPermissions` method.
|
1613
|
+
class TestIamPermissionsRequest
|
1614
|
+
include Google::Apis::Core::Hashable
|
1615
|
+
|
1616
|
+
# The set of permissions to check for the `resource`. Permissions with wildcards
|
1617
|
+
# (such as '*' or 'storage.*') are not allowed. For more information see [IAM
|
1618
|
+
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
1619
|
+
# Corresponds to the JSON property `permissions`
|
1620
|
+
# @return [Array<String>]
|
1621
|
+
attr_accessor :permissions
|
1622
|
+
|
1623
|
+
def initialize(**args)
|
1624
|
+
update!(**args)
|
1625
|
+
end
|
1626
|
+
|
1627
|
+
# Update properties of this object
|
1628
|
+
def update!(**args)
|
1629
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
1630
|
+
end
|
1631
|
+
end
|
1632
|
+
|
1633
|
+
# Response message for `TestIamPermissions` method.
|
1634
|
+
class TestIamPermissionsResponse
|
1635
|
+
include Google::Apis::Core::Hashable
|
1636
|
+
|
1637
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
|
1638
|
+
# Corresponds to the JSON property `permissions`
|
1639
|
+
# @return [Array<String>]
|
1640
|
+
attr_accessor :permissions
|
1641
|
+
|
1642
|
+
def initialize(**args)
|
1643
|
+
update!(**args)
|
1644
|
+
end
|
1645
|
+
|
1646
|
+
# Update properties of this object
|
1647
|
+
def update!(**args)
|
1648
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
1649
|
+
end
|
1650
|
+
end
|
1651
|
+
|
1652
|
+
# Request message for 'VerifyMigrationJob' request.
|
1653
|
+
class VerifyMigrationJobRequest
|
1654
|
+
include Google::Apis::Core::Hashable
|
1655
|
+
|
1656
|
+
def initialize(**args)
|
1657
|
+
update!(**args)
|
1658
|
+
end
|
1659
|
+
|
1660
|
+
# Update properties of this object
|
1661
|
+
def update!(**args)
|
1662
|
+
end
|
1663
|
+
end
|
1664
|
+
|
1665
|
+
# VM creation configuration message
|
1666
|
+
class VmCreationConfig
|
1667
|
+
include Google::Apis::Core::Hashable
|
1668
|
+
|
1669
|
+
# The subnet name the vm needs to be created in.
|
1670
|
+
# Corresponds to the JSON property `subnet`
|
1671
|
+
# @return [String]
|
1672
|
+
attr_accessor :subnet
|
1673
|
+
|
1674
|
+
# Required. VM instance machine type to create.
|
1675
|
+
# Corresponds to the JSON property `vmMachineType`
|
1676
|
+
# @return [String]
|
1677
|
+
attr_accessor :vm_machine_type
|
1678
|
+
|
1679
|
+
# The Google Cloud Platform zone to create the VM in.
|
1680
|
+
# Corresponds to the JSON property `vmZone`
|
1681
|
+
# @return [String]
|
1682
|
+
attr_accessor :vm_zone
|
1683
|
+
|
1684
|
+
def initialize(**args)
|
1685
|
+
update!(**args)
|
1686
|
+
end
|
1687
|
+
|
1688
|
+
# Update properties of this object
|
1689
|
+
def update!(**args)
|
1690
|
+
@subnet = args[:subnet] if args.key?(:subnet)
|
1691
|
+
@vm_machine_type = args[:vm_machine_type] if args.key?(:vm_machine_type)
|
1692
|
+
@vm_zone = args[:vm_zone] if args.key?(:vm_zone)
|
1693
|
+
end
|
1694
|
+
end
|
1695
|
+
|
1696
|
+
# VM selection configuration message
|
1697
|
+
class VmSelectionConfig
|
1698
|
+
include Google::Apis::Core::Hashable
|
1699
|
+
|
1700
|
+
# Required. The Google Cloud Platform zone the VM is located.
|
1701
|
+
# Corresponds to the JSON property `vmZone`
|
1702
|
+
# @return [String]
|
1703
|
+
attr_accessor :vm_zone
|
1704
|
+
|
1705
|
+
def initialize(**args)
|
1706
|
+
update!(**args)
|
1707
|
+
end
|
1708
|
+
|
1709
|
+
# Update properties of this object
|
1710
|
+
def update!(**args)
|
1711
|
+
@vm_zone = args[:vm_zone] if args.key?(:vm_zone)
|
1712
|
+
end
|
1713
|
+
end
|
1714
|
+
|
1715
|
+
# The details of the VPC where the source database is located in Google Cloud.
|
1716
|
+
# We will use this information to set up the VPC peering connection between
|
1717
|
+
# Cloud SQL and this VPC.
|
1718
|
+
class VpcPeeringConnectivity
|
1719
|
+
include Google::Apis::Core::Hashable
|
1720
|
+
|
1721
|
+
# The name of the VPC network to peer with the Cloud SQL private network.
|
1722
|
+
# Corresponds to the JSON property `vpc`
|
1723
|
+
# @return [String]
|
1724
|
+
attr_accessor :vpc
|
1725
|
+
|
1726
|
+
def initialize(**args)
|
1727
|
+
update!(**args)
|
1728
|
+
end
|
1729
|
+
|
1730
|
+
# Update properties of this object
|
1731
|
+
def update!(**args)
|
1732
|
+
@vpc = args[:vpc] if args.key?(:vpc)
|
1733
|
+
end
|
1734
|
+
end
|
1735
|
+
end
|
1736
|
+
end
|
1737
|
+
end
|