google-apis-cloudfunctions_v2 0.3.0 → 0.6.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.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudfunctionsV2
18
18
  # Version of the google-apis-cloudfunctions_v2 gem
19
- GEM_VERSION = "0.3.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220509"
25
+ REVISION = "20220707"
26
26
  end
27
27
  end
28
28
  end
@@ -40,12 +40,78 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class BuildConfig
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class EventFilter
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class EventTrigger
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
43
61
  class Expr
44
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
63
 
46
64
  include Google::Apis::Core::JsonObjectSupport
47
65
  end
48
66
 
67
+ class Function
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GenerateDownloadUrlRequest
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GenerateDownloadUrlResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GenerateUploadUrlRequest
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GenerateUploadUrlResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class GoogleCloudFunctionsV2OperationMetadata
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class GoogleCloudFunctionsV2Stage
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class GoogleCloudFunctionsV2StateMessage
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
49
115
  class GoogleCloudFunctionsV2alphaOperationMetadata
50
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
117
 
@@ -82,6 +148,12 @@ module Google
82
148
  include Google::Apis::Core::JsonObjectSupport
83
149
  end
84
150
 
151
+ class ListFunctionsResponse
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
85
157
  class ListLocationsResponse
86
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
159
 
@@ -94,6 +166,12 @@ module Google
94
166
  include Google::Apis::Core::JsonObjectSupport
95
167
  end
96
168
 
169
+ class ListRuntimesResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
97
175
  class Location
98
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
177
 
@@ -118,18 +196,72 @@ module Google
118
196
  include Google::Apis::Core::JsonObjectSupport
119
197
  end
120
198
 
199
+ class RepoSource
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class Runtime
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class SecretEnvVar
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class SecretVersion
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class SecretVolume
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class ServiceConfig
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
121
235
  class SetIamPolicyRequest
122
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
237
 
124
238
  include Google::Apis::Core::JsonObjectSupport
125
239
  end
126
240
 
241
+ class Source
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class SourceProvenance
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
127
253
  class Status
128
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
255
 
130
256
  include Google::Apis::Core::JsonObjectSupport
131
257
  end
132
258
 
259
+ class StorageSource
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
133
265
  class TestIamPermissionsRequest
134
266
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
267
 
@@ -169,6 +301,46 @@ module Google
169
301
  end
170
302
  end
171
303
 
304
+ class BuildConfig
305
+ # @private
306
+ class Representation < Google::Apis::Core::JsonRepresentation
307
+ property :build, as: 'build'
308
+ property :docker_repository, as: 'dockerRepository'
309
+ property :entry_point, as: 'entryPoint'
310
+ hash :environment_variables, as: 'environmentVariables'
311
+ property :runtime, as: 'runtime'
312
+ property :source, as: 'source', class: Google::Apis::CloudfunctionsV2::Source, decorator: Google::Apis::CloudfunctionsV2::Source::Representation
313
+
314
+ property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudfunctionsV2::SourceProvenance, decorator: Google::Apis::CloudfunctionsV2::SourceProvenance::Representation
315
+
316
+ property :worker_pool, as: 'workerPool'
317
+ end
318
+ end
319
+
320
+ class EventFilter
321
+ # @private
322
+ class Representation < Google::Apis::Core::JsonRepresentation
323
+ property :attribute, as: 'attribute'
324
+ property :operator, as: 'operator'
325
+ property :value, as: 'value'
326
+ end
327
+ end
328
+
329
+ class EventTrigger
330
+ # @private
331
+ class Representation < Google::Apis::Core::JsonRepresentation
332
+ property :channel, as: 'channel'
333
+ collection :event_filters, as: 'eventFilters', class: Google::Apis::CloudfunctionsV2::EventFilter, decorator: Google::Apis::CloudfunctionsV2::EventFilter::Representation
334
+
335
+ property :event_type, as: 'eventType'
336
+ property :pubsub_topic, as: 'pubsubTopic'
337
+ property :retry_policy, as: 'retryPolicy'
338
+ property :service_account_email, as: 'serviceAccountEmail'
339
+ property :trigger, as: 'trigger'
340
+ property :trigger_region, as: 'triggerRegion'
341
+ end
342
+ end
343
+
172
344
  class Expr
173
345
  # @private
174
346
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -179,6 +351,92 @@ module Google
179
351
  end
180
352
  end
181
353
 
