google-apis-cloudtasks_v2 0.31.0 → 0.33.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c7082b0d2e5d3a90d084329f64e264d4ea846ab0b14aaa99c8620420ab449ff
|
4
|
+
data.tar.gz: 968ab708c3fb3bdbc7a4e11ca5d19f9db3bd1419d4b4258ea71f8301c32fc696
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27b8d1cd3cc3341e5803bc6e22c97f2a6d870e0118887ec6fed55777600a059a1b0795c745229f6a6f8629c698f0c18aa31e8d6b54f4ce2e7194d5e9d61ca328
|
7
|
+
data.tar.gz: bf2a3a935b19109b23c9d5aa69fb90a5a882696d233c9db99eba897325b6bde3f09aa84f37634a8f7249926ebfc55d27ec19e746bb0ae4cbdbaaac727f94a4fb
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-cloudtasks_v2
|
2
2
|
|
3
|
+
### v0.33.0 (2024-01-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240102
|
6
|
+
* Regenerated using generator version 0.13.0
|
7
|
+
|
8
|
+
### v0.32.0 (2023-11-12)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20231027
|
11
|
+
|
3
12
|
### v0.31.0 (2023-10-29)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20231018
|
@@ -297,21 +297,43 @@ module Google
|
|
297
297
|
# project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
|
298
298
|
# email address that represents a Google group. For example, `admins@example.com`
|
299
299
|
# . * `domain:`domain``: The G Suite domain (primary) that represents all the
|
300
|
-
# users of that domain. For example, `google.com` or `example.com`. * `
|
301
|
-
#
|
302
|
-
#
|
303
|
-
#
|
304
|
-
#
|
305
|
-
#
|
306
|
-
#
|
307
|
-
#
|
300
|
+
# users of that domain. For example, `google.com` or `example.com`. * `principal:
|
301
|
+
# //iam.googleapis.com/locations/global/workforcePools/`pool_id`/subject/`
|
302
|
+
# subject_attribute_value``: A single identity in a workforce identity pool. * `
|
303
|
+
# principalSet://iam.googleapis.com/locations/global/workforcePools/`pool_id`/
|
304
|
+
# group/`group_id``: All workforce identities in a group. * `principalSet://iam.
|
305
|
+
# googleapis.com/locations/global/workforcePools/`pool_id`/attribute.`
|
306
|
+
# attribute_name`/`attribute_value``: All workforce identities with a specific
|
307
|
+
# attribute value. * `principalSet://iam.googleapis.com/locations/global/
|
308
|
+
# workforcePools/`pool_id`/*`: All identities in a workforce identity pool. * `
|
309
|
+
# principal://iam.googleapis.com/projects/`project_number`/locations/global/
|
310
|
+
# workloadIdentityPools/`pool_id`/subject/`subject_attribute_value``: A single
|
311
|
+
# identity in a workload identity pool. * `principalSet://iam.googleapis.com/
|
312
|
+
# projects/`project_number`/locations/global/workloadIdentityPools/`pool_id`/
|
313
|
+
# group/`group_id``: A workload identity pool group. * `principalSet://iam.
|
314
|
+
# googleapis.com/projects/`project_number`/locations/global/
|
315
|
+
# workloadIdentityPools/`pool_id`/attribute.`attribute_name`/`attribute_value``:
|
316
|
+
# All identities in a workload identity pool with a certain attribute. * `
|
317
|
+
# principalSet://iam.googleapis.com/projects/`project_number`/locations/global/
|
318
|
+
# workloadIdentityPools/`pool_id`/*`: All identities in a workload identity pool.
|
319
|
+
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
|
320
|
+
# identifier) representing a user that has been recently deleted. For example, `
|
321
|
+
# alice@example.com?uid=123456789012345678901`. If the user is recovered, this
|
322
|
+
# value reverts to `user:`emailid`` and the recovered user retains the role in
|
323
|
+
# the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
|
324
|
+
# address (plus unique identifier) representing a service account that has been
|
325
|
+
# recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
|
308
326
|
# 123456789012345678901`. If the service account is undeleted, this value
|
309
327
|
# reverts to `serviceAccount:`emailid`` and the undeleted service account
|
310
328
|
# retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
|
311
329
|
# An email address (plus unique identifier) representing a Google group that has
|
312
330
|
# been recently deleted. For example, `admins@example.com?uid=
|
313
331
|
# 123456789012345678901`. If the group is recovered, this value reverts to `
|
314
|
-
# group:`emailid`` and the recovered group retains the role in the binding.
|
332
|
+
# group:`emailid`` and the recovered group retains the role in the binding. * `
|
333
|
+
# deleted:principal://iam.googleapis.com/locations/global/workforcePools/`
|
334
|
+
# pool_id`/subject/`subject_attribute_value``: Deleted single identity in a
|
335
|
+
# workforce identity pool. For example, `deleted:principal://iam.googleapis.com/
|
336
|
+
# locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
|
315
337
|
# Corresponds to the JSON property `members`
|
316
338
|
# @return [Array<String>]
|
317
339
|
attr_accessor :members
|
@@ -334,6 +356,59 @@ module Google
|
|
334
356
|
end
|
335
357
|
end
|
336
358
|
|
359
|
+
# Request message for BufferTask.
|
360
|
+
class BufferTaskRequest
|
361
|
+
include Google::Apis::Core::Hashable
|
362
|
+
|
363
|
+
# Message that represents an arbitrary HTTP body. It should only be used for
|
364
|
+
# payload formats that can't be represented as JSON, such as raw binary or an
|
365
|
+
# HTML page. This message can be used both in streaming and non-streaming API
|
366
|
+
# methods in the request as well as the response. It can be used as a top-level
|
367
|
+
# request field, which is convenient if one wants to extract parameters from
|
368
|
+
# either the URL or HTTP template into the request fields and also want access
|
369
|
+
# to the raw HTTP body. Example: message GetResourceRequest ` // A unique
|
370
|
+
# request id. string request_id = 1; // The raw HTTP body is bound to this field.
|
371
|
+
# google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
|
372
|
+
# GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
|
373
|
+
# UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
|
374
|
+
# with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
|
375
|
+
# api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
|
376
|
+
# google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
|
377
|
+
# only changes how the request and response bodies are handled, all other
|
378
|
+
# features will continue to work unchanged.
|
379
|
+
# Corresponds to the JSON property `body`
|
380
|
+
# @return [Google::Apis::CloudtasksV2::HttpBody]
|
381
|
+
attr_accessor :body
|
382
|
+
|
383
|
+
def initialize(**args)
|
384
|
+
update!(**args)
|
385
|
+
end
|
386
|
+
|
387
|
+
# Update properties of this object
|
388
|
+
def update!(**args)
|
389
|
+
@body = args[:body] if args.key?(:body)
|
390
|
+
end
|
391
|
+
end
|
392
|
+
|
393
|
+
# Response message for BufferTask.
|
394
|
+
class BufferTaskResponse
|
395
|
+
include Google::Apis::Core::Hashable
|
396
|
+
|
397
|
+
# A unit of scheduled work.
|
398
|
+
# Corresponds to the JSON property `task`
|
399
|
+
# @return [Google::Apis::CloudtasksV2::Task]
|
400
|
+
attr_accessor :task
|
401
|
+
|
402
|
+
def initialize(**args)
|
403
|
+
update!(**args)
|
404
|
+
end
|
405
|
+
|
406
|
+
# Update properties of this object
|
407
|
+
def update!(**args)
|
408
|
+
@task = args[:task] if args.key?(:task)
|
409
|
+
end
|
410
|
+
end
|
411
|
+
|
337
412
|
# Describes the customer-managed encryption key (CMEK) configuration associated
|
338
413
|
# with a project and location.
|
339
414
|
class CmekConfig
|
@@ -512,6 +587,98 @@ module Google
|
|
512
587
|
end
|
513
588
|
end
|
514
589
|
|
590
|
+
# Defines a header message. A header can have a key and a value.
|
591
|
+
class Header
|
592
|
+
include Google::Apis::Core::Hashable
|
593
|
+
|
594
|
+
# The Key of the header.
|
595
|
+
# Corresponds to the JSON property `key`
|
596
|
+
# @return [String]
|
597
|
+
attr_accessor :key
|
598
|
+
|
599
|
+
# The Value of the header.
|
600
|
+
# Corresponds to the JSON property `value`
|
601
|
+
# @return [String]
|
602
|
+
attr_accessor :value
|
603
|
+
|
604
|
+
def initialize(**args)
|
605
|
+
update!(**args)
|
606
|
+
end
|
607
|
+
|
608
|
+
# Update properties of this object
|
609
|
+
def update!(**args)
|
610
|
+
@key = args[:key] if args.key?(:key)
|
611
|
+
@value = args[:value] if args.key?(:value)
|
612
|
+
end
|
613
|
+
end
|
614
|
+
|
615
|
+
# Wraps the Header object.
|
616
|
+
class HeaderOverride
|
617
|
+
include Google::Apis::Core::Hashable
|
618
|
+
|
619
|
+
# Defines a header message. A header can have a key and a value.
|
620
|
+
# Corresponds to the JSON property `header`
|
621
|
+
# @return [Google::Apis::CloudtasksV2::Header]
|
622
|
+
attr_accessor :header
|
623
|
+
|
624
|
+
def initialize(**args)
|
625
|
+
update!(**args)
|
626
|
+
end
|
627
|
+
|
628
|
+
# Update properties of this object
|
629
|
+
def update!(**args)
|
630
|
+
@header = args[:header] if args.key?(:header)
|
631
|
+
end
|
632
|
+
end
|
633
|
+
|
634
|
+
# Message that represents an arbitrary HTTP body. It should only be used for
|
635
|
+
# payload formats that can't be represented as JSON, such as raw binary or an
|
636
|
+
# HTML page. This message can be used both in streaming and non-streaming API
|
637
|
+
# methods in the request as well as the response. It can be used as a top-level
|
638
|
+
# request field, which is convenient if one wants to extract parameters from
|
639
|
+
# either the URL or HTTP template into the request fields and also want access
|
640
|
+
# to the raw HTTP body. Example: message GetResourceRequest ` // A unique
|
641
|
+
# request id. string request_id = 1; // The raw HTTP body is bound to this field.
|
642
|
+
# google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
|
643
|
+
# GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
|
644
|
+
# UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
|
645
|
+
# with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
|
646
|
+
# api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
|
647
|
+
# google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
|
648
|
+
# only changes how the request and response bodies are handled, all other
|
649
|
+
# features will continue to work unchanged.
|
650
|
+
class HttpBody
|
651
|
+
include Google::Apis::Core::Hashable
|
652
|
+
|
653
|
+
# The HTTP Content-Type header value specifying the content type of the body.
|
654
|
+
# Corresponds to the JSON property `contentType`
|
655
|
+
# @return [String]
|
656
|
+
attr_accessor :content_type
|
657
|
+
|
658
|
+
# The HTTP request/response body as raw binary.
|
659
|
+
# Corresponds to the JSON property `data`
|
660
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
661
|
+
# @return [String]
|
662
|
+
attr_accessor :data
|
663
|
+
|
664
|
+
# Application specific response metadata. Must be set in the first response for
|
665
|
+
# streaming APIs.
|
666
|
+
# Corresponds to the JSON property `extensions`
|
667
|
+
# @return [Array<Hash<String,Object>>]
|
668
|
+
attr_accessor :extensions
|
669
|
+
|
670
|
+
def initialize(**args)
|
671
|
+
update!(**args)
|
672
|
+
end
|
673
|
+
|
674
|
+
# Update properties of this object
|
675
|
+
def update!(**args)
|
676
|
+
@content_type = args[:content_type] if args.key?(:content_type)
|
677
|
+
@data = args[:data] if args.key?(:data)
|
678
|
+
@extensions = args[:extensions] if args.key?(:extensions)
|
679
|
+
end
|
680
|
+
end
|
681
|
+
|
515
682
|
# HTTP request. The task will be pushed to the worker as an HTTP request. If the
|
516
683
|
# worker or the redirected worker acknowledges the task by returning a
|
517
684
|
# successful HTTP response code ([`200` - `299`]), the task will be removed from
|
@@ -604,6 +771,73 @@ module Google
|
|
604
771
|
end
|
605
772
|
end
|
606
773
|
|
774
|
+
# HTTP target. When specified as a Queue, all the tasks with [HttpRequest] will
|
775
|
+
# be overridden according to the target.
|
776
|
+
class HttpTarget
|
777
|
+
include Google::Apis::Core::Hashable
|
778
|
+
|
779
|
+
# HTTP target headers. This map contains the header field names and values.
|
780
|
+
# Headers will be set when running the CreateTask and/or BufferTask. These
|
781
|
+
# headers represent a subset of the headers that will be configured for the task'
|
782
|
+
# s HTTP request. Some HTTP request headers will be ignored or replaced. A
|
783
|
+
# partial list of headers that will be ignored or replaced is: * Several
|
784
|
+
# predefined headers, prefixed with "X-CloudTasks-", can be used to define
|
785
|
+
# properties of the task. * Host: This will be computed by Cloud Tasks and
|
786
|
+
# derived from HttpRequest.url. * Content-Length: This will be computed by Cloud
|
787
|
+
# Tasks. `Content-Type` won't be set by Cloud Tasks. You can explicitly set `
|
788
|
+
# Content-Type` to a media type when the task is created. For example,`Content-
|
789
|
+
# Type` can be set to `"application/octet-stream"` or `"application/json"`. The
|
790
|
+
# default value is set to "application/json"`. * User-Agent: This will be set to
|
791
|
+
# `"Google-Cloud-Tasks"`. Headers which can have multiple values (according to
|
792
|
+
# RFC2616) can be specified using comma-separated values. The size of the
|
793
|
+
# headers must be less than 80KB. Queue-level headers to override headers of all
|
794
|
+
# the tasks in the queue.
|
795
|
+
# Corresponds to the JSON property `headerOverrides`
|
796
|
+
# @return [Array<Google::Apis::CloudtasksV2::HeaderOverride>]
|
797
|
+
attr_accessor :header_overrides
|
798
|
+
|
799
|
+
# The HTTP method to use for the request. When specified, it overrides
|
800
|
+
# HttpRequest for the task. Note that if the value is set to HttpMethod the
|
801
|
+
# HttpRequest of the task will be ignored at execution time.
|
802
|
+
# Corresponds to the JSON property `httpMethod`
|
803
|
+
# @return [String]
|
804
|
+
attr_accessor :http_method
|
805
|
+
|
806
|
+
# Contains information needed for generating an [OAuth token](https://developers.
|
807
|
+
# google.com/identity/protocols/OAuth2). This type of authorization should
|
808
|
+
# generally only be used when calling Google APIs hosted on *.googleapis.com.
|
809
|
+
# Corresponds to the JSON property `oauthToken`
|
810
|
+
# @return [Google::Apis::CloudtasksV2::OAuthToken]
|
811
|
+
attr_accessor :oauth_token
|
812
|
+
|
813
|
+
# Contains information needed for generating an [OpenID Connect token](https://
|
814
|
+
# developers.google.com/identity/protocols/OpenIDConnect). This type of
|
815
|
+
# authorization can be used for many scenarios, including calling Cloud Run, or
|
816
|
+
# endpoints where you intend to validate the token yourself.
|
817
|
+
# Corresponds to the JSON property `oidcToken`
|
818
|
+
# @return [Google::Apis::CloudtasksV2::OidcToken]
|
819
|
+
attr_accessor :oidc_token
|
820
|
+
|
821
|
+
# URI Override. When specified, all the HTTP tasks inside the queue will be
|
822
|
+
# partially or fully overridden depending on the configured values.
|
823
|
+
# Corresponds to the JSON property `uriOverride`
|
824
|
+
# @return [Google::Apis::CloudtasksV2::UriOverride]
|
825
|
+
attr_accessor :uri_override
|
826
|
+
|
827
|
+
def initialize(**args)
|
828
|
+
update!(**args)
|
829
|
+
end
|
830
|
+
|
831
|
+
# Update properties of this object
|
832
|
+
def update!(**args)
|
833
|
+
@header_overrides = args[:header_overrides] if args.key?(:header_overrides)
|
834
|
+
@http_method = args[:http_method] if args.key?(:http_method)
|
835
|
+
@oauth_token = args[:oauth_token] if args.key?(:oauth_token)
|
836
|
+
@oidc_token = args[:oidc_token] if args.key?(:oidc_token)
|
837
|
+
@uri_override = args[:uri_override] if args.key?(:uri_override)
|
838
|
+
end
|
839
|
+
end
|
840
|
+
|
607
841
|
# The response message for Locations.ListLocations.
|
608
842
|
class ListLocationsResponse
|
609
843
|
include Google::Apis::Core::Hashable
|
@@ -793,6 +1027,25 @@ module Google
|
|
793
1027
|
end
|
794
1028
|
end
|
795
1029
|
|
1030
|
+
# PathOverride. Path message defines path override for HTTP targets.
|
1031
|
+
class PathOverride
|
1032
|
+
include Google::Apis::Core::Hashable
|
1033
|
+
|
1034
|
+
# The URI path (e.g., /users/1234). Default is an empty string.
|
1035
|
+
# Corresponds to the JSON property `path`
|
1036
|
+
# @return [String]
|
1037
|
+
attr_accessor :path
|
1038
|
+
|
1039
|
+
def initialize(**args)
|
1040
|
+
update!(**args)
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
# Update properties of this object
|
1044
|
+
def update!(**args)
|
1045
|
+
@path = args[:path] if args.key?(:path)
|
1046
|
+
end
|
1047
|
+
end
|
1048
|
+
|
796
1049
|
# Request message for PauseQueue.
|
797
1050
|
class PauseQueueRequest
|
798
1051
|
include Google::Apis::Core::Hashable
|
@@ -908,6 +1161,26 @@ module Google
|
|
908
1161
|
end
|
909
1162
|
end
|
910
1163
|
|
1164
|
+
# QueryOverride. Query message defines query override for HTTP targets.
|
1165
|
+
class QueryOverride
|
1166
|
+
include Google::Apis::Core::Hashable
|
1167
|
+
|
1168
|
+
# The query parameters (e.g., qparam1=123&qparam2=456). Default is an empty
|
1169
|
+
# string.
|
1170
|
+
# Corresponds to the JSON property `queryParams`
|
1171
|
+
# @return [String]
|
1172
|
+
attr_accessor :query_params
|
1173
|
+
|
1174
|
+
def initialize(**args)
|
1175
|
+
update!(**args)
|
1176
|
+
end
|
1177
|
+
|
1178
|
+
# Update properties of this object
|
1179
|
+
def update!(**args)
|
1180
|
+
@query_params = args[:query_params] if args.key?(:query_params)
|
1181
|
+
end
|
1182
|
+
end
|
1183
|
+
|
911
1184
|
# A queue is a container of related tasks. Queues are configured to manage how
|
912
1185
|
# those tasks are dispatched. Configurable properties include rate limits, retry
|
913
1186
|
# options, queue types, and others.
|
@@ -930,6 +1203,12 @@ module Google
|
|
930
1203
|
# @return [Google::Apis::CloudtasksV2::AppEngineRouting]
|
931
1204
|
attr_accessor :app_engine_routing_override
|
932
1205
|
|
1206
|
+
# HTTP target. When specified as a Queue, all the tasks with [HttpRequest] will
|
1207
|
+
# be overridden according to the target.
|
1208
|
+
# Corresponds to the JSON property `httpTarget`
|
1209
|
+
# @return [Google::Apis::CloudtasksV2::HttpTarget]
|
1210
|
+
attr_accessor :http_target
|
1211
|
+
|
933
1212
|
# Caller-specified and required in CreateQueue, after which it becomes output
|
934
1213
|
# only. The queue name. The queue name must have the following format: `projects/
|
935
1214
|
# PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * `PROJECT_ID` can contain
|
@@ -989,6 +1268,7 @@ module Google
|
|
989
1268
|
# Update properties of this object
|
990
1269
|
def update!(**args)
|
991
1270
|
@app_engine_routing_override = args[:app_engine_routing_override] if args.key?(:app_engine_routing_override)
|
1271
|
+
@http_target = args[:http_target] if args.key?(:http_target)
|
992
1272
|
@name = args[:name] if args.key?(:name)
|
993
1273
|
@purge_time = args[:purge_time] if args.key?(:purge_time)
|
994
1274
|
@rate_limits = args[:rate_limits] if args.key?(:rate_limits)
|
@@ -1495,6 +1775,64 @@ module Google
|
|
1495
1775
|
@permissions = args[:permissions] if args.key?(:permissions)
|
1496
1776
|
end
|
1497
1777
|
end
|
1778
|
+
|
1779
|
+
# URI Override. When specified, all the HTTP tasks inside the queue will be
|
1780
|
+
# partially or fully overridden depending on the configured values.
|
1781
|
+
class UriOverride
|
1782
|
+
include Google::Apis::Core::Hashable
|
1783
|
+
|
1784
|
+
# Host override. When specified, replaces the host part of the task URL. For
|
1785
|
+
# example, if the task URL is "https://www.google.com," and host value is set to
|
1786
|
+
# "example.net", the overridden URI will be changed to "https://example.net."
|
1787
|
+
# Host value cannot be an empty string (INVALID_ARGUMENT).
|
1788
|
+
# Corresponds to the JSON property `host`
|
1789
|
+
# @return [String]
|
1790
|
+
attr_accessor :host
|
1791
|
+
|
1792
|
+
# PathOverride. Path message defines path override for HTTP targets.
|
1793
|
+
# Corresponds to the JSON property `pathOverride`
|
1794
|
+
# @return [Google::Apis::CloudtasksV2::PathOverride]
|
1795
|
+
attr_accessor :path_override
|
1796
|
+
|
1797
|
+
# Port override. When specified, replaces the port part of the task URI. For
|
1798
|
+
# instance, for a URI http://www.google.com/foo and port=123, the overridden URI
|
1799
|
+
# becomes http://www.google.com:123/foo. Note that the port value must be a
|
1800
|
+
# positive integer. Setting the port to 0 (Zero) clears the URI port.
|
1801
|
+
# Corresponds to the JSON property `port`
|
1802
|
+
# @return [Fixnum]
|
1803
|
+
attr_accessor :port
|
1804
|
+
|
1805
|
+
# QueryOverride. Query message defines query override for HTTP targets.
|
1806
|
+
# Corresponds to the JSON property `queryOverride`
|
1807
|
+
# @return [Google::Apis::CloudtasksV2::QueryOverride]
|
1808
|
+
attr_accessor :query_override
|
1809
|
+
|
1810
|
+
# Scheme override. When specified, the task URI scheme is replaced by the
|
1811
|
+
# provided value (HTTP or HTTPS).
|
1812
|
+
# Corresponds to the JSON property `scheme`
|
1813
|
+
# @return [String]
|
1814
|
+
attr_accessor :scheme
|
1815
|
+
|
1816
|
+
# URI Override Enforce Mode When specified, determines the Target UriOverride
|
1817
|
+
# mode. If not specified, it defaults to ALWAYS.
|
1818
|
+
# Corresponds to the JSON property `uriOverrideEnforceMode`
|
1819
|
+
# @return [String]
|
1820
|
+
attr_accessor :uri_override_enforce_mode
|
1821
|
+
|
1822
|
+
def initialize(**args)
|
1823
|
+
update!(**args)
|
1824
|
+
end
|
1825
|
+
|
1826
|
+
# Update properties of this object
|
1827
|
+
def update!(**args)
|
1828
|
+
@host = args[:host] if args.key?(:host)
|
1829
|
+
@path_override = args[:path_override] if args.key?(:path_override)
|
1830
|
+
@port = args[:port] if args.key?(:port)
|
1831
|
+
@query_override = args[:query_override] if args.key?(:query_override)
|
1832
|
+
@scheme = args[:scheme] if args.key?(:scheme)
|
1833
|
+
@uri_override_enforce_mode = args[:uri_override_enforce_mode] if args.key?(:uri_override_enforce_mode)
|
1834
|
+
end
|
1835
|
+
end
|
1498
1836
|
end
|
1499
1837
|
end
|
1500
1838
|
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.
|
19
|
+
GEM_VERSION = "0.33.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.13.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240102"
|
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
|
@@ -32,6 +32,8 @@ module Google
|
|
32
32
|
#
|
33
33
|
# @see https://cloud.google.com/tasks/
|
34
34
|
class CloudTasksService < Google::Apis::Core::BaseService
|
35
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://cloudtasks.$UNIVERSE_DOMAIN$/"
|
36
|
+
|
35
37
|
# @return [String]
|
36
38
|
# API key. Your API key identifies your project and provides you with API access,
|
37
39
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
@@ -43,7 +45,7 @@ module Google
|
|
43
45
|
attr_accessor :quota_user
|
44
46
|
|
45
47
|
def initialize
|
46
|
-
super(
|
48
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
47
49
|
client_name: 'google-apis-cloudtasks_v2',
|
48
50
|
client_version: Google::Apis::CloudtasksV2::GEM_VERSION)
|
49
51
|
@batch_path = 'batch'
|
@@ -644,6 +646,49 @@ module Google
|
|
644
646
|
execute_or_queue_command(command, &block)
|
645
647
|
end
|
646
648
|
|
649
|
+
# Creates and buffers a new task without the need to explicitly define a Task
|
650
|
+
# message. The queue must have HTTP target. To create the task with a custom ID,
|
651
|
+
# use the following format and set TASK_ID to your desired ID: projects/
|
652
|
+
# PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To
|
653
|
+
# create the task with an automatically generated ID, use the following format:
|
654
|
+
# projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer.
|
655
|
+
# @param [String] queue
|
656
|
+
# Required. The parent queue name. For example: projects/PROJECT_ID/locations/
|
657
|
+
# LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
|
658
|
+
# @param [String] task_id
|
659
|
+
# Optional. Task ID for the task being created. If not provided, Cloud Tasks
|
660
|
+
# generates an ID for the task.
|
661
|
+
# @param [Google::Apis::CloudtasksV2::BufferTaskRequest] buffer_task_request_object
|
662
|
+
# @param [String] fields
|
663
|
+
# Selector specifying which fields to include in a partial response.
|
664
|
+
# @param [String] quota_user
|
665
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
666
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
667
|
+
# @param [Google::Apis::RequestOptions] options
|
668
|
+
# Request-specific options
|
669
|
+
#
|
670
|
+
# @yield [result, err] Result & error if block supplied
|
671
|
+
# @yieldparam result [Google::Apis::CloudtasksV2::BufferTaskResponse] parsed result object
|
672
|
+
# @yieldparam err [StandardError] error object if request failed
|
673
|
+
#
|
674
|
+
# @return [Google::Apis::CloudtasksV2::BufferTaskResponse]
|
675
|
+
#
|
676
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
677
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
678
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
679
|
+
def buffer_task(queue, task_id, buffer_task_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
680
|
+
command = make_simple_command(:post, 'v2/{+queue}/tasks/{taskId}:buffer', options)
|
681
|
+
command.request_representation = Google::Apis::CloudtasksV2::BufferTaskRequest::Representation
|
682
|
+
command.request_object = buffer_task_request_object
|
683
|
+
command.response_representation = Google::Apis::CloudtasksV2::BufferTaskResponse::Representation
|
684
|
+
command.response_class = Google::Apis::CloudtasksV2::BufferTaskResponse
|
685
|
+
command.params['queue'] = queue unless queue.nil?
|
686
|
+
command.params['taskId'] = task_id unless task_id.nil?
|
687
|
+
command.query['fields'] = fields unless fields.nil?
|
688
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
689
|
+
execute_or_queue_command(command, &block)
|
690
|
+
end
|
691
|
+
|
647
692
|
# Creates a task and adds it to a queue. Tasks cannot be updated after creation;
|
648
693
|
# there is no UpdateTask command. * The maximum task size is 100KB.
|
649
694
|
# @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.
|
4
|
+
version: 0.33.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: 2024-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.12.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.12.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2/v0.33.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: []
|
@@ -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.5.3
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Tasks API V2
|