google-apis-cloudfunctions_v2alpha 0.39.0 → 0.41.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/google/apis/cloudfunctions_v2alpha/classes.rb +123 -1
- data/lib/google/apis/cloudfunctions_v2alpha/gem_version.rb +3 -3
- data/lib/google/apis/cloudfunctions_v2alpha/representations.rb +82 -0
- data/lib/google/apis/cloudfunctions_v2alpha/service.rb +180 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 30bf273eb4f5351152b177b970bb6bd7e1b99af27357a2129da1409d6686cc46
|
|
4
|
+
data.tar.gz: c83149d277053179298e2fee6e4b5ed9ee71c1bdc85261f85a25e6341c1bccbd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a64a6b9145a4da3bcdcf556b59b33bfb3b340a0a5b265929c7aa3dd368fd4ef8e779c6948e0ab8699c438920174a495826e1bcf8e08779ea29830dac6bf7538
|
|
7
|
+
data.tar.gz: 07634ab00d359790f43d32ea25ed864e507b5a6ac7b948a1f4a41b3aec09b416e1ea044a78589049449462b60d3641931e0e5a03a71083136cc74b1531359ba0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Release history for google-apis-cloudfunctions_v2alpha
|
|
2
2
|
|
|
3
|
+
### v0.41.0 (2024-02-11)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20240205
|
|
6
|
+
|
|
7
|
+
### v0.40.0 (2024-01-28)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20240118
|
|
10
|
+
* Regenerated using generator version 0.13.1
|
|
11
|
+
|
|
3
12
|
### v0.39.0 (2024-01-23)
|
|
4
13
|
|
|
5
14
|
* Regenerated from discovery document revision 20240104
|
|
@@ -22,6 +22,19 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module CloudfunctionsV2alpha
|
|
24
24
|
|
|
25
|
+
# Request for the `AbortFunctionUpgrade` method.
|
|
26
|
+
class AbortFunctionUpgradeRequest
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
def initialize(**args)
|
|
30
|
+
update!(**args)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Update properties of this object
|
|
34
|
+
def update!(**args)
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
25
38
|
# Specifies the audit configuration for a service. The configuration determines
|
|
26
39
|
# which permission types are logged, and what identities, if any, are exempted
|
|
27
40
|
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
|
|
@@ -188,7 +201,10 @@ module Google
|
|
|
188
201
|
attr_accessor :members
|
|
189
202
|
|
|
190
203
|
# Role that is assigned to the list of `members`, or principals. For example, `
|
|
191
|
-
# roles/viewer`, `roles/editor`, or `roles/owner`.
|
|
204
|
+
# roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM
|
|
205
|
+
# roles and permissions, see the [IAM documentation](https://cloud.google.com/
|
|
206
|
+
# iam/docs/roles-overview). For a list of the available pre-defined roles, see [
|
|
207
|
+
# here](https://cloud.google.com/iam/docs/understanding-roles).
|
|
192
208
|
# Corresponds to the JSON property `role`
|
|
193
209
|
# @return [String]
|
|
194
210
|
attr_accessor :role
|
|
@@ -327,6 +343,19 @@ module Google
|
|
|
327
343
|
end
|
|
328
344
|
end
|
|
329
345
|
|
|
346
|
+
# Request for the `CommitFunctionUpgrade` method.
|
|
347
|
+
class CommitFunctionUpgradeRequest
|
|
348
|
+
include Google::Apis::Core::Hashable
|
|
349
|
+
|
|
350
|
+
def initialize(**args)
|
|
351
|
+
update!(**args)
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
# Update properties of this object
|
|
355
|
+
def update!(**args)
|
|
356
|
+
end
|
|
357
|
+
end
|
|
358
|
+
|
|
330
359
|
# Represents a whole or partial calendar date, such as a birthday. The time of
|
|
331
360
|
# day and time zone are either specified elsewhere or are insignificant. The
|
|
332
361
|
# date is relative to the Gregorian Calendar. This can represent one of the
|
|
@@ -553,6 +582,12 @@ module Google
|
|
|
553
582
|
# @return [Google::Apis::CloudfunctionsV2alpha::BuildConfig]
|
|
554
583
|
attr_accessor :build_config
|
|
555
584
|
|
|
585
|
+
# Output only. The create timestamp of a Cloud Function. This is only applicable
|
|
586
|
+
# to 2nd Gen functions.
|
|
587
|
+
# Corresponds to the JSON property `createTime`
|
|
588
|
+
# @return [String]
|
|
589
|
+
attr_accessor :create_time
|
|
590
|
+
|
|
556
591
|
# User-provided description of a function.
|
|
557
592
|
# Corresponds to the JSON property `description`
|
|
558
593
|
# @return [String]
|
|
@@ -613,6 +648,12 @@ module Google
|
|
|
613
648
|
# @return [String]
|
|
614
649
|
attr_accessor :update_time
|
|
615
650
|
|
|
651
|
+
# Information related to: * A function's eligibility for 1st Gen to 2nd Gen
|
|
652
|
+
# migration * Current state of migration for function undergoing migration.
|
|
653
|
+
# Corresponds to the JSON property `upgradeInfo`
|
|
654
|
+
# @return [Google::Apis::CloudfunctionsV2alpha::UpgradeInfo]
|
|
655
|
+
attr_accessor :upgrade_info
|
|
656
|
+
|
|
616
657
|
# Output only. The deployed url for the function.
|
|
617
658
|
# Corresponds to the JSON property `url`
|
|
618
659
|
# @return [String]
|
|
@@ -625,6 +666,7 @@ module Google
|
|
|
625
666
|
# Update properties of this object
|
|
626
667
|
def update!(**args)
|
|
627
668
|
@build_config = args[:build_config] if args.key?(:build_config)
|
|
669
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
628
670
|
@description = args[:description] if args.key?(:description)
|
|
629
671
|
@environment = args[:environment] if args.key?(:environment)
|
|
630
672
|
@event_trigger = args[:event_trigger] if args.key?(:event_trigger)
|
|
@@ -636,6 +678,7 @@ module Google
|
|
|
636
678
|
@state = args[:state] if args.key?(:state)
|
|
637
679
|
@state_messages = args[:state_messages] if args.key?(:state_messages)
|
|
638
680
|
@update_time = args[:update_time] if args.key?(:update_time)
|
|
681
|
+
@upgrade_info = args[:upgrade_info] if args.key?(:upgrade_info)
|
|
639
682
|
@url = args[:url] if args.key?(:url)
|
|
640
683
|
end
|
|
641
684
|
end
|
|
@@ -1678,6 +1721,19 @@ module Google
|
|
|
1678
1721
|
end
|
|
1679
1722
|
end
|
|
1680
1723
|
|
|
1724
|
+
# Request for the `RedirectFunctionUpgradeTraffic` method.
|
|
1725
|
+
class RedirectFunctionUpgradeTrafficRequest
|
|
1726
|
+
include Google::Apis::Core::Hashable
|
|
1727
|
+
|
|
1728
|
+
def initialize(**args)
|
|
1729
|
+
update!(**args)
|
|
1730
|
+
end
|
|
1731
|
+
|
|
1732
|
+
# Update properties of this object
|
|
1733
|
+
def update!(**args)
|
|
1734
|
+
end
|
|
1735
|
+
end
|
|
1736
|
+
|
|
1681
1737
|
# Location of the source in a Google Cloud Source Repository.
|
|
1682
1738
|
class RepoSource
|
|
1683
1739
|
include Google::Apis::Core::Hashable
|
|
@@ -1735,6 +1791,19 @@ module Google
|
|
|
1735
1791
|
end
|
|
1736
1792
|
end
|
|
1737
1793
|
|
|
1794
|
+
# Request for the `RollbackFunctionUpgradeTraffic` method.
|
|
1795
|
+
class RollbackFunctionUpgradeTrafficRequest
|
|
1796
|
+
include Google::Apis::Core::Hashable
|
|
1797
|
+
|
|
1798
|
+
def initialize(**args)
|
|
1799
|
+
update!(**args)
|
|
1800
|
+
end
|
|
1801
|
+
|
|
1802
|
+
# Update properties of this object
|
|
1803
|
+
def update!(**args)
|
|
1804
|
+
end
|
|
1805
|
+
end
|
|
1806
|
+
|
|
1738
1807
|
# Describes a runtime and any special information (e.g., deprecation status)
|
|
1739
1808
|
# related to it.
|
|
1740
1809
|
class Runtime
|
|
@@ -2131,6 +2200,19 @@ module Google
|
|
|
2131
2200
|
end
|
|
2132
2201
|
end
|
|
2133
2202
|
|
|
2203
|
+
# Request for the `SetupFunctionUpgradeConfig` method.
|
|
2204
|
+
class SetupFunctionUpgradeConfigRequest
|
|
2205
|
+
include Google::Apis::Core::Hashable
|
|
2206
|
+
|
|
2207
|
+
def initialize(**args)
|
|
2208
|
+
update!(**args)
|
|
2209
|
+
end
|
|
2210
|
+
|
|
2211
|
+
# Update properties of this object
|
|
2212
|
+
def update!(**args)
|
|
2213
|
+
end
|
|
2214
|
+
end
|
|
2215
|
+
|
|
2134
2216
|
# The location of the function source code.
|
|
2135
2217
|
class Source
|
|
2136
2218
|
include Google::Apis::Core::Hashable
|
|
@@ -2308,6 +2390,46 @@ module Google
|
|
|
2308
2390
|
@permissions = args[:permissions] if args.key?(:permissions)
|
|
2309
2391
|
end
|
|
2310
2392
|
end
|
|
2393
|
+
|
|
2394
|
+
# Information related to: * A function's eligibility for 1st Gen to 2nd Gen
|
|
2395
|
+
# migration * Current state of migration for function undergoing migration.
|
|
2396
|
+
class UpgradeInfo
|
|
2397
|
+
include Google::Apis::Core::Hashable
|
|
2398
|
+
|
|
2399
|
+
# Describes the Build step of the function that builds a container from the
|
|
2400
|
+
# given source.
|
|
2401
|
+
# Corresponds to the JSON property `buildConfig`
|
|
2402
|
+
# @return [Google::Apis::CloudfunctionsV2alpha::BuildConfig]
|
|
2403
|
+
attr_accessor :build_config
|
|
2404
|
+
|
|
2405
|
+
# Describes EventTrigger, used to request events to be sent from another service.
|
|
2406
|
+
# Corresponds to the JSON property `eventTrigger`
|
|
2407
|
+
# @return [Google::Apis::CloudfunctionsV2alpha::EventTrigger]
|
|
2408
|
+
attr_accessor :event_trigger
|
|
2409
|
+
|
|
2410
|
+
# Describes the Service being deployed. Currently Supported : Cloud Run (fully
|
|
2411
|
+
# managed).
|
|
2412
|
+
# Corresponds to the JSON property `serviceConfig`
|
|
2413
|
+
# @return [Google::Apis::CloudfunctionsV2alpha::ServiceConfig]
|
|
2414
|
+
attr_accessor :service_config
|
|
2415
|
+
|
|
2416
|
+
# UpgradeState of the function
|
|
2417
|
+
# Corresponds to the JSON property `upgradeState`
|
|
2418
|
+
# @return [String]
|
|
2419
|
+
attr_accessor :upgrade_state
|
|
2420
|
+
|
|
2421
|
+
def initialize(**args)
|
|
2422
|
+
update!(**args)
|
|
2423
|
+
end
|
|
2424
|
+
|
|
2425
|
+
# Update properties of this object
|
|
2426
|
+
def update!(**args)
|
|
2427
|
+
@build_config = args[:build_config] if args.key?(:build_config)
|
|
2428
|
+
@event_trigger = args[:event_trigger] if args.key?(:event_trigger)
|
|
2429
|
+
@service_config = args[:service_config] if args.key?(:service_config)
|
|
2430
|
+
@upgrade_state = args[:upgrade_state] if args.key?(:upgrade_state)
|
|
2431
|
+
end
|
|
2432
|
+
end
|
|
2311
2433
|
end
|
|
2312
2434
|
end
|
|
2313
2435
|
end
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module CloudfunctionsV2alpha
|
|
18
18
|
# Version of the google-apis-cloudfunctions_v2alpha gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.41.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
|
-
GENERATOR_VERSION = "0.13.
|
|
22
|
+
GENERATOR_VERSION = "0.13.1"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20240205"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -22,6 +22,12 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module CloudfunctionsV2alpha
|
|
24
24
|
|
|
25
|
+
class AbortFunctionUpgradeRequest
|
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
+
|
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
+
end
|
|
30
|
+
|
|
25
31
|
class AuditConfig
|
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
33
|
|
|
@@ -52,6 +58,12 @@ module Google
|
|
|
52
58
|
include Google::Apis::Core::JsonObjectSupport
|
|
53
59
|
end
|
|
54
60
|
|
|
61
|
+
class CommitFunctionUpgradeRequest
|
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
+
|
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
65
|
+
end
|
|
66
|
+
|
|
55
67
|
class Date
|
|
56
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
69
|
|
|
@@ -232,12 +244,24 @@ module Google
|
|
|
232
244
|
include Google::Apis::Core::JsonObjectSupport
|
|
233
245
|
end
|
|
234
246
|
|
|
247
|
+
class RedirectFunctionUpgradeTrafficRequest
|
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
249
|
+
|
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
251
|
+
end
|
|
252
|
+
|
|
235
253
|
class RepoSource
|
|
236
254
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
237
255
|
|
|
238
256
|
include Google::Apis::Core::JsonObjectSupport
|
|
239
257
|
end
|
|
240
258
|
|
|
259
|
+
class RollbackFunctionUpgradeTrafficRequest
|
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
261
|
+
|
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
263
|
+
end
|
|
264
|
+
|
|
241
265
|
class Runtime
|
|
242
266
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
243
267
|
|
|
@@ -274,6 +298,12 @@ module Google
|
|
|
274
298
|
include Google::Apis::Core::JsonObjectSupport
|
|
275
299
|
end
|
|
276
300
|
|
|
301
|
+
class SetupFunctionUpgradeConfigRequest
|
|
302
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
303
|
+
|
|
304
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
305
|
+
end
|
|
306
|
+
|
|
277
307
|
class Source
|
|
278
308
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
279
309
|
|
|
@@ -310,6 +340,18 @@ module Google
|
|
|
310
340
|
include Google::Apis::Core::JsonObjectSupport
|
|
311
341
|
end
|
|
312
342
|
|
|
343
|
+
class UpgradeInfo
|
|
344
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
345
|
+
|
|
346
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
class AbortFunctionUpgradeRequest
|
|
350
|
+
# @private
|
|
351
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
352
|
+
end
|
|
353
|
+
end
|
|
354
|
+
|
|
313
355
|
class AuditConfig
|
|
314
356
|
# @private
|
|
315
357
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -366,6 +408,12 @@ module Google
|
|
|
366
408
|
end
|
|
367
409
|
end
|
|
368
410
|
|
|
411
|
+
class CommitFunctionUpgradeRequest
|
|
412
|
+
# @private
|
|
413
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
414
|
+
end
|
|
415
|
+
end
|
|
416
|
+
|
|
369
417
|
class Date
|
|
370
418
|
# @private
|
|
371
419
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -415,6 +463,7 @@ module Google
|
|
|
415
463
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
416
464
|
property :build_config, as: 'buildConfig', class: Google::Apis::CloudfunctionsV2alpha::BuildConfig, decorator: Google::Apis::CloudfunctionsV2alpha::BuildConfig::Representation
|
|
417
465
|
|
|
466
|
+
property :create_time, as: 'createTime'
|
|
418
467
|
property :description, as: 'description'
|
|
419
468
|
property :environment, as: 'environment'
|
|
420
469
|
property :event_trigger, as: 'eventTrigger', class: Google::Apis::CloudfunctionsV2alpha::EventTrigger, decorator: Google::Apis::CloudfunctionsV2alpha::EventTrigger::Representation
|
|
@@ -429,6 +478,8 @@ module Google
|
|
|
429
478
|
collection :state_messages, as: 'stateMessages', class: Google::Apis::CloudfunctionsV2alpha::GoogleCloudFunctionsV2alphaStateMessage, decorator: Google::Apis::CloudfunctionsV2alpha::GoogleCloudFunctionsV2alphaStateMessage::Representation
|
|
430
479
|
|
|
431
480
|
property :update_time, as: 'updateTime'
|
|
481
|
+
property :upgrade_info, as: 'upgradeInfo', class: Google::Apis::CloudfunctionsV2alpha::UpgradeInfo, decorator: Google::Apis::CloudfunctionsV2alpha::UpgradeInfo::Representation
|
|
482
|
+
|
|
432
483
|
property :url, as: 'url'
|
|
433
484
|
end
|
|
434
485
|
end
|
|
@@ -696,6 +747,12 @@ module Google
|
|
|
696
747
|
end
|
|
697
748
|
end
|
|
698
749
|
|
|
750
|
+
class RedirectFunctionUpgradeTrafficRequest
|
|
751
|
+
# @private
|
|
752
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
753
|
+
end
|
|
754
|
+
end
|
|
755
|
+
|
|
699
756
|
class RepoSource
|
|
700
757
|
# @private
|
|
701
758
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -708,6 +765,12 @@ module Google
|
|
|
708
765
|
end
|
|
709
766
|
end
|
|
710
767
|
|
|
768
|
+
class RollbackFunctionUpgradeTrafficRequest
|
|
769
|
+
# @private
|
|
770
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
771
|
+
end
|
|
772
|
+
end
|
|
773
|
+
|
|
711
774
|
class Runtime
|
|
712
775
|
# @private
|
|
713
776
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -787,6 +850,12 @@ module Google
|
|
|
787
850
|
end
|
|
788
851
|
end
|
|
789
852
|
|
|
853
|
+
class SetupFunctionUpgradeConfigRequest
|
|
854
|
+
# @private
|
|
855
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
856
|
+
end
|
|
857
|
+
end
|
|
858
|
+
|
|
790
859
|
class Source
|
|
791
860
|
# @private
|
|
792
861
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -840,6 +909,19 @@ module Google
|
|
|
840
909
|
collection :permissions, as: 'permissions'
|
|
841
910
|
end
|
|
842
911
|
end
|
|
912
|
+
|
|
913
|
+
class UpgradeInfo
|
|
914
|
+
# @private
|
|
915
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
916
|
+
property :build_config, as: 'buildConfig', class: Google::Apis::CloudfunctionsV2alpha::BuildConfig, decorator: Google::Apis::CloudfunctionsV2alpha::BuildConfig::Representation
|
|
917
|
+
|
|
918
|
+
property :event_trigger, as: 'eventTrigger', class: Google::Apis::CloudfunctionsV2alpha::EventTrigger, decorator: Google::Apis::CloudfunctionsV2alpha::EventTrigger::Representation
|
|
919
|
+
|
|
920
|
+
property :service_config, as: 'serviceConfig', class: Google::Apis::CloudfunctionsV2alpha::ServiceConfig, decorator: Google::Apis::CloudfunctionsV2alpha::ServiceConfig::Representation
|
|
921
|
+
|
|
922
|
+
property :upgrade_state, as: 'upgradeState'
|
|
923
|
+
end
|
|
924
|
+
end
|
|
843
925
|
end
|
|
844
926
|
end
|
|
845
927
|
end
|
|
@@ -94,6 +94,76 @@ module Google
|
|
|
94
94
|
execute_or_queue_command(command, &block)
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
+
# Aborts generation upgrade process for a function with the given name from the
|
|
98
|
+
# specified project. Deletes all 2nd Gen copy related configuration and
|
|
99
|
+
# resources which were created during the upgrade process.
|
|
100
|
+
# @param [String] name
|
|
101
|
+
# Required. The name of the function for which upgrade should be aborted.
|
|
102
|
+
# @param [Google::Apis::CloudfunctionsV2alpha::AbortFunctionUpgradeRequest] abort_function_upgrade_request_object
|
|
103
|
+
# @param [String] fields
|
|
104
|
+
# Selector specifying which fields to include in a partial response.
|
|
105
|
+
# @param [String] quota_user
|
|
106
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
107
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
108
|
+
# @param [Google::Apis::RequestOptions] options
|
|
109
|
+
# Request-specific options
|
|
110
|
+
#
|
|
111
|
+
# @yield [result, err] Result & error if block supplied
|
|
112
|
+
# @yieldparam result [Google::Apis::CloudfunctionsV2alpha::Operation] parsed result object
|
|
113
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
114
|
+
#
|
|
115
|
+
# @return [Google::Apis::CloudfunctionsV2alpha::Operation]
|
|
116
|
+
#
|
|
117
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
118
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
119
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
120
|
+
def abort_function_upgrade(name, abort_function_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
121
|
+
command = make_simple_command(:post, 'v2alpha/{+name}:abortFunctionUpgrade', options)
|
|
122
|
+
command.request_representation = Google::Apis::CloudfunctionsV2alpha::AbortFunctionUpgradeRequest::Representation
|
|
123
|
+
command.request_object = abort_function_upgrade_request_object
|
|
124
|
+
command.response_representation = Google::Apis::CloudfunctionsV2alpha::Operation::Representation
|
|
125
|
+
command.response_class = Google::Apis::CloudfunctionsV2alpha::Operation
|
|
126
|
+
command.params['name'] = name unless name.nil?
|
|
127
|
+
command.query['fields'] = fields unless fields.nil?
|
|
128
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
129
|
+
execute_or_queue_command(command, &block)
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Finalizes the upgrade after which function upgrade can not be rolled back.
|
|
133
|
+
# This is the last step of the multi step process to upgrade 1st Gen functions
|
|
134
|
+
# to 2nd Gen. Deletes all original 1st Gen related configuration and resources.
|
|
135
|
+
# @param [String] name
|
|
136
|
+
# Required. The name of the function for which upgrade should be finalized.
|
|
137
|
+
# @param [Google::Apis::CloudfunctionsV2alpha::CommitFunctionUpgradeRequest] commit_function_upgrade_request_object
|
|
138
|
+
# @param [String] fields
|
|
139
|
+
# Selector specifying which fields to include in a partial response.
|
|
140
|
+
# @param [String] quota_user
|
|
141
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
142
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
143
|
+
# @param [Google::Apis::RequestOptions] options
|
|
144
|
+
# Request-specific options
|
|
145
|
+
#
|
|
146
|
+
# @yield [result, err] Result & error if block supplied
|
|
147
|
+
# @yieldparam result [Google::Apis::CloudfunctionsV2alpha::Operation] parsed result object
|
|
148
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
149
|
+
#
|
|
150
|
+
# @return [Google::Apis::CloudfunctionsV2alpha::Operation]
|
|
151
|
+
#
|
|
152
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
153
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
154
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
155
|
+
def commit_function_upgrade(name, commit_function_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
156
|
+
command = make_simple_command(:post, 'v2alpha/{+name}:commitFunctionUpgrade', options)
|
|
157
|
+
command.request_representation = Google::Apis::CloudfunctionsV2alpha::CommitFunctionUpgradeRequest::Representation
|
|
158
|
+
command.request_object = commit_function_upgrade_request_object
|
|
159
|
+
command.response_representation = Google::Apis::CloudfunctionsV2alpha::Operation::Representation
|
|
160
|
+
command.response_class = Google::Apis::CloudfunctionsV2alpha::Operation
|
|
161
|
+
command.params['name'] = name unless name.nil?
|
|
162
|
+
command.query['fields'] = fields unless fields.nil?
|
|
163
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
164
|
+
execute_or_queue_command(command, &block)
|
|
165
|
+
end
|
|
166
|
+
|
|
97
167
|
# Creates a new function. If a function with the given name already exists in
|
|
98
168
|
# the specified project, the long running operation will return `ALREADY_EXISTS`
|
|
99
169
|
# error.
|
|
@@ -418,6 +488,79 @@ module Google
|
|
|
418
488
|
execute_or_queue_command(command, &block)
|
|
419
489
|
end
|
|
420
490
|
|
|
491
|
+
# Changes the traffic target of a function from the original 1st Gen function to
|
|
492
|
+
# the 2nd Gen copy. This is the second step of the multi step process to upgrade
|
|
493
|
+
# 1st Gen functions to 2nd Gen. After this operation, all new traffic will be
|
|
494
|
+
# served by 2nd Gen copy.
|
|
495
|
+
# @param [String] name
|
|
496
|
+
# Required. The name of the function for which traffic target should be changed
|
|
497
|
+
# to 2nd Gen from 1st Gen.
|
|
498
|
+
# @param [Google::Apis::CloudfunctionsV2alpha::RedirectFunctionUpgradeTrafficRequest] redirect_function_upgrade_traffic_request_object
|
|
499
|
+
# @param [String] fields
|
|
500
|
+
# Selector specifying which fields to include in a partial response.
|
|
501
|
+
# @param [String] quota_user
|
|
502
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
503
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
504
|
+
# @param [Google::Apis::RequestOptions] options
|
|
505
|
+
# Request-specific options
|
|
506
|
+
#
|
|
507
|
+
# @yield [result, err] Result & error if block supplied
|
|
508
|
+
# @yieldparam result [Google::Apis::CloudfunctionsV2alpha::Operation] parsed result object
|
|
509
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
510
|
+
#
|
|
511
|
+
# @return [Google::Apis::CloudfunctionsV2alpha::Operation]
|
|
512
|
+
#
|
|
513
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
514
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
515
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
516
|
+
def redirect_function_upgrade_traffic(name, redirect_function_upgrade_traffic_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
517
|
+
command = make_simple_command(:post, 'v2alpha/{+name}:redirectFunctionUpgradeTraffic', options)
|
|
518
|
+
command.request_representation = Google::Apis::CloudfunctionsV2alpha::RedirectFunctionUpgradeTrafficRequest::Representation
|
|
519
|
+
command.request_object = redirect_function_upgrade_traffic_request_object
|
|
520
|
+
command.response_representation = Google::Apis::CloudfunctionsV2alpha::Operation::Representation
|
|
521
|
+
command.response_class = Google::Apis::CloudfunctionsV2alpha::Operation
|
|
522
|
+
command.params['name'] = name unless name.nil?
|
|
523
|
+
command.query['fields'] = fields unless fields.nil?
|
|
524
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
525
|
+
execute_or_queue_command(command, &block)
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
# Reverts the traffic target of a function from the 2nd Gen copy to the original
|
|
529
|
+
# 1st Gen function. After this operation, all new traffic would be served by the
|
|
530
|
+
# 1st Gen.
|
|
531
|
+
# @param [String] name
|
|
532
|
+
# Required. The name of the function for which traffic target should be changed
|
|
533
|
+
# back to 1st Gen from 2nd Gen.
|
|
534
|
+
# @param [Google::Apis::CloudfunctionsV2alpha::RollbackFunctionUpgradeTrafficRequest] rollback_function_upgrade_traffic_request_object
|
|
535
|
+
# @param [String] fields
|
|
536
|
+
# Selector specifying which fields to include in a partial response.
|
|
537
|
+
# @param [String] quota_user
|
|
538
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
539
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
540
|
+
# @param [Google::Apis::RequestOptions] options
|
|
541
|
+
# Request-specific options
|
|
542
|
+
#
|
|
543
|
+
# @yield [result, err] Result & error if block supplied
|
|
544
|
+
# @yieldparam result [Google::Apis::CloudfunctionsV2alpha::Operation] parsed result object
|
|
545
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
546
|
+
#
|
|
547
|
+
# @return [Google::Apis::CloudfunctionsV2alpha::Operation]
|
|
548
|
+
#
|
|
549
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
550
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
551
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
552
|
+
def rollback_function_upgrade_traffic(name, rollback_function_upgrade_traffic_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
553
|
+
command = make_simple_command(:post, 'v2alpha/{+name}:rollbackFunctionUpgradeTraffic', options)
|
|
554
|
+
command.request_representation = Google::Apis::CloudfunctionsV2alpha::RollbackFunctionUpgradeTrafficRequest::Representation
|
|
555
|
+
command.request_object = rollback_function_upgrade_traffic_request_object
|
|
556
|
+
command.response_representation = Google::Apis::CloudfunctionsV2alpha::Operation::Representation
|
|
557
|
+
command.response_class = Google::Apis::CloudfunctionsV2alpha::Operation
|
|
558
|
+
command.params['name'] = name unless name.nil?
|
|
559
|
+
command.query['fields'] = fields unless fields.nil?
|
|
560
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
561
|
+
execute_or_queue_command(command, &block)
|
|
562
|
+
end
|
|
563
|
+
|
|
421
564
|
# Sets the access control policy on the specified resource. Replaces any
|
|
422
565
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
|
423
566
|
# PERMISSION_DENIED` errors.
|
|
@@ -455,6 +598,43 @@ module Google
|
|
|
455
598
|
execute_or_queue_command(command, &block)
|
|
456
599
|
end
|
|
457
600
|
|
|
601
|
+
# Creates a 2nd Gen copy of the function configuration based on the 1st Gen
|
|
602
|
+
# function with the given name. This is the first step of the multi step process
|
|
603
|
+
# to upgrade 1st Gen functions to 2nd Gen. Only 2nd Gen configuration is setup
|
|
604
|
+
# as part of this request and traffic continues to be served by 1st Gen.
|
|
605
|
+
# @param [String] name
|
|
606
|
+
# Required. The name of the function which should have configuration copied for
|
|
607
|
+
# upgrade.
|
|
608
|
+
# @param [Google::Apis::CloudfunctionsV2alpha::SetupFunctionUpgradeConfigRequest] setup_function_upgrade_config_request_object
|
|
609
|
+
# @param [String] fields
|
|
610
|
+
# Selector specifying which fields to include in a partial response.
|
|
611
|
+
# @param [String] quota_user
|
|
612
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
613
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
614
|
+
# @param [Google::Apis::RequestOptions] options
|
|
615
|
+
# Request-specific options
|
|
616
|
+
#
|
|
617
|
+
# @yield [result, err] Result & error if block supplied
|
|
618
|
+
# @yieldparam result [Google::Apis::CloudfunctionsV2alpha::Operation] parsed result object
|
|
619
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
620
|
+
#
|
|
621
|
+
# @return [Google::Apis::CloudfunctionsV2alpha::Operation]
|
|
622
|
+
#
|
|
623
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
624
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
625
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
626
|
+
def setup_function_upgrade_config(name, setup_function_upgrade_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
627
|
+
command = make_simple_command(:post, 'v2alpha/{+name}:setupFunctionUpgradeConfig', options)
|
|
628
|
+
command.request_representation = Google::Apis::CloudfunctionsV2alpha::SetupFunctionUpgradeConfigRequest::Representation
|
|
629
|
+
command.request_object = setup_function_upgrade_config_request_object
|
|
630
|
+
command.response_representation = Google::Apis::CloudfunctionsV2alpha::Operation::Representation
|
|
631
|
+
command.response_class = Google::Apis::CloudfunctionsV2alpha::Operation
|
|
632
|
+
command.params['name'] = name unless name.nil?
|
|
633
|
+
command.query['fields'] = fields unless fields.nil?
|
|
634
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
635
|
+
execute_or_queue_command(command, &block)
|
|
636
|
+
end
|
|
637
|
+
|
|
458
638
|
# Returns permissions that a caller has on the specified resource. If the
|
|
459
639
|
# resource does not exist, this will return an empty set of permissions, not a `
|
|
460
640
|
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-cloudfunctions_v2alpha
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.41.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-02-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-apis-core
|
|
@@ -58,7 +58,7 @@ licenses:
|
|
|
58
58
|
metadata:
|
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudfunctions_v2alpha/CHANGELOG.md
|
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudfunctions_v2alpha/v0.
|
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudfunctions_v2alpha/v0.41.0
|
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudfunctions_v2alpha
|
|
63
63
|
post_install_message:
|
|
64
64
|
rdoc_options: []
|