354
+ class Function
355
+ # @private
356
+ class Representation < Google::Apis::Core::JsonRepresentation
357
+ property :build_config, as: 'buildConfig', class: Google::Apis::CloudfunctionsV2::BuildConfig, decorator: Google::Apis::CloudfunctionsV2::BuildConfig::Representation
358
+
359
+ property :description, as: 'description'
360
+ property :environment, as: 'environment'
361
+ property :event_trigger, as: 'eventTrigger', class: Google::Apis::CloudfunctionsV2::EventTrigger, decorator: Google::Apis::CloudfunctionsV2::EventTrigger::Representation
362
+
363
+ hash :labels, as: 'labels'
364
+ property :name, as: 'name'
365
+ property :service_config, as: 'serviceConfig', class: Google::Apis::CloudfunctionsV2::ServiceConfig, decorator: Google::Apis::CloudfunctionsV2::ServiceConfig::Representation
366
+
367
+ property :state, as: 'state'
368
+ collection :state_messages, as: 'stateMessages', class: Google::Apis::CloudfunctionsV2::GoogleCloudFunctionsV2StateMessage, decorator: Google::Apis::CloudfunctionsV2::GoogleCloudFunctionsV2StateMessage::Representation
369
+
370
+ property :update_time, as: 'updateTime'
371
+ end
372
+ end
373
+
374
+ class GenerateDownloadUrlRequest
375
+ # @private
376
+ class Representation < Google::Apis::Core::JsonRepresentation
377
+ end
378
+ end
379
+
380
+ class GenerateDownloadUrlResponse
381
+ # @private
382
+ class Representation < Google::Apis::Core::JsonRepresentation
383
+ property :download_url, as: 'downloadUrl'
384
+ end
385
+ end
386
+
387
+ class GenerateUploadUrlRequest
388
+ # @private
389
+ class Representation < Google::Apis::Core::JsonRepresentation
390
+ end
391
+ end
392
+
393
+ class GenerateUploadUrlResponse
394
+ # @private
395
+ class Representation < Google::Apis::Core::JsonRepresentation
396
+ property :storage_source, as: 'storageSource', class: Google::Apis::CloudfunctionsV2::StorageSource, decorator: Google::Apis::CloudfunctionsV2::StorageSource::Representation
397
+
398
+ property :upload_url, as: 'uploadUrl'
399
+ end
400
+ end
401
+
402
+ class GoogleCloudFunctionsV2OperationMetadata
403
+ # @private
404
+ class Representation < Google::Apis::Core::JsonRepresentation
405
+ property :api_version, as: 'apiVersion'
406
+ property :cancel_requested, as: 'cancelRequested'
407
+ property :create_time, as: 'createTime'
408
+ property :end_time, as: 'endTime'
409
+ hash :request_resource, as: 'requestResource'
410
+ collection :stages, as: 'stages', class: Google::Apis::CloudfunctionsV2::GoogleCloudFunctionsV2Stage, decorator: Google::Apis::CloudfunctionsV2::GoogleCloudFunctionsV2Stage::Representation
411
+
412
+ property :status_detail, as: 'statusDetail'
413
+ property :target, as: 'target'
414
+ property :verb, as: 'verb'
415
+ end
416
+ end
417
+
418
+ class GoogleCloudFunctionsV2Stage
419
+ # @private
420
+ class Representation < Google::Apis::Core::JsonRepresentation
421
+ property :message, as: 'message'
422
+ property :name, as: 'name'
423
+ property :resource, as: 'resource'
424
+ property :resource_uri, as: 'resourceUri'
425
+ property :state, as: 'state'
426
+ collection :state_messages, as: 'stateMessages', class: Google::Apis::CloudfunctionsV2::GoogleCloudFunctionsV2StateMessage, decorator: Google::Apis::CloudfunctionsV2::GoogleCloudFunctionsV2StateMessage::Representation
427
+
428
+ end
429
+ end
430
+
431
+ class GoogleCloudFunctionsV2StateMessage
432
+ # @private
433
+ class Representation < Google::Apis::Core::JsonRepresentation
434
+ property :message, as: 'message'
435
+ property :severity, as: 'severity'
436
+ property :type, as: 'type'
437
+ end
438
+ end
439
+
182
440
  class GoogleCloudFunctionsV2alphaOperationMetadata
183
441
  # @private
184
442
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -255,6 +513,16 @@ module Google
255
513
  end
256
514
  end
257
515
 
516
+ class ListFunctionsResponse
517
+ # @private
518
+ class Representation < Google::Apis::Core::JsonRepresentation
519
+ collection :functions, as: 'functions', class: Google::Apis::CloudfunctionsV2::Function, decorator: Google::Apis::CloudfunctionsV2::Function::Representation
520
+
521
+ property :next_page_token, as: 'nextPageToken'
522
+ collection :unreachable, as: 'unreachable'
523
+ end
524
+ end
525
+
258
526
  class ListLocationsResponse
259
527
  # @private
260
528
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -273,6 +541,14 @@ module Google
273
541
  end
274
542
  end
275
543
 
544
+ class ListRuntimesResponse
545
+ # @private
546
+ class Representation < Google::Apis::Core::JsonRepresentation
547
+ collection :runtimes, as: 'runtimes', class: Google::Apis::CloudfunctionsV2::Runtime, decorator: Google::Apis::CloudfunctionsV2::Runtime::Representation
548
+
549
+ end
550
+ end
551
+
276
552
  class Location
277
553
  # @private
278
554
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -322,6 +598,82 @@ module Google
322
598
  end
323
599
  end
324
600
 
