google-apis-cloudfunctions_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 CloudfunctionsV2
18
+ # Version of the google-apis-cloudfunctions_v2 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.4.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20220428"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,358 @@
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 CloudfunctionsV2
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 Expr
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class GoogleCloudFunctionsV2alphaOperationMetadata
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class GoogleCloudFunctionsV2alphaStage
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class GoogleCloudFunctionsV2alphaStateMessage
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GoogleCloudFunctionsV2betaOperationMetadata
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GoogleCloudFunctionsV2betaStage
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GoogleCloudFunctionsV2betaStateMessage
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ListLocationsResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListOperationsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class Location
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 OperationMetadataV1
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::CloudfunctionsV2::AuditLogConfig, decorator: Google::Apis::CloudfunctionsV2::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::CloudfunctionsV2::Expr, decorator: Google::Apis::CloudfunctionsV2::Expr::Representation
166
+
167
+ collection :members, as: 'members'
168
+ property :role, as: 'role'
169
+ end
170
+ end
171
+
172
+ class Expr
173
+ # @private
174
+ class Representation < Google::Apis::Core::JsonRepresentation
175
+ property :description, as: 'description'
176
+ property :expression, as: 'expression'
177
+ property :location, as: 'location'
178
+ property :title, as: 'title'
179
+ end
180
+ end
181
+
182
+ class GoogleCloudFunctionsV2alphaOperationMetadata
183
+ # @private
184
+ class Representation < Google::Apis::Core::JsonRepresentation
185
+ property :api_version, as: 'apiVersion'
186
+ property :cancel_requested, as: 'cancelRequested'
187
+ property :create_time, as: 'createTime'
188
+ property :end_time, as: 'endTime'
189
+ hash :request_resource, as: 'requestResource'
190
+ collection :stages, as: 'stages', class: Google::Apis::CloudfunctionsV2::GoogleCloudFunctionsV2alphaStage, decorator: Google::Apis::CloudfunctionsV2::GoogleCloudFunctionsV2alphaStage::Representation
191
+
192
+ property :status_detail, as: 'statusDetail'
193
+ property :target, as: 'target'
194
+ property :verb, as: 'verb'
195
+ end
196
+ end
197
+
198
+ class GoogleCloudFunctionsV2alphaStage
199
+ # @private
200
+ class Representation < Google::Apis::Core::JsonRepresentation
201
+ property :message, as: 'message'
202
+ property :name, as: 'name'
203
+ property :resource, as: 'resource'
204
+ property :resource_uri, as: 'resourceUri'
205
+ property :state, as: 'state'
206
+ collection :state_messages, as: 'stateMessages', class: Google::Apis::CloudfunctionsV2::GoogleCloudFunctionsV2alphaStateMessage, decorator: Google::Apis::CloudfunctionsV2::GoogleCloudFunctionsV2alphaStateMessage::Representation
207
+
208
+ end
209
+ end
210
+
211
+ class GoogleCloudFunctionsV2alphaStateMessage
212
+ # @private
213
+ class Representation < Google::Apis::Core::JsonRepresentation
214
+ property :message, as: 'message'
215
+ property :severity, as: 'severity'
216
+ property :type, as: 'type'
217
+ end
218
+ end
219
+
220
+ class GoogleCloudFunctionsV2betaOperationMetadata
221
+ # @private
222
+ class Representation < Google::Apis::Core::JsonRepresentation
223
+ property :api_version, as: 'apiVersion'
224
+ property :cancel_requested, as: 'cancelRequested'
225
+ property :create_time, as: 'createTime'
226
+ property :end_time, as: 'endTime'
227
+ hash :request_resource, as: 'requestResource'
228
+ collection :stages, as: 'stages', class: Google::Apis::CloudfunctionsV2::GoogleCloudFunctionsV2betaStage, decorator: Google::Apis::CloudfunctionsV2::GoogleCloudFunctionsV2betaStage::Representation
229
+
230
+ property :status_detail, as: 'statusDetail'
231
+ property :target, as: 'target'
232
+ property :verb, as: 'verb'
233
+ end
234
+ end
235
+
236
+ class GoogleCloudFunctionsV2betaStage
237
+ # @private
238
+ class Representation < Google::Apis::Core::JsonRepresentation
239
+ property :message, as: 'message'
240
+ property :name, as: 'name'
241
+ property :resource, as: 'resource'
242
+ property :resource_uri, as: 'resourceUri'
243
+ property :state, as: 'state'
244
+ collection :state_messages, as: 'stateMessages', class: Google::Apis::CloudfunctionsV2::GoogleCloudFunctionsV2betaStateMessage, decorator: Google::Apis::CloudfunctionsV2::GoogleCloudFunctionsV2betaStateMessage::Representation
245
+
246
+ end
247
+ end
248
+
249
+ class GoogleCloudFunctionsV2betaStateMessage
250
+ # @private
251
+ class Representation < Google::Apis::Core::JsonRepresentation
252
+ property :message, as: 'message'
253
+ property :severity, as: 'severity'
254
+ property :type, as: 'type'
255
+ end
256
+ end
257
+
258
+ class ListLocationsResponse
259
+ # @private
260
+ class Representation < Google::Apis::Core::JsonRepresentation
261
+ collection :locations, as: 'locations', class: Google::Apis::CloudfunctionsV2::Location, decorator: Google::Apis::CloudfunctionsV2::Location::Representation
262
+
263
+ property :next_page_token, as: 'nextPageToken'
264
+ end
265
+ end
266
+
267
+ class ListOperationsResponse
268
+ # @private
269
+ class Representation < Google::Apis::Core::JsonRepresentation
270
+ property :next_page_token, as: 'nextPageToken'
271
+ collection :operations, as: 'operations', class: Google::Apis::CloudfunctionsV2::Operation, decorator: Google::Apis::CloudfunctionsV2::Operation::Representation
272
+
273
+ end
274
+ end
275
+
276
+ class Location
277
+ # @private
278
+ class Representation < Google::Apis::Core::JsonRepresentation
279
+ property :display_name, as: 'displayName'
280
+ hash :labels, as: 'labels'
281
+ property :location_id, as: 'locationId'
282
+ hash :metadata, as: 'metadata'
283
+ property :name, as: 'name'
284
+ end
285
+ end
286
+
287
+ class Operation
288
+ # @private
289
+ class Representation < Google::Apis::Core::JsonRepresentation
290
+ property :done, as: 'done'
291
+ property :error, as: 'error', class: Google::Apis::CloudfunctionsV2::Status, decorator: Google::Apis::CloudfunctionsV2::Status::Representation
292
+
293
+ hash :metadata, as: 'metadata'
294
+ property :name, as: 'name'
295
+ hash :response, as: 'response'
296
+ end
297
+ end
298
+
299
+ class OperationMetadataV1
300
+ # @private
301
+ class Representation < Google::Apis::Core::JsonRepresentation
302
+ property :build_id, as: 'buildId'
303
+ property :build_name, as: 'buildName'
304
+ hash :request, as: 'request'
305
+ property :source_token, as: 'sourceToken'
306
+ property :target, as: 'target'
307
+ property :type, as: 'type'
308
+ property :update_time, as: 'updateTime'
309
+ property :version_id, :numeric_string => true, as: 'versionId'
310
+ end
311
+ end
312
+
313
+ class Policy
314
+ # @private
315
+ class Representation < Google::Apis::Core::JsonRepresentation
316
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudfunctionsV2::AuditConfig, decorator: Google::Apis::CloudfunctionsV2::AuditConfig::Representation
317
+
318
+ collection :bindings, as: 'bindings', class: Google::Apis::CloudfunctionsV2::Binding, decorator: Google::Apis::CloudfunctionsV2::Binding::Representation
319
+
320
+ property :etag, :base64 => true, as: 'etag'
321
+ property :version, as: 'version'
322
+ end
323
+ end
324
+
325
+ class SetIamPolicyRequest
326
+ # @private
327
+ class Representation < Google::Apis::Core::JsonRepresentation
328
+ property :policy, as: 'policy', class: Google::Apis::CloudfunctionsV2::Policy, decorator: Google::Apis::CloudfunctionsV2::Policy::Representation
329
+
330
+ property :update_mask, as: 'updateMask'
331
+ end
332
+ end
333
+
334
+ class Status
335
+ # @private
336
+ class Representation < Google::Apis::Core::JsonRepresentation
337
+ property :code, as: 'code'
338
+ collection :details, as: 'details'
339
+ property :message, as: 'message'
340
+ end
341
+ end
342
+
343
+ class TestIamPermissionsRequest
344
+ # @private
345
+ class Representation < Google::Apis::Core::JsonRepresentation
346
+ collection :permissions, as: 'permissions'
347
+ end
348
+ end
349
+
350
+ class TestIamPermissionsResponse
351
+ # @private
352
+ class Representation < Google::Apis::Core::JsonRepresentation
353
+ collection :permissions, as: 'permissions'
354
+ end
355
+ end
356
+ end
357
+ end
358
+ end