google-apis-cloudtasks_v2 0.30.0 → 0.32.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: 6c893e3128b636c60910070c4ebb5634907a1784da408c57009bdbd0e061f0ae
4
- data.tar.gz: 5d299ea9b70e4189843d34846e51cfc0f8d2fbc773181bb04cc08a47502d091f
3
+ metadata.gz: 77110cc11650121812d997d7071bb1ddcc7c4f25897cc459335f6dfe30b35f57
4
+ data.tar.gz: cba196eb9a7c39e453c3612f0a17686c5f95d043933899fd491dcac56903ec78
5
5
  SHA512:
6
- metadata.gz: 7f62a76aec9a280f6a33c1c7937b95f31369d000cc45f419936ec4f89b28d4a1bdd0a42bd71d46754abb388960165bb55766eeb67bb06ed1341dc54f86b7dad8
7
- data.tar.gz: d1eca51a11e1f03edc886198d9966b28f7a7a7b9598c73a3e1c2e71e95fd652e3d30c2361332df798a05c70a13912b80d9f880dc9caf02326a1f266ff026c0f5
6
+ metadata.gz: 0a6d1385fd1c9894d94dc22a50591c7b5a8321b3efa7406bd8530ef2945919a1d99b5b30e6b3ad09a21a8fa3c42171589245ab33b6cb06da2a6b9821ba6a1e58
7
+ data.tar.gz: 977141d2a5965f60c07eb9a865f42bb0ddcaac17bdce44aed2ad012fba48a70e051180d094c261d44e787eeecb205a9ac7f748a98e9e7a0715f747d05fc5ca3c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-cloudtasks_v2
2
2
 
3
+ ### v0.32.0 (2023-11-12)
4
+
5
+ * Regenerated from discovery document revision 20231027
6
+
7
+ ### v0.31.0 (2023-10-29)
8
+
9
+ * Regenerated from discovery document revision 20231018
10
+
3
11
  ### v0.30.0 (2023-10-15)
4
12
 
5
13
  * Regenerated from discovery document revision 20230929
@@ -334,8 +334,61 @@ module Google
334
334
  end
335
335
  end
336
336
 
337
- # CMEK, or Customer Managed Encryption Keys, enables GCP products to put control
338
- # over encryption and key management in their customer’s hands.
337
+ # Request message for BufferTask.
338
+ class BufferTaskRequest
339
+ include Google::Apis::Core::Hashable
340
+
341
+ # Message that represents an arbitrary HTTP body. It should only be used for
342
+ # payload formats that can't be represented as JSON, such as raw binary or an
343
+ # HTML page. This message can be used both in streaming and non-streaming API
344
+ # methods in the request as well as the response. It can be used as a top-level
345
+ # request field, which is convenient if one wants to extract parameters from
346
+ # either the URL or HTTP template into the request fields and also want access
347
+ # to the raw HTTP body. Example: message GetResourceRequest ` // A unique
348
+ # request id. string request_id = 1; // The raw HTTP body is bound to this field.
349
+ # google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
350
+ # GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
351
+ # UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
352
+ # with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
353
+ # api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
354
+ # google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
355
+ # only changes how the request and response bodies are handled, all other
356
+ # features will continue to work unchanged.
357
+ # Corresponds to the JSON property `body`
358
+ # @return [Google::Apis::CloudtasksV2::HttpBody]
359
+ attr_accessor :body
360
+
361
+ def initialize(**args)
362
+ update!(**args)
363
+ end
364
+
365
+ # Update properties of this object
366
+ def update!(**args)
367
+ @body = args[:body] if args.key?(:body)
368
+ end
369
+ end
370
+
371
+ # Response message for BufferTask.
372
+ class BufferTaskResponse
373
+ include Google::Apis::Core::Hashable
374
+
375
+ # A unit of scheduled work.
376
+ # Corresponds to the JSON property `task`
377
+ # @return [Google::Apis::CloudtasksV2::Task]
378
+ attr_accessor :task
379
+
380
+ def initialize(**args)
381
+ update!(**args)
382
+ end
383
+
384
+ # Update properties of this object
385
+ def update!(**args)
386
+ @task = args[:task] if args.key?(:task)
387
+ end
388
+ end
389
+
390
+ # Describes the customer-managed encryption key (CMEK) configuration associated
391
+ # with a project and location.
339
392
  class CmekConfig
