google-cloud-tasks 1.5.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -1
  3. data/AUTHENTICATION.md +51 -54
  4. data/LICENSE.md +203 -0
  5. data/MIGRATING.md +274 -0
  6. data/README.md +37 -24
  7. data/lib/{google/cloud/tasks/v2beta2/doc/google/protobuf/empty.rb → google-cloud-tasks.rb} +4 -14
  8. data/lib/google/cloud/tasks.rb +82 -117
  9. data/lib/google/cloud/tasks/version.rb +6 -2
  10. metadata +104 -113
  11. data/LICENSE +0 -201
  12. data/lib/google/cloud/tasks/v2.rb +0 -147
  13. data/lib/google/cloud/tasks/v2/cloud_tasks_client.rb +0 -1233
  14. data/lib/google/cloud/tasks/v2/cloud_tasks_client_config.json +0 -106
  15. data/lib/google/cloud/tasks/v2/cloudtasks_pb.rb +0 -100
  16. data/lib/google/cloud/tasks/v2/cloudtasks_services_pb.rb +0 -203
  17. data/lib/google/cloud/tasks/v2/credentials.rb +0 -41
  18. data/lib/google/cloud/tasks/v2/doc/google/cloud/tasks/v2/cloudtasks.rb +0 -312
  19. data/lib/google/cloud/tasks/v2/doc/google/cloud/tasks/v2/queue.rb +0 -348
  20. data/lib/google/cloud/tasks/v2/doc/google/cloud/tasks/v2/target.rb +0 -414
  21. data/lib/google/cloud/tasks/v2/doc/google/cloud/tasks/v2/task.rb +0 -175
  22. data/lib/google/cloud/tasks/v2/doc/google/iam/v1/iam_policy.rb +0 -64
  23. data/lib/google/cloud/tasks/v2/doc/google/iam/v1/options.rb +0 -33
  24. data/lib/google/cloud/tasks/v2/doc/google/iam/v1/policy.rb +0 -151
  25. data/lib/google/cloud/tasks/v2/doc/google/protobuf/any.rb +0 -131
  26. data/lib/google/cloud/tasks/v2/doc/google/protobuf/duration.rb +0 -91
  27. data/lib/google/cloud/tasks/v2/doc/google/protobuf/empty.rb +0 -29
  28. data/lib/google/cloud/tasks/v2/doc/google/protobuf/field_mask.rb +0 -222
  29. data/lib/google/cloud/tasks/v2/doc/google/protobuf/timestamp.rb +0 -113
  30. data/lib/google/cloud/tasks/v2/doc/google/rpc/status.rb +0 -39
  31. data/lib/google/cloud/tasks/v2/doc/google/type/expr.rb +0 -45
  32. data/lib/google/cloud/tasks/v2/helpers.rb +0 -49
  33. data/lib/google/cloud/tasks/v2/queue_pb.rb +0 -56
  34. data/lib/google/cloud/tasks/v2/target_pb.rb +0 -66
  35. data/lib/google/cloud/tasks/v2/task_pb.rb +0 -51
  36. data/lib/google/cloud/tasks/v2beta2.rb +0 -147
  37. data/lib/google/cloud/tasks/v2beta2/cloud_tasks_client.rb +0 -1605
  38. data/lib/google/cloud/tasks/v2beta2/cloud_tasks_client_config.json +0 -126
  39. data/lib/google/cloud/tasks/v2beta2/cloudtasks_pb.rb +0 -133
  40. data/lib/google/cloud/tasks/v2beta2/cloudtasks_services_pb.rb +0 -258
  41. data/lib/google/cloud/tasks/v2beta2/credentials.rb +0 -41
  42. data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/cloudtasks.rb +0 -483
  43. data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/queue.rb +0 -336
  44. data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/target.rb +0 -377
  45. data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/task.rb +0 -166
  46. data/lib/google/cloud/tasks/v2beta2/doc/google/iam/v1/iam_policy.rb +0 -64
  47. data/lib/google/cloud/tasks/v2beta2/doc/google/iam/v1/options.rb +0 -33
  48. data/lib/google/cloud/tasks/v2beta2/doc/google/iam/v1/policy.rb +0 -151
  49. data/lib/google/cloud/tasks/v2beta2/doc/google/protobuf/any.rb +0 -131
  50. data/lib/google/cloud/tasks/v2beta2/doc/google/protobuf/duration.rb +0 -91
  51. data/lib/google/cloud/tasks/v2beta2/doc/google/protobuf/field_mask.rb +0 -222
  52. data/lib/google/cloud/tasks/v2beta2/doc/google/protobuf/timestamp.rb +0 -113
  53. data/lib/google/cloud/tasks/v2beta2/doc/google/rpc/status.rb +0 -39
  54. data/lib/google/cloud/tasks/v2beta2/doc/google/type/expr.rb +0 -45
  55. data/lib/google/cloud/tasks/v2beta2/helpers.rb +0 -49
  56. data/lib/google/cloud/tasks/v2beta2/queue_pb.rb +0 -58
  57. data/lib/google/cloud/tasks/v2beta2/target_pb.rb +0 -54
  58. data/lib/google/cloud/tasks/v2beta2/task_pb.rb +0 -54
  59. data/lib/google/cloud/tasks/v2beta3.rb +0 -147
  60. data/lib/google/cloud/tasks/v2beta3/cloud_tasks_client.rb +0 -1233
  61. data/lib/google/cloud/tasks/v2beta3/cloud_tasks_client_config.json +0 -106
  62. data/lib/google/cloud/tasks/v2beta3/cloudtasks_pb.rb +0 -101
  63. data/lib/google/cloud/tasks/v2beta3/cloudtasks_services_pb.rb +0 -203
  64. data/lib/google/cloud/tasks/v2beta3/credentials.rb +0 -41
  65. data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/cloudtasks.rb +0 -312
  66. data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/queue.rb +0 -342
  67. data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/target.rb +0 -431
  68. data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/task.rb +0 -177
  69. data/lib/google/cloud/tasks/v2beta3/doc/google/iam/v1/iam_policy.rb +0 -64
  70. data/lib/google/cloud/tasks/v2beta3/doc/google/iam/v1/options.rb +0 -33
  71. data/lib/google/cloud/tasks/v2beta3/doc/google/iam/v1/policy.rb +0 -151
  72. data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/any.rb +0 -131
  73. data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/duration.rb +0 -91
  74. data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/empty.rb +0 -29
  75. data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/field_mask.rb +0 -222
  76. data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/timestamp.rb +0 -113
  77. data/lib/google/cloud/tasks/v2beta3/doc/google/rpc/status.rb +0 -39
  78. data/lib/google/cloud/tasks/v2beta3/doc/google/type/expr.rb +0 -45
  79. data/lib/google/cloud/tasks/v2beta3/helpers.rb +0 -49
  80. data/lib/google/cloud/tasks/v2beta3/queue_pb.rb +0 -59
  81. data/lib/google/cloud/tasks/v2beta3/target_pb.rb +0 -69
  82. data/lib/google/cloud/tasks/v2beta3/task_pb.rb +0 -52
