google-apis-cloudfunctions_v2 0.35.0 → 0.36.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09e7bf0fb05a78a6c33fb2801261ae5f4e83815efd5fc20c2b8d0846ea13cf06'
4
- data.tar.gz: b31c859d877d796be25eeb236467c9540854474ac4c16b12ca254afaeeb838c4
3
+ metadata.gz: 24ac380a0960a4ea957f28c5fc85a7e7a2cd58042f8eab09c8eb68ded9a8282d
4
+ data.tar.gz: 793736ee9b74c978efaf7369fef0a1ed08ef33a2b8b5cac0662242e38397d645
5
5
  SHA512:
6
- metadata.gz: 384f7f6856db0683c569fa8464ba027c0c1feb5ea9ad7ca02468aa0f1e19eaf552e0a36bf357af0c6173ab6a8d2b27ad2e5a25b898301d6e7c79d8fb3c1f287b
7
- data.tar.gz: dda3ad2cd4e62141cc2739aa68a52f0e929f8aae53b88796e92f7a9395258691c3b07a66e4c1f7240c7f5610e37112bced1022592a0911f71650c85cf75e0948
6
+ metadata.gz: 6de23270f7d723e60d8543e8a90286fd1b1ae3e1554ca380604fd9dc75c859f252f5cb300121eb1941b8cafbcb56e6e97b4f45e23d70657c785aa1bcbbd18329
7
+ data.tar.gz: 611827a9976105e959f897023cf24db35426c8092f4ba44a049e3a3bff52d13a9b6cc61d98af4897f872579dde5fe0bc83234109f94b16b832a8e3a5f306b9d3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-cloudfunctions_v2
2
2
 
3
+ ### v0.36.0 (2024-02-11)
4
+
5
+ * Regenerated from discovery document revision 20240205
6
+
3
7
  ### v0.35.0 (2024-01-28)
4
8
 
5
9
  * Regenerated from discovery document revision 20240118
@@ -22,6 +22,19 @@ module Google
22
22
  module Apis
23
23
  module CloudfunctionsV2
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
@@ -330,6 +343,19 @@ module Google
330
343
  end
331
344
  end
332
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
+
333
359
  # Represents a whole or partial calendar date, such as a birthday. The time of
334
360
  # day and time zone are either specified elsewhere or are insignificant. The
335
361
  # date is relative to the Gregorian Calendar. This can represent one of the
@@ -556,6 +582,12 @@ module Google
556
582
  # @return [Google::Apis::CloudfunctionsV2::BuildConfig]
557
583
  attr_accessor :build_config
558
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
+
559
591
  # User-provided description of a function.
560
592
  # Corresponds to the JSON property `description`
561
593
  # @return [String]
@@ -616,6 +648,12 @@ module Google
616
648
  # @return [String]
617
649
  attr_accessor :update_time
618
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::CloudfunctionsV2::UpgradeInfo]
655
+ attr_accessor :upgrade_info
656
+
619
657
  # Output only. The deployed url for the function.
620
658
  # Corresponds to the JSON property `url`
621
659
  # @return [String]
@@ -628,6 +666,7 @@ module Google
628
666
  # Update properties of this object
629
667
  def update!(**args)
630
668
  @build_config = args[:build_config] if args.key?(:build_config)
669
+ @create_time = args[:create_time] if args.key?(:create_time)
631
670
  @description = args[:description] if args.key?(:description)
632
671
  @environment = args[:environment] if args.key?(:environment)
633
672
  @event_trigger = args[:event_trigger] if args.key?(:event_trigger)
@@ -639,6 +678,7 @@ module Google
639
678
  @state = args[:state] if args.key?(:state)
640
679
  @state_messages = args[:state_messages] if args.key?(:state_messages)
641
680
  @update_time = args[:update_time] if args.key?(:update_time)
681
+ @upgrade_info = args[:upgrade_info] if args.key?(:upgrade_info)
642
682
  @url = args[:url] if args.key?(:url)
643
683
  end
644
684
  end
@@ -1681,6 +1721,19 @@ module Google
1681
1721
  end
1682
1722
  end
1683
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
+
1684
1737
  # Location of the source in a Google Cloud Source Repository.
1685
1738
  class RepoSource
1686
1739
  include Google::Apis::Core::Hashable
@@ -1738,6 +1791,19 @@ module Google
1738
1791
  end
1739
1792
  end
1740
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
+
1741
1807
  # Describes a runtime and any special information (e.g., deprecation status)
1742
1808
  # related to it.
1743
1809
  class Runtime
@@ -2134,6 +2200,19 @@ module Google
2134
2200
  end
2135
2201
  end
2136
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
+
2137
2216
  # The location of the function source code.
2138
2217
  class Source
2139
2218
  include Google::Apis::Core::Hashable
@@ -2311,6 +2390,46 @@ module Google
2311
2390
  @permissions = args[:permissions] if args.key?(:permissions)
2312
2391
  end
2313
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::CloudfunctionsV2::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::CloudfunctionsV2::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::CloudfunctionsV2::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
2314
2433
  end
2315
2434
  end
2316
2435
  end
