google-apis-storagebatchoperations_v1 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 StoragebatchoperationsV1
18
+ # Version of the google-apis-storagebatchoperations_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.16.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20250328"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,399 @@
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 StoragebatchoperationsV1
24
+
25
+ class Bucket
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class BucketList
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class CancelJobRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CancelJobResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CancelOperationRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Counters
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class DeleteObject
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Empty
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ErrorLogEntry
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ErrorSummary
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Job
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListJobsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ListLocationsResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ListOperationsResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class Location
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class LoggingConfig
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class Manifest
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Operation
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class OperationMetadata
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class PrefixList
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class PutMetadata
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class PutObjectHold
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class RewriteObject
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class Status
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class Bucket
170
+ # @private
171
+ class Representation < Google::Apis::Core::JsonRepresentation
172
+ property :bucket, as: 'bucket'
173
+ property :manifest, as: 'manifest', class: Google::Apis::StoragebatchoperationsV1::Manifest, decorator: Google::Apis::StoragebatchoperationsV1::Manifest::Representation
174
+
175
+ property :prefix_list, as: 'prefixList', class: Google::Apis::StoragebatchoperationsV1::PrefixList, decorator: Google::Apis::StoragebatchoperationsV1::PrefixList::Representation
176
+
177
+ end
178
+ end
179
+
180
+ class BucketList
181
+ # @private
182
+ class Representation < Google::Apis::Core::JsonRepresentation
183
+ collection :buckets, as: 'buckets', class: Google::Apis::StoragebatchoperationsV1::Bucket, decorator: Google::Apis::StoragebatchoperationsV1::Bucket::Representation
184
+
185
+ end
186
+ end
187
+
188
+ class CancelJobRequest
189
+ # @private
190
+ class Representation < Google::Apis::Core::JsonRepresentation
191
+ property :request_id, as: 'requestId'
192
+ end
193
+ end
194
+
195
+ class CancelJobResponse
196
+ # @private
197
+ class Representation < Google::Apis::Core::JsonRepresentation
198
+ end
199
+ end
200
+
201
+ class CancelOperationRequest
202
+ # @private
203
+ class Representation < Google::Apis::Core::JsonRepresentation
204
+ end
205
+ end
206
+
207
+ class Counters
208
+ # @private
209
+ class Representation < Google::Apis::Core::JsonRepresentation
210
+ property :failed_object_count, :numeric_string => true, as: 'failedObjectCount'
211
+ property :succeeded_object_count, :numeric_string => true, as: 'succeededObjectCount'
212
+ property :total_object_count, :numeric_string => true, as: 'totalObjectCount'
213
+ end
214
+ end
215
+
216
+ class DeleteObject
217
+ # @private
218
+ class Representation < Google::Apis::Core::JsonRepresentation
219
+ property :permanent_object_deletion_enabled, as: 'permanentObjectDeletionEnabled'
220
+ end
221
+ end
222
+
223
+ class Empty
224
+ # @private
225
+ class Representation < Google::Apis::Core::JsonRepresentation
226
+ end
227
+ end
228
+
229
+ class ErrorLogEntry
230
+ # @private
231
+ class Representation < Google::Apis::Core::JsonRepresentation
232
+ collection :error_details, as: 'errorDetails'
233
+ property :object_uri, as: 'objectUri'
234
+ end
235
+ end
236
+
237
+ class ErrorSummary
238
+ # @private
239
+ class Representation < Google::Apis::Core::JsonRepresentation
240
+ property :error_code, as: 'errorCode'
241
+ property :error_count, :numeric_string => true, as: 'errorCount'
242
+ collection :error_log_entries, as: 'errorLogEntries', class: Google::Apis::StoragebatchoperationsV1::ErrorLogEntry, decorator: Google::Apis::StoragebatchoperationsV1::ErrorLogEntry::Representation
243
+
244
+ end
245
+ end
246
+
247
+ class Job
248
+ # @private
249
+ class Representation < Google::Apis::Core::JsonRepresentation
250
+ property :bucket_list, as: 'bucketList', class: Google::Apis::StoragebatchoperationsV1::BucketList, decorator: Google::Apis::StoragebatchoperationsV1::BucketList::Representation
251
+
252
+ property :complete_time, as: 'completeTime'
253
+ property :counters, as: 'counters', class: Google::Apis::StoragebatchoperationsV1::Counters, decorator: Google::Apis::StoragebatchoperationsV1::Counters::Representation
254
+
255
+ property :create_time, as: 'createTime'
256
+ property :delete_object, as: 'deleteObject', class: Google::Apis::StoragebatchoperationsV1::DeleteObject, decorator: Google::Apis::StoragebatchoperationsV1::DeleteObject::Representation
257
+
258
+ property :description, as: 'description'
259
+ collection :error_summaries, as: 'errorSummaries', class: Google::Apis::StoragebatchoperationsV1::ErrorSummary, decorator: Google::Apis::StoragebatchoperationsV1::ErrorSummary::Representation
260
+
261
+ property :logging_config, as: 'loggingConfig', class: Google::Apis::StoragebatchoperationsV1::LoggingConfig, decorator: Google::Apis::StoragebatchoperationsV1::LoggingConfig::Representation
262
+
263
+ property :name, as: 'name'
264
+ property :put_metadata, as: 'putMetadata', class: Google::Apis::StoragebatchoperationsV1::PutMetadata, decorator: Google::Apis::StoragebatchoperationsV1::PutMetadata::Representation
265
+
266
+ property :put_object_hold, as: 'putObjectHold', class: Google::Apis::StoragebatchoperationsV1::PutObjectHold, decorator: Google::Apis::StoragebatchoperationsV1::PutObjectHold::Representation
267
+
268
+ property :rewrite_object, as: 'rewriteObject', class: Google::Apis::StoragebatchoperationsV1::RewriteObject, decorator: Google::Apis::StoragebatchoperationsV1::RewriteObject::Representation
269
+
270
+ property :schedule_time, as: 'scheduleTime'
271
+ property :state, as: 'state'
272
+ end
273
+ end
274
+
275
+ class ListJobsResponse
276
+ # @private
277
+ class Representation < Google::Apis::Core::JsonRepresentation
278
+ collection :jobs, as: 'jobs', class: Google::Apis::StoragebatchoperationsV1::Job, decorator: Google::Apis::StoragebatchoperationsV1::Job::Representation
279
+
280
+ property :next_page_token, as: 'nextPageToken'
281
+ collection :unreachable, as: 'unreachable'
282
+ end
283
+ end
284
+
285
+ class ListLocationsResponse
286
+ # @private
287
+ class Representation < Google::Apis::Core::JsonRepresentation
288
+ collection :locations, as: 'locations', class: Google::Apis::StoragebatchoperationsV1::Location, decorator: Google::Apis::StoragebatchoperationsV1::Location::Representation
289
+
290
+ property :next_page_token, as: 'nextPageToken'
291
+ end
292
+ end
293
+
294
+ class ListOperationsResponse
295
+ # @private
296
+ class Representation < Google::Apis::Core::JsonRepresentation
297
+ property :next_page_token, as: 'nextPageToken'
298
+ collection :operations, as: 'operations', class: Google::Apis::StoragebatchoperationsV1::Operation, decorator: Google::Apis::StoragebatchoperationsV1::Operation::Representation
299
+
300
+ end
301
+ end
302
+
303
+ class Location
304
+ # @private
305
+ class Representation < Google::Apis::Core::JsonRepresentation
306
+ property :display_name, as: 'displayName'
307
+ hash :labels, as: 'labels'
308
+ property :location_id, as: 'locationId'
309
+ hash :metadata, as: 'metadata'
310
+ property :name, as: 'name'
311
+ end
312
+ end
313
+
314
+ class LoggingConfig
315
+ # @private
316
+ class Representation < Google::Apis::Core::JsonRepresentation
317
+ collection :log_action_states, as: 'logActionStates'
318
+ collection :log_actions, as: 'logActions'
319
+ end
320
+ end
321
+
322
+ class Manifest
323
+ # @private
324
+ class Representation < Google::Apis::Core::JsonRepresentation
325
+ property :manifest_location, as: 'manifestLocation'
326
+ end
327
+ end
328
+
329
+ class Operation
330
+ # @private
331
+ class Representation < Google::Apis::Core::JsonRepresentation
332
+ property :done, as: 'done'
333
+ property :error, as: 'error', class: Google::Apis::StoragebatchoperationsV1::Status, decorator: Google::Apis::StoragebatchoperationsV1::Status::Representation
334
+
335
+ hash :metadata, as: 'metadata'
336
+ property :name, as: 'name'
337
+ hash :response, as: 'response'
338
+ end
339
+ end
340
+
341
+ class OperationMetadata
342
+ # @private
343
+ class Representation < Google::Apis::Core::JsonRepresentation
344
+ property :api_version, as: 'apiVersion'
345
+ property :create_time, as: 'createTime'
346
+ property :end_time, as: 'endTime'
347
+ property :job, as: 'job', class: Google::Apis::StoragebatchoperationsV1::Job, decorator: Google::Apis::StoragebatchoperationsV1::Job::Representation
348
+
349
+ property :operation, as: 'operation'
350
+ property :requested_cancellation, as: 'requestedCancellation'
351
+ end
352
+ end
353
+
354
+ class PrefixList
355
+ # @private
356
+ class Representation < Google::Apis::Core::JsonRepresentation
357
+ collection :included_object_prefixes, as: 'includedObjectPrefixes'
358
+ end
359
+ end
360
+
361
+ class PutMetadata
362
+ # @private
363
+ class Representation < Google::Apis::Core::JsonRepresentation
364
+ property :cache_control, as: 'cacheControl'
365
+ property :content_disposition, as: 'contentDisposition'
366
+ property :content_encoding, as: 'contentEncoding'
367
+ property :content_language, as: 'contentLanguage'
368
+ property :content_type, as: 'contentType'
369
+ hash :custom_metadata, as: 'customMetadata'
370
+ property :custom_time, as: 'customTime'
371
+ end
372
+ end
373
+
374
+ class PutObjectHold
375
+ # @private
376
+ class Representation < Google::Apis::Core::JsonRepresentation
377
+ property :event_based_hold, as: 'eventBasedHold'
378
+ property :temporary_hold, as: 'temporaryHold'
379
+ end
380
+ end
381
+
382
+ class RewriteObject
383
+ # @private
384
+ class Representation < Google::Apis::Core::JsonRepresentation
385
+ property :kms_key, as: 'kmsKey'
386
+ end
387
+ end
388
+
389
+ class Status
390
+ # @private
391
+ class Representation < Google::Apis::Core::JsonRepresentation
392
+ property :code, as: 'code'
393
+ collection :details, as: 'details'
394
+ property :message, as: 'message'
395
+ end
396
+ end
397
+ end
398
+ end
399
+ end