340
393
  include Google::Apis::Core::Hashable
341
394
 
@@ -512,6 +565,98 @@ module Google
512
565
  end
513
566
  end
514
567
 
568
+ # Defines a header message. A header can have a key and a value.
569
+ class Header
570
+ include Google::Apis::Core::Hashable
571
+
572
+ # The Key of the header.
573
+ # Corresponds to the JSON property `key`
574
+ # @return [String]
575
+ attr_accessor :key
576
+
577
+ # The Value of the header.
578
+ # Corresponds to the JSON property `value`
579
+ # @return [String]
580
+ attr_accessor :value
581
+
582
+ def initialize(**args)
583
+ update!(**args)
584
+ end
585
+
586
+ # Update properties of this object
587
+ def update!(**args)
588
+ @key = args[:key] if args.key?(:key)
589
+ @value = args[:value] if args.key?(:value)
590
+ end
591
+ end
592
+
593
+ # Wraps the Header object.
594
+ class HeaderOverride
595
+ include Google::Apis::Core::Hashable
596
+
597
+ # Defines a header message. A header can have a key and a value.
598
+ # Corresponds to the JSON property `header`
599
+ # @return [Google::Apis::CloudtasksV2::Header]
600
+ attr_accessor :header
601
+
602
+ def initialize(**args)
603
+ update!(**args)
604
+ end
605
+
606
+ # Update properties of this object
607
+ def update!(**args)
608
+ @header = args[:header] if args.key?(:header)
609
+ end
610
+ end
611
+
612
+ # Message that represents an arbitrary HTTP body. It should only be used for
613
+ # payload formats that can't be represented as JSON, such as raw binary or an
614
+ # HTML page. This message can be used both in streaming and non-streaming API
615
+ # methods in the request as well as the response. It can be used as a top-level
616
+ # request field, which is convenient if one wants to extract parameters from
617
+ # either the URL or HTTP template into the request fields and also want access
618
+ # to the raw HTTP body. Example: message GetResourceRequest ` // A unique
619
+ # request id. string request_id = 1; // The raw HTTP body is bound to this field.
620
+ # google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
621
+ # GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
622
+ # UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
623
+ # with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
624
+ # api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
625
+ # google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
626
+ # only changes how the request and response bodies are handled, all other
627
+ # features will continue to work unchanged.
628
+ class HttpBody
629
+ include Google::Apis::Core::Hashable
630
+
631
+ # The HTTP Content-Type header value specifying the content type of the body.
632
+ # Corresponds to the JSON property `contentType`
633
+ # @return [String]
634
+ attr_accessor :content_type
635
+
636
+ # The HTTP request/response body as raw binary.
637
+ # Corresponds to the JSON property `data`
638
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
639
+ # @return [String]
640
+ attr_accessor :data
641
+
642
+ # Application specific response metadata. Must be set in the first response for
643
+ # streaming APIs.
644
+ # Corresponds to the JSON property `extensions`
645
+ # @return [Array<Hash<String,Object>>]
646
+ attr_accessor :extensions
647
+
648
+ def initialize(**args)
649
+ update!(**args)
650
+ end
651
+
652
+ # Update properties of this object
653
+ def update!(**args)
654
+ @content_type = args[:content_type] if args.key?(:content_type)
655
+ @data = args[:data] if args.key?(:data)
656
+ @extensions = args[:extensions] if args.key?(:extensions)
657
+ end
658
+ end
659
+
515
660
  # HTTP request. The task will be pushed to the worker as an HTTP request. If the
516
661
  # worker or the redirected worker acknowledges the task by returning a
517
662
  # successful HTTP response code ([`200` - `299`]), the task will be removed from
@@ -604,6 +749,73 @@ module Google
604
749
  end
605
750
  end
606
751
 