@@ -1,49 +0,0 @@
1
- # Copyright 2018 Google LLC
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # # limitations under the License.
14
- module Google
15
- module Cloud
16
- module Tasks
17
- module V2beta3
18
- class CloudTasksClient
19
- # Alias for Google::Cloud::Tasks::V2beta3::CloudTasksClient.location_path.
20
- # @param project [String]
21
- # @param location [String]
22
- # @return [String]
23
- def location_path project, location
24
- self.class.location_path project, location
25
- end
26
-
27
- # Alias for Google::Cloud::Tasks::V2beta3::CloudTasksClient.queue_path.
28
- # @param project [String]
29
- # @param location [String]
30
- # @param queue [String]
31
- # @return [String]
32
- def queue_path project, location, queue
33
- self.class.queue_path project, location, queue
34
- end
35
-
36
- # Alias for Google::Cloud::Tasks::V2beta3::CloudTasksClient.task_path.
37
- # @param project [String]
38
- # @param location [String]
39
- # @param queue [String]
40
- # @param task [String]
41
- # @return [String]
42
- def task_path project, location, queue, task
43
- self.class.task_path project, location, queue, task
44
- end
45
- end
46
- end
47
- end
48
- end
49
- end
@@ -1,59 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/tasks/v2beta3/queue.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/resource_pb'
8
- require 'google/cloud/tasks/v2beta3/target_pb'
9
- require 'google/protobuf/duration_pb'
10
- require 'google/protobuf/timestamp_pb'
11
- require 'google/api/annotations_pb'
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_message "google.cloud.tasks.v2beta3.Queue" do
14
- optional :name, :string, 1
15
- optional :rate_limits, :message, 4, "google.cloud.tasks.v2beta3.RateLimits"
16
- optional :retry_config, :message, 5, "google.cloud.tasks.v2beta3.RetryConfig"
17
- optional :state, :enum, 6, "google.cloud.tasks.v2beta3.Queue.State"
18
- optional :purge_time, :message, 7, "google.protobuf.Timestamp"
19
- optional :stackdriver_logging_config, :message, 10, "google.cloud.tasks.v2beta3.StackdriverLoggingConfig"
20
- oneof :queue_type do
21
- optional :app_engine_http_queue, :message, 3, "google.cloud.tasks.v2beta3.AppEngineHttpQueue"
22
- end
23
- end
24
- add_enum "google.cloud.tasks.v2beta3.Queue.State" do
25
- value :STATE_UNSPECIFIED, 0
26
- value :RUNNING, 1
27
- value :PAUSED, 2
28
- value :DISABLED, 3
29
- end
30
- add_message "google.cloud.tasks.v2beta3.RateLimits" do
31
- optional :max_dispatches_per_second, :double, 1
32
- optional :max_burst_size, :int32, 2
33
- optional :max_concurrent_dispatches, :int32, 3
34
- end
35
- add_message "google.cloud.tasks.v2beta3.RetryConfig" do
36
- optional :max_attempts, :int32, 1
37
- optional :max_retry_duration, :message, 2, "google.protobuf.Duration"
38
- optional :min_backoff, :message, 3, "google.protobuf.Duration"
39
- optional :max_backoff, :message, 4, "google.protobuf.Duration"
40
- optional :max_doublings, :int32, 5
41
- end
42
- add_message "google.cloud.tasks.v2beta3.StackdriverLoggingConfig" do
43
- optional :sampling_ratio, :double, 1
44
- end
45
- end
46
-
47
- module Google
48
- module Cloud
49
- module Tasks
50
- module V2beta3
51
- Queue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.Queue").msgclass
52
- Queue::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.Queue.State").enummodule
53
- RateLimits = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.RateLimits").msgclass
54
- RetryConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.RetryConfig").msgclass
55
- StackdriverLoggingConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.StackdriverLoggingConfig").msgclass
56
- end
57
- end
58
- end
59
- end
@@ -1,69 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/tasks/v2beta3/target.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/annotations_pb'
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_message "google.cloud.tasks.v2beta3.HttpRequest" do
10
- optional :url, :string, 1
11
- optional :http_method, :enum, 2, "google.cloud.tasks.v2beta3.HttpMethod"
12
- map :headers, :string, :string, 3
13
- optional :body, :bytes, 4
14
- oneof :authorization_header do
15
- optional :oauth_token, :message, 5, "google.cloud.tasks.v2beta3.OAuthToken"
16
- optional :oidc_token, :message, 6, "google.cloud.tasks.v2beta3.OidcToken"
17
- end
18
- end
19
- add_message "google.cloud.tasks.v2beta3.AppEngineHttpQueue" do
20
- optional :app_engine_routing_override, :message, 1, "google.cloud.tasks.v2beta3.AppEngineRouting"
21
- end
22
- add_message "google.cloud.tasks.v2beta3.AppEngineHttpRequest" do
23
- optional :http_method, :enum, 1, "google.cloud.tasks.v2beta3.HttpMethod"
24
- optional :app_engine_routing, :message, 2, "google.cloud.tasks.v2beta3.AppEngineRouting"
25
- optional :relative_uri, :string, 3
26
- map :headers, :string, :string, 4
27
- optional :body, :bytes, 5
28
- end
29
- add_message "google.cloud.tasks.v2beta3.AppEngineRouting" do
30
- optional :service, :string, 1
31
- optional :version, :string, 2
32
- optional :instance, :string, 3
33
- optional :host, :string, 4
34
- end
35
- add_message "google.cloud.tasks.v2beta3.OAuthToken" do
36
- optional :service_account_email, :string, 1
37
- optional :scope, :string, 2
38
- end
39
- add_message "google.cloud.tasks.v2beta3.OidcToken" do
40
- optional :service_account_email, :string, 1
41
- optional :audience, :string, 2
42
- end
43
- add_enum "google.cloud.tasks.v2beta3.HttpMethod" do
44
- value :HTTP_METHOD_UNSPECIFIED, 0
45
- value :POST, 1
46
- value :GET, 2
47
- value :HEAD, 3
48
- value :PUT, 4
49
- value :DELETE, 5
50
- value :PATCH, 6
51
- value :OPTIONS, 7
52
- end
53
- end
54
-
55
- module Google
56
- module Cloud
57
- module Tasks
58
- module V2beta3
59
- HttpRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.HttpRequest").msgclass
60
- AppEngineHttpQueue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.AppEngineHttpQueue").msgclass
61
- AppEngineHttpRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.AppEngineHttpRequest").msgclass
62
- AppEngineRouting = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.AppEngineRouting").msgclass
63
- OAuthToken = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.OAuthToken").msgclass
64
- OidcToken = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.OidcToken").msgclass
65
- HttpMethod = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.HttpMethod").enummodule
66
- end
67
- end
68
- end
69
- end
@@ -1,52 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/tasks/v2beta3/task.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/resource_pb'
8
- require 'google/cloud/tasks/v2beta3/target_pb'
9
- require 'google/protobuf/duration_pb'
10
- require 'google/protobuf/timestamp_pb'
11
- require 'google/rpc/status_pb'
12
- require 'google/api/annotations_pb'
13
- Google::Protobuf::DescriptorPool.generated_pool.build do
14
- add_message "google.cloud.tasks.v2beta3.Task" do
15
- optional :name, :string, 1
16
- optional :schedule_time, :message, 4, "google.protobuf.Timestamp"
17
- optional :create_time, :message, 5, "google.protobuf.Timestamp"
18
- optional :dispatch_deadline, :message, 12, "google.protobuf.Duration"
19
- optional :dispatch_count, :int32, 6
20
- optional :response_count, :int32, 7
21
- optional :first_attempt, :message, 8, "google.cloud.tasks.v2beta3.Attempt"
22
- optional :last_attempt, :message, 9, "google.cloud.tasks.v2beta3.Attempt"
23
- optional :view, :enum, 10, "google.cloud.tasks.v2beta3.Task.View"
24
- oneof :payload_type do
25
- optional :app_engine_http_request, :message, 3, "google.cloud.tasks.v2beta3.AppEngineHttpRequest"
26
- optional :http_request, :message, 11, "google.cloud.tasks.v2beta3.HttpRequest"
27
- end
28
- end
29
- add_enum "google.cloud.tasks.v2beta3.Task.View" do
30
- value :VIEW_UNSPECIFIED, 0
31
- value :BASIC, 1
32
- value :FULL, 2
33
- end
34
- add_message "google.cloud.tasks.v2beta3.Attempt" do
35
- optional :schedule_time, :message, 1, "google.protobuf.Timestamp"
36
- optional :dispatch_time, :message, 2, "google.protobuf.Timestamp"
37
- optional :response_time, :message, 3, "google.protobuf.Timestamp"
38
- optional :response_status, :message, 4, "google.rpc.Status"
39
- end
40
- end
41
-
42
- module Google
43
- module Cloud
44
- module Tasks
45
- module V2beta3
46
- Task = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.Task").msgclass
47
- Task::View = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.Task.View").enummodule
48
- Attempt = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.Attempt").msgclass
49
- end
50
- end
51
- end
52
- end