google-apis-datamigration_v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: eefec7e7485967fc51460d0819514b5064adcaace8e87c00122d21c2801056ce
4
+ data.tar.gz: 163c9e0a402991932343a4e32fdce2a1dad445d6c830f0fb6593fdb6890a739f
5
+ SHA512:
6
+ metadata.gz: a3db5767553dec1763d5d1435b1cd7b3a7abd701829f68663a71f2220249db45d46ebeb2795b75c61501ee9b1ffd2a5100a3f0effe02c132116dcac62ed3b7df
7
+ data.tar.gz: c03a679080b309c3ff8232d6a3e4ef7aecdc56c56bb01c5e85f5f46f0381be67ba00d42c39ae15505f7d1eab4786f957715c33a3cb09667e99635632baf39263
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-datamigration_v1beta1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/datamigration_v1beta1/*.rb
9
+ lib/google/apis/datamigration_v1beta1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-datamigration_v1beta1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated from discovery document revision 20201229
6
+ * Regenerated using generator version 0.1.1
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1beta1 of the Database Migration API
2
+
3
+ This is a simple client library for version V1beta1 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_v1beta1', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-datamigration_v1beta1
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/datamigration_v1beta1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::DatamigrationV1beta1::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::DatamigrationV1beta1::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_v1beta1`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://cloud.google.com/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_v1beta1"
@@ -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_v1beta1/service.rb'
16
+ require 'google/apis/datamigration_v1beta1/classes.rb'
17
+ require 'google/apis/datamigration_v1beta1/representations.rb'
18
+ require 'google/apis/datamigration_v1beta1/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 DatamigrationV1beta1
28
+ # Version of the Database Migration API this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V1beta1'
31
+
32
+ # View and manage your data across Google Cloud Platform services
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,1663 @@
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 DatamigrationV1beta1
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::DatamigrationV1beta1::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::DatamigrationV1beta1::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::DatamigrationV1beta1::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 storage capacity available to the database, in GB. The minimum (and
243
+ # default) size is 10GB.
244
+ # Corresponds to the JSON property `dataDiskSizeGb`
245
+ # @return [Fixnum]
246
+ attr_accessor :data_disk_size_gb
247
+
248
+ # The type of storage: `PD_SSD` (default) or `PD_HDD`.
249
+ # Corresponds to the JSON property `dataDiskType`
250
+ # @return [String]
251
+ attr_accessor :data_disk_type
252
+
253
+ # The database flags passed to the Cloud SQL instance at startup. An object
254
+ # containing a list of "key": value pairs. Example: ` "name": "wrench", "mass": "
255
+ # 1.3kg", "count": "3" `.
256
+ # Corresponds to the JSON property `databaseFlags`
257
+ # @return [Hash<String,String>]
258
+ attr_accessor :database_flags
259
+
260
+ # The database engine type and version.
261
+ # Corresponds to the JSON property `databaseVersion`
262
+ # @return [String]
263
+ attr_accessor :database_version
264
+
265
+ # IP Management configuration.
266
+ # Corresponds to the JSON property `ipConfig`
267
+ # @return [Google::Apis::DatamigrationV1beta1::SqlIpConfig]
268
+ attr_accessor :ip_config
269
+
270
+ # Input only. Initial root password.
271
+ # Corresponds to the JSON property `rootPassword`
272
+ # @return [String]
273
+ attr_accessor :root_password
274
+
275
+ # Output only. Indicates If this connection profile root password is stored.
276
+ # Corresponds to the JSON property `rootPasswordSet`
277
+ # @return [Boolean]
278
+ attr_accessor :root_password_set
279
+ alias_method :root_password_set?, :root_password_set
280
+
281
+ # The Database Migration Service source connection profile ID, in the format: `
282
+ # projects/my_project_name/locations/us-central1/connectionProfiles/
283
+ # connection_profile_ID`
284
+ # Corresponds to the JSON property `sourceId`
285
+ # @return [String]
286
+ attr_accessor :source_id
287
+
288
+ # The maximum size to which storage capacity can be automatically increased. The
289
+ # default value is 0, which specifies that there is no limit.
290
+ # Corresponds to the JSON property `storageAutoResizeLimit`
291
+ # @return [Fixnum]
292
+ attr_accessor :storage_auto_resize_limit
293
+
294
+ # The tier (or machine type) for this instance, for example: `db-n1-standard-1` (
295
+ # MySQL instances). For more information, see [Cloud SQL Instance Settings](
296
+ # https://cloud.google.com/sql/docs/mysql/instance-settings).
297
+ # Corresponds to the JSON property `tier`
298
+ # @return [String]
299
+ attr_accessor :tier
300
+
301
+ # The resource labels for a Cloud SQL instance to use to annotate any related
302
+ # underlying resources such as Compute Engine VMs. An object containing a list
303
+ # of "key": "value" pairs. Example: `` "name": "wrench", "mass": "18kg", "count":
304
+ # "3" ``.
305
+ # Corresponds to the JSON property `userLabels`
306
+ # @return [Hash<String,String>]
307
+ attr_accessor :user_labels
308
+
309
+ # The Google Cloud Platform zone where your Cloud SQL datdabse instance is
310
+ # located.
311
+ # Corresponds to the JSON property `zone`
312
+ # @return [String]
313
+ attr_accessor :zone
314
+
315
+ def initialize(**args)
316
+ update!(**args)
317
+ end
318
+
319
+ # Update properties of this object
320
+ def update!(**args)
321
+ @activation_policy = args[:activation_policy] if args.key?(:activation_policy)
322
+ @auto_storage_increase = args[:auto_storage_increase] if args.key?(:auto_storage_increase)
323
+ @data_disk_size_gb = args[:data_disk_size_gb] if args.key?(:data_disk_size_gb)
324
+ @data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type)
325
+ @database_flags = args[:database_flags] if args.key?(:database_flags)
326
+ @database_version = args[:database_version] if args.key?(:database_version)
327
+ @ip_config = args[:ip_config] if args.key?(:ip_config)
328
+ @root_password = args[:root_password] if args.key?(:root_password)
329
+ @root_password_set = args[:root_password_set] if args.key?(:root_password_set)
330
+ @source_id = args[:source_id] if args.key?(:source_id)
331
+ @storage_auto_resize_limit = args[:storage_auto_resize_limit] if args.key?(:storage_auto_resize_limit)
332
+ @tier = args[:tier] if args.key?(:tier)
333
+ @user_labels = args[:user_labels] if args.key?(:user_labels)
334
+ @zone = args[:zone] if args.key?(:zone)
335
+ end
336
+ end
337
+
338
+ # A connection profile definition.
339
+ class ConnectionProfile
340
+ include Google::Apis::Core::Hashable
341
+
342
+ # Specifies required connection parameters, and, optionally, the parameters
343
+ # required to create a Cloud SQL destination database instance.
344
+ # Corresponds to the JSON property `cloudsql`
345
+ # @return [Google::Apis::DatamigrationV1beta1::CloudSqlConnectionProfile]
346
+ attr_accessor :cloudsql
347
+
348
+ # Output only. The timestamp when the resource was created. A timestamp in
349
+ # RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:
350
+ # 23.045123456Z".
351
+ # Corresponds to the JSON property `createTime`
352
+ # @return [String]
353
+ attr_accessor :create_time
354
+
355
+ # The connection profile display name.
356
+ # Corresponds to the JSON property `displayName`
357
+ # @return [String]
358
+ attr_accessor :display_name
359
+
360
+ # The `Status` type defines a logical error model that is suitable for different
361
+ # programming environments, including REST APIs and RPC APIs. It is used by [
362
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
363
+ # data: error code, error message, and error details. You can find out more
364
+ # about this error model and how to work with it in the [API Design Guide](https:
365
+ # //cloud.google.com/apis/design/errors).
366
+ # Corresponds to the JSON property `error`
367
+ # @return [Google::Apis::DatamigrationV1beta1::Status]
368
+ attr_accessor :error
369
+
370
+ # The resource labels for connection profile to use to annotate any related
371
+ # underlying resources such as Compute Engine VMs. An object containing a list
372
+ # of "key": "value" pairs. Example: `` "name": "wrench", "mass": "1.3kg", "count"
373
+ # : "3" ``.
374
+ # Corresponds to the JSON property `labels`
375
+ # @return [Hash<String,String>]
376
+ attr_accessor :labels
377
+
378
+ # Specifies connection parameters required specifically for MySQL databases.
379
+ # Corresponds to the JSON property `mysql`
380
+ # @return [Google::Apis::DatamigrationV1beta1::MySqlConnectionProfile]
381
+ attr_accessor :mysql
382
+
383
+ # The name of this connection profile resource in the form of projects/`project`/
384
+ # locations/`location`/instances/`instance`.
385
+ # Corresponds to the JSON property `name`
386
+ # @return [String]
387
+ attr_accessor :name
388
+
389
+ # The database provider.
390
+ # Corresponds to the JSON property `provider`
391
+ # @return [String]
392
+ attr_accessor :provider
393
+
394
+ # The current connection profile state (e.g. DRAFT, READY, or FAILED).
395
+ # Corresponds to the JSON property `state`
396
+ # @return [String]
397
+ attr_accessor :state
398
+
399
+ # Output only. The timestamp when the resource was last updated. A timestamp in
400
+ # RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:
401
+ # 23.045123456Z".
402
+ # Corresponds to the JSON property `updateTime`
403
+ # @return [String]
404
+ attr_accessor :update_time
405
+
406
+ def initialize(**args)
407
+ update!(**args)
408
+ end
409
+
410
+ # Update properties of this object
411
+ def update!(**args)
412
+ @cloudsql = args[:cloudsql] if args.key?(:cloudsql)
413
+ @create_time = args[:create_time] if args.key?(:create_time)
414
+ @display_name = args[:display_name] if args.key?(:display_name)
415
+ @error = args[:error] if args.key?(:error)
416
+ @labels = args[:labels] if args.key?(:labels)
417
+ @mysql = args[:mysql] if args.key?(:mysql)
418
+ @name = args[:name] if args.key?(:name)
419
+ @provider = args[:provider] if args.key?(:provider)
420
+ @state = args[:state] if args.key?(:state)
421
+ @update_time = args[:update_time] if args.key?(:update_time)
422
+ end
423
+ end
424
+
425
+ # A message defining the database engine and provider.
426
+ class DatabaseType
427
+ include Google::Apis::Core::Hashable
428
+
429
+ # The database engine.
430
+ # Corresponds to the JSON property `engine`
431
+ # @return [String]
432
+ attr_accessor :engine
433
+
434
+ # The database provider.
435
+ # Corresponds to the JSON property `provider`
436
+ # @return [String]
437
+ attr_accessor :provider
438
+
439
+ def initialize(**args)
440
+ update!(**args)
441
+ end
442
+
443
+ # Update properties of this object
444
+ def update!(**args)
445
+ @engine = args[:engine] if args.key?(:engine)
446
+ @provider = args[:provider] if args.key?(:provider)
447
+ end
448
+ end
449
+
450
+ # A generic empty message that you can re-use to avoid defining duplicated empty
451
+ # messages in your APIs. A typical example is to use it as the request or the
452
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
453
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
454
+ # `Empty` is empty JSON object ````.
455
+ class Empty
456
+ include Google::Apis::Core::Hashable
457
+
458
+ def initialize(**args)
459
+ update!(**args)
460
+ end
461
+
462
+ # Update properties of this object
463
+ def update!(**args)
464
+ end
465
+ end
466
+
467
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
468
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
469
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
470
+ # "Summary size limit" description: "Determines if a summary is less than 100
471
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
472
+ # Requestor is owner" description: "Determines if requestor is the document
473
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
474
+ # Logic): title: "Public documents" description: "Determine whether the document
475
+ # should be publicly visible" expression: "document.type != 'private' &&
476
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
477
+ # string" description: "Create a notification string with a timestamp."
478
+ # expression: "'New message received at ' + string(document.create_time)" The
479
+ # exact variables and functions that may be referenced within an expression are
480
+ # determined by the service that evaluates it. See the service documentation for
481
+ # additional information.
482
+ class Expr
483
+ include Google::Apis::Core::Hashable
484
+
485
+ # Optional. Description of the expression. This is a longer text which describes
486
+ # the expression, e.g. when hovered over it in a UI.
487
+ # Corresponds to the JSON property `description`
488
+ # @return [String]
489
+ attr_accessor :description
490
+
491
+ # Textual representation of an expression in Common Expression Language syntax.
492
+ # Corresponds to the JSON property `expression`
493
+ # @return [String]
494
+ attr_accessor :expression
495
+
496
+ # Optional. String indicating the location of the expression for error reporting,
497
+ # e.g. a file name and a position in the file.
498
+ # Corresponds to the JSON property `location`
499
+ # @return [String]
500
+ attr_accessor :location
501
+
502
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
503
+ # This can be used e.g. in UIs which allow to enter the expression.
504
+ # Corresponds to the JSON property `title`
505
+ # @return [String]
506
+ attr_accessor :title
507
+
508
+ def initialize(**args)
509
+ update!(**args)
510
+ end
511
+
512
+ # Update properties of this object
513
+ def update!(**args)
514
+ @description = args[:description] if args.key?(:description)
515
+ @expression = args[:expression] if args.key?(:expression)
516
+ @location = args[:location] if args.key?(:location)
517
+ @title = args[:title] if args.key?(:title)
518
+ end
519
+ end
520
+
521
+ # Request message for 'GenerateSshScript' request.
522
+ class GenerateSshScriptRequest
523
+ include Google::Apis::Core::Hashable
524
+
525
+ # Required. Bastion VM Instance name to use or to create.
526
+ # Corresponds to the JSON property `vm`
527
+ # @return [String]
528
+ attr_accessor :vm
529
+
530
+ # VM creation configuration message
531
+ # Corresponds to the JSON property `vmCreationConfig`
532
+ # @return [Google::Apis::DatamigrationV1beta1::VmCreationConfig]
533
+ attr_accessor :vm_creation_config
534
+
535
+ # The port that will be open on the bastion host
536
+ # Corresponds to the JSON property `vmPort`
537
+ # @return [Fixnum]
538
+ attr_accessor :vm_port
539
+
540
+ # VM selection configuration message
541
+ # Corresponds to the JSON property `vmSelectionConfig`
542
+ # @return [Google::Apis::DatamigrationV1beta1::VmSelectionConfig]
543
+ attr_accessor :vm_selection_config
544
+
545
+ def initialize(**args)
546
+ update!(**args)
547
+ end
548
+
549
+ # Update properties of this object
550
+ def update!(**args)
551
+ @vm = args[:vm] if args.key?(:vm)
552
+ @vm_creation_config = args[:vm_creation_config] if args.key?(:vm_creation_config)
553
+ @vm_port = args[:vm_port] if args.key?(:vm_port)
554
+ @vm_selection_config = args[:vm_selection_config] if args.key?(:vm_selection_config)
555
+ end
556
+ end
557
+
558
+ # Represents the metadata of the long-running operation.
559
+ class GoogleCloudClouddmsV1beta1OperationMetadata
560
+ include Google::Apis::Core::Hashable
561
+
562
+ # Output only. API version used to start the operation.
563
+ # Corresponds to the JSON property `apiVersion`
564
+ # @return [String]
565
+ attr_accessor :api_version
566
+
567
+ # Output only. The time the operation was created.
568
+ # Corresponds to the JSON property `createTime`
569
+ # @return [String]
570
+ attr_accessor :create_time
571
+
572
+ # Output only. The time the operation finished running.
573
+ # Corresponds to the JSON property `endTime`
574
+ # @return [String]
575
+ attr_accessor :end_time
576
+
577
+ # Output only. Identifies whether the user has requested cancellation of the
578
+ # operation. Operations that have successfully been cancelled have Operation.
579
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
580
+ # CANCELLED`.
581
+ # Corresponds to the JSON property `requestedCancellation`
582
+ # @return [Boolean]
583
+ attr_accessor :requested_cancellation
584
+ alias_method :requested_cancellation?, :requested_cancellation
585
+
586
+ # Output only. Human-readable status of the operation, if any.
587
+ # Corresponds to the JSON property `statusMessage`
588
+ # @return [String]
589
+ attr_accessor :status_message
590
+
591
+ # Output only. Server-defined resource path for the target of the operation.
592
+ # Corresponds to the JSON property `target`
593
+ # @return [String]
594
+ attr_accessor :target
595
+
596
+ # Output only. Name of the verb executed by the operation.
597
+ # Corresponds to the JSON property `verb`
598
+ # @return [String]
599
+ attr_accessor :verb
600
+
601
+ def initialize(**args)
602
+ update!(**args)
603
+ end
604
+
605
+ # Update properties of this object
606
+ def update!(**args)
607
+ @api_version = args[:api_version] if args.key?(:api_version)
608
+ @create_time = args[:create_time] if args.key?(:create_time)
609
+ @end_time = args[:end_time] if args.key?(:end_time)
610
+ @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
611
+ @status_message = args[:status_message] if args.key?(:status_message)
612
+ @target = args[:target] if args.key?(:target)
613
+ @verb = args[:verb] if args.key?(:verb)
614
+ end
615
+ end
616
+
617
+ # Response message for 'ListConnectionProfiles' request.
618
+ class ListConnectionProfilesResponse
619
+ include Google::Apis::Core::Hashable
620
+
621
+ # The response list of connection profiles.
622
+ # Corresponds to the JSON property `connectionProfiles`
623
+ # @return [Array<Google::Apis::DatamigrationV1beta1::ConnectionProfile>]
624
+ attr_accessor :connection_profiles
625
+
626
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
627
+ # field is omitted, there are no subsequent pages.
628
+ # Corresponds to the JSON property `nextPageToken`
629
+ # @return [String]
630
+ attr_accessor :next_page_token
631
+
632
+ # Locations that could not be reached.
633
+ # Corresponds to the JSON property `unreachable`
634
+ # @return [Array<String>]
635
+ attr_accessor :unreachable
636
+
637
+ def initialize(**args)
638
+ update!(**args)
639
+ end
640
+
641
+ # Update properties of this object
642
+ def update!(**args)
643
+ @connection_profiles = args[:connection_profiles] if args.key?(:connection_profiles)
644
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
645
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
646
+ end
647
+ end
648
+
649
+ # The response message for Locations.ListLocations.
650
+ class ListLocationsResponse
651
+ include Google::Apis::Core::Hashable
652
+
653
+ # A list of locations that matches the specified filter in the request.
654
+ # Corresponds to the JSON property `locations`
655
+ # @return [Array<Google::Apis::DatamigrationV1beta1::Location>]
656
+ attr_accessor :locations
657
+
658
+ # The standard List next-page token.
659
+ # Corresponds to the JSON property `nextPageToken`
660
+ # @return [String]
661
+ attr_accessor :next_page_token
662
+
663
+ def initialize(**args)
664
+ update!(**args)
665
+ end
666
+
667
+ # Update properties of this object
668
+ def update!(**args)
669
+ @locations = args[:locations] if args.key?(:locations)
670
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
671
+ end
672
+ end
673
+
674
+ # Response message for 'ListMigrationJobs' request.
675
+ class ListMigrationJobsResponse
676
+ include Google::Apis::Core::Hashable
677
+
678
+ # The list of migration jobs objects.
679
+ # Corresponds to the JSON property `migrationJobs`
680
+ # @return [Array<Google::Apis::DatamigrationV1beta1::MigrationJob>]
681
+ attr_accessor :migration_jobs
682
+
683
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
684
+ # field is omitted, there are no subsequent pages.
685
+ # Corresponds to the JSON property `nextPageToken`
686
+ # @return [String]
687
+ attr_accessor :next_page_token
688
+
689
+ # Locations that could not be reached.
690
+ # Corresponds to the JSON property `unreachable`
691
+ # @return [Array<String>]
692
+ attr_accessor :unreachable
693
+
694
+ def initialize(**args)
695
+ update!(**args)
696
+ end
697
+
698
+ # Update properties of this object
699
+ def update!(**args)
700
+ @migration_jobs = args[:migration_jobs] if args.key?(:migration_jobs)
701
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
702
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
703
+ end
704
+ end
705
+
706
+ # The response message for Operations.ListOperations.
707
+ class ListOperationsResponse
708
+ include Google::Apis::Core::Hashable
709
+
710
+ # The standard List next-page token.
711
+ # Corresponds to the JSON property `nextPageToken`
712
+ # @return [String]
713
+ attr_accessor :next_page_token
714
+
715
+ # A list of operations that matches the specified filter in the request.
716
+ # Corresponds to the JSON property `operations`
717
+ # @return [Array<Google::Apis::DatamigrationV1beta1::Operation>]
718
+ attr_accessor :operations
719
+
720
+ def initialize(**args)
721
+ update!(**args)
722
+ end
723
+
724
+ # Update properties of this object
725
+ def update!(**args)
726
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
727
+ @operations = args[:operations] if args.key?(:operations)
728
+ end
729
+ end
730
+
731
+ # A resource that represents Google Cloud Platform location.
732
+ class Location
733
+ include Google::Apis::Core::Hashable
734
+
735
+ # The friendly name for this location, typically a nearby city name. For example,
736
+ # "Tokyo".
737
+ # Corresponds to the JSON property `displayName`
738
+ # @return [String]
739
+ attr_accessor :display_name
740
+
741
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
742
+ # region": "us-east1"`
743
+ # Corresponds to the JSON property `labels`
744
+ # @return [Hash<String,String>]
745
+ attr_accessor :labels
746
+
747
+ # The canonical id for this location. For example: `"us-east1"`.
748
+ # Corresponds to the JSON property `locationId`
749
+ # @return [String]
750
+ attr_accessor :location_id
751
+
752
+ # Service-specific metadata. For example the available capacity at the given
753
+ # location.
754
+ # Corresponds to the JSON property `metadata`
755
+ # @return [Hash<String,Object>]
756
+ attr_accessor :metadata
757
+
758
+ # Resource name for the location, which may vary between implementations. For
759
+ # example: `"projects/example-project/locations/us-east1"`
760
+ # Corresponds to the JSON property `name`
761
+ # @return [String]
762
+ attr_accessor :name
763
+
764
+ def initialize(**args)
765
+ update!(**args)
766
+ end
767
+
768
+ # Update properties of this object
769
+ def update!(**args)
770
+ @display_name = args[:display_name] if args.key?(:display_name)
771
+ @labels = args[:labels] if args.key?(:labels)
772
+ @location_id = args[:location_id] if args.key?(:location_id)
773
+ @metadata = args[:metadata] if args.key?(:metadata)
774
+ @name = args[:name] if args.key?(:name)
775
+ end
776
+ end
777
+
778
+ # Represents a Database Migration Service migration job object.
779
+ class MigrationJob
780
+ include Google::Apis::Core::Hashable
781
+
782
+ # Output only. The timestamp when the migration job resource was created. A
783
+ # timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "
784
+ # 2014-10-02T15:01:23.045123456Z".
785
+ # Corresponds to the JSON property `createTime`
786
+ # @return [String]
787
+ attr_accessor :create_time
788
+
789
+ # Required. The resource name (URI) of the destination connection profile.
790
+ # Corresponds to the JSON property `destination`
791
+ # @return [String]
792
+ attr_accessor :destination
793
+
794
+ # A message defining the database engine and provider.
795
+ # Corresponds to the JSON property `destinationDatabase`
796
+ # @return [Google::Apis::DatamigrationV1beta1::DatabaseType]
797
+ attr_accessor :destination_database
798
+
799
+ # The migration job display name.
800
+ # Corresponds to the JSON property `displayName`
801
+ # @return [String]
802
+ attr_accessor :display_name
803
+
804
+ # The path to the dump file in Google Cloud Storage, in the format: (gs://[
805
+ # BUCKET_NAME]/[OBJECT_NAME]).
806
+ # Corresponds to the JSON property `dumpPath`
807
+ # @return [String]
808
+ attr_accessor :dump_path
809
+
810
+ # Output only. The duration of the migration job (in seconds). A duration in
811
+ # seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
812
+ # Corresponds to the JSON property `duration`
813
+ # @return [String]
814
+ attr_accessor :duration
815
+
816
+ # Output only. If the migration job is completed, the time when it was completed.
817
+ # Corresponds to the JSON property `endTime`
818
+ # @return [String]
819
+ attr_accessor :end_time
820
+
821
+ # The `Status` type defines a logical error model that is suitable for different
822
+ # programming environments, including REST APIs and RPC APIs. It is used by [
823
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
824
+ # data: error code, error message, and error details. You can find out more
825
+ # about this error model and how to work with it in the [API Design Guide](https:
826
+ # //cloud.google.com/apis/design/errors).
827
+ # Corresponds to the JSON property `error`
828
+ # @return [Google::Apis::DatamigrationV1beta1::Status]
829
+ attr_accessor :error
830
+
831
+ # The resource labels for migration job to use to annotate any related
832
+ # underlying resources such as Compute Engine VMs. An object containing a list
833
+ # of "key": "value" pairs. Example: `` "name": "wrench", "mass": "1.3kg", "count"
834
+ # : "3" ``.
835
+ # Corresponds to the JSON property `labels`
836
+ # @return [Hash<String,String>]
837
+ attr_accessor :labels
838
+
839
+ # The name (URI) of this migration job resource, in the form of: projects/`
840
+ # project`/locations/`location`/instances/`instance`.
841
+ # Corresponds to the JSON property `name`
842
+ # @return [String]
843
+ attr_accessor :name
844
+
845
+ # Output only. The current migration job phase.
846
+ # Corresponds to the JSON property `phase`
847
+ # @return [String]
848
+ attr_accessor :phase
849
+
850
+ # The details needed to configure a reverse SSH tunnel between the source and
851
+ # destination databases. These details will be used when calling the
852
+ # generateSshScript method (see https://cloud.google.com/database-migration/docs/
853
+ # reference/rest/v1beta1/projects.locations.migrationJobs/generateSshScript) to
854
+ # produce the script that will help set up the reverse SSH tunnel, and to set up
855
+ # the VPC peering between the Cloud SQL private network and the VPC.
856
+ # Corresponds to the JSON property `reverseSshConnectivity`
857
+ # @return [Google::Apis::DatamigrationV1beta1::ReverseSshConnectivity]
858
+ attr_accessor :reverse_ssh_connectivity
859
+
860
+ # Required. The resource name (URI) of the source connection profile.
861
+ # Corresponds to the JSON property `source`
862
+ # @return [String]
863
+ attr_accessor :source
864
+
865
+ # A message defining the database engine and provider.
866
+ # Corresponds to the JSON property `sourceDatabase`
867
+ # @return [Google::Apis::DatamigrationV1beta1::DatabaseType]
868
+ attr_accessor :source_database
869
+
870
+ # The current migration job state.
871
+ # Corresponds to the JSON property `state`
872
+ # @return [String]
873
+ attr_accessor :state
874
+
875
+ # The source database will allow incoming connections from the destination
876
+ # database's public IP. You can retrieve the Cloud SQL instance's public IP from
877
+ # the Cloud SQL console or using Cloud SQL APIs. No additional configuration is
878
+ # required.
879
+ # Corresponds to the JSON property `staticIpConnectivity`
880
+ # @return [Google::Apis::DatamigrationV1beta1::StaticIpConnectivity]
881
+ attr_accessor :static_ip_connectivity
882
+
883
+ # Required. The migration job type.
884
+ # Corresponds to the JSON property `type`
885
+ # @return [String]
886
+ attr_accessor :type
887
+
888
+ # Output only. The timestamp when the migration job resource was last updated. A
889
+ # timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "
890
+ # 2014-10-02T15:01:23.045123456Z".
891
+ # Corresponds to the JSON property `updateTime`
892
+ # @return [String]
893
+ attr_accessor :update_time
894
+
895
+ # The details of the VPC where the source database is located in Google Cloud.
896
+ # We will use this information to set up the VPC peering connection between
897
+ # Cloud SQL and this VPC.
898
+ # Corresponds to the JSON property `vpcPeeringConnectivity`
899
+ # @return [Google::Apis::DatamigrationV1beta1::VpcPeeringConnectivity]
900
+ attr_accessor :vpc_peering_connectivity
901
+
902
+ def initialize(**args)
903
+ update!(**args)
904
+ end
905
+
906
+ # Update properties of this object
907
+ def update!(**args)
908
+ @create_time = args[:create_time] if args.key?(:create_time)
909
+ @destination = args[:destination] if args.key?(:destination)
910
+ @destination_database = args[:destination_database] if args.key?(:destination_database)
911
+ @display_name = args[:display_name] if args.key?(:display_name)
912
+ @dump_path = args[:dump_path] if args.key?(:dump_path)
913
+ @duration = args[:duration] if args.key?(:duration)
914
+ @end_time = args[:end_time] if args.key?(:end_time)
915
+ @error = args[:error] if args.key?(:error)
916
+ @labels = args[:labels] if args.key?(:labels)
917
+ @name = args[:name] if args.key?(:name)
918
+ @phase = args[:phase] if args.key?(:phase)
919
+ @reverse_ssh_connectivity = args[:reverse_ssh_connectivity] if args.key?(:reverse_ssh_connectivity)
920
+ @source = args[:source] if args.key?(:source)
921
+ @source_database = args[:source_database] if args.key?(:source_database)
922
+ @state = args[:state] if args.key?(:state)
923
+ @static_ip_connectivity = args[:static_ip_connectivity] if args.key?(:static_ip_connectivity)
924
+ @type = args[:type] if args.key?(:type)
925
+ @update_time = args[:update_time] if args.key?(:update_time)
926
+ @vpc_peering_connectivity = args[:vpc_peering_connectivity] if args.key?(:vpc_peering_connectivity)
927
+ end
928
+ end
929
+
930
+ # Error message of a verification Migration job.
931
+ class MigrationJobVerificationError
932
+ include Google::Apis::Core::Hashable
933
+
934
+ # Output only. An instance of ErrorCode specifying the error that occurred.
935
+ # Corresponds to the JSON property `errorCode`
936
+ # @return [String]
937
+ attr_accessor :error_code
938
+
939
+ # Output only. A specific detailed error message, if supplied by the engine.
940
+ # Corresponds to the JSON property `errorDetailMessage`
941
+ # @return [String]
942
+ attr_accessor :error_detail_message
943
+
944
+ # Output only. A formatted message with further details about the error and a
945
+ # CTA.
946
+ # Corresponds to the JSON property `errorMessage`
947
+ # @return [String]
948
+ attr_accessor :error_message
949
+
950
+ def initialize(**args)
951
+ update!(**args)
952
+ end
953
+
954
+ # Update properties of this object
955
+ def update!(**args)
956
+ @error_code = args[:error_code] if args.key?(:error_code)
957
+ @error_detail_message = args[:error_detail_message] if args.key?(:error_detail_message)
958
+ @error_message = args[:error_message] if args.key?(:error_message)
959
+ end
960
+ end
961
+
962
+ # Specifies connection parameters required specifically for MySQL databases.
963
+ class MySqlConnectionProfile
964
+ include Google::Apis::Core::Hashable
965
+
966
+ # If the source is a Cloud SQL database, use this field to provide the Cloud SQL
967
+ # instance ID of the source.
968
+ # Corresponds to the JSON property `cloudSqlId`
969
+ # @return [String]
970
+ attr_accessor :cloud_sql_id
971
+
972
+ # Required. The IP or hostname of the source MySQL database.
973
+ # Corresponds to the JSON property `host`
974
+ # @return [String]
975
+ attr_accessor :host
976
+
977
+ # Required. Input only. The password for the user that Database Migration
978
+ # Service will be using to connect to the database. This field is not returned
979
+ # on request, and the value is encrypted when stored in Database Migration
980
+ # Service.
981
+ # Corresponds to the JSON property `password`
982
+ # @return [String]
983
+ attr_accessor :password
984
+
985
+ # Output only. Indicates If this connection profile password is stored.
986
+ # Corresponds to the JSON property `passwordSet`
987
+ # @return [Boolean]
988
+ attr_accessor :password_set
989
+ alias_method :password_set?, :password_set
990
+
991
+ # Required. The network port of the source MySQL database.
992
+ # Corresponds to the JSON property `port`
993
+ # @return [Fixnum]
994
+ attr_accessor :port
995
+
996
+ # SSL configuration information.
997
+ # Corresponds to the JSON property `ssl`
998
+ # @return [Google::Apis::DatamigrationV1beta1::SslConfig]
999
+ attr_accessor :ssl
1000
+
1001
+ # Required. The username that Database Migration Service will use to connect to
1002
+ # the database. The value is encrypted when stored in Database Migration Service.
1003
+ # Corresponds to the JSON property `username`
1004
+ # @return [String]
1005
+ attr_accessor :username
1006
+
1007
+ def initialize(**args)
1008
+ update!(**args)
1009
+ end
1010
+
1011
+ # Update properties of this object
1012
+ def update!(**args)
1013
+ @cloud_sql_id = args[:cloud_sql_id] if args.key?(:cloud_sql_id)
1014
+ @host = args[:host] if args.key?(:host)
1015
+ @password = args[:password] if args.key?(:password)
1016
+ @password_set = args[:password_set] if args.key?(:password_set)
1017
+ @port = args[:port] if args.key?(:port)
1018
+ @ssl = args[:ssl] if args.key?(:ssl)
1019
+ @username = args[:username] if args.key?(:username)
1020
+ end
1021
+ end
1022
+
1023
+ # This resource represents a long-running operation that is the result of a
1024
+ # network API call.
1025
+ class Operation
1026
+ include Google::Apis::Core::Hashable
1027
+
1028
+ # If the value is `false`, it means the operation is still in progress. If `true`
1029
+ # , the operation is completed, and either `error` or `response` is available.
1030
+ # Corresponds to the JSON property `done`
1031
+ # @return [Boolean]
1032
+ attr_accessor :done
1033
+ alias_method :done?, :done
1034
+
1035
+ # The `Status` type defines a logical error model that is suitable for different
1036
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1037
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1038
+ # data: error code, error message, and error details. You can find out more
1039
+ # about this error model and how to work with it in the [API Design Guide](https:
1040
+ # //cloud.google.com/apis/design/errors).
1041
+ # Corresponds to the JSON property `error`
1042
+ # @return [Google::Apis::DatamigrationV1beta1::Status]
1043
+ attr_accessor :error
1044
+
1045
+ # Service-specific metadata associated with the operation. It typically contains
1046
+ # progress information and common metadata such as create time. Some services
1047
+ # might not provide such metadata. Any method that returns a long-running
1048
+ # operation should document the metadata type, if any.
1049
+ # Corresponds to the JSON property `metadata`
1050
+ # @return [Hash<String,Object>]
1051
+ attr_accessor :metadata
1052
+
1053
+ # The server-assigned name, which is only unique within the same service that
1054
+ # originally returns it. If you use the default HTTP mapping, the `name` should
1055
+ # be a resource name ending with `operations/`unique_id``.
1056
+ # Corresponds to the JSON property `name`
1057
+ # @return [String]
1058
+ attr_accessor :name
1059
+
1060
+ # The normal response of the operation in case of success. If the original
1061
+ # method returns no data on success, such as `Delete`, the response is `google.
1062
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1063
+ # the response should be the resource. For other methods, the response should
1064
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
1065
+ # example, if the original method name is `TakeSnapshot()`, the inferred
1066
+ # response type is `TakeSnapshotResponse`.
1067
+ # Corresponds to the JSON property `response`
1068
+ # @return [Hash<String,Object>]
1069
+ attr_accessor :response
1070
+
1071
+ def initialize(**args)
1072
+ update!(**args)
1073
+ end
1074
+
1075
+ # Update properties of this object
1076
+ def update!(**args)
1077
+ @done = args[:done] if args.key?(:done)
1078
+ @error = args[:error] if args.key?(:error)
1079
+ @metadata = args[:metadata] if args.key?(:metadata)
1080
+ @name = args[:name] if args.key?(:name)
1081
+ @response = args[:response] if args.key?(:response)
1082
+ end
1083
+ end
1084
+
1085
+ # An Identity and Access Management (IAM) policy, which specifies access
1086
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1087
+ # A `binding` binds one or more `members` to a single `role`. Members can be
1088
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
1089
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
1090
+ # role or a user-created custom role. For some types of Google Cloud resources,
1091
+ # a `binding` can also specify a `condition`, which is a logical expression that
1092
+ # allows access to a resource only if the expression evaluates to `true`. A
1093
+ # condition can add constraints based on attributes of the request, the resource,
1094
+ # or both. To learn which resources support conditions in their IAM policies,
1095
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1096
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1097
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1098
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1099
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1100
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1101
+ # title": "expirable access", "description": "Does not grant access after Sep
1102
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1103
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1104
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
1105
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1106
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1107
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
1108
+ # description: Does not grant access after Sep 2020 expression: request.time <
1109
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1110
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
1111
+ # google.com/iam/docs/).
1112
+ class Policy
1113
+ include Google::Apis::Core::Hashable
1114
+
1115
+ # Specifies cloud audit logging configuration for this policy.
1116
+ # Corresponds to the JSON property `auditConfigs`
1117
+ # @return [Array<Google::Apis::DatamigrationV1beta1::AuditConfig>]
1118
+ attr_accessor :audit_configs
1119
+
1120
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
1121
+ # condition` that determines how and when the `bindings` are applied. Each of
1122
+ # the `bindings` must contain at least one member.
1123
+ # Corresponds to the JSON property `bindings`
1124
+ # @return [Array<Google::Apis::DatamigrationV1beta1::Binding>]
1125
+ attr_accessor :bindings
1126
+
1127
+ # `etag` is used for optimistic concurrency control as a way to help prevent
1128
+ # simultaneous updates of a policy from overwriting each other. It is strongly
1129
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
1130
+ # to perform policy updates in order to avoid race conditions: An `etag` is
1131
+ # returned in the response to `getIamPolicy`, and systems are expected to put
1132
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
1133
+ # applied to the same version of the policy. **Important:** If you use IAM
1134
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
1135
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
1136
+ # with a version `1` policy, and all of the conditions in the version `3` policy
1137
+ # are lost.
1138
+ # Corresponds to the JSON property `etag`
1139
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1140
+ # @return [String]
1141
+ attr_accessor :etag
1142
+
1143
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
1144
+ # Requests that specify an invalid value are rejected. Any operation that
1145
+ # affects conditional role bindings must specify version `3`. This requirement
1146
+ # applies to the following operations: * Getting a policy that includes a
1147
+ # conditional role binding * Adding a conditional role binding to a policy *
1148
+ # Changing a conditional role binding in a policy * Removing any role binding,
1149
+ # with or without a condition, from a policy that includes conditions **
1150
+ # Important:** If you use IAM Conditions, you must include the `etag` field
1151
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
1152
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
1153
+ # conditions in the version `3` policy are lost. If a policy does not include
1154
+ # any conditions, operations on that policy may specify any valid version or
1155
+ # leave the field unset. To learn which resources support conditions in their
1156
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
1157
+ # conditions/resource-policies).
1158
+ # Corresponds to the JSON property `version`
1159
+ # @return [Fixnum]
1160
+ attr_accessor :version
1161
+
1162
+ def initialize(**args)
1163
+ update!(**args)
1164
+ end
1165
+
1166
+ # Update properties of this object
1167
+ def update!(**args)
1168
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
1169
+ @bindings = args[:bindings] if args.key?(:bindings)
1170
+ @etag = args[:etag] if args.key?(:etag)
1171
+ @version = args[:version] if args.key?(:version)
1172
+ end
1173
+ end
1174
+
1175
+ # Request message for 'PromoteMigrationJob' request.
1176
+ class PromoteMigrationJobRequest
1177
+ include Google::Apis::Core::Hashable
1178
+
1179
+ def initialize(**args)
1180
+ update!(**args)
1181
+ end
1182
+
1183
+ # Update properties of this object
1184
+ def update!(**args)
1185
+ end
1186
+ end
1187
+
1188
+ # Request message for 'RestartMigrationJob' request.
1189
+ class RestartMigrationJobRequest
1190
+ include Google::Apis::Core::Hashable
1191
+
1192
+ def initialize(**args)
1193
+ update!(**args)
1194
+ end
1195
+
1196
+ # Update properties of this object
1197
+ def update!(**args)
1198
+ end
1199
+ end
1200
+
1201
+ # Request message for 'ResumeMigrationJob' request.
1202
+ class ResumeMigrationJobRequest
1203
+ include Google::Apis::Core::Hashable
1204
+
1205
+ def initialize(**args)
1206
+ update!(**args)
1207
+ end
1208
+
1209
+ # Update properties of this object
1210
+ def update!(**args)
1211
+ end
1212
+ end
1213
+
1214
+ # The details needed to configure a reverse SSH tunnel between the source and
1215
+ # destination databases. These details will be used when calling the
1216
+ # generateSshScript method (see https://cloud.google.com/database-migration/docs/
1217
+ # reference/rest/v1beta1/projects.locations.migrationJobs/generateSshScript) to
1218
+ # produce the script that will help set up the reverse SSH tunnel, and to set up
1219
+ # the VPC peering between the Cloud SQL private network and the VPC.
1220
+ class ReverseSshConnectivity
1221
+ include Google::Apis::Core::Hashable
1222
+
1223
+ # The name of the virtual machine (Compute Engine) used as the bastion server
1224
+ # for the SSH tunnel.
1225
+ # Corresponds to the JSON property `vm`
1226
+ # @return [String]
1227
+ attr_accessor :vm
1228
+
1229
+ # Required. The IP of the virtual machine (Compute Engine) used as the bastion
1230
+ # server for the SSH tunnel.
1231
+ # Corresponds to the JSON property `vmIp`
1232
+ # @return [String]
1233
+ attr_accessor :vm_ip
1234
+
1235
+ # Required. The forwarding port of the virtual machine (Compute Engine) used as
1236
+ # the bastion server for the SSH tunnel.
1237
+ # Corresponds to the JSON property `vmPort`
1238
+ # @return [Fixnum]
1239
+ attr_accessor :vm_port
1240
+
1241
+ # The name of the VPC to peer with the Cloud SQL private network.
1242
+ # Corresponds to the JSON property `vpc`
1243
+ # @return [String]
1244
+ attr_accessor :vpc
1245
+
1246
+ def initialize(**args)
1247
+ update!(**args)
1248
+ end
1249
+
1250
+ # Update properties of this object
1251
+ def update!(**args)
1252
+ @vm = args[:vm] if args.key?(:vm)
1253
+ @vm_ip = args[:vm_ip] if args.key?(:vm_ip)
1254
+ @vm_port = args[:vm_port] if args.key?(:vm_port)
1255
+ @vpc = args[:vpc] if args.key?(:vpc)
1256
+ end
1257
+ end
1258
+
1259
+ # Request message for `SetIamPolicy` method.
1260
+ class SetIamPolicyRequest
1261
+ include Google::Apis::Core::Hashable
1262
+
1263
+ # An Identity and Access Management (IAM) policy, which specifies access
1264
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1265
+ # A `binding` binds one or more `members` to a single `role`. Members can be
1266
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
1267
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
1268
+ # role or a user-created custom role. For some types of Google Cloud resources,
1269
+ # a `binding` can also specify a `condition`, which is a logical expression that
1270
+ # allows access to a resource only if the expression evaluates to `true`. A
1271
+ # condition can add constraints based on attributes of the request, the resource,
1272
+ # or both. To learn which resources support conditions in their IAM policies,
1273
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1274
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1275
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1276
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1277
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1278
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1279
+ # title": "expirable access", "description": "Does not grant access after Sep
1280
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1281
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1282
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
1283
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1284
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1285
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
1286
+ # description: Does not grant access after Sep 2020 expression: request.time <
1287
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1288
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
1289
+ # google.com/iam/docs/).
1290
+ # Corresponds to the JSON property `policy`
1291
+ # @return [Google::Apis::DatamigrationV1beta1::Policy]
1292
+ attr_accessor :policy
1293
+
1294
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1295
+ # the fields in the mask will be modified. If no mask is provided, the following
1296
+ # default mask is used: `paths: "bindings, etag"`
1297
+ # Corresponds to the JSON property `updateMask`
1298
+ # @return [String]
1299
+ attr_accessor :update_mask
1300
+
1301
+ def initialize(**args)
1302
+ update!(**args)
1303
+ end
1304
+
1305
+ # Update properties of this object
1306
+ def update!(**args)
1307
+ @policy = args[:policy] if args.key?(:policy)
1308
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
1309
+ end
1310
+ end
1311
+
1312
+ # An entry for an Access Control list.
1313
+ class SqlAclEntry
1314
+ include Google::Apis::Core::Hashable
1315
+
1316
+ # The time when this access control entry expires in [RFC 3339](https://tools.
1317
+ # ietf.org/html/rfc3339) format, for example: `2012-11-15T16:19:00.094Z`.
1318
+ # Corresponds to the JSON property `expireTime`
1319
+ # @return [String]
1320
+ attr_accessor :expire_time
1321
+
1322
+ # A label to identify this entry.
1323
+ # Corresponds to the JSON property `label`
1324
+ # @return [String]
1325
+ attr_accessor :label
1326
+
1327
+ # Input only. The time-to-leave of this access control entry.
1328
+ # Corresponds to the JSON property `ttl`
1329
+ # @return [String]
1330
+ attr_accessor :ttl
1331
+
1332
+ # The allowlisted value for the access control list.
1333
+ # Corresponds to the JSON property `value`
1334
+ # @return [String]
1335
+ attr_accessor :value
1336
+
1337
+ def initialize(**args)
1338
+ update!(**args)
1339
+ end
1340
+
1341
+ # Update properties of this object
1342
+ def update!(**args)
1343
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
1344
+ @label = args[:label] if args.key?(:label)
1345
+ @ttl = args[:ttl] if args.key?(:ttl)
1346
+ @value = args[:value] if args.key?(:value)
1347
+ end
1348
+ end
1349
+
1350
+ # IP Management configuration.
1351
+ class SqlIpConfig
1352
+ include Google::Apis::Core::Hashable
1353
+
1354
+ # The list of external networks that are allowed to connect to the instance
1355
+ # using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation,
1356
+ # also known as 'slash' notation (e.g. `192.168.100.0/24`).
1357
+ # Corresponds to the JSON property `authorizedNetworks`
1358
+ # @return [Array<Google::Apis::DatamigrationV1beta1::SqlAclEntry>]
1359
+ attr_accessor :authorized_networks
1360
+
1361
+ # Whether the instance should be assigned an IPv4 address or not.
1362
+ # Corresponds to the JSON property `enableIpv4`
1363
+ # @return [Boolean]
1364
+ attr_accessor :enable_ipv4
1365
+ alias_method :enable_ipv4?, :enable_ipv4
1366
+
1367
+ # The resource link for the VPC network from which the Cloud SQL instance is
1368
+ # accessible for private IP. For example, `/projects/myProject/global/networks/
1369
+ # default`. This setting can be updated, but it cannot be removed after it is
1370
+ # set.
1371
+ # Corresponds to the JSON property `privateNetwork`
1372
+ # @return [String]
1373
+ attr_accessor :private_network
1374
+
1375
+ # Whether SSL connections over IP should be enforced or not.
1376
+ # Corresponds to the JSON property `requireSsl`
1377
+ # @return [Boolean]
1378
+ attr_accessor :require_ssl
1379
+ alias_method :require_ssl?, :require_ssl
1380
+
1381
+ def initialize(**args)
1382
+ update!(**args)
1383
+ end
1384
+
1385
+ # Update properties of this object
1386
+ def update!(**args)
1387
+ @authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks)
1388
+ @enable_ipv4 = args[:enable_ipv4] if args.key?(:enable_ipv4)
1389
+ @private_network = args[:private_network] if args.key?(:private_network)
1390
+ @require_ssl = args[:require_ssl] if args.key?(:require_ssl)
1391
+ end
1392
+ end
1393
+
1394
+ # Response message for 'GenerateSshScript' request.
1395
+ class SshScript
1396
+ include Google::Apis::Core::Hashable
1397
+
1398
+ # The ssh configuration script.
1399
+ # Corresponds to the JSON property `script`
1400
+ # @return [String]
1401
+ attr_accessor :script
1402
+
1403
+ def initialize(**args)
1404
+ update!(**args)
1405
+ end
1406
+
1407
+ # Update properties of this object
1408
+ def update!(**args)
1409
+ @script = args[:script] if args.key?(:script)
1410
+ end
1411
+ end
1412
+
1413
+ # SSL configuration information.
1414
+ class SslConfig
1415
+ include Google::Apis::Core::Hashable
1416
+
1417
+ # Required. Input only. The x509 PEM-encoded certificate of the CA that signed
1418
+ # the source database server's certificate. The replica will use this
1419
+ # certificate to verify it's connecting to the right host.
1420
+ # Corresponds to the JSON property `caCertificate`
1421
+ # @return [String]
1422
+ attr_accessor :ca_certificate
1423
+
1424
+ # Input only. The x509 PEM-encoded certificate that will be used by the replica
1425
+ # to authenticate against the source database server.If this field is used then
1426
+ # the 'client_key' field is mandatory.
1427
+ # Corresponds to the JSON property `clientCertificate`
1428
+ # @return [String]
1429
+ attr_accessor :client_certificate
1430
+
1431
+ # Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key
1432
+ # associated with the Client Certificate. If this field is used then the '
1433
+ # client_certificate' field is mandatory.
1434
+ # Corresponds to the JSON property `clientKey`
1435
+ # @return [String]
1436
+ attr_accessor :client_key
1437
+
1438
+ # Output only. The ssl config type according to 'client_key', '
1439
+ # client_certificate' and 'ca_certificate'.
1440
+ # Corresponds to the JSON property `type`
1441
+ # @return [String]
1442
+ attr_accessor :type
1443
+
1444
+ def initialize(**args)
1445
+ update!(**args)
1446
+ end
1447
+
1448
+ # Update properties of this object
1449
+ def update!(**args)
1450
+ @ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate)
1451
+ @client_certificate = args[:client_certificate] if args.key?(:client_certificate)
1452
+ @client_key = args[:client_key] if args.key?(:client_key)
1453
+ @type = args[:type] if args.key?(:type)
1454
+ end
1455
+ end
1456
+
1457
+ # Request message for 'StartMigrationJob' request.
1458
+ class StartMigrationJobRequest
1459
+ include Google::Apis::Core::Hashable
1460
+
1461
+ def initialize(**args)
1462
+ update!(**args)
1463
+ end
1464
+
1465
+ # Update properties of this object
1466
+ def update!(**args)
1467
+ end
1468
+ end
1469
+
1470
+ # The source database will allow incoming connections from the destination
1471
+ # database's public IP. You can retrieve the Cloud SQL instance's public IP from
1472
+ # the Cloud SQL console or using Cloud SQL APIs. No additional configuration is
1473
+ # required.
1474
+ class StaticIpConnectivity
1475
+ include Google::Apis::Core::Hashable
1476
+
1477
+ def initialize(**args)
1478
+ update!(**args)
1479
+ end
1480
+
1481
+ # Update properties of this object
1482
+ def update!(**args)
1483
+ end
1484
+ end
1485
+
1486
+ # The `Status` type defines a logical error model that is suitable for different
1487
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1488
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1489
+ # data: error code, error message, and error details. You can find out more
1490
+ # about this error model and how to work with it in the [API Design Guide](https:
1491
+ # //cloud.google.com/apis/design/errors).
1492
+ class Status
1493
+ include Google::Apis::Core::Hashable
1494
+
1495
+ # The status code, which should be an enum value of google.rpc.Code.
1496
+ # Corresponds to the JSON property `code`
1497
+ # @return [Fixnum]
1498
+ attr_accessor :code
1499
+
1500
+ # A list of messages that carry the error details. There is a common set of
1501
+ # message types for APIs to use.
1502
+ # Corresponds to the JSON property `details`
1503
+ # @return [Array<Hash<String,Object>>]
1504
+ attr_accessor :details
1505
+
1506
+ # A developer-facing error message, which should be in English. Any user-facing
1507
+ # error message should be localized and sent in the google.rpc.Status.details
1508
+ # field, or localized by the client.
1509
+ # Corresponds to the JSON property `message`
1510
+ # @return [String]
1511
+ attr_accessor :message
1512
+
1513
+ def initialize(**args)
1514
+ update!(**args)
1515
+ end
1516
+
1517
+ # Update properties of this object
1518
+ def update!(**args)
1519
+ @code = args[:code] if args.key?(:code)
1520
+ @details = args[:details] if args.key?(:details)
1521
+ @message = args[:message] if args.key?(:message)
1522
+ end
1523
+ end
1524
+
1525
+ # Request message for 'StopMigrationJob' request.
1526
+ class StopMigrationJobRequest
1527
+ include Google::Apis::Core::Hashable
1528
+
1529
+ def initialize(**args)
1530
+ update!(**args)
1531
+ end
1532
+
1533
+ # Update properties of this object
1534
+ def update!(**args)
1535
+ end
1536
+ end
1537
+
1538
+ # Request message for `TestIamPermissions` method.
1539
+ class TestIamPermissionsRequest
1540
+ include Google::Apis::Core::Hashable
1541
+
1542
+ # The set of permissions to check for the `resource`. Permissions with wildcards
1543
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
1544
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
1545
+ # Corresponds to the JSON property `permissions`
1546
+ # @return [Array<String>]
1547
+ attr_accessor :permissions
1548
+
1549
+ def initialize(**args)
1550
+ update!(**args)
1551
+ end
1552
+
1553
+ # Update properties of this object
1554
+ def update!(**args)
1555
+ @permissions = args[:permissions] if args.key?(:permissions)
1556
+ end
1557
+ end
1558
+
1559
+ # Response message for `TestIamPermissions` method.
1560
+ class TestIamPermissionsResponse
1561
+ include Google::Apis::Core::Hashable
1562
+
1563
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1564
+ # Corresponds to the JSON property `permissions`
1565
+ # @return [Array<String>]
1566
+ attr_accessor :permissions
1567
+
1568
+ def initialize(**args)
1569
+ update!(**args)
1570
+ end
1571
+
1572
+ # Update properties of this object
1573
+ def update!(**args)
1574
+ @permissions = args[:permissions] if args.key?(:permissions)
1575
+ end
1576
+ end
1577
+
1578
+ # Request message for 'VerifyMigrationJob' request.
1579
+ class VerifyMigrationJobRequest
1580
+ include Google::Apis::Core::Hashable
1581
+
1582
+ def initialize(**args)
1583
+ update!(**args)
1584
+ end
1585
+
1586
+ # Update properties of this object
1587
+ def update!(**args)
1588
+ end
1589
+ end
1590
+
1591
+ # VM creation configuration message
1592
+ class VmCreationConfig
1593
+ include Google::Apis::Core::Hashable
1594
+
1595
+ # The subnet name the vm needs to be created in.
1596
+ # Corresponds to the JSON property `subnet`
1597
+ # @return [String]
1598
+ attr_accessor :subnet
1599
+
1600
+ # Required. VM instance machine type to create.
1601
+ # Corresponds to the JSON property `vmMachineType`
1602
+ # @return [String]
1603
+ attr_accessor :vm_machine_type
1604
+
1605
+ # The Google Cloud Platform zone to create the VM in.
1606
+ # Corresponds to the JSON property `vmZone`
1607
+ # @return [String]
1608
+ attr_accessor :vm_zone
1609
+
1610
+ def initialize(**args)
1611
+ update!(**args)
1612
+ end
1613
+
1614
+ # Update properties of this object
1615
+ def update!(**args)
1616
+ @subnet = args[:subnet] if args.key?(:subnet)
1617
+ @vm_machine_type = args[:vm_machine_type] if args.key?(:vm_machine_type)
1618
+ @vm_zone = args[:vm_zone] if args.key?(:vm_zone)
1619
+ end
1620
+ end
1621
+
1622
+ # VM selection configuration message
1623
+ class VmSelectionConfig
1624
+ include Google::Apis::Core::Hashable
1625
+
1626
+ # Required. The Google Cloud Platform zone the VM is located.
1627
+ # Corresponds to the JSON property `vmZone`
1628
+ # @return [String]
1629
+ attr_accessor :vm_zone
1630
+
1631
+ def initialize(**args)
1632
+ update!(**args)
1633
+ end
1634
+
1635
+ # Update properties of this object
1636
+ def update!(**args)
1637
+ @vm_zone = args[:vm_zone] if args.key?(:vm_zone)
1638
+ end
1639
+ end
1640
+
1641
+ # The details of the VPC where the source database is located in Google Cloud.
1642
+ # We will use this information to set up the VPC peering connection between
1643
+ # Cloud SQL and this VPC.
1644
+ class VpcPeeringConnectivity
1645
+ include Google::Apis::Core::Hashable
1646
+
1647
+ # The name of the VPC network to peer with the Cloud SQL private network.
1648
+ # Corresponds to the JSON property `vpc`
1649
+ # @return [String]
1650
+ attr_accessor :vpc
1651
+
1652
+ def initialize(**args)
1653
+ update!(**args)
1654
+ end
1655
+
1656
+ # Update properties of this object
1657
+ def update!(**args)
1658
+ @vpc = args[:vpc] if args.key?(:vpc)
1659
+ end
1660
+ end
1661
+ end
1662
+ end
1663
+ end