752
+ # HTTP target. When specified as a Queue, all the tasks with [HttpRequest] will
753
+ # be overridden according to the target.
754
+ class HttpTarget
755
+ include Google::Apis::Core::Hashable
756
+
757
+ # HTTP target headers. This map contains the header field names and values.
758
+ # Headers will be set when running the CreateTask and/or BufferTask. These
759
+ # headers represent a subset of the headers that will be configured for the task'
760
+ # s HTTP request. Some HTTP request headers will be ignored or replaced. A
761
+ # partial list of headers that will be ignored or replaced is: * Several
762
+ # predefined headers, prefixed with "X-CloudTasks-", can be used to define
763
+ # properties of the task. * Host: This will be computed by Cloud Tasks and
764
+ # derived from HttpRequest.url. * Content-Length: This will be computed by Cloud
765
+ # Tasks. `Content-Type` won't be set by Cloud Tasks. You can explicitly set `
766
+ # Content-Type` to a media type when the task is created. For example,`Content-
767
+ # Type` can be set to `"application/octet-stream"` or `"application/json"`. The
768
+ # default value is set to "application/json"`. * User-Agent: This will be set to
769
+ # `"Google-Cloud-Tasks"`. Headers which can have multiple values (according to
770
+ # RFC2616) can be specified using comma-separated values. The size of the
771
+ # headers must be less than 80KB. Queue-level headers to override headers of all
772
+ # the tasks in the queue.
773
+ # Corresponds to the JSON property `headerOverrides`
774
+ # @return [Array<Google::Apis::CloudtasksV2::HeaderOverride>]
775
+ attr_accessor :header_overrides
776
+
777
+ # The HTTP method to use for the request. When specified, it overrides
778
+ # HttpRequest for the task. Note that if the value is set to HttpMethod the
779
+ # HttpRequest of the task will be ignored at execution time.
780
+ # Corresponds to the JSON property `httpMethod`
781
+ # @return [String]
782
+ attr_accessor :http_method
783
+
784
+ # Contains information needed for generating an [OAuth token](https://developers.
785
+ # google.com/identity/protocols/OAuth2). This type of authorization should
786
+ # generally only be used when calling Google APIs hosted on *.googleapis.com.
787
+ # Corresponds to the JSON property `oauthToken`
788
+ # @return [Google::Apis::CloudtasksV2::OAuthToken]
789
+ attr_accessor :oauth_token
790
+
791
+ # Contains information needed for generating an [OpenID Connect token](https://
792
+ # developers.google.com/identity/protocols/OpenIDConnect). This type of
793
+ # authorization can be used for many scenarios, including calling Cloud Run, or
794
+ # endpoints where you intend to validate the token yourself.
795
+ # Corresponds to the JSON property `oidcToken`
796
+ # @return [Google::Apis::CloudtasksV2::OidcToken]
797
+ attr_accessor :oidc_token
798
+
799
+ # URI Override. When specified, all the HTTP tasks inside the queue will be
800
+ # partially or fully overridden depending on the configured values.
801
+ # Corresponds to the JSON property `uriOverride`
802
+ # @return [Google::Apis::CloudtasksV2::UriOverride]
803
+ attr_accessor :uri_override
804
+
805
+ def initialize(**args)
806
+ update!(**args)
807
+ end
808
+
809
+ # Update properties of this object
810
+ def update!(**args)
811
+ @header_overrides = args[:header_overrides] if args.key?(:header_overrides)
812
+ @http_method = args[:http_method] if args.key?(:http_method)
813
+ @oauth_token = args[:oauth_token] if args.key?(:oauth_token)
814
+ @oidc_token = args[:oidc_token] if args.key?(:oidc_token)
815
+ @uri_override = args[:uri_override] if args.key?(:uri_override)
816
+ end
817
+ end
818
+
607
819
  # The response message for Locations.ListLocations.
608
820
  class ListLocationsResponse
609
821
  include Google::Apis::Core::Hashable
@@ -793,6 +1005,25 @@ module Google
793
1005
  end
794
1006
  end
795
1007
 
1008
+ # PathOverride. Path message defines path override for HTTP targets.
1009
+ class PathOverride
1010
+ include Google::Apis::Core::Hashable
1011
+
1012
+ # The URI path (e.g., /users/1234). Default is an empty string.
1013
+ # Corresponds to the JSON property `path`
1014
+ # @return [String]
1015
+ attr_accessor :path
1016
+
1017
+ def initialize(**args)
1018
+ update!(**args)
1019
+ end
1020
+
1021
+ # Update properties of this object
1022
+ def update!(**args)
1023
+ @path = args[:path] if args.key?(:path)
1024
+ end
1025
+ end
1026
+
796
1027
  # Request message for PauseQueue.
