google-apis-cloudtasks_v2beta3 0.24.0 → 0.26.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fccd66154f98d90621140c951d274386900ae44daedebe2581aacac33662dfbb
4
- data.tar.gz: 89b4bb5e12630afefe6edb7975f43bb71b253d62d088a553c254b64652327a06
3
+ metadata.gz: d25e13f2b821dfa03d77dab5597a0c2678aa28d4065db8223cbc053a4d66c9be
4
+ data.tar.gz: dece95126b9dc3e0cd8729ec5661814c6a5ff3b1fa6f2a14ea6d7e91c97564a3
5
5
  SHA512:
6
- metadata.gz: 971343154f19314a3ab7ff4093e03f3e9f97ed2d1e1a4abb414bfe5e4e8ae1a539e5695023aae41f0eb7dc32f1197f94d17c6446330304c3d4c027e252462971
7
- data.tar.gz: 92098ea8f4247c40eaeaad5f2f7a450e08632edcae177bf5e8b2a35ef98749da93952660e5fd55cac78ba6cb51c026c936d6fff26e828a4229e265268b4ef780
6
+ metadata.gz: f3c62e7c4e47620beba51ecc48d24c20a50be826a464e09aed3f540fb292905af1b0c2a5b72fb36ecd1f9e6b6018eec7f45828f43f71cda886119aa30a3c4fbf
7
+ data.tar.gz: 4227245150259933da5b528016318d1295a321f1ae20edf7aa66dfe83a434f3c4e6d490c0aa88b983e15dd51d9c233cf68c74c585b1a4e8ad165fb07e9e21f59
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-cloudtasks_v2beta3
2
2
 
3
+ ### v0.26.0 (2023-02-12)
4
+
5
+ * Regenerated from discovery document revision 20230201
6
+
7
+ ### v0.25.0 (2023-01-15)
8
+
9
+ * Regenerated from discovery document revision 20230105
10
+ * Regenerated using generator version 0.11.1
11
+
3
12
  ### v0.24.0 (2022-11-22)
4
13
 
5
14
  * Regenerated using generator version 0.11.0
@@ -323,22 +323,22 @@ module Google
323
323
  # kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
324
324
  # project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
325
325
  # email address that represents a Google group. For example, `admins@example.com`
326
- # . * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
327
- # identifier) representing a user that has been recently deleted. For example, `
328
- # alice@example.com?uid=123456789012345678901`. If the user is recovered, this
329
- # value reverts to `user:`emailid`` and the recovered user retains the role in
330
- # the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
331
- # address (plus unique identifier) representing a service account that has been
332
- # recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
326
+ # . * `domain:`domain``: The G Suite domain (primary) that represents all the
327
+ # users of that domain. For example, `google.com` or `example.com`. * `deleted:
328
+ # user:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
329
+ # representing a user that has been recently deleted. For example, `alice@
330
+ # example.com?uid=123456789012345678901`. If the user is recovered, this value
331
+ # reverts to `user:`emailid`` and the recovered user retains the role in the
332
+ # binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address
333
+ # (plus unique identifier) representing a service account that has been recently
334
+ # deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
333
335
  # 123456789012345678901`. If the service account is undeleted, this value
334
336
  # reverts to `serviceAccount:`emailid`` and the undeleted service account
335
337
  # retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
336
338
  # An email address (plus unique identifier) representing a Google group that has
337
339
  # been recently deleted. For example, `admins@example.com?uid=
338
340
  # 123456789012345678901`. If the group is recovered, this value reverts to `
339
- # group:`emailid`` and the recovered group retains the role in the binding. * `
340
- # domain:`domain``: The G Suite domain (primary) that represents all the users
341
- # of that domain. For example, `google.com` or `example.com`.
341
+ # group:`emailid`` and the recovered group retains the role in the binding.
342
342
  # Corresponds to the JSON property `members`
343
343
  # @return [Array<String>]
344
344
  attr_accessor :members