601
+ class RepoSource
602
+ # @private
603
+ class Representation < Google::Apis::Core::JsonRepresentation
604
+ property :branch_name, as: 'branchName'
605
+ property :commit_sha, as: 'commitSha'
606
+ property :dir, as: 'dir'
607
+ property :invert_regex, as: 'invertRegex'
608
+ property :project_id, as: 'projectId'
609
+ property :repo_name, as: 'repoName'
610
+ property :tag_name, as: 'tagName'
611
+ end
612
+ end
613
+
614
+ class Runtime
615
+ # @private
616
+ class Representation < Google::Apis::Core::JsonRepresentation
617
+ property :display_name, as: 'displayName'
618
+ property :environment, as: 'environment'
619
+ property :name, as: 'name'
620
+ property :stage, as: 'stage'
621
+ collection :warnings, as: 'warnings'
622
+ end
623
+ end
624
+
625
+ class SecretEnvVar
626
+ # @private
627
+ class Representation < Google::Apis::Core::JsonRepresentation
628
+ property :key, as: 'key'
629
+ property :project_id, as: 'projectId'
630
+ property :secret, as: 'secret'
631
+ property :version, as: 'version'
632
+ end
633
+ end
634
+
635
+ class SecretVersion
636
+ # @private
637
+ class Representation < Google::Apis::Core::JsonRepresentation
638
+ property :path, as: 'path'
639
+ property :version, as: 'version'
640
+ end
641
+ end
642
+
643
+ class SecretVolume
644
+ # @private
645
+ class Representation < Google::Apis::Core::JsonRepresentation
646
+ property :mount_path, as: 'mountPath'
647
+ property :project_id, as: 'projectId'
648
+ property :secret, as: 'secret'
649
+ collection :versions, as: 'versions', class: Google::Apis::CloudfunctionsV2::SecretVersion, decorator: Google::Apis::CloudfunctionsV2::SecretVersion::Representation
650
+
651
+ end
652
+ end
653
+
654
+ class ServiceConfig
655
+ # @private
656
+ class Representation < Google::Apis::Core::JsonRepresentation
657
+ property :all_traffic_on_latest_revision, as: 'allTrafficOnLatestRevision'
658
+ property :available_memory, as: 'availableMemory'
659
+ hash :environment_variables, as: 'environmentVariables'
660
+ property :ingress_settings, as: 'ingressSettings'
661
+ property :max_instance_count, as: 'maxInstanceCount'
662
+ property :min_instance_count, as: 'minInstanceCount'
663
+ property :revision, as: 'revision'
664
+ collection :secret_environment_variables, as: 'secretEnvironmentVariables', class: Google::Apis::CloudfunctionsV2::SecretEnvVar, decorator: Google::Apis::CloudfunctionsV2::SecretEnvVar::Representation
665
+
666
+ collection :secret_volumes, as: 'secretVolumes', class: Google::Apis::CloudfunctionsV2::SecretVolume, decorator: Google::Apis::CloudfunctionsV2::SecretVolume::Representation
667
+
668
+ property :service, as: 'service'
669
+ property :service_account_email, as: 'serviceAccountEmail'
670
+ property :timeout_seconds, as: 'timeoutSeconds'
671
+ property :uri, as: 'uri'
672
+ property :vpc_connector, as: 'vpcConnector'
673
+ property :vpc_connector_egress_settings, as: 'vpcConnectorEgressSettings'
674
+ end
675
+ end
676
+
325
677
  class SetIamPolicyRequest
326
678
  # @private
327
679
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -331,6 +683,26 @@ module Google
331
683
  end
332
684
  end
333
685
 
686
+ class Source
687
+ # @private
688
+ class Representation < Google::Apis::Core::JsonRepresentation
689
+ property :repo_source, as: 'repoSource', class: Google::Apis::CloudfunctionsV2::RepoSource, decorator: Google::Apis::CloudfunctionsV2::RepoSource::Representation
690
+
691
+ property :storage_source, as: 'storageSource', class: Google::Apis::CloudfunctionsV2::StorageSource, decorator: Google::Apis::CloudfunctionsV2::StorageSource::Representation
692
+
693
+ end
694
+ end
695
+
696
+ class SourceProvenance
697
+ # @private
698
+ class Representation < Google::Apis::Core::JsonRepresentation
699
+ property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudfunctionsV2::RepoSource, decorator: Google::Apis::CloudfunctionsV2::RepoSource::Representation
700
+
701
+ property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudfunctionsV2::StorageSource, decorator: Google::Apis::CloudfunctionsV2::StorageSource::Representation
702
+
703
+ end
704
+ end
705
+
334
706
  class Status
335
707
  # @private
336
708
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -340,6 +712,15 @@ module Google
340
712
  end
341
713
  end
342
714
 
715
+ class StorageSource
716
+ # @private
717
+ class Representation < Google::Apis::Core::JsonRepresentation
718
+ property :bucket, as: 'bucket'
719
+ property :generation, :numeric_string => true, as: 'generation'
720
+ property :object, as: 'object'
721
+ end
722
+ end
723
+
343
724
  class TestIamPermissionsRequest
344
725
  # @private
345
726
  class Representation < Google::Apis::Core::JsonRepresentation