797
1028
  class PauseQueueRequest
798
1029
  include Google::Apis::Core::Hashable
@@ -908,6 +1139,26 @@ module Google
908
1139
  end
909
1140
  end
910
1141
 
1142
+ # QueryOverride. Query message defines query override for HTTP targets.
1143
+ class QueryOverride
1144
+ include Google::Apis::Core::Hashable
1145
+
1146
+ # The query parameters (e.g., qparam1=123&qparam2=456). Default is an empty
1147
+ # string.
1148
+ # Corresponds to the JSON property `queryParams`
1149
+ # @return [String]
1150
+ attr_accessor :query_params
1151
+
1152
+ def initialize(**args)
1153
+ update!(**args)
1154
+ end
1155
+
1156
+ # Update properties of this object
1157
+ def update!(**args)
1158
+ @query_params = args[:query_params] if args.key?(:query_params)
1159
+ end
1160
+ end
1161
+
911
1162
  # A queue is a container of related tasks. Queues are configured to manage how
912
1163
  # those tasks are dispatched. Configurable properties include rate limits, retry
913
1164
  # options, queue types, and others.
@@ -930,6 +1181,12 @@ module Google
930
1181
  # @return [Google::Apis::CloudtasksV2::AppEngineRouting]
931
1182
  attr_accessor :app_engine_routing_override
932
1183
 
1184
+ # HTTP target. When specified as a Queue, all the tasks with [HttpRequest] will
1185
+ # be overridden according to the target.
1186
+ # Corresponds to the JSON property `httpTarget`
1187
+ # @return [Google::Apis::CloudtasksV2::HttpTarget]
1188
+ attr_accessor :http_target
1189
+
933
1190
  # Caller-specified and required in CreateQueue, after which it becomes output
934
1191
  # only. The queue name. The queue name must have the following format: `projects/
935
1192
  # PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * `PROJECT_ID` can contain
@@ -989,6 +1246,7 @@ module Google
989
1246
  # Update properties of this object
990
1247
  def update!(**args)
991
1248
  @app_engine_routing_override = args[:app_engine_routing_override] if args.key?(:app_engine_routing_override)
1249
+ @http_target = args[:http_target] if args.key?(:http_target)
992
1250
  @name = args[:name] if args.key?(:name)
993
1251
  @purge_time = args[:purge_time] if args.key?(:purge_time)
994
1252
  @rate_limits = args[:rate_limits] if args.key?(:rate_limits)
@@ -1495,6 +1753,64 @@ module Google
1495
1753
  @permissions = args[:permissions] if args.key?(:permissions)
1496
1754
  end
1497
1755
  end
1756
+
1757
+ # URI Override. When specified, all the HTTP tasks inside the queue will be
1758
+ # partially or fully overridden depending on the configured values.
1759
+ class UriOverride
1760
+ include Google::Apis::Core::Hashable
1761
+
1762
+ # Host override. When specified, replaces the host part of the task URL. For
1763
+ # example, if the task URL is "https://www.google.com," and host value is set to
1764
+ # "example.net", the overridden URI will be changed to "https://example.net."
1765
+ # Host value cannot be an empty string (INVALID_ARGUMENT).
1766
+ # Corresponds to the JSON property `host`
1767
+ # @return [String]
1768
+ attr_accessor :host
1769
+
1770
+ # PathOverride. Path message defines path override for HTTP targets.
1771
+ # Corresponds to the JSON property `pathOverride`
1772
+ # @return [Google::Apis::CloudtasksV2::PathOverride]
1773
+ attr_accessor :path_override
1774
+
1775
+ # Port override. When specified, replaces the port part of the task URI. For
1776
+ # instance, for a URI http://www.google.com/foo and port=123, the overridden URI
1777
+ # becomes http://www.google.com:123/foo. Note that the port value must be a
1778
+ # positive integer. Setting the port to 0 (Zero) clears the URI port.
1779
+ # Corresponds to the JSON property `port`
1780
+ # @return [Fixnum]
1781
+ attr_accessor :port
1782
+
1783
+ # QueryOverride. Query message defines query override for HTTP targets.
1784
+ # Corresponds to the JSON property `queryOverride`
1785
+ # @return [Google::Apis::CloudtasksV2::QueryOverride]
1786
+ attr_accessor :query_override
1787
+
1788
+ # Scheme override. When specified, the task URI scheme is replaced by the
1789
+ # provided value (HTTP or HTTPS).
1790
+ # Corresponds to the JSON property `scheme`
1791
+ # @return [String]
1792
+ attr_accessor :scheme
1793
+
1794
+ # URI Override Enforce Mode When specified, determines the Target UriOverride
1795
+ # mode. If not specified, it defaults to ALWAYS.
1796
+ # Corresponds to the JSON property `uriOverrideEnforceMode`
1797
+ # @return [String]
1798
+ attr_accessor :uri_override_enforce_mode
1799
+
1800
+ def initialize(**args)
1801
+ update!(**args)
1802
+ end
1803
+
1804
+ # Update properties of this object
1805
+ def update!(**args)
1806
+ @host = args[:host] if args.key?(:host)
1807
+ @path_override = args[:path_override] if args.key?(:path_override)
1808
+ @port = args[:port] if args.key?(:port)
1809
+ @query_override = args[:query_override] if args.key?(:query_override)
1810
+ @scheme = args[:scheme] if args.key?(:scheme)
1811
+ @uri_override_enforce_mode = args[:uri_override_enforce_mode] if args.key?(:uri_override_enforce_mode)
1812
+ end
1813
+ end
1498
1814
  end
