google-apis-cloudtasks_v2beta2 0.18.0 → 0.21.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 +13 -0
- data/lib/google/apis/cloudtasks_v2beta2/classes.rb +425 -0
- data/lib/google/apis/cloudtasks_v2beta2/gem_version.rb +3 -3
- data/lib/google/apis/cloudtasks_v2beta2/representations.rb +160 -0
- data/lib/google/apis/cloudtasks_v2beta2/service.rb +37 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46a081c7edb883f19428df727e5e496d879892ceaf208197c9fcccb2fc5e5248
|
4
|
+
data.tar.gz: 3374a23a8733c110d52ae86d7fcffbc74e23e77928e24394386bed9f526a36dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b76ff9be0e418e4bc65f7923152e298307a9249bde90ba300a4719a0a1396f9c67534bec3110f5f2d7ac4c87ee473a98d6c7c5f9e7ec81de54013720897c2dcc
|
7
|
+
data.tar.gz: 1ddada86e1972614aab5ce52b1a4e29bb13b34013a165bc61d600949fce6de2666731bb1d9add45d278c7c42d57c167dad219a3e0e7a377c7c4fadc3b0825beb
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release history for google-apis-cloudtasks_v2beta2
|
2
2
|
|
3
|
+
### v0.21.0 (2022-07-14)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220713
|
6
|
+
* Regenerated using generator version 0.9.0
|
7
|
+
|
8
|
+
### v0.20.0 (2022-07-02)
|
9
|
+
|
10
|
+
* Regenerated using generator version 0.8.0
|
11
|
+
|
12
|
+
### v0.19.0 (2022-06-21)
|
13
|
+
|
14
|
+
* Regenerated using generator version 0.7.0
|
15
|
+
|
3
16
|
### v0.18.0 (2022-06-05)
|
4
17
|
|
5
18
|
* Regenerated using generator version 0.5.0
|
@@ -397,6 +397,61 @@ module Google
|
|
397
397
|
end
|
398
398
|
end
|
399
399
|
|
400
|
+
# Request message for BufferQueue.
|
401
|
+
class BufferQueueRequest
|
402
|
+
include Google::Apis::Core::Hashable
|
403
|
+
|
404
|
+
# Message that represents an arbitrary HTTP body. It should only be used for
|
405
|
+
# payload formats that can't be represented as JSON, such as raw binary or an
|
406
|
+
# HTML page. This message can be used both in streaming and non-streaming API
|
407
|
+
# methods in the request as well as the response. It can be used as a top-level
|
408
|
+
# request field, which is convenient if one wants to extract parameters from
|
409
|
+
# either the URL or HTTP template into the request fields and also want access
|
410
|
+
# to the raw HTTP body. Example: message GetResourceRequest ` // A unique
|
411
|
+
# request id. string request_id = 1; // The raw HTTP body is bound to this field.
|
412
|
+
# google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
|
413
|
+
# GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
|
414
|
+
# UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
|
415
|
+
# with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
|
416
|
+
# api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
|
417
|
+
# google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
|
418
|
+
# only changes how the request and response bodies are handled, all other
|
419
|
+
# features will continue to work unchanged.
|
420
|
+
# Corresponds to the JSON property `body`
|
421
|
+
# @return [Google::Apis::CloudtasksV2beta2::HttpBody]
|
422
|
+
attr_accessor :body
|
423
|
+
|
424
|
+
def initialize(**args)
|
425
|
+
update!(**args)
|
426
|
+
end
|
427
|
+
|
428
|
+
# Update properties of this object
|
429
|
+
def update!(**args)
|
430
|
+
@body = args[:body] if args.key?(:body)
|
431
|
+
end
|
432
|
+
end
|
433
|
+
|
434
|
+
# Response message for BufferQueue.
|
435
|
+
class BufferQueueResponse
|
436
|
+
include Google::Apis::Core::Hashable
|
437
|
+
|
438
|
+
# The name of the created task. For example: `projects/PROJECT_ID/locations/
|
439
|
+
# LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. TASK_ID is randomly generated and
|
440
|
+
# is unique within the queue.
|
441
|
+
# Corresponds to the JSON property `task`
|
442
|
+
# @return [String]
|
443
|
+
attr_accessor :task
|
444
|
+
|
445
|
+
def initialize(**args)
|
446
|
+
update!(**args)
|
447
|
+
end
|
448
|
+
|
449
|
+
# Update properties of this object
|
450
|
+
def update!(**args)
|
451
|
+
@task = args[:task] if args.key?(:task)
|
452
|
+
end
|
453
|
+
end
|
454
|
+
|
400
455
|
# Request message for canceling a lease using CancelLease.
|
401
456
|
class CancelLeaseRequest
|
402
457
|
include Google::Apis::Core::Hashable
|
@@ -576,6 +631,248 @@ module Google
|
|
576
631
|
end
|
577
632
|
end
|
578
633
|
|
634
|
+
# Defines a header message. A header can have a key and a value.
|
635
|
+
class Header
|
636
|
+
include Google::Apis::Core::Hashable
|
637
|
+
|
638
|
+
#
|
639
|
+
# Corresponds to the JSON property `key`
|
640
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
641
|
+
# @return [String]
|
642
|
+
attr_accessor :key
|
643
|
+
|
644
|
+
#
|
645
|
+
# Corresponds to the JSON property `value`
|
646
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
647
|
+
# @return [String]
|
648
|
+
attr_accessor :value
|
649
|
+
|
650
|
+
def initialize(**args)
|
651
|
+
update!(**args)
|
652
|
+
end
|
653
|
+
|
654
|
+
# Update properties of this object
|
655
|
+
def update!(**args)
|
656
|
+
@key = args[:key] if args.key?(:key)
|
657
|
+
@value = args[:value] if args.key?(:value)
|
658
|
+
end
|
659
|
+
end
|
660
|
+
|
661
|
+
# Wraps the Header object.
|
662
|
+
class HeaderOverride
|
663
|
+
include Google::Apis::Core::Hashable
|
664
|
+
|
665
|
+
# Defines a header message. A header can have a key and a value.
|
666
|
+
# Corresponds to the JSON property `header`
|
667
|
+
# @return [Google::Apis::CloudtasksV2beta2::Header]
|
668
|
+
attr_accessor :header
|
669
|
+
|
670
|
+
def initialize(**args)
|
671
|
+
update!(**args)
|
672
|
+
end
|
673
|
+
|
674
|
+
# Update properties of this object
|
675
|
+
def update!(**args)
|
676
|
+
@header = args[:header] if args.key?(:header)
|
677
|
+
end
|
678
|
+
end
|
679
|
+
|
680
|
+
# Message that represents an arbitrary HTTP body. It should only be used for
|
681
|
+
# payload formats that can't be represented as JSON, such as raw binary or an
|
682
|
+
# HTML page. This message can be used both in streaming and non-streaming API
|
683
|
+
# methods in the request as well as the response. It can be used as a top-level
|
684
|
+
# request field, which is convenient if one wants to extract parameters from
|
685
|
+
# either the URL or HTTP template into the request fields and also want access
|
686
|
+
# to the raw HTTP body. Example: message GetResourceRequest ` // A unique
|
687
|
+
# request id. string request_id = 1; // The raw HTTP body is bound to this field.
|
688
|
+
# google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
|
689
|
+
# GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
|
690
|
+
# UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
|
691
|
+
# with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
|
692
|
+
# api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
|
693
|
+
# google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
|
694
|
+
# only changes how the request and response bodies are handled, all other
|
695
|
+
# features will continue to work unchanged.
|
696
|
+
class HttpBody
|
697
|
+
include Google::Apis::Core::Hashable
|
698
|
+
|
699
|
+
# The HTTP Content-Type header value specifying the content type of the body.
|
700
|
+
# Corresponds to the JSON property `contentType`
|
701
|
+
# @return [String]
|
702
|
+
attr_accessor :content_type
|
703
|
+
|
704
|
+
# The HTTP request/response body as raw binary.
|
705
|
+
# Corresponds to the JSON property `data`
|
706
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
707
|
+
# @return [String]
|
708
|
+
attr_accessor :data
|
709
|
+
|
710
|
+
# Application specific response metadata. Must be set in the first response for
|
711
|
+
# streaming APIs.
|
712
|
+
# Corresponds to the JSON property `extensions`
|
713
|
+
# @return [Array<Hash<String,Object>>]
|
714
|
+
attr_accessor :extensions
|
715
|
+
|
716
|
+
def initialize(**args)
|
717
|
+
update!(**args)
|
718
|
+
end
|
719
|
+
|
720
|
+
# Update properties of this object
|
721
|
+
def update!(**args)
|
722
|
+
@content_type = args[:content_type] if args.key?(:content_type)
|
723
|
+
@data = args[:data] if args.key?(:data)
|
724
|
+
@extensions = args[:extensions] if args.key?(:extensions)
|
725
|
+
end
|
726
|
+
end
|
727
|
+
|
728
|
+
# HTTP request. The task will be pushed to the worker as an HTTP request. An
|
729
|
+
# HTTP request embodies a url, an http method, headers, body and authorization
|
730
|
+
# for the http task.
|
731
|
+
class HttpRequest
|
732
|
+
include Google::Apis::Core::Hashable
|
733
|
+
|
734
|
+
# HTTP request body. A request body is allowed only if the HTTP method is POST,
|
735
|
+
# PUT, or PATCH. It is an error to set body on a task with an incompatible
|
736
|
+
# HttpMethod.
|
737
|
+
# Corresponds to the JSON property `body`
|
738
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
739
|
+
# @return [String]
|
740
|
+
attr_accessor :body
|
741
|
+
|
742
|
+
# HTTP request headers. This map contains the header field names and values.
|
743
|
+
# Headers can be set when running the task is created or task is created. These
|
744
|
+
# headers represent a subset of the headers that will accompany the task's HTTP
|
745
|
+
# request. Some HTTP request headers will be ignored or replaced. A partial list
|
746
|
+
# of headers that will be ignored or replaced is: * Any header that is prefixed
|
747
|
+
# with "X-Google-Cloud-Tasks-" will be treated as service header. Service
|
748
|
+
# headers define properties of the task and are predefined in CloudTask. * Host:
|
749
|
+
# This will be computed by Cloud Tasks and derived from HttpRequest.url. *
|
750
|
+
# Content-Length: This will be computed by Cloud Tasks. * User-Agent: This will
|
751
|
+
# be set to `"Google-Cloud-Tasks"`. * `X-Google-*`: Google use only. * `X-
|
752
|
+
# AppEngine-*`: Google use only. `Content-Type` won't be set by Cloud Tasks. You
|
753
|
+
# can explicitly set `Content-Type` to a media type when the task is created.
|
754
|
+
# For example, `Content-Type` can be set to `"application/octet-stream"` or `"
|
755
|
+
# application/json"`. Headers which can have multiple values (according to
|
756
|
+
# RFC2616) can be specified using comma-separated values. The size of the
|
757
|
+
# headers must be less than 80KB.
|
758
|
+
# Corresponds to the JSON property `headers`
|
759
|
+
# @return [Hash<String,String>]
|
760
|
+
attr_accessor :headers
|
761
|
+
|
762
|
+
# The HTTP method to use for the request. The default is POST.
|
763
|
+
# Corresponds to the JSON property `httpMethod`
|
764
|
+
# @return [String]
|
765
|
+
attr_accessor :http_method
|
766
|
+
|
767
|
+
# Contains information needed for generating an [OAuth token](https://developers.
|
768
|
+
# google.com/identity/protocols/OAuth2). This type of authorization should
|
769
|
+
# generally only be used when calling Google APIs hosted on *.googleapis.com.
|
770
|
+
# Corresponds to the JSON property `oauthToken`
|
771
|
+
# @return [Google::Apis::CloudtasksV2beta2::OAuthToken]
|
772
|
+
attr_accessor :oauth_token
|
773
|
+
|
774
|
+
# Contains information needed for generating an [OpenID Connect token](https://
|
775
|
+
# developers.google.com/identity/protocols/OpenIDConnect). This type of
|
776
|
+
# authorization can be used for many scenarios, including calling Cloud Run, or
|
777
|
+
# endpoints where you intend to validate the token yourself.
|
778
|
+
# Corresponds to the JSON property `oidcToken`
|
779
|
+
# @return [Google::Apis::CloudtasksV2beta2::OidcToken]
|
780
|
+
attr_accessor :oidc_token
|
781
|
+
|
782
|
+
# Required. The full url path that the request will be sent to. This string must
|
783
|
+
# begin with either "http://" or "https://". Some examples are: `http://acme.com`
|
784
|
+
# and `https://acme.com/sales:8080`. Cloud Tasks will encode some characters
|
785
|
+
# for safety and compatibility. The maximum allowed URL length is 2083
|
786
|
+
# characters after encoding. The `Location` header response from a redirect
|
787
|
+
# response [`300` - `399`] may be followed. The redirect is not counted as a
|
788
|
+
# separate attempt.
|
789
|
+
# Corresponds to the JSON property `url`
|
790
|
+
# @return [String]
|
791
|
+
attr_accessor :url
|
792
|
+
|
793
|
+
def initialize(**args)
|
794
|
+
update!(**args)
|
795
|
+
end
|
796
|
+
|
797
|
+
# Update properties of this object
|
798
|
+
def update!(**args)
|
799
|
+
@body = args[:body] if args.key?(:body)
|
800
|
+
@headers = args[:headers] if args.key?(:headers)
|
801
|
+
@http_method = args[:http_method] if args.key?(:http_method)
|
802
|
+
@oauth_token = args[:oauth_token] if args.key?(:oauth_token)
|
803
|
+
@oidc_token = args[:oidc_token] if args.key?(:oidc_token)
|
804
|
+
@url = args[:url] if args.key?(:url)
|
805
|
+
end
|
806
|
+
end
|
807
|
+
|
808
|
+
# HTTP target. When specified as a Queue, all the tasks with [HttpRequest] will
|
809
|
+
# be overridden according to the target.
|
810
|
+
class HttpTarget
|
811
|
+
include Google::Apis::Core::Hashable
|
812
|
+
|
813
|
+
# HTTP target headers. This map contains the header field names and values.
|
814
|
+
# Headers will be set when running the task is created and/or task is created.
|
815
|
+
# These headers represent a subset of the headers that will accompany the task's
|
816
|
+
# HTTP request. Some HTTP request headers will be ignored or replaced. A partial
|
817
|
+
# list of headers that will be ignored or replaced is: * Any header that is
|
818
|
+
# prefixed with "X-Google-Cloud-Tasks-" will be treated as service header.
|
819
|
+
# Service headers define properties of the task and are predefined in CloudTask.
|
820
|
+
# * Host: This will be computed by Cloud Tasks and derived from HttpRequest.url.
|
821
|
+
# * Content-Length: This will be computed by Cloud Tasks. * User-Agent: This
|
822
|
+
# will be set to `"Google-Cloud-Tasks"`. * `X-Google-*`: Google use only. * `X-
|
823
|
+
# AppEngine-*`: Google use only. `Content-Type` won't be set by Cloud Tasks. You
|
824
|
+
# can explicitly set `Content-Type` to a media type when the task is created.
|
825
|
+
# For example, `Content-Type` can be set to `"application/octet-stream"` or `"
|
826
|
+
# application/json"`. Headers which can have multiple values (according to
|
827
|
+
# RFC2616) can be specified using comma-separated values. The size of the
|
828
|
+
# headers must be less than 80KB. Queue-level headers to override headers of all
|
829
|
+
# the tasks in the queue.
|
830
|
+
# Corresponds to the JSON property `headerOverrides`
|
831
|
+
# @return [Array<Google::Apis::CloudtasksV2beta2::HeaderOverride>]
|
832
|
+
attr_accessor :header_overrides
|
833
|
+
|
834
|
+
# The HTTP method to use for the request. When specified, it will override
|
835
|
+
# HttpRequest for the task. Note that if the value is set to HttpMethod the
|
836
|
+
# HttpRequest of the task will be ignored at execution time.
|
837
|
+
# Corresponds to the JSON property `httpMethod`
|
838
|
+
# @return [String]
|
839
|
+
attr_accessor :http_method
|
840
|
+
|
841
|
+
# Contains information needed for generating an [OAuth token](https://developers.
|
842
|
+
# google.com/identity/protocols/OAuth2). This type of authorization should
|
843
|
+
# generally only be used when calling Google APIs hosted on *.googleapis.com.
|
844
|
+
# Corresponds to the JSON property `oauthToken`
|
845
|
+
# @return [Google::Apis::CloudtasksV2beta2::OAuthToken]
|
846
|
+
attr_accessor :oauth_token
|
847
|
+
|
848
|
+
# Contains information needed for generating an [OpenID Connect token](https://
|
849
|
+
# developers.google.com/identity/protocols/OpenIDConnect). This type of
|
850
|
+
# authorization can be used for many scenarios, including calling Cloud Run, or
|
851
|
+
# endpoints where you intend to validate the token yourself.
|
852
|
+
# Corresponds to the JSON property `oidcToken`
|
853
|
+
# @return [Google::Apis::CloudtasksV2beta2::OidcToken]
|
854
|
+
attr_accessor :oidc_token
|
855
|
+
|
856
|
+
# Uri Override. When specified, all the HTTP tasks inside the queue will be
|
857
|
+
# partially or fully overridden depending on the configured values.
|
858
|
+
# Corresponds to the JSON property `uriOverride`
|
859
|
+
# @return [Google::Apis::CloudtasksV2beta2::UriOverride]
|
860
|
+
attr_accessor :uri_override
|
861
|
+
|
862
|
+
def initialize(**args)
|
863
|
+
update!(**args)
|
864
|
+
end
|
865
|
+
|
866
|
+
# Update properties of this object
|
867
|
+
def update!(**args)
|
868
|
+
@header_overrides = args[:header_overrides] if args.key?(:header_overrides)
|
869
|
+
@http_method = args[:http_method] if args.key?(:http_method)
|
870
|
+
@oauth_token = args[:oauth_token] if args.key?(:oauth_token)
|
871
|
+
@oidc_token = args[:oidc_token] if args.key?(:oidc_token)
|
872
|
+
@uri_override = args[:uri_override] if args.key?(:uri_override)
|
873
|
+
end
|
874
|
+
end
|
875
|
+
|
579
876
|
# Request message for leasing tasks using LeaseTasks.
|
580
877
|
class LeaseTasksRequest
|
581
878
|
include Google::Apis::Core::Hashable
|
@@ -787,6 +1084,69 @@ module Google
|
|
787
1084
|
end
|
788
1085
|
end
|
789
1086
|
|
1087
|
+
# Contains information needed for generating an [OAuth token](https://developers.
|
1088
|
+
# google.com/identity/protocols/OAuth2). This type of authorization should
|
1089
|
+
# generally only be used when calling Google APIs hosted on *.googleapis.com.
|
1090
|
+
class OAuthToken
|
1091
|
+
include Google::Apis::Core::Hashable
|
1092
|
+
|
1093
|
+
# OAuth scope to be used for generating OAuth access token. If not specified, "
|
1094
|
+
# https://www.googleapis.com/auth/cloud-platform" will be used.
|
1095
|
+
# Corresponds to the JSON property `scope`
|
1096
|
+
# @return [String]
|
1097
|
+
attr_accessor :scope
|
1098
|
+
|
1099
|
+
# [Service account email](https://cloud.google.com/iam/docs/service-accounts) to
|
1100
|
+
# be used for generating OAuth token. The service account must be within the
|
1101
|
+
# same project as the queue. The caller must have iam.serviceAccounts.actAs
|
1102
|
+
# permission for the service account.
|
1103
|
+
# Corresponds to the JSON property `serviceAccountEmail`
|
1104
|
+
# @return [String]
|
1105
|
+
attr_accessor :service_account_email
|
1106
|
+
|
1107
|
+
def initialize(**args)
|
1108
|
+
update!(**args)
|
1109
|
+
end
|
1110
|
+
|
1111
|
+
# Update properties of this object
|
1112
|
+
def update!(**args)
|
1113
|
+
@scope = args[:scope] if args.key?(:scope)
|
1114
|
+
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
|
1115
|
+
end
|
1116
|
+
end
|
1117
|
+
|
1118
|
+
# Contains information needed for generating an [OpenID Connect token](https://
|
1119
|
+
# developers.google.com/identity/protocols/OpenIDConnect). This type of
|
1120
|
+
# authorization can be used for many scenarios, including calling Cloud Run, or
|
1121
|
+
# endpoints where you intend to validate the token yourself.
|
1122
|
+
class OidcToken
|
1123
|
+
include Google::Apis::Core::Hashable
|
1124
|
+
|
1125
|
+
# Audience to be used when generating OIDC token. If not specified, the URI
|
1126
|
+
# specified in target will be used.
|
1127
|
+
# Corresponds to the JSON property `audience`
|
1128
|
+
# @return [String]
|
1129
|
+
attr_accessor :audience
|
1130
|
+
|
1131
|
+
# [Service account email](https://cloud.google.com/iam/docs/service-accounts) to
|
1132
|
+
# be used for generating OIDC token. The service account must be within the same
|
1133
|
+
# project as the queue. The caller must have iam.serviceAccounts.actAs
|
1134
|
+
# permission for the service account.
|
1135
|
+
# Corresponds to the JSON property `serviceAccountEmail`
|
1136
|
+
# @return [String]
|
1137
|
+
attr_accessor :service_account_email
|
1138
|
+
|
1139
|
+
def initialize(**args)
|
1140
|
+
update!(**args)
|
1141
|
+
end
|
1142
|
+
|
1143
|
+
# Update properties of this object
|
1144
|
+
def update!(**args)
|
1145
|
+
@audience = args[:audience] if args.key?(:audience)
|
1146
|
+
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
|
1147
|
+
end
|
1148
|
+
end
|
1149
|
+
|
790
1150
|
# Request message for PauseQueue.
|
791
1151
|
class PauseQueueRequest
|
792
1152
|
include Google::Apis::Core::Hashable
|
@@ -969,6 +1329,12 @@ module Google
|
|
969
1329
|
# @return [Google::Apis::CloudtasksV2beta2::AppEngineHttpTarget]
|
970
1330
|
attr_accessor :app_engine_http_target
|
971
1331
|
|
1332
|
+
# HTTP target. When specified as a Queue, all the tasks with [HttpRequest] will
|
1333
|
+
# be overridden according to the target.
|
1334
|
+
# Corresponds to the JSON property `httpTarget`
|
1335
|
+
# @return [Google::Apis::CloudtasksV2beta2::HttpTarget]
|
1336
|
+
attr_accessor :http_target
|
1337
|
+
|
972
1338
|
# Caller-specified and required in CreateQueue, after which it becomes output
|
973
1339
|
# only. The queue name. The queue name must have the following format: `projects/
|
974
1340
|
# PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * `PROJECT_ID` can contain
|
@@ -1054,6 +1420,7 @@ module Google
|
|
1054
1420
|
# Update properties of this object
|
1055
1421
|
def update!(**args)
|
1056
1422
|
@app_engine_http_target = args[:app_engine_http_target] if args.key?(:app_engine_http_target)
|
1423
|
+
@http_target = args[:http_target] if args.key?(:http_target)
|
1057
1424
|
@name = args[:name] if args.key?(:name)
|
1058
1425
|
@pull_target = args[:pull_target] if args.key?(:pull_target)
|
1059
1426
|
@purge_time = args[:purge_time] if args.key?(:purge_time)
|
@@ -1477,6 +1844,13 @@ module Google
|
|
1477
1844
|
# @return [String]
|
1478
1845
|
attr_accessor :create_time
|
1479
1846
|
|
1847
|
+
# HTTP request. The task will be pushed to the worker as an HTTP request. An
|
1848
|
+
# HTTP request embodies a url, an http method, headers, body and authorization
|
1849
|
+
# for the http task.
|
1850
|
+
# Corresponds to the JSON property `httpRequest`
|
1851
|
+
# @return [Google::Apis::CloudtasksV2beta2::HttpRequest]
|
1852
|
+
attr_accessor :http_request
|
1853
|
+
|
1480
1854
|
# Optionally caller-specified in CreateTask. The task name. The task name must
|
1481
1855
|
# have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/
|
1482
1856
|
# QUEUE_ID/tasks/TASK_ID` * `PROJECT_ID` can contain letters ([A-Za-z]), numbers
|
@@ -1528,6 +1902,7 @@ module Google
|
|
1528
1902
|
def update!(**args)
|
1529
1903
|
@app_engine_http_request = args[:app_engine_http_request] if args.key?(:app_engine_http_request)
|
1530
1904
|
@create_time = args[:create_time] if args.key?(:create_time)
|
1905
|
+
@http_request = args[:http_request] if args.key?(:http_request)
|
1531
1906
|
@name = args[:name] if args.key?(:name)
|
1532
1907
|
@pull_message = args[:pull_message] if args.key?(:pull_message)
|
1533
1908
|
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
@@ -1614,6 +1989,56 @@ module Google
|
|
1614
1989
|
@permissions = args[:permissions] if args.key?(:permissions)
|
1615
1990
|
end
|
1616
1991
|
end
|
1992
|
+
|
1993
|
+
# Uri Override. When specified, all the HTTP tasks inside the queue will be
|
1994
|
+
# partially or fully overridden depending on the configured values.
|
1995
|
+
class UriOverride
|
1996
|
+
include Google::Apis::Core::Hashable
|
1997
|
+
|
1998
|
+
# Host override. When specified, the host part of url will be overridden. For
|
1999
|
+
# example, if the original Uri is "https://www.google.com", and host is set to "
|
2000
|
+
# example.net", the overridden Uri will be "https://example.net".
|
2001
|
+
# Corresponds to the JSON property `host`
|
2002
|
+
# @return [String]
|
2003
|
+
attr_accessor :host
|
2004
|
+
|
2005
|
+
# Uri path. Will be used as the path for the current Uri (replaces any existing
|
2006
|
+
# path of the task url).
|
2007
|
+
# Corresponds to the JSON property `path`
|
2008
|
+
# @return [String]
|
2009
|
+
attr_accessor :path
|
2010
|
+
|
2011
|
+
# Port override. When specified, the port part of Uri will be replaced by the
|
2012
|
+
# provided value. For instance, for a Uri http://www.google.com/foo and port=123
|
2013
|
+
# the overridden Uri becomes http://www.google.com:123/foo.
|
2014
|
+
# Corresponds to the JSON property `port`
|
2015
|
+
# @return [Fixnum]
|
2016
|
+
attr_accessor :port
|
2017
|
+
|
2018
|
+
# Uri Query. Will replace the query part of the task uri.
|
2019
|
+
# Corresponds to the JSON property `query`
|
2020
|
+
# @return [String]
|
2021
|
+
attr_accessor :query
|
2022
|
+
|
2023
|
+
# Scheme override. When specified, the Uri scheme is replaced by the provided
|
2024
|
+
# value.
|
2025
|
+
# Corresponds to the JSON property `scheme`
|
2026
|
+
# @return [String]
|
2027
|
+
attr_accessor :scheme
|
2028
|
+
|
2029
|
+
def initialize(**args)
|
2030
|
+
update!(**args)
|
2031
|
+
end
|
2032
|
+
|
2033
|
+
# Update properties of this object
|
2034
|
+
def update!(**args)
|
2035
|
+
@host = args[:host] if args.key?(:host)
|
2036
|
+
@path = args[:path] if args.key?(:path)
|
2037
|
+
@port = args[:port] if args.key?(:port)
|
2038
|
+
@query = args[:query] if args.key?(:query)
|
2039
|
+
@scheme = args[:scheme] if args.key?(:scheme)
|
2040
|
+
end
|
2041
|
+
end
|
1617
2042
|
end
|
1618
2043
|
end
|
1619
2044
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudtasksV2beta2
|
18
18
|
# Version of the google-apis-cloudtasks_v2beta2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.21.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.9.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220713"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -58,6 +58,18 @@ module Google
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
+
class BufferQueueRequest
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class BufferQueueResponse
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
61
73
|
class CancelLeaseRequest
|
62
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
75
|
|
@@ -94,6 +106,36 @@ module Google
|
|
94
106
|
include Google::Apis::Core::JsonObjectSupport
|
95
107
|
end
|
96
108
|
|
109
|
+
class Header
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class HeaderOverride
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class HttpBody
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class HttpRequest
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class HttpTarget
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
97
139
|
class LeaseTasksRequest
|
98
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
141
|
|
@@ -130,6 +172,18 @@ module Google
|
|
130
172
|
include Google::Apis::Core::JsonObjectSupport
|
131
173
|
end
|
132
174
|
|
175
|
+
class OAuthToken
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
181
|
+
class OidcToken
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
133
187
|
class PauseQueueRequest
|
134
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
189
|
|
@@ -238,6 +292,12 @@ module Google
|
|
238
292
|
include Google::Apis::Core::JsonObjectSupport
|
239
293
|
end
|
240
294
|
|
295
|
+
class UriOverride
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
+
|
298
|
+
include Google::Apis::Core::JsonObjectSupport
|
299
|
+
end
|
300
|
+
|
241
301
|
class AcknowledgeTaskRequest
|
242
302
|
# @private
|
243
303
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -296,6 +356,21 @@ module Google
|
|
296
356
|
end
|
297
357
|
end
|
298
358
|
|
359
|
+
class BufferQueueRequest
|
360
|
+
# @private
|
361
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
362
|
+
property :body, as: 'body', class: Google::Apis::CloudtasksV2beta2::HttpBody, decorator: Google::Apis::CloudtasksV2beta2::HttpBody::Representation
|
363
|
+
|
364
|
+
end
|
365
|
+
end
|
366
|
+
|
367
|
+
class BufferQueueResponse
|
368
|
+
# @private
|
369
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
370
|
+
property :task, as: 'task'
|
371
|
+
end
|
372
|
+
end
|
373
|
+
|
299
374
|
class CancelLeaseRequest
|
300
375
|
# @private
|
301
376
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -344,6 +419,60 @@ module Google
|
|
344
419
|
end
|
345
420
|
end
|
346
421
|
|
422
|
+
class Header
|
423
|
+
# @private
|
424
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
425
|
+
property :key, :base64 => true, as: 'key'
|
426
|
+
property :value, :base64 => true, as: 'value'
|
427
|
+
end
|
428
|
+
end
|
429
|
+
|
430
|
+
class HeaderOverride
|
431
|
+
# @private
|
432
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
433
|
+
property :header, as: 'header', class: Google::Apis::CloudtasksV2beta2::Header, decorator: Google::Apis::CloudtasksV2beta2::Header::Representation
|
434
|
+
|
435
|
+
end
|
436
|
+
end
|
437
|
+
|
438
|
+
class HttpBody
|
439
|
+
# @private
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
441
|
+
property :content_type, as: 'contentType'
|
442
|
+
property :data, :base64 => true, as: 'data'
|
443
|
+
collection :extensions, as: 'extensions'
|
444
|
+
end
|
445
|
+
end
|
446
|
+
|
447
|
+
class HttpRequest
|
448
|
+
# @private
|
449
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
450
|
+
property :body, :base64 => true, as: 'body'
|
451
|
+
hash :headers, as: 'headers'
|
452
|
+
property :http_method, as: 'httpMethod'
|
453
|
+
property :oauth_token, as: 'oauthToken', class: Google::Apis::CloudtasksV2beta2::OAuthToken, decorator: Google::Apis::CloudtasksV2beta2::OAuthToken::Representation
|
454
|
+
|
455
|
+
property :oidc_token, as: 'oidcToken', class: Google::Apis::CloudtasksV2beta2::OidcToken, decorator: Google::Apis::CloudtasksV2beta2::OidcToken::Representation
|
456
|
+
|
457
|
+
property :url, as: 'url'
|
458
|
+
end
|
459
|
+
end
|
460
|
+
|
461
|
+
class HttpTarget
|
462
|
+
# @private
|
463
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
464
|
+
collection :header_overrides, as: 'headerOverrides', class: Google::Apis::CloudtasksV2beta2::HeaderOverride, decorator: Google::Apis::CloudtasksV2beta2::HeaderOverride::Representation
|
465
|
+
|
466
|
+
property :http_method, as: 'httpMethod'
|
467
|
+
property :oauth_token, as: 'oauthToken', class: Google::Apis::CloudtasksV2beta2::OAuthToken, decorator: Google::Apis::CloudtasksV2beta2::OAuthToken::Representation
|
468
|
+
|
469
|
+
property :oidc_token, as: 'oidcToken', class: Google::Apis::CloudtasksV2beta2::OidcToken, decorator: Google::Apis::CloudtasksV2beta2::OidcToken::Representation
|
470
|
+
|
471
|
+
property :uri_override, as: 'uriOverride', class: Google::Apis::CloudtasksV2beta2::UriOverride, decorator: Google::Apis::CloudtasksV2beta2::UriOverride::Representation
|
472
|
+
|
473
|
+
end
|
474
|
+
end
|
475
|
+
|
347
476
|
class LeaseTasksRequest
|
348
477
|
# @private
|
349
478
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -400,6 +529,22 @@ module Google
|
|
400
529
|
end
|
401
530
|
end
|
402
531
|
|
532
|
+
class OAuthToken
|
533
|
+
# @private
|
534
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
535
|
+
property :scope, as: 'scope'
|
536
|
+
property :service_account_email, as: 'serviceAccountEmail'
|
537
|
+
end
|
538
|
+
end
|
539
|
+
|
540
|
+
class OidcToken
|
541
|
+
# @private
|
542
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
543
|
+
property :audience, as: 'audience'
|
544
|
+
property :service_account_email, as: 'serviceAccountEmail'
|
545
|
+
end
|
546
|
+
end
|
547
|
+
|
403
548
|
class PauseQueueRequest
|
404
549
|
# @private
|
405
550
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -441,6 +586,8 @@ module Google
|
|
441
586
|
class Representation < Google::Apis::Core::JsonRepresentation
|
442
587
|
property :app_engine_http_target, as: 'appEngineHttpTarget', class: Google::Apis::CloudtasksV2beta2::AppEngineHttpTarget, decorator: Google::Apis::CloudtasksV2beta2::AppEngineHttpTarget::Representation
|
443
588
|
|
589
|
+
property :http_target, as: 'httpTarget', class: Google::Apis::CloudtasksV2beta2::HttpTarget, decorator: Google::Apis::CloudtasksV2beta2::HttpTarget::Representation
|
590
|
+
|
444
591
|
property :name, as: 'name'
|
445
592
|
property :pull_target, as: 'pullTarget', class: Google::Apis::CloudtasksV2beta2::PullTarget, decorator: Google::Apis::CloudtasksV2beta2::PullTarget::Representation
|
446
593
|
|
@@ -534,6 +681,8 @@ module Google
|
|
534
681
|
property :app_engine_http_request, as: 'appEngineHttpRequest', class: Google::Apis::CloudtasksV2beta2::AppEngineHttpRequest, decorator: Google::Apis::CloudtasksV2beta2::AppEngineHttpRequest::Representation
|
535
682
|
|
536
683
|
property :create_time, as: 'createTime'
|
684
|
+
property :http_request, as: 'httpRequest', class: Google::Apis::CloudtasksV2beta2::HttpRequest, decorator: Google::Apis::CloudtasksV2beta2::HttpRequest::Representation
|
685
|
+
|
537
686
|
property :name, as: 'name'
|
538
687
|
property :pull_message, as: 'pullMessage', class: Google::Apis::CloudtasksV2beta2::PullMessage, decorator: Google::Apis::CloudtasksV2beta2::PullMessage::Representation
|
539
688
|
|
@@ -569,6 +718,17 @@ module Google
|
|
569
718
|
collection :permissions, as: 'permissions'
|
570
719
|
end
|
571
720
|
end
|
721
|
+
|
722
|
+
class UriOverride
|
723
|
+
# @private
|
724
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
725
|
+
property :host, as: 'host'
|
726
|
+
property :path, as: 'path'
|
727
|
+
property :port, :numeric_string => true, as: 'port'
|
728
|
+
property :query, as: 'query'
|
729
|
+
property :scheme, as: 'scheme'
|
730
|
+
end
|
731
|
+
end
|
572
732
|
end
|
573
733
|
end
|
574
734
|
end
|
@@ -122,6 +122,43 @@ module Google
|
|
122
122
|
execute_or_queue_command(command, &block)
|
123
123
|
end
|
124
124
|
|
125
|
+
# Creates and buffers a new task without the need to explicitly define a Task
|
126
|
+
# message. The queue must be an http queue (i.e., must have HTTP target). This
|
127
|
+
# method is used for a simplified application of Cloud Tasks queues in buffer
|
128
|
+
# and rate limitting HTTP requests.
|
129
|
+
# @param [String] name
|
130
|
+
# Required. The queue name. For example: `projects/PROJECT_ID/locations/
|
131
|
+
# LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
|
132
|
+
# @param [Google::Apis::CloudtasksV2beta2::BufferQueueRequest] buffer_queue_request_object
|
133
|
+
# @param [String] fields
|
134
|
+
# Selector specifying which fields to include in a partial response.
|
135
|
+
# @param [String] quota_user
|
136
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
137
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
138
|
+
# @param [Google::Apis::RequestOptions] options
|
139
|
+
# Request-specific options
|
140
|
+
#
|
141
|
+
# @yield [result, err] Result & error if block supplied
|
142
|
+
# @yieldparam result [Google::Apis::CloudtasksV2beta2::BufferQueueResponse] parsed result object
|
143
|
+
# @yieldparam err [StandardError] error object if request failed
|
144
|
+
#
|
145
|
+
# @return [Google::Apis::CloudtasksV2beta2::BufferQueueResponse]
|
146
|
+
#
|
147
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
148
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
149
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
150
|
+
def buffer_queue(name, buffer_queue_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
151
|
+
command = make_simple_command(:post, 'v2beta2/{+name}:buffer', options)
|
152
|
+
command.request_representation = Google::Apis::CloudtasksV2beta2::BufferQueueRequest::Representation
|
153
|
+
command.request_object = buffer_queue_request_object
|
154
|
+
command.response_representation = Google::Apis::CloudtasksV2beta2::BufferQueueResponse::Representation
|
155
|
+
command.response_class = Google::Apis::CloudtasksV2beta2::BufferQueueResponse
|
156
|
+
command.params['name'] = name unless name.nil?
|
157
|
+
command.query['fields'] = fields unless fields.nil?
|
158
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
159
|
+
execute_or_queue_command(command, &block)
|
160
|
+
end
|
161
|
+
|
125
162
|
# Creates a queue. Queues created with this method allow tasks to live for a
|
126
163
|
# maximum of 31 days. After a task is 31 days old, the task will be deleted
|
127
164
|
# regardless of whether it was dispatched or not. WARNING: Using this method may
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudtasks_v2beta2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.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-
|
11
|
+
date: 2022-07-18 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.7'
|
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.7'
|
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_v2beta2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2beta2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2beta2/v0.21.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudtasks_v2beta2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|