google-cloud-tasks-v2beta3 0.12.1 → 0.12.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks/client.rb +0 -118
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks/rest/client.rb +0 -108
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks/rest/service_stub.rb +0 -61
- data/lib/google/cloud/tasks/v2beta3/cloudtasks_pb.rb +2 -6
- data/lib/google/cloud/tasks/v2beta3/cloudtasks_services_pb.rb +0 -12
- data/lib/google/cloud/tasks/v2beta3/queue_pb.rb +2 -2
- data/lib/google/cloud/tasks/v2beta3/target_pb.rb +1 -1
- data/lib/google/cloud/tasks/v2beta3/task_pb.rb +1 -1
- data/lib/google/cloud/tasks/v2beta3/version.rb +1 -1
- data/proto_docs/google/cloud/tasks/v2beta3/cloudtasks.rb +0 -33
- data/proto_docs/google/cloud/tasks/v2beta3/target.rb +1 -1
- data/proto_docs/google/protobuf/any.rb +2 -1
- metadata +2 -3
- data/proto_docs/google/api/httpbody.rb +0 -80
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05dede5dc1979f3888c2f2070e216d2bd4488f928417c756c134a2ff92146963
|
4
|
+
data.tar.gz: 4ab8d02532297c0189227f644c3b3888b014003df39a0ad5f79e00c87f647c73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c7ba716b4eaf26d12ff82bebe1ba5315cfb06010678f0a01e10ffba4094e1c1fc113952fa9ec72bb7c3631f0aaf4ac254927bcb5755cd545893e613ece6060b
|
7
|
+
data.tar.gz: 13045cdcb5dcb73c22f34aea359efaa758444299ce94b22b5e57240d93cb79866d4f8b58876f4391364de87a53dbd0fd7db2bf6576f0a6ddb7fb86bdeebffd3c
|
@@ -125,8 +125,6 @@ module Google
|
|
125
125
|
|
126
126
|
default_config.rpcs.run_task.timeout = 20.0
|
127
127
|
|
128
|
-
default_config.rpcs.buffer_task.timeout = 20.0
|
129
|
-
|
130
128
|
default_config
|
131
129
|
end
|
132
130
|
yield @configure if block_given?
|
@@ -1942,115 +1940,6 @@ module Google
|
|
1942
1940
|
raise ::Google::Cloud::Error.from_error(e)
|
1943
1941
|
end
|
1944
1942
|
|
1945
|
-
##
|
1946
|
-
# Creates and buffers a new task without the need to explicitly define a Task
|
1947
|
-
# message. The queue must have [HTTP
|
1948
|
-
# target][google.cloud.tasks.v2beta3.HttpTarget]. To create the task with a
|
1949
|
-
# custom ID, use the following format and set TASK_ID to your desired ID:
|
1950
|
-
# projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer
|
1951
|
-
# To create the task with an automatically generated ID, use the following
|
1952
|
-
# format:
|
1953
|
-
# projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer.
|
1954
|
-
# Note: This feature is in its experimental stage. You must request access to
|
1955
|
-
# the API through the [Cloud Tasks BufferTask Experiment Signup
|
1956
|
-
# form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
|
1957
|
-
#
|
1958
|
-
# @overload buffer_task(request, options = nil)
|
1959
|
-
# Pass arguments to `buffer_task` via a request object, either of type
|
1960
|
-
# {::Google::Cloud::Tasks::V2beta3::BufferTaskRequest} or an equivalent Hash.
|
1961
|
-
#
|
1962
|
-
# @param request [::Google::Cloud::Tasks::V2beta3::BufferTaskRequest, ::Hash]
|
1963
|
-
# A request object representing the call parameters. Required. To specify no
|
1964
|
-
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1965
|
-
# @param options [::Gapic::CallOptions, ::Hash]
|
1966
|
-
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1967
|
-
#
|
1968
|
-
# @overload buffer_task(queue: nil, task_id: nil, body: nil)
|
1969
|
-
# Pass arguments to `buffer_task` via keyword arguments. Note that at
|
1970
|
-
# least one keyword argument is required. To specify no parameters, or to keep all
|
1971
|
-
# the default parameter values, pass an empty Hash as a request object (see above).
|
1972
|
-
#
|
1973
|
-
# @param queue [::String]
|
1974
|
-
# Required. The parent queue name. For example:
|
1975
|
-
# projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
1976
|
-
#
|
1977
|
-
# The queue must already exist.
|
1978
|
-
# @param task_id [::String]
|
1979
|
-
# Optional. Task ID for the task being created. If not provided, a random
|
1980
|
-
# task ID is assigned to the task.
|
1981
|
-
# @param body [::Google::Api::HttpBody, ::Hash]
|
1982
|
-
# Optional. Body of the HTTP request.
|
1983
|
-
#
|
1984
|
-
# The body can take any generic value. The value is written to the
|
1985
|
-
# [HttpRequest][payload] of the [Task].
|
1986
|
-
#
|
1987
|
-
# @yield [response, operation] Access the result along with the RPC operation
|
1988
|
-
# @yieldparam response [::Google::Cloud::Tasks::V2beta3::BufferTaskResponse]
|
1989
|
-
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1990
|
-
#
|
1991
|
-
# @return [::Google::Cloud::Tasks::V2beta3::BufferTaskResponse]
|
1992
|
-
#
|
1993
|
-
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1994
|
-
#
|
1995
|
-
# @example Basic example
|
1996
|
-
# require "google/cloud/tasks/v2beta3"
|
1997
|
-
#
|
1998
|
-
# # Create a client object. The client can be reused for multiple calls.
|
1999
|
-
# client = Google::Cloud::Tasks::V2beta3::CloudTasks::Client.new
|
2000
|
-
#
|
2001
|
-
# # Create a request. To set request fields, pass in keyword arguments.
|
2002
|
-
# request = Google::Cloud::Tasks::V2beta3::BufferTaskRequest.new
|
2003
|
-
#
|
2004
|
-
# # Call the buffer_task method.
|
2005
|
-
# result = client.buffer_task request
|
2006
|
-
#
|
2007
|
-
# # The returned object is of type Google::Cloud::Tasks::V2beta3::BufferTaskResponse.
|
2008
|
-
# p result
|
2009
|
-
#
|
2010
|
-
def buffer_task request, options = nil
|
2011
|
-
raise ::ArgumentError, "request must be provided" if request.nil?
|
2012
|
-
|
2013
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Tasks::V2beta3::BufferTaskRequest
|
2014
|
-
|
2015
|
-
# Converts hash and nil to an options object
|
2016
|
-
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2017
|
-
|
2018
|
-
# Customize the options with defaults
|
2019
|
-
metadata = @config.rpcs.buffer_task.metadata.to_h
|
2020
|
-
|
2021
|
-
# Set x-goog-api-client and x-goog-user-project headers
|
2022
|
-
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2023
|
-
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2024
|
-
gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION
|
2025
|
-
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2026
|
-
|
2027
|
-
header_params = {}
|
2028
|
-
if request.queue
|
2029
|
-
header_params["queue"] = request.queue
|
2030
|
-
end
|
2031
|
-
if request.task_id
|
2032
|
-
header_params["task_id"] = request.task_id
|
2033
|
-
end
|
2034
|
-
|
2035
|
-
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2036
|
-
metadata[:"x-goog-request-params"] ||= request_params_header
|
2037
|
-
|
2038
|
-
options.apply_defaults timeout: @config.rpcs.buffer_task.timeout,
|
2039
|
-
metadata: metadata,
|
2040
|
-
retry_policy: @config.rpcs.buffer_task.retry_policy
|
2041
|
-
|
2042
|
-
options.apply_defaults timeout: @config.timeout,
|
2043
|
-
metadata: @config.metadata,
|
2044
|
-
retry_policy: @config.retry_policy
|
2045
|
-
|
2046
|
-
@cloud_tasks_stub.call_rpc :buffer_task, request, options: options do |response, operation|
|
2047
|
-
yield response, operation if block_given?
|
2048
|
-
return response
|
2049
|
-
end
|
2050
|
-
rescue ::GRPC::BadStatus => e
|
2051
|
-
raise ::Google::Cloud::Error.from_error(e)
|
2052
|
-
end
|
2053
|
-
|
2054
1943
|
##
|
2055
1944
|
# Configuration class for the CloudTasks API.
|
2056
1945
|
#
|
@@ -2284,11 +2173,6 @@ module Google
|
|
2284
2173
|
# @return [::Gapic::Config::Method]
|
2285
2174
|
#
|
2286
2175
|
attr_reader :run_task
|
2287
|
-
##
|
2288
|
-
# RPC-specific configuration for `buffer_task`
|
2289
|
-
# @return [::Gapic::Config::Method]
|
2290
|
-
#
|
2291
|
-
attr_reader :buffer_task
|
2292
2176
|
|
2293
2177
|
# @private
|
2294
2178
|
def initialize parent_rpcs = nil
|
@@ -2324,8 +2208,6 @@ module Google
|
|
2324
2208
|
@delete_task = ::Gapic::Config::Method.new delete_task_config
|
2325
2209
|
run_task_config = parent_rpcs.run_task if parent_rpcs.respond_to? :run_task
|
2326
2210
|
@run_task = ::Gapic::Config::Method.new run_task_config
|
2327
|
-
buffer_task_config = parent_rpcs.buffer_task if parent_rpcs.respond_to? :buffer_task
|
2328
|
-
@buffer_task = ::Gapic::Config::Method.new buffer_task_config
|
2329
2211
|
|
2330
2212
|
yield self if block_given?
|
2331
2213
|
end
|
@@ -127,8 +127,6 @@ module Google
|
|
127
127
|
|
128
128
|
default_config.rpcs.run_task.timeout = 20.0
|
129
129
|
|
130
|
-
default_config.rpcs.buffer_task.timeout = 20.0
|
131
|
-
|
132
130
|
default_config
|
133
131
|
end
|
134
132
|
yield @configure if block_given?
|
@@ -1824,105 +1822,6 @@ module Google
|
|
1824
1822
|
raise ::Google::Cloud::Error.from_error(e)
|
1825
1823
|
end
|
1826
1824
|
|
1827
|
-
##
|
1828
|
-
# Creates and buffers a new task without the need to explicitly define a Task
|
1829
|
-
# message. The queue must have [HTTP
|
1830
|
-
# target][google.cloud.tasks.v2beta3.HttpTarget]. To create the task with a
|
1831
|
-
# custom ID, use the following format and set TASK_ID to your desired ID:
|
1832
|
-
# projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer
|
1833
|
-
# To create the task with an automatically generated ID, use the following
|
1834
|
-
# format:
|
1835
|
-
# projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer.
|
1836
|
-
# Note: This feature is in its experimental stage. You must request access to
|
1837
|
-
# the API through the [Cloud Tasks BufferTask Experiment Signup
|
1838
|
-
# form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
|
1839
|
-
#
|
1840
|
-
# @overload buffer_task(request, options = nil)
|
1841
|
-
# Pass arguments to `buffer_task` via a request object, either of type
|
1842
|
-
# {::Google::Cloud::Tasks::V2beta3::BufferTaskRequest} or an equivalent Hash.
|
1843
|
-
#
|
1844
|
-
# @param request [::Google::Cloud::Tasks::V2beta3::BufferTaskRequest, ::Hash]
|
1845
|
-
# A request object representing the call parameters. Required. To specify no
|
1846
|
-
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1847
|
-
# @param options [::Gapic::CallOptions, ::Hash]
|
1848
|
-
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1849
|
-
#
|
1850
|
-
# @overload buffer_task(queue: nil, task_id: nil, body: nil)
|
1851
|
-
# Pass arguments to `buffer_task` via keyword arguments. Note that at
|
1852
|
-
# least one keyword argument is required. To specify no parameters, or to keep all
|
1853
|
-
# the default parameter values, pass an empty Hash as a request object (see above).
|
1854
|
-
#
|
1855
|
-
# @param queue [::String]
|
1856
|
-
# Required. The parent queue name. For example:
|
1857
|
-
# projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
1858
|
-
#
|
1859
|
-
# The queue must already exist.
|
1860
|
-
# @param task_id [::String]
|
1861
|
-
# Optional. Task ID for the task being created. If not provided, a random
|
1862
|
-
# task ID is assigned to the task.
|
1863
|
-
# @param body [::Google::Api::HttpBody, ::Hash]
|
1864
|
-
# Optional. Body of the HTTP request.
|
1865
|
-
#
|
1866
|
-
# The body can take any generic value. The value is written to the
|
1867
|
-
# [HttpRequest][payload] of the [Task].
|
1868
|
-
# @yield [result, operation] Access the result along with the TransportOperation object
|
1869
|
-
# @yieldparam result [::Google::Cloud::Tasks::V2beta3::BufferTaskResponse]
|
1870
|
-
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1871
|
-
#
|
1872
|
-
# @return [::Google::Cloud::Tasks::V2beta3::BufferTaskResponse]
|
1873
|
-
#
|
1874
|
-
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1875
|
-
#
|
1876
|
-
# @example Basic example
|
1877
|
-
# require "google/cloud/tasks/v2beta3"
|
1878
|
-
#
|
1879
|
-
# # Create a client object. The client can be reused for multiple calls.
|
1880
|
-
# client = Google::Cloud::Tasks::V2beta3::CloudTasks::Rest::Client.new
|
1881
|
-
#
|
1882
|
-
# # Create a request. To set request fields, pass in keyword arguments.
|
1883
|
-
# request = Google::Cloud::Tasks::V2beta3::BufferTaskRequest.new
|
1884
|
-
#
|
1885
|
-
# # Call the buffer_task method.
|
1886
|
-
# result = client.buffer_task request
|
1887
|
-
#
|
1888
|
-
# # The returned object is of type Google::Cloud::Tasks::V2beta3::BufferTaskResponse.
|
1889
|
-
# p result
|
1890
|
-
#
|
1891
|
-
def buffer_task request, options = nil
|
1892
|
-
raise ::ArgumentError, "request must be provided" if request.nil?
|
1893
|
-
|
1894
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Tasks::V2beta3::BufferTaskRequest
|
1895
|
-
|
1896
|
-
# Converts hash and nil to an options object
|
1897
|
-
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1898
|
-
|
1899
|
-
# Customize the options with defaults
|
1900
|
-
call_metadata = @config.rpcs.buffer_task.metadata.to_h
|
1901
|
-
|
1902
|
-
# Set x-goog-api-client and x-goog-user-project headers
|
1903
|
-
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1904
|
-
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1905
|
-
gapic_version: ::Google::Cloud::Tasks::V2beta3::VERSION,
|
1906
|
-
transports_version_send: [:rest]
|
1907
|
-
|
1908
|
-
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1909
|
-
|
1910
|
-
options.apply_defaults timeout: @config.rpcs.buffer_task.timeout,
|
1911
|
-
metadata: call_metadata,
|
1912
|
-
retry_policy: @config.rpcs.buffer_task.retry_policy
|
1913
|
-
|
1914
|
-
options.apply_defaults timeout: @config.timeout,
|
1915
|
-
metadata: @config.metadata,
|
1916
|
-
retry_policy: @config.retry_policy
|
1917
|
-
|
1918
|
-
@cloud_tasks_stub.buffer_task request, options do |result, operation|
|
1919
|
-
yield result, operation if block_given?
|
1920
|
-
return result
|
1921
|
-
end
|
1922
|
-
rescue ::Gapic::Rest::Error => e
|
1923
|
-
raise ::Google::Cloud::Error.from_error(e)
|
1924
|
-
end
|
1925
|
-
|
1926
1825
|
##
|
1927
1826
|
# Configuration class for the CloudTasks REST API.
|
1928
1827
|
#
|
@@ -2143,11 +2042,6 @@ module Google
|
|
2143
2042
|
# @return [::Gapic::Config::Method]
|
2144
2043
|
#
|
2145
2044
|
attr_reader :run_task
|
2146
|
-
##
|
2147
|
-
# RPC-specific configuration for `buffer_task`
|
2148
|
-
# @return [::Gapic::Config::Method]
|
2149
|
-
#
|
2150
|
-
attr_reader :buffer_task
|
2151
2045
|
|
2152
2046
|
# @private
|
2153
2047
|
def initialize parent_rpcs = nil
|
@@ -2183,8 +2077,6 @@ module Google
|
|
2183
2077
|
@delete_task = ::Gapic::Config::Method.new delete_task_config
|
2184
2078
|
run_task_config = parent_rpcs.run_task if parent_rpcs.respond_to? :run_task
|
2185
2079
|
@run_task = ::Gapic::Config::Method.new run_task_config
|
2186
|
-
buffer_task_config = parent_rpcs.buffer_task if parent_rpcs.respond_to? :buffer_task
|
2187
|
-
@buffer_task = ::Gapic::Config::Method.new buffer_task_config
|
2188
2080
|
|
2189
2081
|
yield self if block_given?
|
2190
2082
|
end
|
@@ -669,44 +669,6 @@ module Google
|
|
669
669
|
result
|
670
670
|
end
|
671
671
|
|
672
|
-
##
|
673
|
-
# Baseline implementation for the buffer_task REST call
|
674
|
-
#
|
675
|
-
# @param request_pb [::Google::Cloud::Tasks::V2beta3::BufferTaskRequest]
|
676
|
-
# A request object representing the call parameters. Required.
|
677
|
-
# @param options [::Gapic::CallOptions]
|
678
|
-
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
679
|
-
#
|
680
|
-
# @yield [result, operation] Access the result along with the TransportOperation object
|
681
|
-
# @yieldparam result [::Google::Cloud::Tasks::V2beta3::BufferTaskResponse]
|
682
|
-
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
683
|
-
#
|
684
|
-
# @return [::Google::Cloud::Tasks::V2beta3::BufferTaskResponse]
|
685
|
-
# A result object deserialized from the server's reply
|
686
|
-
def buffer_task request_pb, options = nil
|
687
|
-
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
688
|
-
|
689
|
-
verb, uri, query_string_params, body = ServiceStub.transcode_buffer_task_request request_pb
|
690
|
-
query_string_params = if query_string_params.any?
|
691
|
-
query_string_params.to_h { |p| p.split "=", 2 }
|
692
|
-
else
|
693
|
-
{}
|
694
|
-
end
|
695
|
-
|
696
|
-
response = @client_stub.make_http_request(
|
697
|
-
verb,
|
698
|
-
uri: uri,
|
699
|
-
body: body || "",
|
700
|
-
params: query_string_params,
|
701
|
-
options: options
|
702
|
-
)
|
703
|
-
operation = ::Gapic::Rest::TransportOperation.new response
|
704
|
-
result = ::Google::Cloud::Tasks::V2beta3::BufferTaskResponse.decode_json response.body, ignore_unknown_fields: true
|
705
|
-
|
706
|
-
yield result, operation if block_given?
|
707
|
-
result
|
708
|
-
end
|
709
|
-
|
710
672
|
##
|
711
673
|
# @private
|
712
674
|
#
|
@@ -1052,29 +1014,6 @@ module Google
|
|
1052
1014
|
)
|
1053
1015
|
transcoder.transcode request_pb
|
1054
1016
|
end
|
1055
|
-
|
1056
|
-
##
|
1057
|
-
# @private
|
1058
|
-
#
|
1059
|
-
# GRPC transcoding helper method for the buffer_task REST call
|
1060
|
-
#
|
1061
|
-
# @param request_pb [::Google::Cloud::Tasks::V2beta3::BufferTaskRequest]
|
1062
|
-
# A request object representing the call parameters. Required.
|
1063
|
-
# @return [Array(String, [String, nil], Hash{String => String})]
|
1064
|
-
# Uri, Body, Query string parameters
|
1065
|
-
def self.transcode_buffer_task_request request_pb
|
1066
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1067
|
-
.with_bindings(
|
1068
|
-
uri_method: :post,
|
1069
|
-
uri_template: "/v2beta3/{queue}/tasks/{task_id}:buffer",
|
1070
|
-
body: "*",
|
1071
|
-
matches: [
|
1072
|
-
["queue", %r{^projects/[^/]+/locations/[^/]+/queues/[^/]+/?$}, false],
|
1073
|
-
["task_id", %r{^[^/]+/?$}, false]
|
1074
|
-
]
|
1075
|
-
)
|
1076
|
-
transcoder.transcode request_pb
|
1077
|
-
end
|
1078
1017
|
end
|
1079
1018
|
end
|
1080
1019
|
end
|
@@ -7,7 +7,6 @@ require 'google/protobuf'
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/api/client_pb'
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
|
-
require 'google/api/httpbody_pb'
|
11
10
|
require 'google/api/resource_pb'
|
12
11
|
require 'google/cloud/tasks/v2beta3/queue_pb'
|
13
12
|
require 'google/cloud/tasks/v2beta3/task_pb'
|
@@ -17,13 +16,13 @@ require 'google/protobuf/empty_pb'
|
|
17
16
|
require 'google/protobuf/field_mask_pb'
|
18
17
|
|
19
18
|
|
20
|
-
descriptor_data = "\n+google/cloud/tasks/v2beta3/cloudtasks.proto\x12\x1agoogle.cloud.tasks.v2beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/
|
19
|
+
descriptor_data = "\n+google/cloud/tasks/v2beta3/cloudtasks.proto\x12\x1agoogle.cloud.tasks.v2beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/tasks/v2beta3/queue.proto\x1a%google/cloud/tasks/v2beta3/task.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xb9\x01\n\x11ListQueuesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\x12\x1f\x63loudtasks.googleapis.com/Queue\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x33\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01\"`\n\x12ListQueuesResponse\x12\x31\n\x06queues\x18\x01 \x03(\x0b\x32!.google.cloud.tasks.v2beta3.Queue\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"~\n\x0fGetQueueRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\x12\x33\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x01\"\x86\x01\n\x12\x43reateQueueRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\x12\x1f\x63loudtasks.googleapis.com/Queue\x12\x36\n\x05queue\x18\x02 \x01(\x0b\x32!.google.cloud.tasks.v2beta3.QueueB\x04\xe2\x41\x01\x02\"}\n\x12UpdateQueueRequest\x12\x36\n\x05queue\x18\x01 \x01(\x0b\x32!.google.cloud.tasks.v2beta3.QueueB\x04\xe2\x41\x01\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"L\n\x12\x44\x65leteQueueRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"K\n\x11PurgeQueueRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"K\n\x11PauseQueueRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"L\n\x12ResumeQueueRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"\xb0\x01\n\x10ListTasksRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe2\x41\x01\x02\xfa\x41 \x12\x1e\x63loudtasks.googleapis.com/Task\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"]\n\x11ListTasksResponse\x12/\n\x05tasks\x18\x01 \x03(\x0b\x32 .google.cloud.tasks.v2beta3.Task\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x85\x01\n\x0eGetTaskRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe2\x41\x01\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View\"\xc0\x01\n\x11\x43reateTaskRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe2\x41\x01\x02\xfa\x41 \x12\x1e\x63loudtasks.googleapis.com/Task\x12\x34\n\x04task\x18\x02 \x01(\x0b\x32 .google.cloud.tasks.v2beta3.TaskB\x04\xe2\x41\x01\x02\x12<\n\rresponse_view\x18\x03 \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View\"J\n\x11\x44\x65leteTaskRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe2\x41\x01\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\"\x85\x01\n\x0eRunTaskRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe2\x41\x01\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View2\xa5\x16\n\nCloudTasks\x12\xad\x01\n\nListQueues\x12-.google.cloud.tasks.v2beta3.ListQueuesRequest\x1a..google.cloud.tasks.v2beta3.ListQueuesResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v2beta3/{parent=projects/*/locations/*}/queues\x12\x9a\x01\n\x08GetQueue\x12+.google.cloud.tasks.v2beta3.GetQueueRequest\x1a!.google.cloud.tasks.v2beta3.Queue\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v2beta3/{name=projects/*/locations/*/queues/*}\x12\xaf\x01\n\x0b\x43reateQueue\x12..google.cloud.tasks.v2beta3.CreateQueueRequest\x1a!.google.cloud.tasks.v2beta3.Queue\"M\xda\x41\x0cparent,queue\x82\xd3\xe4\x93\x02\x38\"//v2beta3/{parent=projects/*/locations/*}/queues:\x05queue\x12\xba\x01\n\x0bUpdateQueue\x12..google.cloud.tasks.v2beta3.UpdateQueueRequest\x1a!.google.cloud.tasks.v2beta3.Queue\"X\xda\x41\x11queue,update_mask\x82\xd3\xe4\x93\x02>25/v2beta3/{queue.name=projects/*/locations/*/queues/*}:\x05queue\x12\x95\x01\n\x0b\x44\x65leteQueue\x12..google.cloud.tasks.v2beta3.DeleteQueueRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v2beta3/{name=projects/*/locations/*/queues/*}\x12\xa7\x01\n\nPurgeQueue\x12-.google.cloud.tasks.v2beta3.PurgeQueueRequest\x1a!.google.cloud.tasks.v2beta3.Queue\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\"5/v2beta3/{name=projects/*/locations/*/queues/*}:purge:\x01*\x12\xa7\x01\n\nPauseQueue\x12-.google.cloud.tasks.v2beta3.PauseQueueRequest\x1a!.google.cloud.tasks.v2beta3.Queue\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\"5/v2beta3/{name=projects/*/locations/*/queues/*}:pause:\x01*\x12\xaa\x01\n\x0bResumeQueue\x12..google.cloud.tasks.v2beta3.ResumeQueueRequest\x1a!.google.cloud.tasks.v2beta3.Queue\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;\"6/v2beta3/{name=projects/*/locations/*/queues/*}:resume:\x01*\x12\xa1\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"V\xda\x41\x08resource\x82\xd3\xe4\x93\x02\x45\"@/v2beta3/{resource=projects/*/locations/*/queues/*}:getIamPolicy:\x01*\x12\xa8\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"]\xda\x41\x0fresource,policy\x82\xd3\xe4\x93\x02\x45\"@/v2beta3/{resource=projects/*/locations/*/queues/*}:setIamPolicy:\x01*\x12\xd3\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"h\xda\x41\x14resource,permissions\x82\xd3\xe4\x93\x02K\"F/v2beta3/{resource=projects/*/locations/*/queues/*}:testIamPermissions:\x01*\x12\xb2\x01\n\tListTasks\x12,.google.cloud.tasks.v2beta3.ListTasksRequest\x1a-.google.cloud.tasks.v2beta3.ListTasksResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v2beta3/{parent=projects/*/locations/*/queues/*}/tasks\x12\x9f\x01\n\x07GetTask\x12*.google.cloud.tasks.v2beta3.GetTaskRequest\x1a .google.cloud.tasks.v2beta3.Task\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\x12\x37/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}\x12\xaf\x01\n\nCreateTask\x12-.google.cloud.tasks.v2beta3.CreateTaskRequest\x1a .google.cloud.tasks.v2beta3.Task\"P\xda\x41\x0bparent,task\x82\xd3\xe4\x93\x02<\"7/v2beta3/{parent=projects/*/locations/*/queues/*}/tasks:\x01*\x12\x9b\x01\n\nDeleteTask\x12-.google.cloud.tasks.v2beta3.DeleteTaskRequest\x1a\x16.google.protobuf.Empty\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39*7/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}\x12\xa6\x01\n\x07RunTask\x12*.google.cloud.tasks.v2beta3.RunTaskRequest\x1a .google.cloud.tasks.v2beta3.Task\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\";/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}:run:\x01*\x1aM\xca\x41\x19\x63loudtasks.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x80\x01\n\x1e\x63om.google.cloud.tasks.v2beta3B\x0f\x43loudTasksProtoP\x01ZCcloud.google.com/go/cloudtasks/apiv2beta3/cloudtaskspb;cloudtaskspb\xa2\x02\x05TASKSb\x06proto3"
|
21
20
|
|
22
21
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
23
22
|
|
24
23
|
begin
|
25
24
|
pool.add_serialized_file(descriptor_data)
|
26
|
-
rescue TypeError
|
25
|
+
rescue TypeError
|
27
26
|
# Compatibility code: will be removed in the next major version.
|
28
27
|
require 'google/protobuf/descriptor_pb'
|
29
28
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -35,7 +34,6 @@ rescue TypeError => e
|
|
35
34
|
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
36
35
|
["google.cloud.tasks.v2beta3.Queue", "google/cloud/tasks/v2beta3/queue.proto"],
|
37
36
|
["google.cloud.tasks.v2beta3.Task", "google/cloud/tasks/v2beta3/task.proto"],
|
38
|
-
["google.api.HttpBody", "google/api/httpbody.proto"],
|
39
37
|
]
|
40
38
|
imports.each do |type_name, expected_filename|
|
41
39
|
import_file = pool.lookup(type_name).file_descriptor
|
@@ -66,8 +64,6 @@ module Google
|
|
66
64
|
CreateTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.CreateTaskRequest").msgclass
|
67
65
|
DeleteTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.DeleteTaskRequest").msgclass
|
68
66
|
RunTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.RunTaskRequest").msgclass
|
69
|
-
BufferTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.BufferTaskRequest").msgclass
|
70
|
-
BufferTaskResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.BufferTaskResponse").msgclass
|
71
67
|
end
|
72
68
|
end
|
73
69
|
end
|
@@ -198,18 +198,6 @@ module Google
|
|
198
198
|
# [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
|
199
199
|
# task that has already succeeded or permanently failed.
|
200
200
|
rpc :RunTask, ::Google::Cloud::Tasks::V2beta3::RunTaskRequest, ::Google::Cloud::Tasks::V2beta3::Task
|
201
|
-
# Creates and buffers a new task without the need to explicitly define a Task
|
202
|
-
# message. The queue must have [HTTP
|
203
|
-
# target][google.cloud.tasks.v2beta3.HttpTarget]. To create the task with a
|
204
|
-
# custom ID, use the following format and set TASK_ID to your desired ID:
|
205
|
-
# projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer
|
206
|
-
# To create the task with an automatically generated ID, use the following
|
207
|
-
# format:
|
208
|
-
# projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer.
|
209
|
-
# Note: This feature is in its experimental stage. You must request access to
|
210
|
-
# the API through the [Cloud Tasks BufferTask Experiment Signup
|
211
|
-
# form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
|
212
|
-
rpc :BufferTask, ::Google::Cloud::Tasks::V2beta3::BufferTaskRequest, ::Google::Cloud::Tasks::V2beta3::BufferTaskResponse
|
213
201
|
end
|
214
202
|
|
215
203
|
Stub = Service.rpc_stub_class
|
@@ -11,13 +11,13 @@ require 'google/protobuf/duration_pb'
|
|
11
11
|
require 'google/protobuf/timestamp_pb'
|
12
12
|
|
13
13
|
|
14
|
-
descriptor_data = "\n&google/cloud/tasks/v2beta3/queue.proto\x12\x1agoogle.cloud.tasks.v2beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/cloud/tasks/v2beta3/target.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
14
|
+
descriptor_data = "\n&google/cloud/tasks/v2beta3/queue.proto\x12\x1agoogle.cloud.tasks.v2beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/cloud/tasks/v2beta3/target.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9e\x07\n\x05Queue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12O\n\x15\x61pp_engine_http_queue\x18\x03 \x01(\x0b\x32..google.cloud.tasks.v2beta3.AppEngineHttpQueueH\x00\x12;\n\x0bhttp_target\x18\r \x01(\x0b\x32&.google.cloud.tasks.v2beta3.HttpTarget\x12;\n\x0brate_limits\x18\x04 \x01(\x0b\x32&.google.cloud.tasks.v2beta3.RateLimits\x12=\n\x0cretry_config\x18\x05 \x01(\x0b\x32\'.google.cloud.tasks.v2beta3.RetryConfig\x12\x36\n\x05state\x18\x06 \x01(\x0e\x32\'.google.cloud.tasks.v2beta3.Queue.State\x12.\n\npurge_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x08task_ttl\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x30\n\rtombstone_ttl\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12X\n\x1astackdriver_logging_config\x18\n \x01(\x0b\x32\x34.google.cloud.tasks.v2beta3.StackdriverLoggingConfig\x12:\n\x04type\x18\x0b \x01(\x0e\x32&.google.cloud.tasks.v2beta3.Queue.TypeB\x04\xe2\x41\x01\x05\x12;\n\x05stats\x18\x0c \x01(\x0b\x32&.google.cloud.tasks.v2beta3.QueueStatsB\x04\xe2\x41\x01\x03\"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\n\n\x06PAUSED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\"0\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04PULL\x10\x01\x12\x08\n\x04PUSH\x10\x02:\\\xea\x41Y\n\x1f\x63loudtasks.googleapis.com/Queue\x12\x36projects/{project}/locations/{location}/queues/{queue}B\x0c\n\nqueue_type\"j\n\nRateLimits\x12!\n\x19max_dispatches_per_second\x18\x01 \x01(\x01\x12\x16\n\x0emax_burst_size\x18\x02 \x01(\x05\x12!\n\x19max_concurrent_dispatches\x18\x03 \x01(\x05\"\xd1\x01\n\x0bRetryConfig\x12\x14\n\x0cmax_attempts\x18\x01 \x01(\x05\x12\x35\n\x12max_retry_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x0bmin_backoff\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x0bmax_backoff\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rmax_doublings\x18\x05 \x01(\x05\"2\n\x18StackdriverLoggingConfig\x12\x16\n\x0esampling_ratio\x18\x01 \x01(\x01\"\xed\x01\n\nQueueStats\x12\x19\n\x0btasks_count\x18\x01 \x01(\x03\x42\x04\xe2\x41\x01\x03\x12G\n\x1doldest_estimated_arrival_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12(\n\x1a\x65xecuted_last_minute_count\x18\x03 \x01(\x03\x42\x04\xe2\x41\x01\x03\x12)\n\x1b\x63oncurrent_dispatches_count\x18\x04 \x01(\x03\x42\x04\xe2\x41\x01\x03\x12&\n\x18\x65\x66\x66\x65\x63tive_execution_rate\x18\x05 \x01(\x01\x42\x04\xe2\x41\x01\x03\x42s\n\x1e\x63om.google.cloud.tasks.v2beta3B\nQueueProtoP\x01ZCcloud.google.com/go/cloudtasks/apiv2beta3/cloudtaskspb;cloudtaskspbb\x06proto3"
|
15
15
|
|
16
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
17
|
|
18
18
|
begin
|
19
19
|
pool.add_serialized_file(descriptor_data)
|
20
|
-
rescue TypeError
|
20
|
+
rescue TypeError
|
21
21
|
# Compatibility code: will be removed in the next major version.
|
22
22
|
require 'google/protobuf/descriptor_pb'
|
23
23
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -11,7 +11,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
11
11
|
|
12
12
|
begin
|
13
13
|
pool.add_serialized_file(descriptor_data)
|
14
|
-
rescue TypeError
|
14
|
+
rescue TypeError
|
15
15
|
# Compatibility code: will be removed in the next major version.
|
16
16
|
require 'google/protobuf/descriptor_pb'
|
17
17
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -17,7 +17,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
17
17
|
|
18
18
|
begin
|
19
19
|
pool.add_serialized_file(descriptor_data)
|
20
|
-
rescue TypeError
|
20
|
+
rescue TypeError
|
21
21
|
# Compatibility code: will be removed in the next major version.
|
22
22
|
require 'google/protobuf/descriptor_pb'
|
23
23
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -390,39 +390,6 @@ module Google
|
|
390
390
|
include ::Google::Protobuf::MessageExts
|
391
391
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
392
392
|
end
|
393
|
-
|
394
|
-
# Request message for
|
395
|
-
# {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#buffer_task BufferTask}.
|
396
|
-
# @!attribute [rw] queue
|
397
|
-
# @return [::String]
|
398
|
-
# Required. The parent queue name. For example:
|
399
|
-
# projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
|
400
|
-
#
|
401
|
-
# The queue must already exist.
|
402
|
-
# @!attribute [rw] task_id
|
403
|
-
# @return [::String]
|
404
|
-
# Optional. Task ID for the task being created. If not provided, a random
|
405
|
-
# task ID is assigned to the task.
|
406
|
-
# @!attribute [rw] body
|
407
|
-
# @return [::Google::Api::HttpBody]
|
408
|
-
# Optional. Body of the HTTP request.
|
409
|
-
#
|
410
|
-
# The body can take any generic value. The value is written to the
|
411
|
-
# [HttpRequest][payload] of the [Task].
|
412
|
-
class BufferTaskRequest
|
413
|
-
include ::Google::Protobuf::MessageExts
|
414
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
415
|
-
end
|
416
|
-
|
417
|
-
# Response message for
|
418
|
-
# {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#buffer_task BufferTask}.
|
419
|
-
# @!attribute [rw] task
|
420
|
-
# @return [::Google::Cloud::Tasks::V2beta3::Task]
|
421
|
-
# The created task.
|
422
|
-
class BufferTaskResponse
|
423
|
-
include ::Google::Protobuf::MessageExts
|
424
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
425
|
-
end
|
426
393
|
end
|
427
394
|
end
|
428
395
|
end
|
@@ -174,7 +174,7 @@ module Google
|
|
174
174
|
# This map contains the header field names and values.
|
175
175
|
# Headers will be set when running the
|
176
176
|
# {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#create_task CreateTask} and/or
|
177
|
-
#
|
177
|
+
# [BufferTask][google.cloud.tasks.v2beta3.CloudTasks.BufferTask].
|
178
178
|
#
|
179
179
|
# These headers represent a subset of the headers that will be configured for
|
180
180
|
# the task's HTTP request. Some HTTP request headers will be ignored or
|
@@ -129,7 +129,8 @@ module Google
|
|
129
129
|
#
|
130
130
|
# Note: this functionality is not currently available in the official
|
131
131
|
# protobuf release, and it is not used for type URLs beginning with
|
132
|
-
# type.googleapis.com.
|
132
|
+
# type.googleapis.com. As of May 2023, there are no widely used type server
|
133
|
+
# implementations and no plans to implement one.
|
133
134
|
#
|
134
135
|
# Schemes other than `http`, `https` (or the empty scheme) might be
|
135
136
|
# used with implementation specific semantics.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-tasks-v2beta3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01
|
11
|
+
date: 2024-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -225,7 +225,6 @@ files:
|
|
225
225
|
- proto_docs/README.md
|
226
226
|
- proto_docs/google/api/client.rb
|
227
227
|
- proto_docs/google/api/field_behavior.rb
|
228
|
-
- proto_docs/google/api/httpbody.rb
|
229
228
|
- proto_docs/google/api/launch_stage.rb
|
230
229
|
- proto_docs/google/api/resource.rb
|
231
230
|
- proto_docs/google/cloud/tasks/v2beta3/cloudtasks.rb
|
@@ -1,80 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Copyright 2023 Google LLC
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
|
-
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
-
|
19
|
-
|
20
|
-
module Google
|
21
|
-
module Api
|
22
|
-
# Message that represents an arbitrary HTTP body. It should only be used for
|
23
|
-
# payload formats that can't be represented as JSON, such as raw binary or
|
24
|
-
# an HTML page.
|
25
|
-
#
|
26
|
-
#
|
27
|
-
# This message can be used both in streaming and non-streaming API methods in
|
28
|
-
# the request as well as the response.
|
29
|
-
#
|
30
|
-
# It can be used as a top-level request field, which is convenient if one
|
31
|
-
# wants to extract parameters from either the URL or HTTP template into the
|
32
|
-
# request fields and also want access to the raw HTTP body.
|
33
|
-
#
|
34
|
-
# Example:
|
35
|
-
#
|
36
|
-
# message GetResourceRequest {
|
37
|
-
# // A unique request id.
|
38
|
-
# string request_id = 1;
|
39
|
-
#
|
40
|
-
# // The raw HTTP body is bound to this field.
|
41
|
-
# google.api.HttpBody http_body = 2;
|
42
|
-
#
|
43
|
-
# }
|
44
|
-
#
|
45
|
-
# service ResourceService {
|
46
|
-
# rpc GetResource(GetResourceRequest)
|
47
|
-
# returns (google.api.HttpBody);
|
48
|
-
# rpc UpdateResource(google.api.HttpBody)
|
49
|
-
# returns (google.protobuf.Empty);
|
50
|
-
#
|
51
|
-
# }
|
52
|
-
#
|
53
|
-
# Example with streaming methods:
|
54
|
-
#
|
55
|
-
# service CaldavService {
|
56
|
-
# rpc GetCalendar(stream google.api.HttpBody)
|
57
|
-
# returns (stream google.api.HttpBody);
|
58
|
-
# rpc UpdateCalendar(stream google.api.HttpBody)
|
59
|
-
# returns (stream google.api.HttpBody);
|
60
|
-
#
|
61
|
-
# }
|
62
|
-
#
|
63
|
-
# Use of this type only changes how the request and response bodies are
|
64
|
-
# handled, all other features will continue to work unchanged.
|
65
|
-
# @!attribute [rw] content_type
|
66
|
-
# @return [::String]
|
67
|
-
# The HTTP Content-Type header value specifying the content type of the body.
|
68
|
-
# @!attribute [rw] data
|
69
|
-
# @return [::String]
|
70
|
-
# The HTTP request/response body as raw binary.
|
71
|
-
# @!attribute [rw] extensions
|
72
|
-
# @return [::Array<::Google::Protobuf::Any>]
|
73
|
-
# Application specific response metadata. Must be set in the first response
|
74
|
-
# for streaming APIs.
|
75
|
-
class HttpBody
|
76
|
-
include ::Google::Protobuf::MessageExts
|
77
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|