1499
1815
  end
1500
1816
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudtasksV2
18
18
  # Version of the google-apis-cloudtasks_v2 gem
19
- GEM_VERSION = "0.30.0"
19
+ GEM_VERSION = "0.32.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230929"
25
+ REVISION = "20231027"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,18 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class BufferTaskRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class BufferTaskResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
49
61
  class CmekConfig
50
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
63
 
@@ -82,12 +94,36 @@ module Google
82
94
  include Google::Apis::Core::JsonObjectSupport
83
95
  end
84
96
 
97
+ class Header
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class HeaderOverride
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class HttpBody
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
85
115
  class HttpRequest
86
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
117
 
88
118
  include Google::Apis::Core::JsonObjectSupport
89
119
  end
90
120
 
121
+ class HttpTarget
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
91
127
  class ListLocationsResponse
92
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
129
 
@@ -124,6 +160,12 @@ module Google
124
160
  include Google::Apis::Core::JsonObjectSupport
125
161
  end
126
162
 
163
+ class PathOverride
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
127
169
  class PauseQueueRequest
128
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
171
 
@@ -142,6 +184,12 @@ module Google
142
184
  include Google::Apis::Core::JsonObjectSupport
143
185
  end
144
186
 
187
+ class QueryOverride
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
145
193
  class Queue
146
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
195
 
@@ -208,6 +256,12 @@ module Google
208
256
  include Google::Apis::Core::JsonObjectSupport
209
257
  end
210
258
 
259
+ class UriOverride
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
211
265
  class AppEngineHttpRequest
212
266
  # @private
213
267
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -251,6 +305,22 @@ module Google
251
305
  end
252
306
  end
253
307
 
308
+ class BufferTaskRequest
309
+ # @private
310
+ class Representation < Google::Apis::Core::JsonRepresentation
311
+ property :body, as: 'body', class: Google::Apis::CloudtasksV2::HttpBody, decorator: Google::Apis::CloudtasksV2::HttpBody::Representation
312
+
313
+ end
314
+ end
315
+
316
+ class BufferTaskResponse
317
+ # @private
318
+ class Representation < Google::Apis::Core::JsonRepresentation
319
+ property :task, as: 'task', class: Google::Apis::CloudtasksV2::Task, decorator: Google::Apis::CloudtasksV2::Task::Representation
320
+
321
+ end
322
+ end
323
+
254
324
  class CmekConfig
255
325
  # @private
256
326
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -299,6 +369,31 @@ module Google
299
369
  end
300
370
  end
301
371
 
