google-apis-cloudfunctions_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 CloudfunctionsV1
18
+ # Version of the google-apis-cloudfunctions_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20201201"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,449 @@
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 CloudfunctionsV1
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 CallFunctionRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CallFunctionResponse
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class CloudFunction
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class EventTrigger
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Expr
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class FailurePolicy
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GenerateDownloadUrlRequest
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GenerateDownloadUrlResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GenerateUploadUrlRequest
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class GenerateUploadUrlResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class HttpsTrigger
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListFunctionsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ListLocationsResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ListOperationsResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class Location
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class Operation
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class OperationMetadataV1
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class Policy
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Retry
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class SetIamPolicyRequest
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class SourceRepository
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class Status
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class TestIamPermissionsRequest
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class TestIamPermissionsResponse
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class AuditConfig
188
+ # @private
189
+ class Representation < Google::Apis::Core::JsonRepresentation
190
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudfunctionsV1::AuditLogConfig, decorator: Google::Apis::CloudfunctionsV1::AuditLogConfig::Representation
191
+
192
+ property :service, as: 'service'
193
+ end
194
+ end
195
+
196
+ class AuditLogConfig
197
+ # @private
198
+ class Representation < Google::Apis::Core::JsonRepresentation
199
+ collection :exempted_members, as: 'exemptedMembers'
200
+ property :log_type, as: 'logType'
201
+ end
202
+ end
203
+
204
+ class Binding
205
+ # @private
206
+ class Representation < Google::Apis::Core::JsonRepresentation
207
+ property :condition, as: 'condition', class: Google::Apis::CloudfunctionsV1::Expr, decorator: Google::Apis::CloudfunctionsV1::Expr::Representation
208
+
209
+ collection :members, as: 'members'
210
+ property :role, as: 'role'
211
+ end
212
+ end
213
+
214
+ class CallFunctionRequest
215
+ # @private
216
+ class Representation < Google::Apis::Core::JsonRepresentation
217
+ property :data, as: 'data'
218
+ end
219
+ end
220
+
221
+ class CallFunctionResponse
222
+ # @private
223
+ class Representation < Google::Apis::Core::JsonRepresentation
224
+ property :error, as: 'error'
225
+ property :execution_id, as: 'executionId'
226
+ property :result, as: 'result'
227
+ end
228
+ end
229
+
230
+ class CloudFunction
231
+ # @private
232
+ class Representation < Google::Apis::Core::JsonRepresentation
233
+ property :available_memory_mb, as: 'availableMemoryMb'
234
+ hash :build_environment_variables, as: 'buildEnvironmentVariables'
235
+ property :build_id, as: 'buildId'
236
+ property :description, as: 'description'
237
+ property :entry_point, as: 'entryPoint'
238
+ hash :environment_variables, as: 'environmentVariables'
239
+ property :event_trigger, as: 'eventTrigger', class: Google::Apis::CloudfunctionsV1::EventTrigger, decorator: Google::Apis::CloudfunctionsV1::EventTrigger::Representation
240
+
241
+ property :https_trigger, as: 'httpsTrigger', class: Google::Apis::CloudfunctionsV1::HttpsTrigger, decorator: Google::Apis::CloudfunctionsV1::HttpsTrigger::Representation
242
+
243
+ property :ingress_settings, as: 'ingressSettings'
244
+ hash :labels, as: 'labels'
245
+ property :max_instances, as: 'maxInstances'
246
+ property :name, as: 'name'
247
+ property :network, as: 'network'
248
+ property :runtime, as: 'runtime'
249
+ property :service_account_email, as: 'serviceAccountEmail'
250
+ property :source_archive_url, as: 'sourceArchiveUrl'
251
+ property :source_repository, as: 'sourceRepository', class: Google::Apis::CloudfunctionsV1::SourceRepository, decorator: Google::Apis::CloudfunctionsV1::SourceRepository::Representation
252
+
253
+ property :source_upload_url, as: 'sourceUploadUrl'
254
+ property :status, as: 'status'
255
+ property :timeout, as: 'timeout'
256
+ property :update_time, as: 'updateTime'
257
+ property :version_id, :numeric_string => true, as: 'versionId'
258
+ property :vpc_connector, as: 'vpcConnector'
259
+ property :vpc_connector_egress_settings, as: 'vpcConnectorEgressSettings'
260
+ end
261
+ end
262
+
263
+ class EventTrigger
264
+ # @private
265
+ class Representation < Google::Apis::Core::JsonRepresentation
266
+ property :event_type, as: 'eventType'
267
+ property :failure_policy, as: 'failurePolicy', class: Google::Apis::CloudfunctionsV1::FailurePolicy, decorator: Google::Apis::CloudfunctionsV1::FailurePolicy::Representation
268
+
269
+ property :resource, as: 'resource'
270
+ property :service, as: 'service'
271
+ end
272
+ end
273
+
274
+ class Expr
275
+ # @private
276
+ class Representation < Google::Apis::Core::JsonRepresentation
277
+ property :description, as: 'description'
278
+ property :expression, as: 'expression'
279
+ property :location, as: 'location'
280
+ property :title, as: 'title'
281
+ end
282
+ end
283
+
284
+ class FailurePolicy
285
+ # @private
286
+ class Representation < Google::Apis::Core::JsonRepresentation
287
+ property :retry, as: 'retry', class: Google::Apis::CloudfunctionsV1::Retry, decorator: Google::Apis::CloudfunctionsV1::Retry::Representation
288
+
289
+ end
290
+ end
291
+
292
+ class GenerateDownloadUrlRequest
293
+ # @private
294
+ class Representation < Google::Apis::Core::JsonRepresentation
295
+ property :version_id, :numeric_string => true, as: 'versionId'
296
+ end
297
+ end
298
+
299
+ class GenerateDownloadUrlResponse
300
+ # @private
301
+ class Representation < Google::Apis::Core::JsonRepresentation
302
+ property :download_url, as: 'downloadUrl'
303
+ end
304
+ end
305
+
306
+ class GenerateUploadUrlRequest
307
+ # @private
308
+ class Representation < Google::Apis::Core::JsonRepresentation
309
+ end
310
+ end
311
+
312
+ class GenerateUploadUrlResponse
313
+ # @private
314
+ class Representation < Google::Apis::Core::JsonRepresentation
315
+ property :upload_url, as: 'uploadUrl'
316
+ end
317
+ end
318
+
319
+ class HttpsTrigger
320
+ # @private
321
+ class Representation < Google::Apis::Core::JsonRepresentation
322
+ property :url, as: 'url'
323
+ end
324
+ end
325
+
326
+ class ListFunctionsResponse
327
+ # @private
328
+ class Representation < Google::Apis::Core::JsonRepresentation
329
+ collection :functions, as: 'functions', class: Google::Apis::CloudfunctionsV1::CloudFunction, decorator: Google::Apis::CloudfunctionsV1::CloudFunction::Representation
330
+
331
+ property :next_page_token, as: 'nextPageToken'
332
+ collection :unreachable, as: 'unreachable'
333
+ end
334
+ end
335
+
336
+ class ListLocationsResponse
337
+ # @private
338
+ class Representation < Google::Apis::Core::JsonRepresentation
339
+ collection :locations, as: 'locations', class: Google::Apis::CloudfunctionsV1::Location, decorator: Google::Apis::CloudfunctionsV1::Location::Representation
340
+
341
+ property :next_page_token, as: 'nextPageToken'
342
+ end
343
+ end
344
+
345
+ class ListOperationsResponse
346
+ # @private
347
+ class Representation < Google::Apis::Core::JsonRepresentation
348
+ property :next_page_token, as: 'nextPageToken'
349
+ collection :operations, as: 'operations', class: Google::Apis::CloudfunctionsV1::Operation, decorator: Google::Apis::CloudfunctionsV1::Operation::Representation
350
+
351
+ end
352
+ end
353
+
354
+ class Location
355
+ # @private
356
+ class Representation < Google::Apis::Core::JsonRepresentation
357
+ property :display_name, as: 'displayName'
358
+ hash :labels, as: 'labels'
359
+ property :location_id, as: 'locationId'
360
+ hash :metadata, as: 'metadata'
361
+ property :name, as: 'name'
362
+ end
363
+ end
364
+
365
+ class Operation
366
+ # @private
367
+ class Representation < Google::Apis::Core::JsonRepresentation
368
+ property :done, as: 'done'
369
+ property :error, as: 'error', class: Google::Apis::CloudfunctionsV1::Status, decorator: Google::Apis::CloudfunctionsV1::Status::Representation
370
+
371
+ hash :metadata, as: 'metadata'
372
+ property :name, as: 'name'
373
+ hash :response, as: 'response'
374
+ end
375
+ end
376
+
377
+ class OperationMetadataV1
378
+ # @private
379
+ class Representation < Google::Apis::Core::JsonRepresentation
380
+ property :build_id, as: 'buildId'
381
+ hash :request, as: 'request'
382
+ property :source_token, as: 'sourceToken'
383
+ property :target, as: 'target'
384
+ property :type, as: 'type'
385
+ property :update_time, as: 'updateTime'
386
+ property :version_id, :numeric_string => true, as: 'versionId'
387
+ end
388
+ end
389
+
390
+ class Policy
391
+ # @private
392
+ class Representation < Google::Apis::Core::JsonRepresentation
393
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudfunctionsV1::AuditConfig, decorator: Google::Apis::CloudfunctionsV1::AuditConfig::Representation
394
+
395
+ collection :bindings, as: 'bindings', class: Google::Apis::CloudfunctionsV1::Binding, decorator: Google::Apis::CloudfunctionsV1::Binding::Representation
396
+
397
+ property :etag, :base64 => true, as: 'etag'
398
+ property :version, as: 'version'
399
+ end
400
+ end
401
+
402
+ class Retry
403
+ # @private
404
+ class Representation < Google::Apis::Core::JsonRepresentation
405
+ end
406
+ end
407
+
408
+ class SetIamPolicyRequest
409
+ # @private
410
+ class Representation < Google::Apis::Core::JsonRepresentation
411
+ property :policy, as: 'policy', class: Google::Apis::CloudfunctionsV1::Policy, decorator: Google::Apis::CloudfunctionsV1::Policy::Representation
412
+
413
+ property :update_mask, as: 'updateMask'
414
+ end
415
+ end
416
+
417
+ class SourceRepository
418
+ # @private
419
+ class Representation < Google::Apis::Core::JsonRepresentation
420
+ property :deployed_url, as: 'deployedUrl'
421
+ property :url, as: 'url'
422
+ end
423
+ end
424
+
425
+ class Status
426
+ # @private
427
+ class Representation < Google::Apis::Core::JsonRepresentation
428
+ property :code, as: 'code'
429
+ collection :details, as: 'details'
430
+ property :message, as: 'message'
431
+ end
432
+ end
433
+
434
+ class TestIamPermissionsRequest
435
+ # @private
436
+ class Representation < Google::Apis::Core::JsonRepresentation
437
+ collection :permissions, as: 'permissions'
438
+ end
439
+ end
440
+
441
+ class TestIamPermissionsResponse
442
+ # @private
443
+ class Representation < Google::Apis::Core::JsonRepresentation
444
+ collection :permissions, as: 'permissions'
445
+ end
446
+ end
447
+ end
448
+ end
449
+ end