@@ -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
@@ -541,15 +686,17 @@ module Google
541
686
  # Headers can be set when the task is created. These headers represent a subset
542
687
  # of the headers that will accompany the task's HTTP request. Some HTTP request
543
688
  # headers will be ignored or replaced. A partial list of headers that will be
544
- # ignored or replaced is: * Host: This will be computed by Cloud Tasks and
545
- # derived from HttpRequest.url. * Content-Length: This will be computed by Cloud
546
- # Tasks. * User-Agent: This will be set to `"Google-Cloud-Tasks"`. * `X-Google-*`
547
- # : Google use only. * `X-AppEngine-*`: Google use only. `Content-Type` won't be
548
- # set by Cloud Tasks. You can explicitly set `Content-Type` to a media type when
549
- # the task is created. For example, `Content-Type` can be set to `"application/
550
- # octet-stream"` or `"application/json"`. Headers which can have multiple values
551
- # (according to RFC2616) can be specified using comma-separated values. The size
552
- # of the headers must be less than 80KB.
689
+ # ignored or replaced is: * Any header that is prefixed with "X-CloudTasks-"
690
+ # will be treated as service header. Service headers define properties of the
691
+ # task and are predefined in CloudTask. * Host: This will be computed by Cloud
692
+ # Tasks and derived from HttpRequest.url. * Content-Length: This will be
693
+ # computed by Cloud Tasks. * User-Agent: This will be set to `"Google-Cloud-
694
+ # Tasks"`. * `X-Google-*`: Google use only. * `X-AppEngine-*`: Google use only. `
695
+ # Content-Type` won't be set by Cloud Tasks. You can explicitly set `Content-
696
+ # Type` to a media type when the task is created. For example, `Content-Type`
697
+ # can be set to `"application/octet-stream"` or `"application/json"`. Headers
698
+ # which can have multiple values (according to RFC2616) can be specified using
699
+ # comma-separated values. The size of the headers must be less than 80KB.
553
700
  # Corresponds to the JSON property `headers`
554
701
  # @return [Hash<String,String>]
555
702
  attr_accessor :headers
@@ -600,6 +747,56 @@ module Google
600
747
  end
601
748
  end
602
749
 
750
+ # HTTP target. When specified as a Queue, all the tasks with [HttpRequest] will
751
+ # be overridden according to the target.
752
+ class HttpTarget
753
+ include Google::Apis::Core::Hashable
754
+
755
+ # HTTP target headers. This map contains the header field names and values.
756
+ # Headers will be set when running the CreateTask and/or BufferTask. These
757
+ # headers represent a subset of the headers that will be configured for the task'
758
+ # s HTTP request. Some HTTP request headers will be ignored or replaced. A
759
+ # partial list of headers that will be ignored or replaced is: * Several
760
+ # predefined headers, prefixed with "X-CloudTasks-", can be used to define
761
+ # properties of the task. * Host: This will be computed by Cloud Tasks and
762
+ # derived from HttpRequest.url. * Content-Length: This will be computed by Cloud
763
+ # Tasks. `Content-Type` won't be set by Cloud Tasks. You can explicitly set `
764
+ # Content-Type` to a media type when the task is created. For example,`Content-
765
+ # Type` can be set to `"application/octet-stream"` or `"application/json"`. The
766
+ # default value is set to "application/json"`. * User-Agent: This will be set to
767
+ # `"Google-Cloud-Tasks"`. Headers which can have multiple values (according to
768
+ # RFC2616) can be specified using comma-separated values. The size of the
769
+ # headers must be less than 80KB. Queue-level headers to override headers of all
770
+ # the tasks in the queue.
771
+ # Corresponds to the JSON property `headerOverrides`
772
+ # @return [Array<Google::Apis::CloudtasksV2beta3::HeaderOverride>]
773
+ attr_accessor :header_overrides
774
+
775
+ # The HTTP method to use for the request. When specified, it will override
776
+ # HttpRequest for the task. Note that if the value is set to HttpMethod the
777
+ # HttpRequest of the task will be ignored at execution time.
778
+ # Corresponds to the JSON property `httpMethod`
779
+ # @return [String]
780
+ attr_accessor :http_method
781
+
782
+ # URI Override. When specified, all the HTTP tasks inside the queue will be
783
+ # partially or fully overridden depending on the configured values.
784
+ # Corresponds to the JSON property `uriOverride`
785
+ # @return [Google::Apis::CloudtasksV2beta3::UriOverride]
786
+ attr_accessor :uri_override
787
+
788
+ def initialize(**args)
789
+ update!(**args)
790
+ end
791
+
792
+ # Update properties of this object
793
+ def update!(**args)
794
+ @header_overrides = args[:header_overrides] if args.key?(:header_overrides)
795
+ @http_method = args[:http_method] if args.key?(:http_method)
796
+ @uri_override = args[:uri_override] if args.key?(:uri_override)
797
+ end
798
+ end
799
+
603
800
  # The response message for Locations.ListLocations.