372
+ class Header
373
+ # @private
374
+ class Representation < Google::Apis::Core::JsonRepresentation
375
+ property :key, as: 'key'
376
+ property :value, as: 'value'
377
+ end
378
+ end
379
+
380
+ class HeaderOverride
381
+ # @private
382
+ class Representation < Google::Apis::Core::JsonRepresentation
383
+ property :header, as: 'header', class: Google::Apis::CloudtasksV2::Header, decorator: Google::Apis::CloudtasksV2::Header::Representation
384
+
385
+ end
386
+ end
387
+
388
+ class HttpBody
389
+ # @private
390
+ class Representation < Google::Apis::Core::JsonRepresentation
391
+ property :content_type, as: 'contentType'
392
+ property :data, :base64 => true, as: 'data'
393
+ collection :extensions, as: 'extensions'
394
+ end
395
+ end
396
+
302
397
  class HttpRequest
303
398
  # @private
304
399
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -313,6 +408,21 @@ module Google
313
408
  end
314
409
  end
315
410
 
411
+ class HttpTarget
412
+ # @private
413
+ class Representation < Google::Apis::Core::JsonRepresentation
414
+ collection :header_overrides, as: 'headerOverrides', class: Google::Apis::CloudtasksV2::HeaderOverride, decorator: Google::Apis::CloudtasksV2::HeaderOverride::Representation
415
+
416
+ property :http_method, as: 'httpMethod'
417
+ property :oauth_token, as: 'oauthToken', class: Google::Apis::CloudtasksV2::OAuthToken, decorator: Google::Apis::CloudtasksV2::OAuthToken::Representation
418
+
419
+ property :oidc_token, as: 'oidcToken', class: Google::Apis::CloudtasksV2::OidcToken, decorator: Google::Apis::CloudtasksV2::OidcToken::Representation
420
+
421
+ property :uri_override, as: 'uriOverride', class: Google::Apis::CloudtasksV2::UriOverride, decorator: Google::Apis::CloudtasksV2::UriOverride::Representation
422
+
423
+ end
424
+ end
425
+
316
426
  class ListLocationsResponse
317
427
  # @private
318
428
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -367,6 +477,13 @@ module Google
367
477
  end
368
478
  end
369
479
 
480
+ class PathOverride
481
+ # @private
482
+ class Representation < Google::Apis::Core::JsonRepresentation
483
+ property :path, as: 'path'
484
+ end
485
+ end
486
+
370
487
  class PauseQueueRequest
371
488
  # @private
372
489
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -389,11 +506,20 @@ module Google
389
506
  end
390
507
  end
391
508
 
509
+ class QueryOverride
510
+ # @private
511
+ class Representation < Google::Apis::Core::JsonRepresentation
512
+ property :query_params, as: 'queryParams'
513
+ end
514
+ end
515
+
392
516
  class Queue
393
517
  # @private
394
518
  class Representation < Google::Apis::Core::JsonRepresentation
395
519
  property :app_engine_routing_override, as: 'appEngineRoutingOverride', class: Google::Apis::CloudtasksV2::AppEngineRouting, decorator: Google::Apis::CloudtasksV2::AppEngineRouting::Representation
396
520
 
521
+ property :http_target, as: 'httpTarget', class: Google::Apis::CloudtasksV2::HttpTarget, decorator: Google::Apis::CloudtasksV2::HttpTarget::Representation
522
+
397
523
  property :name, as: 'name'
398
524
  property :purge_time, as: 'purgeTime'
399
525
  property :rate_limits, as: 'rateLimits', class: Google::Apis::CloudtasksV2::RateLimits, decorator: Google::Apis::CloudtasksV2::RateLimits::Representation
@@ -497,6 +623,20 @@ module Google
497
623
  collection :permissions, as: 'permissions'
498
624
  end
499
625
  end
626
+
627
+ class UriOverride
628
+ # @private
629
+ class Representation < Google::Apis::Core::JsonRepresentation
630
+ property :host, as: 'host'
631
+ property :path_override, as: 'pathOverride', class: Google::Apis::CloudtasksV2::PathOverride, decorator: Google::Apis::CloudtasksV2::PathOverride::Representation
632
+
633
+ property :port, :numeric_string => true, as: 'port'
634
+ property :query_override, as: 'queryOverride', class: Google::Apis::CloudtasksV2::QueryOverride, decorator: Google::Apis::CloudtasksV2::QueryOverride::Representation
635
+
636
+ property :scheme, as: 'scheme'
637
+ property :uri_override_enforce_mode, as: 'uriOverrideEnforceMode'
638
+ end
639
+ end
500
640
  end
