google-apis-cloudtasks_v2beta3 0.24.0 → 0.25.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 +5 -0
- data/lib/google/apis/cloudtasks_v2beta3/classes.rb +298 -0
- data/lib/google/apis/cloudtasks_v2beta3/gem_version.rb +3 -3
- data/lib/google/apis/cloudtasks_v2beta3/representations.rb +136 -0
- data/lib/google/apis/cloudtasks_v2beta3/service.rb +46 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ce502608929fa6ffddadc50d935edcc292b2b9786e2b0f2d627a20fa1c92489
|
4
|
+
data.tar.gz: 2ca719730f5a8a5ac1094af567d230f9318768f9f685708ac21029e877f419e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1a5394b15f5383bad3c2aa05ad48a567d337d082a9db38ef1823cff1749f9a26b546ceada65f3a685a98d5323c4fa05600759c2a76a97dcc6180e080028428a
|
7
|
+
data.tar.gz: e7da146a774b7ce97af3ab547bf19689cf570c2fd92b664a398e5a8461cbfa54adb407d38c0971d910a4c08a26a9e9ec6ce5e295b826c4efb812e3fde1d98b82
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-cloudtasks_v2beta3
|
2
2
|
|
3
|
+
### v0.25.0 (2023-01-15)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230105
|
6
|
+
* Regenerated using generator version 0.11.1
|
7
|
+
|
3
8
|
### v0.24.0 (2022-11-22)
|
4
9
|
|
5
10
|
* Regenerated using generator version 0.11.0
|
@@ -361,6 +361,59 @@ module Google
|
|
361
361
|
end
|
362
362
|
end
|
363
363
|
|
364
|
+
# Request message for BufferTask.
|
365
|
+
class BufferTaskRequest
|
366
|
+
include Google::Apis::Core::Hashable
|
367
|
+
|
368
|
+
# Message that represents an arbitrary HTTP body. It should only be used for
|
369
|
+
# payload formats that can't be represented as JSON, such as raw binary or an
|
370
|
+
# HTML page. This message can be used both in streaming and non-streaming API
|
371
|
+
# methods in the request as well as the response. It can be used as a top-level
|
372
|
+
# request field, which is convenient if one wants to extract parameters from
|
373
|
+
# either the URL or HTTP template into the request fields and also want access
|
374
|
+
# to the raw HTTP body. Example: message GetResourceRequest ` // A unique
|
375
|
+
# request id. string request_id = 1; // The raw HTTP body is bound to this field.
|
376
|
+
# google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
|
377
|
+
# GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
|
378
|
+
# UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
|
379
|
+
# with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
|
380
|
+
# api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
|
381
|
+
# google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
|
382
|
+
# only changes how the request and response bodies are handled, all other
|
383
|
+
# features will continue to work unchanged.
|
384
|
+
# Corresponds to the JSON property `body`
|
385
|
+
# @return [Google::Apis::CloudtasksV2beta3::HttpBody]
|
386
|
+
attr_accessor :body
|
387
|
+
|
388
|
+
def initialize(**args)
|
389
|
+
update!(**args)
|
390
|
+
end
|
391
|
+
|
392
|
+
# Update properties of this object
|
393
|
+
def update!(**args)
|
394
|
+
@body = args[:body] if args.key?(:body)
|
395
|
+
end
|
396
|
+
end
|
397
|
+
|
398
|
+
# Response message for BufferTask.
|
399
|
+
class BufferTaskResponse
|
400
|
+
include Google::Apis::Core::Hashable
|
401
|
+
|
402
|
+
# A unit of scheduled work.
|
403
|
+
# Corresponds to the JSON property `task`
|
404
|
+
# @return [Google::Apis::CloudtasksV2beta3::Task]
|
405
|
+
attr_accessor :task
|
406
|
+
|
407
|
+
def initialize(**args)
|
408
|
+
update!(**args)
|
409
|
+
end
|
410
|
+
|
411
|
+
# Update properties of this object
|
412
|
+
def update!(**args)
|
413
|
+
@task = args[:task] if args.key?(:task)
|
414
|
+
end
|
415
|
+
end
|
416
|
+
|
364
417
|
# Request message for CreateTask.
|
365
418
|
class CreateTaskRequest
|
366
419
|
include Google::Apis::Core::Hashable
|
@@ -508,6 +561,98 @@ module Google
|
|
508
561
|
end
|
509
562
|
end
|
510
563
|
|
564
|
+
# Defines a header message. A header can have a key and a value.
|
565
|
+
class Header
|
566
|
+
include Google::Apis::Core::Hashable
|
567
|
+
|
568
|
+
# The Key of the header.
|
569
|
+
# Corresponds to the JSON property `key`
|
570
|
+
# @return [String]
|
571
|
+
attr_accessor :key
|
572
|
+
|
573
|
+
# The Value of the header.
|
574
|
+
# Corresponds to the JSON property `value`
|
575
|
+
# @return [String]
|
576
|
+
attr_accessor :value
|
577
|
+
|
578
|
+
def initialize(**args)
|
579
|
+
update!(**args)
|
580
|
+
end
|
581
|
+
|
582
|
+
# Update properties of this object
|
583
|
+
def update!(**args)
|
584
|
+
@key = args[:key] if args.key?(:key)
|
585
|
+
@value = args[:value] if args.key?(:value)
|
586
|
+
end
|
587
|
+
end
|
588
|
+
|
589
|
+
# Wraps the Header object.
|
590
|
+
class HeaderOverride
|
591
|
+
include Google::Apis::Core::Hashable
|
592
|
+
|
593
|
+
# Defines a header message. A header can have a key and a value.
|
594
|
+
# Corresponds to the JSON property `header`
|
595
|
+
# @return [Google::Apis::CloudtasksV2beta3::Header]
|
596
|
+
attr_accessor :header
|
597
|
+
|
598
|
+
def initialize(**args)
|
599
|
+
update!(**args)
|
600
|
+
end
|
601
|
+
|
602
|
+
# Update properties of this object
|
603
|
+
def update!(**args)
|
604
|
+
@header = args[:header] if args.key?(:header)
|
605
|
+
end
|
606
|
+
end
|
607
|
+
|
608
|
+
# Message that represents an arbitrary HTTP body. It should only be used for
|
609
|
+
# payload formats that can't be represented as JSON, such as raw binary or an
|
610
|
+
# HTML page. This message can be used both in streaming and non-streaming API
|
611
|
+
# methods in the request as well as the response. It can be used as a top-level
|
612
|
+
# request field, which is convenient if one wants to extract parameters from
|
613
|
+
# either the URL or HTTP template into the request fields and also want access
|
614
|
+
# to the raw HTTP body. Example: message GetResourceRequest ` // A unique
|
615
|
+
# request id. string request_id = 1; // The raw HTTP body is bound to this field.
|
616
|
+
# google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
|
617
|
+
# GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
|
618
|
+
# UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
|
619
|
+
# with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
|
620
|
+
# api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
|
621
|
+
# google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
|
622
|
+
# only changes how the request and response bodies are handled, all other
|
623
|
+
# features will continue to work unchanged.
|
624
|
+
class HttpBody
|
625
|
+
include Google::Apis::Core::Hashable
|
626
|
+
|
627
|
+
# The HTTP Content-Type header value specifying the content type of the body.
|
628
|
+
# Corresponds to the JSON property `contentType`
|
629
|
+
# @return [String]
|
630
|
+
attr_accessor :content_type
|
631
|
+
|
632
|
+
# The HTTP request/response body as raw binary.
|
633
|
+
# Corresponds to the JSON property `data`
|
634
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
635
|
+
# @return [String]
|
636
|
+
attr_accessor :data
|
637
|
+
|
638
|
+
# Application specific response metadata. Must be set in the first response for
|
639
|
+
# streaming APIs.
|
640
|
+
# Corresponds to the JSON property `extensions`
|
641
|
+
# @return [Array<Hash<String,Object>>]
|
642
|
+
attr_accessor :extensions
|
643
|
+
|
644
|
+
def initialize(**args)
|
645
|
+
update!(**args)
|
646
|
+
end
|
647
|
+
|
648
|
+
# Update properties of this object
|
649
|
+
def update!(**args)
|
650
|
+
@content_type = args[:content_type] if args.key?(:content_type)
|
651
|
+
@data = args[:data] if args.key?(:data)
|
652
|
+
@extensions = args[:extensions] if args.key?(:extensions)
|
653
|
+
end
|
654
|
+
end
|
655
|
+
|
511
656
|
# HTTP request. The task will be pushed to the worker as an HTTP request. If the
|
512
657
|
# worker or the redirected worker acknowledges the task by returning a
|
513
658
|
# successful HTTP response code ([`200` - `299`]), the task will be removed from
|
@@ -600,6 +745,56 @@ module Google
|
|
600
745
|
end
|
601
746
|
end
|
602
747
|
|
748
|
+
# HTTP target. When specified as a Queue, all the tasks with [HttpRequest] will
|
749
|
+
# be overridden according to the target.
|
750
|
+
class HttpTarget
|
751
|
+
include Google::Apis::Core::Hashable
|
752
|
+
|
753
|
+
# HTTP target headers. This map contains the header field names and values.
|
754
|
+
# Headers will be set when running the CreateTask and/or BufferTask. These
|
755
|
+
# headers represent a subset of the headers that will be configured for the task'
|
756
|
+
# s HTTP request. Some HTTP request headers will be ignored or replaced. A
|
757
|
+
# partial list of headers that will be ignored or replaced is: * Several
|
758
|
+
# predefined headers, prefixed with "X-Google-Cloud-Tasks-", can be used to
|
759
|
+
# define properties of the task. * Host: This will be computed by Cloud Tasks
|
760
|
+
# and derived from HttpRequest.url. * Content-Length: This will be computed by
|
761
|
+
# Cloud Tasks. `Content-Type` won't be set by Cloud Tasks. You can explicitly
|
762
|
+
# set `Content-Type` to a media type when the task is created. For example,`
|
763
|
+
# Content-Type` can be set to `"application/octet-stream"` or `"application/json"
|
764
|
+
# `. The default value is set to "application/json"`. * User-Agent: This will be
|
765
|
+
# set to `"Google-Cloud-Tasks"`. Headers which can have multiple values (
|
766
|
+
# according to RFC2616) can be specified using comma-separated values. The size
|
767
|
+
# of the headers must be less than 80KB. Queue-level headers to override headers
|
768
|
+
# of all the tasks in the queue.
|
769
|
+
# Corresponds to the JSON property `headerOverrides`
|
770
|
+
# @return [Array<Google::Apis::CloudtasksV2beta3::HeaderOverride>]
|
771
|
+
attr_accessor :header_overrides
|
772
|
+
|
773
|
+
# The HTTP method to use for the request. When specified, it will override
|
774
|
+
# HttpRequest for the task. Note that if the value is set to HttpMethod the
|
775
|
+
# HttpRequest of the task will be ignored at execution time.
|
776
|
+
# Corresponds to the JSON property `httpMethod`
|
777
|
+
# @return [String]
|
778
|
+
attr_accessor :http_method
|
779
|
+
|
780
|
+
# URI Override. When specified, all the HTTP tasks inside the queue will be
|
781
|
+
# partially or fully overridden depending on the configured values.
|
782
|
+
# Corresponds to the JSON property `uriOverride`
|
783
|
+
# @return [Google::Apis::CloudtasksV2beta3::UriOverride]
|
784
|
+
attr_accessor :uri_override
|
785
|
+
|
786
|
+
def initialize(**args)
|
787
|
+
update!(**args)
|
788
|
+
end
|
789
|
+
|
790
|
+
# Update properties of this object
|
791
|
+
def update!(**args)
|
792
|
+
@header_overrides = args[:header_overrides] if args.key?(:header_overrides)
|
793
|
+
@http_method = args[:http_method] if args.key?(:http_method)
|
794
|
+
@uri_override = args[:uri_override] if args.key?(:uri_override)
|
795
|
+
end
|
796
|
+
end
|
797
|
+
|
603
798
|
# The response message for Locations.ListLocations.
|
604
799
|
class ListLocationsResponse
|
605
800
|
include Google::Apis::Core::Hashable
|
@@ -789,6 +984,25 @@ module Google
|
|
789
984
|
end
|
790
985
|
end
|
791
986
|
|
987
|
+
# PathOverride. Path message defines path override for HTTP targets.
|
988
|
+
class PathOverride
|
989
|
+
include Google::Apis::Core::Hashable
|
990
|
+
|
991
|
+
# The URI path (e.g., a/b/c). Default is Empty string.
|
992
|
+
# Corresponds to the JSON property `path`
|
993
|
+
# @return [String]
|
994
|
+
attr_accessor :path
|
995
|
+
|
996
|
+
def initialize(**args)
|
997
|
+
update!(**args)
|
998
|
+
end
|
999
|
+
|
1000
|
+
# Update properties of this object
|
1001
|
+
def update!(**args)
|
1002
|
+
@path = args[:path] if args.key?(:path)
|
1003
|
+
end
|
1004
|
+
end
|
1005
|
+
|
792
1006
|
# Request message for PauseQueue.
|
793
1007
|
class PauseQueueRequest
|
794
1008
|
include Google::Apis::Core::Hashable
|
@@ -938,6 +1152,25 @@ module Google
|
|
938
1152
|
end
|
939
1153
|
end
|
940
1154
|
|
1155
|
+
# QueryOverride. Query message defines query override for HTTP targets.
|
1156
|
+
class QueryOverride
|
1157
|
+
include Google::Apis::Core::Hashable
|
1158
|
+
|
1159
|
+
# The query parameters (e.g., qparam1=123&qparam2=456). Default is Empty string.
|
1160
|
+
# Corresponds to the JSON property `queryParams`
|
1161
|
+
# @return [String]
|
1162
|
+
attr_accessor :query_params
|
1163
|
+
|
1164
|
+
def initialize(**args)
|
1165
|
+
update!(**args)
|
1166
|
+
end
|
1167
|
+
|
1168
|
+
# Update properties of this object
|
1169
|
+
def update!(**args)
|
1170
|
+
@query_params = args[:query_params] if args.key?(:query_params)
|
1171
|
+
end
|
1172
|
+
end
|
1173
|
+
|
941
1174
|
# A queue is a container of related tasks. Queues are configured to manage how
|
942
1175
|
# those tasks are dispatched. Configurable properties include rate limits, retry
|
943
1176
|
# options, queue types, and others.
|
@@ -955,6 +1188,12 @@ module Google
|
|
955
1188
|
# @return [Google::Apis::CloudtasksV2beta3::AppEngineHttpQueue]
|
956
1189
|
attr_accessor :app_engine_http_queue
|
957
1190
|
|
1191
|
+
# HTTP target. When specified as a Queue, all the tasks with [HttpRequest] will
|
1192
|
+
# be overridden according to the target.
|
1193
|
+
# Corresponds to the JSON property `httpTarget`
|
1194
|
+
# @return [Google::Apis::CloudtasksV2beta3::HttpTarget]
|
1195
|
+
attr_accessor :http_target
|
1196
|
+
|
958
1197
|
# Caller-specified and required in CreateQueue, after which it becomes output
|
959
1198
|
# only. The queue name. The queue name must have the following format: `projects/
|
960
1199
|
# PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * `PROJECT_ID` can contain
|
@@ -1048,6 +1287,7 @@ module Google
|
|
1048
1287
|
# Update properties of this object
|
1049
1288
|
def update!(**args)
|
1050
1289
|
@app_engine_http_queue = args[:app_engine_http_queue] if args.key?(:app_engine_http_queue)
|
1290
|
+
@http_target = args[:http_target] if args.key?(:http_target)
|
1051
1291
|
@name = args[:name] if args.key?(:name)
|
1052
1292
|
@purge_time = args[:purge_time] if args.key?(:purge_time)
|
1053
1293
|
@rate_limits = args[:rate_limits] if args.key?(:rate_limits)
|
@@ -1608,6 +1848,64 @@ module Google
|
|
1608
1848
|
@permissions = args[:permissions] if args.key?(:permissions)
|
1609
1849
|
end
|
1610
1850
|
end
|
1851
|
+
|
1852
|
+
# URI Override. When specified, all the HTTP tasks inside the queue will be
|
1853
|
+
# partially or fully overridden depending on the configured values.
|
1854
|
+
class UriOverride
|
1855
|
+
include Google::Apis::Core::Hashable
|
1856
|
+
|
1857
|
+
# Host override. When specified, will replace the host part of the task URL. For
|
1858
|
+
# example, if the task URL is "https://www.google.com", and host value is set to
|
1859
|
+
# "example.net", the overridden URI will be changed to "https://example.net".
|
1860
|
+
# Host value cannot be an empty string.
|
1861
|
+
# Corresponds to the JSON property `host`
|
1862
|
+
# @return [String]
|
1863
|
+
attr_accessor :host
|
1864
|
+
|
1865
|
+
# PathOverride. Path message defines path override for HTTP targets.
|
1866
|
+
# Corresponds to the JSON property `pathOverride`
|
1867
|
+
# @return [Google::Apis::CloudtasksV2beta3::PathOverride]
|
1868
|
+
attr_accessor :path_override
|
1869
|
+
|
1870
|
+
# Port override. When specified, will replace the port part of the task URI. For
|
1871
|
+
# instance, for a URI http://www.google.com/foo and port=123, the overridden URI
|
1872
|
+
# becomes http://www.google.com:123/foo. Note that the port value must be a
|
1873
|
+
# positive integer. Setting the port to 0 (Zero) clears the URI port.
|
1874
|
+
# Corresponds to the JSON property `port`
|
1875
|
+
# @return [Fixnum]
|
1876
|
+
attr_accessor :port
|
1877
|
+
|
1878
|
+
# QueryOverride. Query message defines query override for HTTP targets.
|
1879
|
+
# Corresponds to the JSON property `queryOverride`
|
1880
|
+
# @return [Google::Apis::CloudtasksV2beta3::QueryOverride]
|
1881
|
+
attr_accessor :query_override
|
1882
|
+
|
1883
|
+
# Scheme override. When specified, the task URI scheme is replaced by the
|
1884
|
+
# provided value (HTTP or HTTPS).
|
1885
|
+
# Corresponds to the JSON property `scheme`
|
1886
|
+
# @return [String]
|
1887
|
+
attr_accessor :scheme
|
1888
|
+
|
1889
|
+
# URI Override Enforce Mode When specified, determines the Target UriOverride
|
1890
|
+
# mode. If not specified, it defaults to ALWAYS.
|
1891
|
+
# Corresponds to the JSON property `uriOverrideEnforceMode`
|
1892
|
+
# @return [String]
|
1893
|
+
attr_accessor :uri_override_enforce_mode
|
1894
|
+
|
1895
|
+
def initialize(**args)
|
1896
|
+
update!(**args)
|
1897
|
+
end
|
1898
|
+
|
1899
|
+
# Update properties of this object
|
1900
|
+
def update!(**args)
|
1901
|
+
@host = args[:host] if args.key?(:host)
|
1902
|
+
@path_override = args[:path_override] if args.key?(:path_override)
|
1903
|
+
@port = args[:port] if args.key?(:port)
|
1904
|
+
@query_override = args[:query_override] if args.key?(:query_override)
|
1905
|
+
@scheme = args[:scheme] if args.key?(:scheme)
|
1906
|
+
@uri_override_enforce_mode = args[:uri_override_enforce_mode] if args.key?(:uri_override_enforce_mode)
|
1907
|
+
end
|
1908
|
+
end
|
1611
1909
|
end
|
1612
1910
|
end
|
1613
1911
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudtasksV2beta3
|
18
18
|
# Version of the google-apis-cloudtasks_v2beta3 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.25.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.11.
|
22
|
+
GENERATOR_VERSION = "0.11.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230105"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -52,6 +52,18 @@ module Google
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
+
class BufferTaskRequest
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class BufferTaskResponse
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
55
67
|
class CreateTaskRequest
|
56
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
69
|
|
@@ -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
|
|
@@ -148,6 +190,12 @@ module Google
|
|
148
190
|
include Google::Apis::Core::JsonObjectSupport
|
149
191
|
end
|
150
192
|
|
193
|
+
class QueryOverride
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
151
199
|
class Queue
|
152
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
201
|
|
@@ -220,6 +268,12 @@ module Google
|
|
220
268
|
include Google::Apis::Core::JsonObjectSupport
|
221
269
|
end
|
222
270
|
|
271
|
+
class UriOverride
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
223
277
|
class AppEngineHttpQueue
|
224
278
|
# @private
|
225
279
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -271,6 +325,22 @@ module Google
|
|
271
325
|
end
|
272
326
|
end
|
273
327
|
|
328
|
+
class BufferTaskRequest
|
329
|
+
# @private
|
330
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
331
|
+
property :body, as: 'body', class: Google::Apis::CloudtasksV2beta3::HttpBody, decorator: Google::Apis::CloudtasksV2beta3::HttpBody::Representation
|
332
|
+
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
336
|
+
class BufferTaskResponse
|
337
|
+
# @private
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
339
|
+
property :task, as: 'task', class: Google::Apis::CloudtasksV2beta3::Task, decorator: Google::Apis::CloudtasksV2beta3::Task::Representation
|
340
|
+
|
341
|
+
end
|
342
|
+
end
|
343
|
+
|
274
344
|
class CreateTaskRequest
|
275
345
|
# @private
|
276
346
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -311,6 +381,31 @@ module Google
|
|
311
381
|
end
|
312
382
|
end
|
313
383
|
|
384
|
+
class Header
|
385
|
+
# @private
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
387
|
+
property :key, as: 'key'
|
388
|
+
property :value, as: 'value'
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
392
|
+
class HeaderOverride
|
393
|
+
# @private
|
394
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
395
|
+
property :header, as: 'header', class: Google::Apis::CloudtasksV2beta3::Header, decorator: Google::Apis::CloudtasksV2beta3::Header::Representation
|
396
|
+
|
397
|
+
end
|
398
|
+
end
|
399
|
+
|
400
|
+
class HttpBody
|
401
|
+
# @private
|
402
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
403
|
+
property :content_type, as: 'contentType'
|
404
|
+
property :data, :base64 => true, as: 'data'
|
405
|
+
collection :extensions, as: 'extensions'
|
406
|
+
end
|
407
|
+
end
|
408
|
+
|
314
409
|
class HttpRequest
|
315
410
|
# @private
|
316
411
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -325,6 +420,17 @@ module Google
|
|
325
420
|
end
|
326
421
|
end
|
327
422
|
|
423
|
+
class HttpTarget
|
424
|
+
# @private
|
425
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
426
|
+
collection :header_overrides, as: 'headerOverrides', class: Google::Apis::CloudtasksV2beta3::HeaderOverride, decorator: Google::Apis::CloudtasksV2beta3::HeaderOverride::Representation
|
427
|
+
|
428
|
+
property :http_method, as: 'httpMethod'
|
429
|
+
property :uri_override, as: 'uriOverride', class: Google::Apis::CloudtasksV2beta3::UriOverride, decorator: Google::Apis::CloudtasksV2beta3::UriOverride::Representation
|
430
|
+
|
431
|
+
end
|
432
|
+
end
|
433
|
+
|
328
434
|
class ListLocationsResponse
|
329
435
|
# @private
|
330
436
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -379,6 +485,13 @@ module Google
|
|
379
485
|
end
|
380
486
|
end
|
381
487
|
|
488
|
+
class PathOverride
|
489
|
+
# @private
|
490
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
491
|
+
property :path, as: 'path'
|
492
|
+
end
|
493
|
+
end
|
494
|
+
|
382
495
|
class PauseQueueRequest
|
383
496
|
# @private
|
384
497
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -409,11 +522,20 @@ module Google
|
|
409
522
|
end
|
410
523
|
end
|
411
524
|
|
525
|
+
class QueryOverride
|
526
|
+
# @private
|
527
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
528
|
+
property :query_params, as: 'queryParams'
|
529
|
+
end
|
530
|
+
end
|
531
|
+
|
412
532
|
class Queue
|
413
533
|
# @private
|
414
534
|
class Representation < Google::Apis::Core::JsonRepresentation
|
415
535
|
property :app_engine_http_queue, as: 'appEngineHttpQueue', class: Google::Apis::CloudtasksV2beta3::AppEngineHttpQueue, decorator: Google::Apis::CloudtasksV2beta3::AppEngineHttpQueue::Representation
|
416
536
|
|
537
|
+
property :http_target, as: 'httpTarget', class: Google::Apis::CloudtasksV2beta3::HttpTarget, decorator: Google::Apis::CloudtasksV2beta3::HttpTarget::Representation
|
538
|
+
|
417
539
|
property :name, as: 'name'
|
418
540
|
property :purge_time, as: 'purgeTime'
|
419
541
|
property :rate_limits, as: 'rateLimits', class: Google::Apis::CloudtasksV2beta3::RateLimits, decorator: Google::Apis::CloudtasksV2beta3::RateLimits::Representation
|
@@ -535,6 +657,20 @@ module Google
|
|
535
657
|
collection :permissions, as: 'permissions'
|
536
658
|
end
|
537
659
|
end
|
660
|
+
|
661
|
+
class UriOverride
|
662
|
+
# @private
|
663
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
664
|
+
property :host, as: 'host'
|
665
|
+
property :path_override, as: 'pathOverride', class: Google::Apis::CloudtasksV2beta3::PathOverride, decorator: Google::Apis::CloudtasksV2beta3::PathOverride::Representation
|
666
|
+
|
667
|
+
property :port, :numeric_string => true, as: 'port'
|
668
|
+
property :query_override, as: 'queryOverride', class: Google::Apis::CloudtasksV2beta3::QueryOverride, decorator: Google::Apis::CloudtasksV2beta3::QueryOverride::Representation
|
669
|
+
|
670
|
+
property :scheme, as: 'scheme'
|
671
|
+
property :uri_override_enforce_mode, as: 'uriOverrideEnforceMode'
|
672
|
+
end
|
673
|
+
end
|
538
674
|
end
|
539
675
|
end
|
540
676
|
end
|
@@ -576,6 +576,52 @@ module Google
|
|
576
576
|
execute_or_queue_command(command, &block)
|
577
577
|
end
|
578
578
|
|
579
|
+
# Creates and buffers a new task without the need to explicitly define a Task
|
580
|
+
# message. The queue must have HTTP target. To create the task with a custom ID,
|
581
|
+
# use the following format and set TASK_ID to your desired ID: projects/
|
582
|
+
# PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To
|
583
|
+
# create the task with an automatically generated ID, use the following format:
|
584
|
+
# projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer. Note:
|
585
|
+
# This feature is in its experimental stage. You must request access to the API
|
586
|
+
# through the [Cloud Tasks BufferTask Experiment Signup form](https://forms.gle/
|
587
|
+
# X8Zr5hiXH5tTGFqh8).
|
588
|
+
# @param [String] queue
|
589
|
+
# Required. The parent queue name. For example: projects/PROJECT_ID/locations/
|
590
|
+
# LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
|
591
|
+
# @param [String] task_id
|
592
|
+
# Optional. Task ID for the task being created. If not provided, a random task
|
593
|
+
# ID is assigned to the task.
|
594
|
+
# @param [Google::Apis::CloudtasksV2beta3::BufferTaskRequest] buffer_task_request_object
|
595
|
+
# @param [String] fields
|
596
|
+
# Selector specifying which fields to include in a partial response.
|
597
|
+
# @param [String] quota_user
|
598
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
599
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
600
|
+
# @param [Google::Apis::RequestOptions] options
|
601
|
+
# Request-specific options
|
602
|
+
#
|
603
|
+
# @yield [result, err] Result & error if block supplied
|
604
|
+
# @yieldparam result [Google::Apis::CloudtasksV2beta3::BufferTaskResponse] parsed result object
|
605
|
+
# @yieldparam err [StandardError] error object if request failed
|
606
|
+
#
|
607
|
+
# @return [Google::Apis::CloudtasksV2beta3::BufferTaskResponse]
|
608
|
+
#
|
609
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
610
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
611
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
612
|
+
def buffer_task(queue, task_id, buffer_task_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
613
|
+
command = make_simple_command(:post, 'v2beta3/{+queue}/tasks/{taskId}:buffer', options)
|
614
|
+
command.request_representation = Google::Apis::CloudtasksV2beta3::BufferTaskRequest::Representation
|
615
|
+
command.request_object = buffer_task_request_object
|
616
|
+
command.response_representation = Google::Apis::CloudtasksV2beta3::BufferTaskResponse::Representation
|
617
|
+
command.response_class = Google::Apis::CloudtasksV2beta3::BufferTaskResponse
|
618
|
+
command.params['queue'] = queue unless queue.nil?
|
619
|
+
command.params['taskId'] = task_id unless task_id.nil?
|
620
|
+
command.query['fields'] = fields unless fields.nil?
|
621
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
622
|
+
execute_or_queue_command(command, &block)
|
623
|
+
end
|
624
|
+
|
579
625
|
# Creates a task and adds it to a queue. Tasks cannot be updated after creation;
|
580
626
|
# there is no UpdateTask command. * The maximum task size is 100KB.
|
581
627
|
# @param [String] parent
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudtasks_v2beta3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.25.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:
|
11
|
+
date: 2023-01-15 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_v2beta3/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2beta3/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2beta3/v0.25.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudtasks_v2beta3
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.4.2
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Tasks API V2beta3
|