604
801
  class ListLocationsResponse
605
802
  include Google::Apis::Core::Hashable
@@ -789,6 +986,25 @@ module Google
789
986
  end
790
987
  end
791
988
 
989
+ # PathOverride. Path message defines path override for HTTP targets.
990
+ class PathOverride
991
+ include Google::Apis::Core::Hashable
992
+
993
+ # The URI path (e.g., a/b/c). Default is Empty string.
994
+ # Corresponds to the JSON property `path`
995
+ # @return [String]
996
+ attr_accessor :path
997
+
998
+ def initialize(**args)
999
+ update!(**args)
1000
+ end
1001
+
1002
+ # Update properties of this object
1003
+ def update!(**args)
1004
+ @path = args[:path] if args.key?(:path)
1005
+ end
1006
+ end
1007
+
792
1008
  # Request message for PauseQueue.
793
1009
  class PauseQueueRequest
794
1010
  include Google::Apis::Core::Hashable
@@ -938,6 +1154,25 @@ module Google
938
1154
  end
939
1155
  end
940
1156
 
1157
+ # QueryOverride. Query message defines query override for HTTP targets.
1158
+ class QueryOverride
1159
+ include Google::Apis::Core::Hashable
1160
+
1161
+ # The query parameters (e.g., qparam1=123&qparam2=456). Default is Empty string.
1162
+ # Corresponds to the JSON property `queryParams`
1163
+ # @return [String]
1164
+ attr_accessor :query_params
1165
+
1166
+ def initialize(**args)
1167
+ update!(**args)
1168
+ end
1169
+
1170
+ # Update properties of this object
1171
+ def update!(**args)
1172
+ @query_params = args[:query_params] if args.key?(:query_params)
1173
+ end
1174
+ end
1175
+
941
1176
  # A queue is a container of related tasks. Queues are configured to manage how
942
1177
  # those tasks are dispatched. Configurable properties include rate limits, retry
943
1178
  # options, queue types, and others.
@@ -955,6 +1190,12 @@ module Google
955
1190
  # @return [Google::Apis::CloudtasksV2beta3::AppEngineHttpQueue]
956
1191
  attr_accessor :app_engine_http_queue
957
1192
 
1193
+ # HTTP target. When specified as a Queue, all the tasks with [HttpRequest] will
1194
+ # be overridden according to the target.
1195
+ # Corresponds to the JSON property `httpTarget`
1196
+ # @return [Google::Apis::CloudtasksV2beta3::HttpTarget]
1197
+ attr_accessor :http_target
1198
+
958
1199
  # Caller-specified and required in CreateQueue, after which it becomes output
959
1200
  # only. The queue name. The queue name must have the following format: `projects/
960
1201
  # PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * `PROJECT_ID` can contain
@@ -1048,6 +1289,7 @@ module Google
1048
1289
  # Update properties of this object
1049
1290
  def update!(**args)