501
641
  end
502
642
  end
@@ -237,11 +237,18 @@ module Google
237
237
  end
238
238
 
239
239
  # Deletes a queue. This command will delete the queue even if it has tasks in it.
240
- # Note: If you delete a queue, a queue with the same name can't be created for
241
- # 7 days. WARNING: Using this method may have unintended side effects if you are
242
- # using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
243
- # Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/
244
- # tasks/docs/queue-yaml) before using this method.
240
+ # Note: If you delete a queue, you may be prevented from creating a new queue
241
+ # with the same name as the deleted queue for a tombstone window of up to 3 days.
242
+ # During this window, the CreateQueue operation may appear to recreate the
243
+ # queue, but this can be misleading. If you attempt to create a queue with the
244
+ # same name as one that is in the tombstone window, run GetQueue to confirm that
245
+ # the queue creation was successful. If GetQueue returns 200 response code, your
246
+ # queue was successfully created with the name of the previously deleted queue.
247
+ # Otherwise, your queue did not successfully recreate. WARNING: Using this
248
+ # method may have unintended side effects if you are using an App Engine `queue.
249
+ # yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue
250
+ # Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml)
251
+ # before using this method.
245
252
  # @param [String] name
246
253
  # Required. The queue name. For example: `projects/PROJECT_ID/locations/
247
254
  # LOCATION_ID/queues/QUEUE_ID`
@@ -637,6 +644,49 @@ module Google
637
644
  execute_or_queue_command(command, &block)
638
645
  end
639
646
 
647
+ # Creates and buffers a new task without the need to explicitly define a Task
648
+ # message. The queue must have HTTP target. To create the task with a custom ID,
649
+ # use the following format and set TASK_ID to your desired ID: projects/
650
+ # PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To
651
+ # create the task with an automatically generated ID, use the following format:
652
+ # projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer.
653
+ # @param [String] queue
654
+ # Required. The parent queue name. For example: projects/PROJECT_ID/locations/
655
+ # LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
656
+ # @param [String] task_id
657
+ # Optional. Task ID for the task being created. If not provided, Cloud Tasks
658
+ # generates an ID for the task.
659
+ # @param [Google::Apis::CloudtasksV2::BufferTaskRequest] buffer_task_request_object
660
+ # @param [String] fields
661
+ # Selector specifying which fields to include in a partial response.
662
+ # @param [String] quota_user
663
+ # Available to use for quota purposes for server-side applications. Can be any
664
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
665
+ # @param [Google::Apis::RequestOptions] options
666
+ # Request-specific options
667
+ #
668
+ # @yield [result, err] Result & error if block supplied
669
+ # @yieldparam result [Google::Apis::CloudtasksV2::BufferTaskResponse] parsed result object
670
+ # @yieldparam err [StandardError] error object if request failed
671
+ #
672
+ # @return [Google::Apis::CloudtasksV2::BufferTaskResponse]
673
+ #
674
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
675
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
676
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
677
+ def buffer_task(queue, task_id, buffer_task_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
678
+ command = make_simple_command(:post, 'v2/{+queue}/tasks/{taskId}:buffer', options)
679
+ command.request_representation = Google::Apis::CloudtasksV2::BufferTaskRequest::Representation
680
+ command.request_object = buffer_task_request_object
681
+ command.response_representation = Google::Apis::CloudtasksV2::BufferTaskResponse::Representation
682
+ command.response_class = Google::Apis::CloudtasksV2::BufferTaskResponse
683
+ command.params['queue'] = queue unless queue.nil?
684
+ command.params['taskId'] = task_id unless task_id.nil?
685
+ command.query['fields'] = fields unless fields.nil?
686
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
687
+ execute_or_queue_command(command, &block)
688
+ end
689
+
640
690
  # Creates a task and adds it to a queue. Tasks cannot be updated after creation;
641
691
  # there is no UpdateTask command. * The maximum task size is 100KB.
642
692
  # @param [String] parent
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudtasks_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.0
4
+ version: 0.32.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: 2023-10-15 00:00:00.000000000 Z
11
+ date: 2023-11-12 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-cloudtasks_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2/v0.30.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2/v0.32.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudtasks_v2
63
63
  post_install_message:
64
64
  rdoc_options: []