google-cloud-tasks-v2beta3 0.19.0 → 0.20.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/lib/google/cloud/tasks/v2beta3/cloud_tasks/client.rb +474 -9
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks/operations.rb +843 -0
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks/paths.rb +38 -0
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks/rest/client.rb +446 -9
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks/rest/operations.rb +927 -0
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks/rest/service_stub.rb +247 -0
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks/rest.rb +1 -0
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks.rb +1 -0
- data/lib/google/cloud/tasks/v2beta3/cloudtasks_pb.rb +15 -1
- data/lib/google/cloud/tasks/v2beta3/cloudtasks_services_pb.rb +39 -4
- data/lib/google/cloud/tasks/v2beta3/cmek_config_pb.rb +24 -0
- data/lib/google/cloud/tasks/v2beta3/task_pb.rb +3 -1
- data/lib/google/cloud/tasks/v2beta3/version.rb +1 -1
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/cloud/tasks/v2beta3/cloudtasks.rb +202 -5
- data/proto_docs/google/cloud/tasks/v2beta3/cmek_config.rb +44 -0
- data/proto_docs/google/cloud/tasks/v2beta3/queue.rb +63 -30
- data/proto_docs/google/cloud/tasks/v2beta3/target.rb +38 -22
- data/proto_docs/google/cloud/tasks/v2beta3/task.rb +9 -0
- data/proto_docs/google/longrunning/operations.rb +191 -0
- metadata +7 -1
|
@@ -633,6 +633,46 @@ module Google
|
|
|
633
633
|
end
|
|
634
634
|
end
|
|
635
635
|
|
|
636
|
+
##
|
|
637
|
+
# Baseline implementation for the batch_create_tasks REST call
|
|
638
|
+
#
|
|
639
|
+
# @param request_pb [::Google::Cloud::Tasks::V2beta3::BatchCreateTasksRequest]
|
|
640
|
+
# A request object representing the call parameters. Required.
|
|
641
|
+
# @param options [::Gapic::CallOptions]
|
|
642
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
643
|
+
#
|
|
644
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
645
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
646
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
647
|
+
#
|
|
648
|
+
# @return [::Google::Longrunning::Operation]
|
|
649
|
+
# A result object deserialized from the server's reply
|
|
650
|
+
def batch_create_tasks request_pb, options = nil
|
|
651
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
652
|
+
|
|
653
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_batch_create_tasks_request request_pb
|
|
654
|
+
query_string_params = if query_string_params.any?
|
|
655
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
656
|
+
else
|
|
657
|
+
{}
|
|
658
|
+
end
|
|
659
|
+
|
|
660
|
+
response = @client_stub.make_http_request(
|
|
661
|
+
verb,
|
|
662
|
+
uri: uri,
|
|
663
|
+
body: body || "",
|
|
664
|
+
params: query_string_params,
|
|
665
|
+
method_name: "batch_create_tasks",
|
|
666
|
+
options: options
|
|
667
|
+
)
|
|
668
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
669
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
670
|
+
catch :response do
|
|
671
|
+
yield result, operation if block_given?
|
|
672
|
+
result
|
|
673
|
+
end
|
|
674
|
+
end
|
|
675
|
+
|
|
636
676
|
##
|
|
637
677
|
# Baseline implementation for the delete_task REST call
|
|
638
678
|
#
|
|
@@ -673,6 +713,46 @@ module Google
|
|
|
673
713
|
end
|
|
674
714
|
end
|
|
675
715
|
|
|
716
|
+
##
|
|
717
|
+
# Baseline implementation for the batch_delete_tasks REST call
|
|
718
|
+
#
|
|
719
|
+
# @param request_pb [::Google::Cloud::Tasks::V2beta3::BatchDeleteTasksRequest]
|
|
720
|
+
# A request object representing the call parameters. Required.
|
|
721
|
+
# @param options [::Gapic::CallOptions]
|
|
722
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
723
|
+
#
|
|
724
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
725
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
726
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
727
|
+
#
|
|
728
|
+
# @return [::Google::Longrunning::Operation]
|
|
729
|
+
# A result object deserialized from the server's reply
|
|
730
|
+
def batch_delete_tasks request_pb, options = nil
|
|
731
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
732
|
+
|
|
733
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_batch_delete_tasks_request request_pb
|
|
734
|
+
query_string_params = if query_string_params.any?
|
|
735
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
736
|
+
else
|
|
737
|
+
{}
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
response = @client_stub.make_http_request(
|
|
741
|
+
verb,
|
|
742
|
+
uri: uri,
|
|
743
|
+
body: body || "",
|
|
744
|
+
params: query_string_params,
|
|
745
|
+
method_name: "batch_delete_tasks",
|
|
746
|
+
options: options
|
|
747
|
+
)
|
|
748
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
749
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
750
|
+
catch :response do
|
|
751
|
+
yield result, operation if block_given?
|
|
752
|
+
result
|
|
753
|
+
end
|
|
754
|
+
end
|
|
755
|
+
|
|
676
756
|
##
|
|
677
757
|
# Baseline implementation for the run_task REST call
|
|
678
758
|
#
|
|
@@ -713,6 +793,86 @@ module Google
|
|
|
713
793
|
end
|
|
714
794
|
end
|
|
715
795
|
|
|
796
|
+
##
|
|
797
|
+
# Baseline implementation for the update_cmek_config REST call
|
|
798
|
+
#
|
|
799
|
+
# @param request_pb [::Google::Cloud::Tasks::V2beta3::UpdateCmekConfigRequest]
|
|
800
|
+
# A request object representing the call parameters. Required.
|
|
801
|
+
# @param options [::Gapic::CallOptions]
|
|
802
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
803
|
+
#
|
|
804
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
805
|
+
# @yieldparam result [::Google::Cloud::Tasks::V2beta3::CmekConfig]
|
|
806
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
807
|
+
#
|
|
808
|
+
# @return [::Google::Cloud::Tasks::V2beta3::CmekConfig]
|
|
809
|
+
# A result object deserialized from the server's reply
|
|
810
|
+
def update_cmek_config request_pb, options = nil
|
|
811
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
812
|
+
|
|
813
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_cmek_config_request request_pb
|
|
814
|
+
query_string_params = if query_string_params.any?
|
|
815
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
816
|
+
else
|
|
817
|
+
{}
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
response = @client_stub.make_http_request(
|
|
821
|
+
verb,
|
|
822
|
+
uri: uri,
|
|
823
|
+
body: body || "",
|
|
824
|
+
params: query_string_params,
|
|
825
|
+
method_name: "update_cmek_config",
|
|
826
|
+
options: options
|
|
827
|
+
)
|
|
828
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
829
|
+
result = ::Google::Cloud::Tasks::V2beta3::CmekConfig.decode_json response.body, ignore_unknown_fields: true
|
|
830
|
+
catch :response do
|
|
831
|
+
yield result, operation if block_given?
|
|
832
|
+
result
|
|
833
|
+
end
|
|
834
|
+
end
|
|
835
|
+
|
|
836
|
+
##
|
|
837
|
+
# Baseline implementation for the get_cmek_config REST call
|
|
838
|
+
#
|
|
839
|
+
# @param request_pb [::Google::Cloud::Tasks::V2beta3::GetCmekConfigRequest]
|
|
840
|
+
# A request object representing the call parameters. Required.
|
|
841
|
+
# @param options [::Gapic::CallOptions]
|
|
842
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
843
|
+
#
|
|
844
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
845
|
+
# @yieldparam result [::Google::Cloud::Tasks::V2beta3::CmekConfig]
|
|
846
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
847
|
+
#
|
|
848
|
+
# @return [::Google::Cloud::Tasks::V2beta3::CmekConfig]
|
|
849
|
+
# A result object deserialized from the server's reply
|
|
850
|
+
def get_cmek_config request_pb, options = nil
|
|
851
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
852
|
+
|
|
853
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_cmek_config_request request_pb
|
|
854
|
+
query_string_params = if query_string_params.any?
|
|
855
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
856
|
+
else
|
|
857
|
+
{}
|
|
858
|
+
end
|
|
859
|
+
|
|
860
|
+
response = @client_stub.make_http_request(
|
|
861
|
+
verb,
|
|
862
|
+
uri: uri,
|
|
863
|
+
body: body || "",
|
|
864
|
+
params: query_string_params,
|
|
865
|
+
method_name: "get_cmek_config",
|
|
866
|
+
options: options
|
|
867
|
+
)
|
|
868
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
869
|
+
result = ::Google::Cloud::Tasks::V2beta3::CmekConfig.decode_json response.body, ignore_unknown_fields: true
|
|
870
|
+
catch :response do
|
|
871
|
+
yield result, operation if block_given?
|
|
872
|
+
result
|
|
873
|
+
end
|
|
874
|
+
end
|
|
875
|
+
|
|
716
876
|
##
|
|
717
877
|
# @private
|
|
718
878
|
#
|
|
@@ -1016,6 +1176,28 @@ module Google
|
|
|
1016
1176
|
transcoder.transcode request_pb
|
|
1017
1177
|
end
|
|
1018
1178
|
|
|
1179
|
+
##
|
|
1180
|
+
# @private
|
|
1181
|
+
#
|
|
1182
|
+
# GRPC transcoding helper method for the batch_create_tasks REST call
|
|
1183
|
+
#
|
|
1184
|
+
# @param request_pb [::Google::Cloud::Tasks::V2beta3::BatchCreateTasksRequest]
|
|
1185
|
+
# A request object representing the call parameters. Required.
|
|
1186
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1187
|
+
# Uri, Body, Query string parameters
|
|
1188
|
+
def self.transcode_batch_create_tasks_request request_pb
|
|
1189
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1190
|
+
.with_bindings(
|
|
1191
|
+
uri_method: :post,
|
|
1192
|
+
uri_template: "/v2beta3/{parent}/tasks:batchCreate",
|
|
1193
|
+
body: "*",
|
|
1194
|
+
matches: [
|
|
1195
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/queues/[^/]+/?$}, false]
|
|
1196
|
+
]
|
|
1197
|
+
)
|
|
1198
|
+
transcoder.transcode request_pb
|
|
1199
|
+
end
|
|
1200
|
+
|
|
1019
1201
|
##
|
|
1020
1202
|
# @private
|
|
1021
1203
|
#
|
|
@@ -1037,6 +1219,28 @@ module Google
|
|
|
1037
1219
|
transcoder.transcode request_pb
|
|
1038
1220
|
end
|
|
1039
1221
|
|
|
1222
|
+
##
|
|
1223
|
+
# @private
|
|
1224
|
+
#
|
|
1225
|
+
# GRPC transcoding helper method for the batch_delete_tasks REST call
|
|
1226
|
+
#
|
|
1227
|
+
# @param request_pb [::Google::Cloud::Tasks::V2beta3::BatchDeleteTasksRequest]
|
|
1228
|
+
# A request object representing the call parameters. Required.
|
|
1229
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1230
|
+
# Uri, Body, Query string parameters
|
|
1231
|
+
def self.transcode_batch_delete_tasks_request request_pb
|
|
1232
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1233
|
+
.with_bindings(
|
|
1234
|
+
uri_method: :post,
|
|
1235
|
+
uri_template: "/v2beta3/{parent}/tasks:batchDelete",
|
|
1236
|
+
body: "*",
|
|
1237
|
+
matches: [
|
|
1238
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/queues/[^/]+/?$}, false]
|
|
1239
|
+
]
|
|
1240
|
+
)
|
|
1241
|
+
transcoder.transcode request_pb
|
|
1242
|
+
end
|
|
1243
|
+
|
|
1040
1244
|
##
|
|
1041
1245
|
# @private
|
|
1042
1246
|
#
|
|
@@ -1058,6 +1262,49 @@ module Google
|
|
|
1058
1262
|
)
|
|
1059
1263
|
transcoder.transcode request_pb
|
|
1060
1264
|
end
|
|
1265
|
+
|
|
1266
|
+
##
|
|
1267
|
+
# @private
|
|
1268
|
+
#
|
|
1269
|
+
# GRPC transcoding helper method for the update_cmek_config REST call
|
|
1270
|
+
#
|
|
1271
|
+
# @param request_pb [::Google::Cloud::Tasks::V2beta3::UpdateCmekConfigRequest]
|
|
1272
|
+
# A request object representing the call parameters. Required.
|
|
1273
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1274
|
+
# Uri, Body, Query string parameters
|
|
1275
|
+
def self.transcode_update_cmek_config_request request_pb
|
|
1276
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1277
|
+
.with_bindings(
|
|
1278
|
+
uri_method: :patch,
|
|
1279
|
+
uri_template: "/v2beta3/{cmek_config.name}",
|
|
1280
|
+
body: "cmek_config",
|
|
1281
|
+
matches: [
|
|
1282
|
+
["cmek_config.name", %r{^projects/[^/]+/locations/[^/]+/cmekConfig/?$}, false]
|
|
1283
|
+
]
|
|
1284
|
+
)
|
|
1285
|
+
transcoder.transcode request_pb
|
|
1286
|
+
end
|
|
1287
|
+
|
|
1288
|
+
##
|
|
1289
|
+
# @private
|
|
1290
|
+
#
|
|
1291
|
+
# GRPC transcoding helper method for the get_cmek_config REST call
|
|
1292
|
+
#
|
|
1293
|
+
# @param request_pb [::Google::Cloud::Tasks::V2beta3::GetCmekConfigRequest]
|
|
1294
|
+
# A request object representing the call parameters. Required.
|
|
1295
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1296
|
+
# Uri, Body, Query string parameters
|
|
1297
|
+
def self.transcode_get_cmek_config_request request_pb
|
|
1298
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1299
|
+
.with_bindings(
|
|
1300
|
+
uri_method: :get,
|
|
1301
|
+
uri_template: "/v2beta3/{name}",
|
|
1302
|
+
matches: [
|
|
1303
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/cmekConfig/?$}, false]
|
|
1304
|
+
]
|
|
1305
|
+
)
|
|
1306
|
+
transcoder.transcode request_pb
|
|
1307
|
+
end
|
|
1061
1308
|
end
|
|
1062
1309
|
end
|
|
1063
1310
|
end
|
|
@@ -25,6 +25,7 @@ require "google/cloud/tasks/v2beta3/bindings_override"
|
|
|
25
25
|
|
|
26
26
|
require "google/cloud/tasks/v2beta3/cloud_tasks/credentials"
|
|
27
27
|
require "google/cloud/tasks/v2beta3/cloud_tasks/paths"
|
|
28
|
+
require "google/cloud/tasks/v2beta3/cloud_tasks/rest/operations"
|
|
28
29
|
require "google/cloud/tasks/v2beta3/cloud_tasks/rest/client"
|
|
29
30
|
|
|
30
31
|
module Google
|
|
@@ -24,6 +24,7 @@ require "google/cloud/tasks/v2beta3/version"
|
|
|
24
24
|
|
|
25
25
|
require "google/cloud/tasks/v2beta3/cloud_tasks/credentials"
|
|
26
26
|
require "google/cloud/tasks/v2beta3/cloud_tasks/paths"
|
|
27
|
+
require "google/cloud/tasks/v2beta3/cloud_tasks/operations"
|
|
27
28
|
require "google/cloud/tasks/v2beta3/cloud_tasks/client"
|
|
28
29
|
require "google/cloud/tasks/v2beta3/cloud_tasks/rest"
|
|
29
30
|
|
|
@@ -7,16 +7,21 @@ 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/field_info_pb'
|
|
10
11
|
require 'google/api/resource_pb'
|
|
12
|
+
require 'google/cloud/tasks/v2beta3/cmek_config_pb'
|
|
11
13
|
require 'google/cloud/tasks/v2beta3/queue_pb'
|
|
12
14
|
require 'google/cloud/tasks/v2beta3/task_pb'
|
|
13
15
|
require 'google/iam/v1/iam_policy_pb'
|
|
14
16
|
require 'google/iam/v1/policy_pb'
|
|
17
|
+
require 'google/longrunning/operations_pb'
|
|
15
18
|
require 'google/protobuf/empty_pb'
|
|
16
19
|
require 'google/protobuf/field_mask_pb'
|
|
20
|
+
require 'google/protobuf/timestamp_pb'
|
|
21
|
+
require 'google/rpc/status_pb'
|
|
17
22
|
|
|
18
23
|
|
|
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\"\xb7\x01\n\x11ListQueuesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\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\x32\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\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\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\x12\x32\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\x84\x01\n\x12\x43reateQueueRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63loudtasks.googleapis.com/Queue\x12\x35\n\x05queue\x18\x02 \x01(\x0b\x32!.google.cloud.tasks.v2beta3.QueueB\x03\xe0\x41\x02\"|\n\x12UpdateQueueRequest\x12\x35\n\x05queue\x18\x01 \x01(\x0b\x32!.google.cloud.tasks.v2beta3.QueueB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"K\n\x12\x44\x65leteQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"J\n\x11PurgeQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"J\n\x11PauseQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"K\n\x12ResumeQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"\xaf\x01\n\x10ListTasksRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\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\"\x84\x01\n\x0eGetTaskRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View\"\xbe\x01\n\x11\x43reateTaskRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x63loudtasks.googleapis.com/Task\x12\x33\n\x04task\x18\x02 \x01(\x0b\x32 .google.cloud.tasks.v2beta3.TaskB\x03\xe0\x41\x02\x12<\n\rresponse_view\x18\x03 \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View\"I\n\x11\x44\x65leteTaskRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\"\x84\x01\n\x0eRunTaskRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\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"
|
|
24
|
+
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\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/tasks/v2beta3/cmek_config.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#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xb7\x01\n\x11ListQueuesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\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\x32\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\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\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\x12\x32\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\x84\x01\n\x12\x43reateQueueRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63loudtasks.googleapis.com/Queue\x12\x35\n\x05queue\x18\x02 \x01(\x0b\x32!.google.cloud.tasks.v2beta3.QueueB\x03\xe0\x41\x02\"|\n\x12UpdateQueueRequest\x12\x35\n\x05queue\x18\x01 \x01(\x0b\x32!.google.cloud.tasks.v2beta3.QueueB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"K\n\x12\x44\x65leteQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"J\n\x11PurgeQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"J\n\x11PauseQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"K\n\x12ResumeQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"\xaf\x01\n\x10ListTasksRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\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\"\x84\x01\n\x0eGetTaskRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View\"\xbe\x01\n\x11\x43reateTaskRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x63loudtasks.googleapis.com/Task\x12\x33\n\x04task\x18\x02 \x01(\x0b\x32 .google.cloud.tasks.v2beta3.TaskB\x03\xe0\x41\x02\x12<\n\rresponse_view\x18\x03 \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View\"\xb9\x01\n\x17\x42\x61tchCreateTasksRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\x12\x44\n\x08requests\x18\x02 \x03(\x0b\x32-.google.cloud.tasks.v2beta3.CreateTaskRequestB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"I\n\x11\x44\x65leteTaskRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\"\xaa\x01\n\x17\x42\x61tchDeleteTasksRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\x12\x35\n\x05names\x18\x02 \x03(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xe6\x03\n\x18\x42\x61tchDeleteTasksMetadata\x12\x33\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12N\n\x05state\x18\x03 \x01(\x0e\x32:.google.cloud.tasks.v2beta3.BatchDeleteTasksMetadata.StateB\x03\xe0\x41\x03\x12\x66\n\x0f\x66\x61iled_requests\x18\x04 \x03(\x0b\x32H.google.cloud.tasks.v2beta3.BatchDeleteTasksMetadata.FailedRequestsEntryB\x03\xe0\x41\x03\x1aI\n\x13\x46\x61iledRequestsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status:\x02\x38\x01\"_\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\x17\n\x13PARTIALLY_SUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\"\x84\x01\n\x0eRunTaskRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View\"K\n\x18\x42\x61tchCreateTasksResponse\x12/\n\x05tasks\x18\x01 \x03(\x0b\x32 .google.cloud.tasks.v2beta3.Task\"\xe6\x03\n\x18\x42\x61tchCreateTasksMetadata\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12N\n\x05state\x18\x03 \x01(\x0e\x32:.google.cloud.tasks.v2beta3.BatchCreateTasksMetadata.StateB\x03\xe0\x41\x03\x12\x61\n\x0f\x66\x61iled_requests\x18\x04 \x03(\x0b\x32H.google.cloud.tasks.v2beta3.BatchCreateTasksMetadata.FailedRequestsEntry\x1aI\n\x13\x46\x61iledRequestsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status:\x02\x38\x01\"n\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\x17\n\x13PARTIALLY_SUCCEEDED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\"\x8c\x01\n\x17UpdateCmekConfigRequest\x12@\n\x0b\x63mek_config\x18\x01 \x01(\x0b\x32&.google.cloud.tasks.v2beta3.CmekConfigB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"R\n\x14GetCmekConfigRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudtasks.googleapis.com/CmekConfig2\xb3\x1d\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\x80\x02\n\x10\x42\x61tchCreateTasks\x12\x33.google.cloud.tasks.v2beta3.BatchCreateTasksRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41\x34\n\x18\x42\x61tchCreateTasksResponse\x12\x18\x42\x61tchCreateTasksMetadata\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02H\"C/v2beta3/{parent=projects/*/locations/*/queues/*}/tasks:batchCreate:\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\xfa\x01\n\x10\x42\x61tchDeleteTasks\x12\x33.google.cloud.tasks.v2beta3.BatchDeleteTasksRequest\x1a\x1d.google.longrunning.Operation\"\x91\x01\xca\x41\x31\n\x15google.protobuf.Empty\x12\x18\x42\x61tchDeleteTasksMetadata\xda\x41\x0cparent,names\x82\xd3\xe4\x93\x02H\"C/v2beta3/{parent=projects/*/locations/*/queues/*}/tasks:batchDelete:\x01*\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*\x12\xdd\x01\n\x10UpdateCmekConfig\x12\x33.google.cloud.tasks.v2beta3.UpdateCmekConfigRequest\x1a&.google.cloud.tasks.v2beta3.CmekConfig\"l\xda\x41\x17\x63mek_config,update_mask\x82\xd3\xe4\x93\x02L2=/v2beta3/{cmek_config.name=projects/*/locations/*/cmekConfig}:\x0b\x63mek_config\x12\xab\x01\n\rGetCmekConfig\x12\x30.google.cloud.tasks.v2beta3.GetCmekConfigRequest\x1a&.google.cloud.tasks.v2beta3.CmekConfig\"@\xda\x41\x04name\x82\xd3\xe4\x93\x02\x33\x12\x31/v2beta3/{name=projects/*/locations/*/cmekConfig}\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"
|
|
20
25
|
|
|
21
26
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
22
27
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -38,8 +43,17 @@ module Google
|
|
|
38
43
|
ListTasksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.ListTasksResponse").msgclass
|
|
39
44
|
GetTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.GetTaskRequest").msgclass
|
|
40
45
|
CreateTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.CreateTaskRequest").msgclass
|
|
46
|
+
BatchCreateTasksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.BatchCreateTasksRequest").msgclass
|
|
41
47
|
DeleteTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.DeleteTaskRequest").msgclass
|
|
48
|
+
BatchDeleteTasksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.BatchDeleteTasksRequest").msgclass
|
|
49
|
+
BatchDeleteTasksMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.BatchDeleteTasksMetadata").msgclass
|
|
50
|
+
BatchDeleteTasksMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.BatchDeleteTasksMetadata.State").enummodule
|
|
42
51
|
RunTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.RunTaskRequest").msgclass
|
|
52
|
+
BatchCreateTasksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.BatchCreateTasksResponse").msgclass
|
|
53
|
+
BatchCreateTasksMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.BatchCreateTasksMetadata").msgclass
|
|
54
|
+
BatchCreateTasksMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.BatchCreateTasksMetadata.State").enummodule
|
|
55
|
+
UpdateCmekConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.UpdateCmekConfigRequest").msgclass
|
|
56
|
+
GetCmekConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.GetCmekConfigRequest").msgclass
|
|
43
57
|
end
|
|
44
58
|
end
|
|
45
59
|
end
|
|
@@ -73,8 +73,15 @@ module Google
|
|
|
73
73
|
#
|
|
74
74
|
# This command will delete the queue even if it has tasks in it.
|
|
75
75
|
#
|
|
76
|
-
# Note: If you delete a queue,
|
|
77
|
-
# for
|
|
76
|
+
# Note : If you delete a queue, you may be prevented from creating a new
|
|
77
|
+
# queue with the same name as the deleted queue for a tombstone window of up
|
|
78
|
+
# to 3 days. During this window, the CreateQueue operation may appear to
|
|
79
|
+
# recreate the queue, but this can be misleading. If you attempt to create
|
|
80
|
+
# a queue with the same name as one that is in the tombstone window, run
|
|
81
|
+
# GetQueue to confirm that the queue creation was successful. If GetQueue
|
|
82
|
+
# returns 200 response code, your queue was successfully created with the
|
|
83
|
+
# name of the previously deleted queue. Otherwise, your queue did not
|
|
84
|
+
# successfully recreate.
|
|
78
85
|
#
|
|
79
86
|
# WARNING: Using this method may have unintended side effects if you are
|
|
80
87
|
# using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
|
|
@@ -157,6 +164,10 @@ module Google
|
|
|
157
164
|
# time.
|
|
158
165
|
rpc :ListTasks, ::Google::Cloud::Tasks::V2beta3::ListTasksRequest, ::Google::Cloud::Tasks::V2beta3::ListTasksResponse
|
|
159
166
|
# Gets a task.
|
|
167
|
+
#
|
|
168
|
+
# After a task is successfully executed or has exhausted its retry attempts,
|
|
169
|
+
# the task is deleted. A `GetTask` request for a deleted task returns a
|
|
170
|
+
# `NOT_FOUND` error.
|
|
160
171
|
rpc :GetTask, ::Google::Cloud::Tasks::V2beta3::GetTaskRequest, ::Google::Cloud::Tasks::V2beta3::Task
|
|
161
172
|
# Creates a task and adds it to a queue.
|
|
162
173
|
#
|
|
@@ -164,12 +175,24 @@ module Google
|
|
|
164
175
|
#
|
|
165
176
|
# * The maximum task size is 100KB.
|
|
166
177
|
rpc :CreateTask, ::Google::Cloud::Tasks::V2beta3::CreateTaskRequest, ::Google::Cloud::Tasks::V2beta3::Task
|
|
178
|
+
# Creates a batch of tasks and adds them to a queue.
|
|
179
|
+
# This call is not atomic.
|
|
180
|
+
#
|
|
181
|
+
# All tasks must be for the same queue.
|
|
182
|
+
# A maximum of 100 tasks can be created in a single batch.
|
|
183
|
+
rpc :BatchCreateTasks, ::Google::Cloud::Tasks::V2beta3::BatchCreateTasksRequest, ::Google::Longrunning::Operation
|
|
167
184
|
# Deletes a task.
|
|
168
185
|
#
|
|
169
186
|
# A task can be deleted if it is scheduled or dispatched. A task
|
|
170
187
|
# cannot be deleted if it has executed successfully or permanently
|
|
171
188
|
# failed.
|
|
172
189
|
rpc :DeleteTask, ::Google::Cloud::Tasks::V2beta3::DeleteTaskRequest, ::Google::Protobuf::Empty
|
|
190
|
+
# Deletes a batch of tasks.
|
|
191
|
+
# This is a non-atomic operation: if deletion fails for some tasks, it
|
|
192
|
+
# can still succeed for others. The metadata field of
|
|
193
|
+
# google.longrunning.Operation contains details of failed deletions.
|
|
194
|
+
# A maximum of 1000 tasks can be deleted in a batch.
|
|
195
|
+
rpc :BatchDeleteTasks, ::Google::Cloud::Tasks::V2beta3::BatchDeleteTasksRequest, ::Google::Longrunning::Operation
|
|
173
196
|
# Forces a task to run now.
|
|
174
197
|
#
|
|
175
198
|
# When this method is called, Cloud Tasks will dispatch the task, even if
|
|
@@ -183,8 +206,8 @@ module Google
|
|
|
183
206
|
# a task to be dispatched now.
|
|
184
207
|
#
|
|
185
208
|
# The dispatched task is returned. That is, the task that is returned
|
|
186
|
-
# contains the [status][Task.
|
|
187
|
-
# before the task is received by its target.
|
|
209
|
+
# contains the [status][google.cloud.tasks.v2beta3.Task.first_attempt] after
|
|
210
|
+
# the task is dispatched but before the task is received by its target.
|
|
188
211
|
#
|
|
189
212
|
# If Cloud Tasks receives a successful response from the task's
|
|
190
213
|
# target, then the task will be deleted; otherwise the task's
|
|
@@ -198,6 +221,18 @@ module Google
|
|
|
198
221
|
# [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
|
|
199
222
|
# task that has already succeeded or permanently failed.
|
|
200
223
|
rpc :RunTask, ::Google::Cloud::Tasks::V2beta3::RunTaskRequest, ::Google::Cloud::Tasks::V2beta3::Task
|
|
224
|
+
# Creates or Updates a CMEK config.
|
|
225
|
+
#
|
|
226
|
+
# Updates the Customer Managed Encryption Key associated with the Cloud Tasks
|
|
227
|
+
# location (Creates if the key does not already exist). All new tasks created
|
|
228
|
+
# in the location will be encrypted at-rest with the KMS-key provided in the
|
|
229
|
+
# config.
|
|
230
|
+
rpc :UpdateCmekConfig, ::Google::Cloud::Tasks::V2beta3::UpdateCmekConfigRequest, ::Google::Cloud::Tasks::V2beta3::CmekConfig
|
|
231
|
+
# Gets the CMEK config.
|
|
232
|
+
#
|
|
233
|
+
# Gets the Customer Managed Encryption Key configured with the Cloud Tasks
|
|
234
|
+
# lcoation. By default there is no kms_key configured.
|
|
235
|
+
rpc :GetCmekConfig, ::Google::Cloud::Tasks::V2beta3::GetCmekConfigRequest, ::Google::Cloud::Tasks::V2beta3::CmekConfig
|
|
201
236
|
end
|
|
202
237
|
|
|
203
238
|
Stub = Service.rpc_stub_class
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/tasks/v2beta3/cmek_config.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
8
|
+
require 'google/api/resource_pb'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
descriptor_data = "\n,google/cloud/tasks/v2beta3/cmek_config.proto\x12\x1agoogle.cloud.tasks.v2beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xb7\x01\n\nCmekConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x37\n\x07kms_key\x18\x02 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey:]\xea\x41Z\n$cloudtasks.googleapis.com/CmekConfig\x12\x32projects/{project}/locations/{location}/cmekConfigB\xf3\x01\n\x1e\x63om.google.cloud.tasks.v2beta3B\x0f\x43mekConfigProtoP\x01ZCcloud.google.com/go/cloudtasks/apiv2beta3/cloudtaskspb;cloudtaskspb\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3"
|
|
12
|
+
|
|
13
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
|
15
|
+
|
|
16
|
+
module Google
|
|
17
|
+
module Cloud
|
|
18
|
+
module Tasks
|
|
19
|
+
module V2beta3
|
|
20
|
+
CmekConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.CmekConfig").msgclass
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -4,14 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
require 'google/protobuf'
|
|
6
6
|
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
|
7
8
|
require 'google/api/resource_pb'
|
|
9
|
+
require 'google/cloud/tasks/v2beta3/queue_pb'
|
|
8
10
|
require 'google/cloud/tasks/v2beta3/target_pb'
|
|
9
11
|
require 'google/protobuf/duration_pb'
|
|
10
12
|
require 'google/protobuf/timestamp_pb'
|
|
11
13
|
require 'google/rpc/status_pb'
|
|
12
14
|
|
|
13
15
|
|
|
14
|
-
descriptor_data = "\n%google/cloud/tasks/v2beta3/task.proto\x12\x1agoogle.cloud.tasks.v2beta3\x1a\x19google/api/resource.proto\x1a\'google/cloud/tasks/v2beta3/target.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\
|
|
16
|
+
descriptor_data = "\n%google/cloud/tasks/v2beta3/task.proto\x12\x1agoogle.cloud.tasks.v2beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/tasks/v2beta3/queue.proto\x1a\'google/cloud/tasks/v2beta3/target.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xd2\x06\n\x04Task\x12\x0c\n\x04name\x18\x01 \x01(\t\x12S\n\x17\x61pp_engine_http_request\x18\x03 \x01(\x0b\x32\x30.google.cloud.tasks.v2beta3.AppEngineHttpRequestH\x00\x12?\n\x0chttp_request\x18\x0b \x01(\x0b\x32\'.google.cloud.tasks.v2beta3.HttpRequestH\x00\x12?\n\x0cpull_message\x18\r \x01(\x0b\x32\'.google.cloud.tasks.v2beta3.PullMessageH\x00\x12\x31\n\rschedule_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x11\x64ispatch_deadline\x18\x0c \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x16\n\x0e\x64ispatch_count\x18\x06 \x01(\x05\x12\x16\n\x0eresponse_count\x18\x07 \x01(\x05\x12:\n\rfirst_attempt\x18\x08 \x01(\x0b\x32#.google.cloud.tasks.v2beta3.Attempt\x12\x39\n\x0clast_attempt\x18\t \x01(\x0b\x32#.google.cloud.tasks.v2beta3.Attempt\x12\x33\n\x04view\x18\n \x01(\x0e\x32%.google.cloud.tasks.v2beta3.Task.View\x12\x42\n\x0cretry_config\x18\x0e \x01(\x0b\x32\'.google.cloud.tasks.v2beta3.RetryConfigB\x03\xe0\x41\x01\"1\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02:h\xea\x41\x65\n\x1e\x63loudtasks.googleapis.com/Task\x12\x43projects/{project}/locations/{location}/queues/{queue}/tasks/{task}B\x0e\n\x0cpayload_type\"\xcf\x01\n\x07\x41ttempt\x12\x31\n\rschedule_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rdispatch_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rresponse_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x0fresponse_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusBr\n\x1e\x63om.google.cloud.tasks.v2beta3B\tTaskProtoP\x01ZCcloud.google.com/go/cloudtasks/apiv2beta3/cloudtaskspb;cloudtaskspbb\x06proto3"
|
|
15
17
|
|
|
16
18
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
17
19
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 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
|
+
# Rich semantic information of an API field beyond basic typing.
|
|
23
|
+
# @!attribute [rw] format
|
|
24
|
+
# @return [::Google::Api::FieldInfo::Format]
|
|
25
|
+
# The standard format of a field value. This does not explicitly configure
|
|
26
|
+
# any API consumer, just documents the API's format for the field it is
|
|
27
|
+
# applied to.
|
|
28
|
+
# @!attribute [rw] referenced_types
|
|
29
|
+
# @return [::Array<::Google::Api::TypeReference>]
|
|
30
|
+
# The type(s) that the annotated, generic field may represent.
|
|
31
|
+
#
|
|
32
|
+
# Currently, this must only be used on fields of type `google.protobuf.Any`.
|
|
33
|
+
# Supporting other generic types may be considered in the future.
|
|
34
|
+
class FieldInfo
|
|
35
|
+
include ::Google::Protobuf::MessageExts
|
|
36
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
37
|
+
|
|
38
|
+
# The standard format of a field value. The supported formats are all backed
|
|
39
|
+
# by either an RFC defined by the IETF or a Google-defined AIP.
|
|
40
|
+
module Format
|
|
41
|
+
# Default, unspecified value.
|
|
42
|
+
FORMAT_UNSPECIFIED = 0
|
|
43
|
+
|
|
44
|
+
# Universally Unique Identifier, version 4, value as defined by
|
|
45
|
+
# https://datatracker.ietf.org/doc/html/rfc4122. The value may be
|
|
46
|
+
# normalized to entirely lowercase letters. For example, the value
|
|
47
|
+
# `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to
|
|
48
|
+
# `f47ac10b-58cc-0372-8567-0e02b2c3d479`.
|
|
49
|
+
UUID4 = 1
|
|
50
|
+
|
|
51
|
+
# Internet Protocol v4 value as defined by [RFC
|
|
52
|
+
# 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be
|
|
53
|
+
# condensed, with leading zeros in each octet stripped. For example,
|
|
54
|
+
# `001.022.233.040` would be condensed to `1.22.233.40`.
|
|
55
|
+
IPV4 = 2
|
|
56
|
+
|
|
57
|
+
# Internet Protocol v6 value as defined by [RFC
|
|
58
|
+
# 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be
|
|
59
|
+
# normalized to entirely lowercase letters with zeros compressed, following
|
|
60
|
+
# [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example,
|
|
61
|
+
# the value `2001:0DB8:0::0` would be normalized to `2001:db8::`.
|
|
62
|
+
IPV6 = 3
|
|
63
|
+
|
|
64
|
+
# An IP address in either v4 or v6 format as described by the individual
|
|
65
|
+
# values defined herein. See the comments on the IPV4 and IPV6 types for
|
|
66
|
+
# allowed normalizations of each.
|
|
67
|
+
IPV4_OR_IPV6 = 4
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# A reference to a message type, for use in {::Google::Api::FieldInfo FieldInfo}.
|
|
72
|
+
# @!attribute [rw] type_name
|
|
73
|
+
# @return [::String]
|
|
74
|
+
# The name of the type that the annotated, generic field may represent.
|
|
75
|
+
# If the type is in the same protobuf package, the value can be the simple
|
|
76
|
+
# message name e.g., `"MyMessage"`. Otherwise, the value must be the
|
|
77
|
+
# fully-qualified message name e.g., `"google.library.v1.Book"`.
|
|
78
|
+
#
|
|
79
|
+
# If the type(s) are unknown to the service (e.g. the field accepts generic
|
|
80
|
+
# user input), use the wildcard `"*"` to denote this behavior.
|
|
81
|
+
#
|
|
82
|
+
# See [AIP-202](https://google.aip.dev/202#type-references) for more details.
|
|
83
|
+
class TypeReference
|
|
84
|
+
include ::Google::Protobuf::MessageExts
|
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|