google-apis-chromewebstore_v2 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 ChromewebstoreV2
18
+ # Version of the google-apis-chromewebstore_v2 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.18.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20251020"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,443 @@
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 ChromewebstoreV2
24
+
25
+ class Blobstore2Info
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class CancelSubmissionRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class CancelSubmissionResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CompositeMedia
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class ContentTypeInfo
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class DeployInfo
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class DiffChecksumsResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class DiffDownloadResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class DiffUploadRequest
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class DiffUploadResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class DiffVersionResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class DistributionChannel
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class DownloadParameters
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class FetchItemStatusResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ItemRevisionStatus
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Media
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class MediaRequestInfo
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ObjectIdProp
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class PublishItemRequest
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class PublishItemResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class SetPublishedDeployPercentageRequest
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class SetPublishedDeployPercentageResponse
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class UploadItemPackageRequest
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class UploadItemPackageResponse
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class Blobstore2Info
170
+ # @private
171
+ class Representation < Google::Apis::Core::JsonRepresentation
172
+ property :blob_generation, :numeric_string => true, as: 'blobGeneration'
173
+ property :blob_id, as: 'blobId'
174
+ property :download_read_handle, :base64 => true, as: 'downloadReadHandle'
175
+ property :read_token, as: 'readToken'
176
+ property :upload_metadata_container, :base64 => true, as: 'uploadMetadataContainer'
177
+ end
178
+ end
179
+
180
+ class CancelSubmissionRequest
181
+ # @private
182
+ class Representation < Google::Apis::Core::JsonRepresentation
183
+ end
184
+ end
185
+
186
+ class CancelSubmissionResponse
187
+ # @private
188
+ class Representation < Google::Apis::Core::JsonRepresentation
189
+ end
190
+ end
191
+
192
+ class CompositeMedia
193
+ # @private
194
+ class Representation < Google::Apis::Core::JsonRepresentation
195
+ property :blob_ref, :base64 => true, as: 'blobRef'
196
+ property :blobstore2_info, as: 'blobstore2Info', class: Google::Apis::ChromewebstoreV2::Blobstore2Info, decorator: Google::Apis::ChromewebstoreV2::Blobstore2Info::Representation
197
+
198
+ property :cosmo_binary_reference, :base64 => true, as: 'cosmoBinaryReference'
199
+ property :crc32c_hash, as: 'crc32cHash'
200
+ property :inline, :base64 => true, as: 'inline'
201
+ property :length, :numeric_string => true, as: 'length'
202
+ property :md5_hash, :base64 => true, as: 'md5Hash'
203
+ property :object_id_prop, as: 'objectId', class: Google::Apis::ChromewebstoreV2::ObjectIdProp, decorator: Google::Apis::ChromewebstoreV2::ObjectIdProp::Representation
204
+
205
+ property :path, as: 'path'
206
+ property :reference_type, as: 'referenceType'
207
+ property :sha1_hash, :base64 => true, as: 'sha1Hash'
208
+ end
209
+ end
210
+
211
+ class ContentTypeInfo
212
+ # @private
213
+ class Representation < Google::Apis::Core::JsonRepresentation
214
+ property :best_guess, as: 'bestGuess'
215
+ property :from_bytes, as: 'fromBytes'
216
+ property :from_file_name, as: 'fromFileName'
217
+ property :from_header, as: 'fromHeader'
218
+ property :from_url_path, as: 'fromUrlPath'
219
+ end
220
+ end
221
+
222
+ class DeployInfo
223
+ # @private
224
+ class Representation < Google::Apis::Core::JsonRepresentation
225
+ property :deploy_percentage, as: 'deployPercentage'
226
+ end
227
+ end
228
+
229
+ class DiffChecksumsResponse
230
+ # @private
231
+ class Representation < Google::Apis::Core::JsonRepresentation
232
+ property :checksums_location, as: 'checksumsLocation', class: Google::Apis::ChromewebstoreV2::CompositeMedia, decorator: Google::Apis::ChromewebstoreV2::CompositeMedia::Representation
233
+
234
+ property :chunk_size_bytes, :numeric_string => true, as: 'chunkSizeBytes'
235
+ property :object_location, as: 'objectLocation', class: Google::Apis::ChromewebstoreV2::CompositeMedia, decorator: Google::Apis::ChromewebstoreV2::CompositeMedia::Representation
236
+
237
+ property :object_size_bytes, :numeric_string => true, as: 'objectSizeBytes'
238
+ property :object_version, as: 'objectVersion'
239
+ end
240
+ end
241
+
242
+ class DiffDownloadResponse
243
+ # @private
244
+ class Representation < Google::Apis::Core::JsonRepresentation
245
+ property :object_location, as: 'objectLocation', class: Google::Apis::ChromewebstoreV2::CompositeMedia, decorator: Google::Apis::ChromewebstoreV2::CompositeMedia::Representation
246
+
247
+ end
248
+ end
249
+
250
+ class DiffUploadRequest
251
+ # @private
252
+ class Representation < Google::Apis::Core::JsonRepresentation
253
+ property :checksums_info, as: 'checksumsInfo', class: Google::Apis::ChromewebstoreV2::CompositeMedia, decorator: Google::Apis::ChromewebstoreV2::CompositeMedia::Representation
254
+
255
+ property :object_info, as: 'objectInfo', class: Google::Apis::ChromewebstoreV2::CompositeMedia, decorator: Google::Apis::ChromewebstoreV2::CompositeMedia::Representation
256
+
257
+ property :object_version, as: 'objectVersion'
258
+ end
259
+ end
260
+
261
+ class DiffUploadResponse
262
+ # @private
263
+ class Representation < Google::Apis::Core::JsonRepresentation
264
+ property :object_version, as: 'objectVersion'
265
+ property :original_object, as: 'originalObject', class: Google::Apis::ChromewebstoreV2::CompositeMedia, decorator: Google::Apis::ChromewebstoreV2::CompositeMedia::Representation
266
+
267
+ end
268
+ end
269
+
270
+ class DiffVersionResponse
271
+ # @private
272
+ class Representation < Google::Apis::Core::JsonRepresentation
273
+ property :object_size_bytes, :numeric_string => true, as: 'objectSizeBytes'
274
+ property :object_version, as: 'objectVersion'
275
+ end
276
+ end
277
+
278
+ class DistributionChannel
279
+ # @private
280
+ class Representation < Google::Apis::Core::JsonRepresentation
281
+ property :crx_version, as: 'crxVersion'
282
+ property :deploy_percentage, as: 'deployPercentage'
283
+ end
284
+ end
285
+
286
+ class DownloadParameters
287
+ # @private
288
+ class Representation < Google::Apis::Core::JsonRepresentation
289
+ property :allow_gzip_compression, as: 'allowGzipCompression'
290
+ property :ignore_range, as: 'ignoreRange'
291
+ end
292
+ end
293
+
294
+ class FetchItemStatusResponse
295
+ # @private
296
+ class Representation < Google::Apis::Core::JsonRepresentation
297
+ property :item_id, as: 'itemId'
298
+ property :last_async_upload_state, as: 'lastAsyncUploadState'
299
+ property :name, as: 'name'
300
+ property :public_key, as: 'publicKey'
301
+ property :published_item_revision_status, as: 'publishedItemRevisionStatus', class: Google::Apis::ChromewebstoreV2::ItemRevisionStatus, decorator: Google::Apis::ChromewebstoreV2::ItemRevisionStatus::Representation
302
+
303
+ property :submitted_item_revision_status, as: 'submittedItemRevisionStatus', class: Google::Apis::ChromewebstoreV2::ItemRevisionStatus, decorator: Google::Apis::ChromewebstoreV2::ItemRevisionStatus::Representation
304
+
305
+ property :taken_down, as: 'takenDown'
306
+ property :warned, as: 'warned'
307
+ end
308
+ end
309
+
310
+ class ItemRevisionStatus
311
+ # @private
312
+ class Representation < Google::Apis::Core::JsonRepresentation
313
+ collection :distribution_channels, as: 'distributionChannels', class: Google::Apis::ChromewebstoreV2::DistributionChannel, decorator: Google::Apis::ChromewebstoreV2::DistributionChannel::Representation
314
+
315
+ property :state, as: 'state'
316
+ end
317
+ end
318
+
319
+ class Media
320
+ # @private
321
+ class Representation < Google::Apis::Core::JsonRepresentation
322
+ property :algorithm, as: 'algorithm'
323
+ property :bigstore_object_ref, :base64 => true, as: 'bigstoreObjectRef'
324
+ property :blob_ref, :base64 => true, as: 'blobRef'
325
+ property :blobstore2_info, as: 'blobstore2Info', class: Google::Apis::ChromewebstoreV2::Blobstore2Info, decorator: Google::Apis::ChromewebstoreV2::Blobstore2Info::Representation
326
+
327
+ collection :composite_media, as: 'compositeMedia', class: Google::Apis::ChromewebstoreV2::CompositeMedia, decorator: Google::Apis::ChromewebstoreV2::CompositeMedia::Representation
328
+
329
+ property :content_type, as: 'contentType'
330
+ property :content_type_info, as: 'contentTypeInfo', class: Google::Apis::ChromewebstoreV2::ContentTypeInfo, decorator: Google::Apis::ChromewebstoreV2::ContentTypeInfo::Representation
331
+
332
+ property :cosmo_binary_reference, :base64 => true, as: 'cosmoBinaryReference'
333
+ property :crc32c_hash, as: 'crc32cHash'
334
+ property :diff_checksums_response, as: 'diffChecksumsResponse', class: Google::Apis::ChromewebstoreV2::DiffChecksumsResponse, decorator: Google::Apis::ChromewebstoreV2::DiffChecksumsResponse::Representation
335
+
336
+ property :diff_download_response, as: 'diffDownloadResponse', class: Google::Apis::ChromewebstoreV2::DiffDownloadResponse, decorator: Google::Apis::ChromewebstoreV2::DiffDownloadResponse::Representation
337
+
338
+ property :diff_upload_request, as: 'diffUploadRequest', class: Google::Apis::ChromewebstoreV2::DiffUploadRequest, decorator: Google::Apis::ChromewebstoreV2::DiffUploadRequest::Representation
339
+
340
+ property :diff_upload_response, as: 'diffUploadResponse', class: Google::Apis::ChromewebstoreV2::DiffUploadResponse, decorator: Google::Apis::ChromewebstoreV2::DiffUploadResponse::Representation
341
+
342
+ property :diff_version_response, as: 'diffVersionResponse', class: Google::Apis::ChromewebstoreV2::DiffVersionResponse, decorator: Google::Apis::ChromewebstoreV2::DiffVersionResponse::Representation
343
+
344
+ property :download_parameters, as: 'downloadParameters', class: Google::Apis::ChromewebstoreV2::DownloadParameters, decorator: Google::Apis::ChromewebstoreV2::DownloadParameters::Representation
345
+
346
+ property :filename, as: 'filename'
347
+ property :hash_prop, as: 'hash'
348
+ property :hash_verified, as: 'hashVerified'
349
+ property :inline, :base64 => true, as: 'inline'
350
+ property :is_potential_retry, as: 'isPotentialRetry'
351
+ property :length, :numeric_string => true, as: 'length'
352
+ property :md5_hash, :base64 => true, as: 'md5Hash'
353
+ property :media_id, :base64 => true, as: 'mediaId'
354
+ property :object_id_prop, as: 'objectId', class: Google::Apis::ChromewebstoreV2::ObjectIdProp, decorator: Google::Apis::ChromewebstoreV2::ObjectIdProp::Representation
355
+
356
+ property :path, as: 'path'
357
+ property :reference_type, as: 'referenceType'
358
+ property :sha1_hash, :base64 => true, as: 'sha1Hash'
359
+ property :sha256_hash, :base64 => true, as: 'sha256Hash'
360
+ property :timestamp, :numeric_string => true, as: 'timestamp'
361
+ property :token, as: 'token'
362
+ end
363
+ end
364
+
365
+ class MediaRequestInfo
366
+ # @private
367
+ class Representation < Google::Apis::Core::JsonRepresentation
368
+ property :current_bytes, :numeric_string => true, as: 'currentBytes'
369
+ property :custom_data, as: 'customData'
370
+ property :diff_object_version, as: 'diffObjectVersion'
371
+ property :final_status, as: 'finalStatus'
372
+ property :notification_type, as: 'notificationType'
373
+ property :physical_headers, :base64 => true, as: 'physicalHeaders'
374
+ property :request_id, as: 'requestId'
375
+ property :request_received_params_serving_info, :base64 => true, as: 'requestReceivedParamsServingInfo'
376
+ property :total_bytes, :numeric_string => true, as: 'totalBytes'
377
+ property :total_bytes_is_estimated, as: 'totalBytesIsEstimated'
378
+ end
379
+ end
380
+
381
+ class ObjectIdProp
382
+ # @private
383
+ class Representation < Google::Apis::Core::JsonRepresentation
384
+ property :bucket_name, as: 'bucketName'
385
+ property :generation, :numeric_string => true, as: 'generation'
386
+ property :object_name, as: 'objectName'
387
+ end
388
+ end
389
+
390
+ class PublishItemRequest
391
+ # @private
392
+ class Representation < Google::Apis::Core::JsonRepresentation
393
+ collection :deploy_infos, as: 'deployInfos', class: Google::Apis::ChromewebstoreV2::DeployInfo, decorator: Google::Apis::ChromewebstoreV2::DeployInfo::Representation
394
+
395
+ property :publish_type, as: 'publishType'
396
+ property :skip_review, as: 'skipReview'
397
+ end
398
+ end
399
+
400
+ class PublishItemResponse
401
+ # @private
402
+ class Representation < Google::Apis::Core::JsonRepresentation
403
+ property :item_id, as: 'itemId'
404
+ property :name, as: 'name'
405
+ property :state, as: 'state'
406
+ end
407
+ end
408
+
409
+ class SetPublishedDeployPercentageRequest
410
+ # @private
411
+ class Representation < Google::Apis::Core::JsonRepresentation
412
+ property :deploy_percentage, as: 'deployPercentage'
413
+ end
414
+ end
415
+
416
+ class SetPublishedDeployPercentageResponse
417
+ # @private
418
+ class Representation < Google::Apis::Core::JsonRepresentation
419
+ end
420
+ end
421
+
422
+ class UploadItemPackageRequest
423
+ # @private
424
+ class Representation < Google::Apis::Core::JsonRepresentation
425
+ property :blob, as: 'blob', class: Google::Apis::ChromewebstoreV2::Media, decorator: Google::Apis::ChromewebstoreV2::Media::Representation
426
+
427
+ property :media_request_info, as: 'mediaRequestInfo', class: Google::Apis::ChromewebstoreV2::MediaRequestInfo, decorator: Google::Apis::ChromewebstoreV2::MediaRequestInfo::Representation
428
+
429
+ end
430
+ end
431
+
432
+ class UploadItemPackageResponse
433
+ # @private
434
+ class Representation < Google::Apis::Core::JsonRepresentation
435
+ property :crx_version, as: 'crxVersion'
436
+ property :item_id, as: 'itemId'
437
+ property :name, as: 'name'
438
+ property :upload_state, as: 'uploadState'
439
+ end
440
+ end
441
+ end
442
+ end
443
+ end