1050
1291
  @app_engine_http_queue = args[:app_engine_http_queue] if args.key?(:app_engine_http_queue)
1292
+ @http_target = args[:http_target] if args.key?(:http_target)
1051
1293
  @name = args[:name] if args.key?(:name)
1052
1294
  @purge_time = args[:purge_time] if args.key?(:purge_time)
1053
1295
  @rate_limits = args[:rate_limits] if args.key?(:rate_limits)
@@ -1608,6 +1850,64 @@ module Google
1608
1850
  @permissions = args[:permissions] if args.key?(:permissions)
1609
1851
  end
1610
1852
  end
1853
+
1854
+ # URI Override. When specified, all the HTTP tasks inside the queue will be
1855
+ # partially or fully overridden depending on the configured values.
1856
+ class UriOverride
1857
+ include Google::Apis::Core::Hashable
1858
+
1859
+ # Host override. When specified, will replace the host part of the task URL. For
1860
+ # example, if the task URL is "https://www.google.com", and host value is set to
1861
+ # "example.net", the overridden URI will be changed to "https://example.net".
1862
+ # Host value cannot be an empty string.
1863
+ # Corresponds to the JSON property `host`
1864
+ # @return [String]
1865
+ attr_accessor :host
1866
+
1867
+ # PathOverride. Path message defines path override for HTTP targets.
1868
+ # Corresponds to the JSON property `pathOverride`
1869
+ # @return [Google::Apis::CloudtasksV2beta3::PathOverride]
1870
+ attr_accessor :path_override
1871
+
1872
+ # Port override. When specified, will replace the port part of the task URI. For
1873
+ # instance, for a URI http://www.google.com/foo and port=123, the overridden URI
1874
+ # becomes http://www.google.com:123/foo. Note that the port value must be a
1875
+ # positive integer. Setting the port to 0 (Zero) clears the URI port.
1876
+ # Corresponds to the JSON property `port`
1877
+ # @return [Fixnum]
1878
+ attr_accessor :port
1879
+
1880
+ # QueryOverride. Query message defines query override for HTTP targets.
1881
+ # Corresponds to the JSON property `queryOverride`
1882
+ # @return [Google::Apis::CloudtasksV2beta3::QueryOverride]
1883
+ attr_accessor :query_override
1884
+
1885
+ # Scheme override. When specified, the task URI scheme is replaced by the
1886
+ # provided value (HTTP or HTTPS).
1887
+ # Corresponds to the JSON property `scheme`
1888
+ # @return [String]
1889
+ attr_accessor :scheme
1890
+
1891
+ # URI Override Enforce Mode When specified, determines the Target UriOverride
1892
+ # mode. If not specified, it defaults to ALWAYS.
1893
+ # Corresponds to the JSON property `uriOverrideEnforceMode`
1894
+ # @return [String]
1895
+ attr_accessor :uri_override_enforce_mode
1896
+
1897
+ def initialize(**args)
1898
+ update!(**args)
1899
+ end
1900
+
1901
+ # Update properties of this object
1902
+ def update!(**args)
1903
+ @host = args[:host] if args.key?(:host)
1904
+ @path_override = args[:path_override] if args.key?(:path_override)
1905
+ @port = args[:port] if args.key?(:port)
1906
+ @query_override = args[:query_override] if args.key?(:query_override)
1907
+ @scheme = args[:scheme] if args.key?(:scheme)
1908
+ @uri_override_enforce_mode = args[:uri_override_enforce_mode] if args.key?(:uri_override_enforce_mode)
1909
+ end
1910
+ end
1611
1911
  end
1612
1912
  end
1613
1913
  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.24.0"
19
+ GEM_VERSION = "0.26.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220825"
25
+ REVISION = "20230201"
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.24.0
4
+ version: 0.26.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: 2022-12-12 00:00:00.000000000 Z
11
+ date: 2023-02-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_v2beta3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2beta3/v0.24.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2beta3/v0.26.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.3.14
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