@@ -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.35.0"
19
+ GEM_VERSION = "0.36.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.13.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240118"
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 CloudfunctionsV2
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::CloudfunctionsV2::BuildConfig, decorator: Google::Apis::CloudfunctionsV2::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::CloudfunctionsV2::EventTrigger, decorator: Google::Apis::CloudfunctionsV2::EventTrigger::Representation
@@ -429,6 +478,8 @@ module Google
429
478
  collection :state_messages, as: 'stateMessages', class: Google::Apis::CloudfunctionsV2::GoogleCloudFunctionsV2StateMessage, decorator: Google::Apis::CloudfunctionsV2::GoogleCloudFunctionsV2StateMessage::Representation
430
479
 
431
480
  property :update_time, as: 'updateTime'
481
+ property :upgrade_info, as: 'upgradeInfo', class: Google::Apis::CloudfunctionsV2::UpgradeInfo, decorator: Google::Apis::CloudfunctionsV2::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::CloudfunctionsV2::BuildConfig, decorator: Google::Apis::CloudfunctionsV2::BuildConfig::Representation
917
+
918
+ property :event_trigger, as: 'eventTrigger', class: Google::Apis::CloudfunctionsV2::EventTrigger, decorator: Google::Apis::CloudfunctionsV2::EventTrigger::Representation
919
+
920
+ property :service_config, as: 'serviceConfig', class: Google::Apis::CloudfunctionsV2::ServiceConfig, decorator: Google::Apis::CloudfunctionsV2::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::CloudfunctionsV2::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::CloudfunctionsV2::Operation] parsed result object
113
+ # @yieldparam err [StandardError] error object if request failed
114
+ #
115
+ # @return [Google::Apis::CloudfunctionsV2::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, 'v2/{+name}:abortFunctionUpgrade', options)
122
+ command.request_representation = Google::Apis::CloudfunctionsV2::AbortFunctionUpgradeRequest::Representation
123
+ command.request_object = abort_function_upgrade_request_object
124
+ command.response_representation = Google::Apis::CloudfunctionsV2::Operation::Representation
125
+ command.response_class = Google::Apis::CloudfunctionsV2::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::CloudfunctionsV2::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::CloudfunctionsV2::Operation] parsed result object
148
+ # @yieldparam err [StandardError] error object if request failed
149
+ #
150
+ # @return [Google::Apis::CloudfunctionsV2::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, 'v2/{+name}:commitFunctionUpgrade', options)
157
+ command.request_representation = Google::Apis::CloudfunctionsV2::CommitFunctionUpgradeRequest::Representation
158
+ command.request_object = commit_function_upgrade_request_object
159
+ command.response_representation = Google::Apis::CloudfunctionsV2::Operation::Representation
160
+ command.response_class = Google::Apis::CloudfunctionsV2::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::CloudfunctionsV2::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::CloudfunctionsV2::Operation] parsed result object
509
+ # @yieldparam err [StandardError] error object if request failed
510
+ #
511
+ # @return [Google::Apis::CloudfunctionsV2::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, 'v2/{+name}:redirectFunctionUpgradeTraffic', options)
518
+ command.request_representation = Google::Apis::CloudfunctionsV2::RedirectFunctionUpgradeTrafficRequest::Representation
519
+ command.request_object = redirect_function_upgrade_traffic_request_object
520
+ command.response_representation = Google::Apis::CloudfunctionsV2::Operation::Representation
521
+ command.response_class = Google::Apis::CloudfunctionsV2::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::CloudfunctionsV2::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::CloudfunctionsV2::Operation] parsed result object
545
+ # @yieldparam err [StandardError] error object if request failed
546
+ #
547
+ # @return [Google::Apis::CloudfunctionsV2::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, 'v2/{+name}:rollbackFunctionUpgradeTraffic', options)
554
+ command.request_representation = Google::Apis::CloudfunctionsV2::RollbackFunctionUpgradeTrafficRequest::Representation
555
+ command.request_object = rollback_function_upgrade_traffic_request_object
556
+ command.response_representation = Google::Apis::CloudfunctionsV2::Operation::Representation
557
+ command.response_class = Google::Apis::CloudfunctionsV2::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::CloudfunctionsV2::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::CloudfunctionsV2::Operation] parsed result object
619
+ # @yieldparam err [StandardError] error object if request failed
620
+ #
621
+ # @return [Google::Apis::CloudfunctionsV2::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, 'v2/{+name}:setupFunctionUpgradeConfig', options)
628
+ command.request_representation = Google::Apis::CloudfunctionsV2::SetupFunctionUpgradeConfigRequest::Representation
629
+ command.request_object = setup_function_upgrade_config_request_object
630
+ command.response_representation = Google::Apis::CloudfunctionsV2::Operation::Representation
631
+ command.response_class = Google::Apis::CloudfunctionsV2::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_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.0
4
+ version: 0.36.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-01-28 00:00:00.000000000 Z
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_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudfunctions_v2/v0.35.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudfunctions_v2/v0.36.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudfunctions_v2
63
63
  post_install_message:
64
64
  rdoc_options: []