google-apis-backupdr_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
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
+ module Google
16
+ module Apis
17
+ module BackupdrV1
18
+ # Version of the google-apis-backupdr_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.12.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20230919"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,339 @@
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 BackupdrV1
24
+
25
+ class AuditConfig
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AuditLogConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Binding
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CancelOperationRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Empty
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Expr
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ListLocationsResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ListManagementServersResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ListOperationsResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Location
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ManagementServer
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ManagementUri
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class NetworkConfig
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class Operation
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class OperationMetadata
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Policy
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class SetIamPolicyRequest
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Status
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class TestIamPermissionsRequest
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class TestIamPermissionsResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class AuditConfig
146
+ # @private
147
+ class Representation < Google::Apis::Core::JsonRepresentation
148
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::BackupdrV1::AuditLogConfig, decorator: Google::Apis::BackupdrV1::AuditLogConfig::Representation
149
+
150
+ property :service, as: 'service'
151
+ end
152
+ end
153
+
154
+ class AuditLogConfig
155
+ # @private
156
+ class Representation < Google::Apis::Core::JsonRepresentation
157
+ collection :exempted_members, as: 'exemptedMembers'
158
+ property :log_type, as: 'logType'
159
+ end
160
+ end
161
+
162
+ class Binding
163
+ # @private
164
+ class Representation < Google::Apis::Core::JsonRepresentation
165
+ property :condition, as: 'condition', class: Google::Apis::BackupdrV1::Expr, decorator: Google::Apis::BackupdrV1::Expr::Representation
166
+
167
+ collection :members, as: 'members'
168
+ property :role, as: 'role'
169
+ end
170
+ end
171
+
172
+ class CancelOperationRequest
173
+ # @private
174
+ class Representation < Google::Apis::Core::JsonRepresentation
175
+ end
176
+ end
177
+
178
+ class Empty
179
+ # @private
180
+ class Representation < Google::Apis::Core::JsonRepresentation
181
+ end
182
+ end
183
+
184
+ class Expr
185
+ # @private
186
+ class Representation < Google::Apis::Core::JsonRepresentation
187
+ property :description, as: 'description'
188
+ property :expression, as: 'expression'
189
+ property :location, as: 'location'
190
+ property :title, as: 'title'
191
+ end
192
+ end
193
+
194
+ class ListLocationsResponse
195
+ # @private
196
+ class Representation < Google::Apis::Core::JsonRepresentation
197
+ collection :locations, as: 'locations', class: Google::Apis::BackupdrV1::Location, decorator: Google::Apis::BackupdrV1::Location::Representation
198
+
199
+ property :next_page_token, as: 'nextPageToken'
200
+ end
201
+ end
202
+
203
+ class ListManagementServersResponse
204
+ # @private
205
+ class Representation < Google::Apis::Core::JsonRepresentation
206
+ collection :management_servers, as: 'managementServers', class: Google::Apis::BackupdrV1::ManagementServer, decorator: Google::Apis::BackupdrV1::ManagementServer::Representation
207
+
208
+ property :next_page_token, as: 'nextPageToken'
209
+ collection :unreachable, as: 'unreachable'
210
+ end
211
+ end
212
+
213
+ class ListOperationsResponse
214
+ # @private
215
+ class Representation < Google::Apis::Core::JsonRepresentation
216
+ property :next_page_token, as: 'nextPageToken'
217
+ collection :operations, as: 'operations', class: Google::Apis::BackupdrV1::Operation, decorator: Google::Apis::BackupdrV1::Operation::Representation
218
+
219
+ end
220
+ end
221
+
222
+ class Location
223
+ # @private
224
+ class Representation < Google::Apis::Core::JsonRepresentation
225
+ property :display_name, as: 'displayName'
226
+ hash :labels, as: 'labels'
227
+ property :location_id, as: 'locationId'
228
+ hash :metadata, as: 'metadata'
229
+ property :name, as: 'name'
230
+ end
231
+ end
232
+
233
+ class ManagementServer
234
+ # @private
235
+ class Representation < Google::Apis::Core::JsonRepresentation
236
+ property :create_time, as: 'createTime'
237
+ property :description, as: 'description'
238
+ property :etag, as: 'etag'
239
+ hash :labels, as: 'labels'
240
+ property :management_uri, as: 'managementUri', class: Google::Apis::BackupdrV1::ManagementUri, decorator: Google::Apis::BackupdrV1::ManagementUri::Representation
241
+
242
+ property :name, as: 'name'
243
+ collection :networks, as: 'networks', class: Google::Apis::BackupdrV1::NetworkConfig, decorator: Google::Apis::BackupdrV1::NetworkConfig::Representation
244
+
245
+ property :oauth2_client_id, as: 'oauth2ClientId'
246
+ property :state, as: 'state'
247
+ property :type, as: 'type'
248
+ property :update_time, as: 'updateTime'
249
+ end
250
+ end
251
+
252
+ class ManagementUri
253
+ # @private
254
+ class Representation < Google::Apis::Core::JsonRepresentation
255
+ property :api, as: 'api'
256
+ property :web_ui, as: 'webUi'
257
+ end
258
+ end
259
+
260
+ class NetworkConfig
261
+ # @private
262
+ class Representation < Google::Apis::Core::JsonRepresentation
263
+ property :network, as: 'network'
264
+ property :peering_mode, as: 'peeringMode'
265
+ end
266
+ end
267
+
268
+ class Operation
269
+ # @private
270
+ class Representation < Google::Apis::Core::JsonRepresentation
271
+ property :done, as: 'done'
272
+ property :error, as: 'error', class: Google::Apis::BackupdrV1::Status, decorator: Google::Apis::BackupdrV1::Status::Representation
273
+
274
+ hash :metadata, as: 'metadata'
275
+ property :name, as: 'name'
276
+ hash :response, as: 'response'
277
+ end
278
+ end
279
+
280
+ class OperationMetadata
281
+ # @private
282
+ class Representation < Google::Apis::Core::JsonRepresentation
283
+ hash :additional_info, as: 'additionalInfo'
284
+ property :api_version, as: 'apiVersion'
285
+ property :create_time, as: 'createTime'
286
+ property :end_time, as: 'endTime'
287
+ property :requested_cancellation, as: 'requestedCancellation'
288
+ property :status_message, as: 'statusMessage'
289
+ property :target, as: 'target'
290
+ property :verb, as: 'verb'
291
+ end
292
+ end
293
+
294
+ class Policy
295
+ # @private
296
+ class Representation < Google::Apis::Core::JsonRepresentation
297
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::BackupdrV1::AuditConfig, decorator: Google::Apis::BackupdrV1::AuditConfig::Representation
298
+
299
+ collection :bindings, as: 'bindings', class: Google::Apis::BackupdrV1::Binding, decorator: Google::Apis::BackupdrV1::Binding::Representation
300
+
301
+ property :etag, :base64 => true, as: 'etag'
302
+ property :version, as: 'version'
303
+ end
304
+ end
305
+
306
+ class SetIamPolicyRequest
307
+ # @private
308
+ class Representation < Google::Apis::Core::JsonRepresentation
309
+ property :policy, as: 'policy', class: Google::Apis::BackupdrV1::Policy, decorator: Google::Apis::BackupdrV1::Policy::Representation
310
+
311
+ property :update_mask, as: 'updateMask'
312
+ end
313
+ end
314
+
315
+ class Status
316
+ # @private
317
+ class Representation < Google::Apis::Core::JsonRepresentation
318
+ property :code, as: 'code'
319
+ collection :details, as: 'details'
320
+ property :message, as: 'message'
321
+ end
322
+ end
323
+
324
+ class TestIamPermissionsRequest
325
+ # @private
326
+ class Representation < Google::Apis::Core::JsonRepresentation
327
+ collection :permissions, as: 'permissions'
328
+ end
329
+ end
330
+
331
+ class TestIamPermissionsResponse
332
+ # @private
333
+ class Representation < Google::Apis::Core::JsonRepresentation
334
+ collection :permissions, as: 'permissions'
335
+ end
336
+ end
337
+ end
338
+ end
339
+ end