google-cloud-tasks 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/tasks.rb +2 -2
  4. data/lib/google/cloud/tasks/v2beta3.rb +138 -0
  5. data/lib/google/cloud/tasks/v2beta3/cloud_tasks_client.rb +1254 -0
  6. data/lib/google/cloud/tasks/v2beta3/cloud_tasks_client_config.json +106 -0
  7. data/lib/google/cloud/tasks/v2beta3/cloudtasks_pb.rb +99 -0
  8. data/lib/google/cloud/tasks/v2beta3/cloudtasks_services_pb.rb +200 -0
  9. data/lib/google/cloud/tasks/v2beta3/credentials.rb +41 -0
  10. data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/cloudtasks.rb +340 -0
  11. data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/queue.rb +306 -0
  12. data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/target.rb +265 -0
  13. data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/task.rb +141 -0
  14. data/lib/google/cloud/tasks/v2beta3/doc/google/iam/v1/iam_policy.rb +63 -0
  15. data/lib/google/cloud/tasks/v2beta3/doc/google/iam/v1/policy.rb +128 -0
  16. data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/any.rb +130 -0
  17. data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/duration.rb +91 -0
  18. data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/empty.rb +29 -0
  19. data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/field_mask.rb +230 -0
  20. data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/timestamp.rb +109 -0
  21. data/lib/google/cloud/tasks/v2beta3/doc/google/rpc/status.rb +84 -0
  22. data/lib/google/cloud/tasks/v2beta3/queue_pb.rb +53 -0
  23. data/lib/google/cloud/tasks/v2beta3/target_pb.rb +46 -0
  24. data/lib/google/cloud/tasks/v2beta3/task_pb.rb +48 -0
  25. metadata +25 -4
@@ -0,0 +1,84 @@
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
+
15
+
16
+ module Google
17
+ module Rpc
18
+ # The `Status` type defines a logical error model that is suitable for different
19
+ # programming environments, including REST APIs and RPC APIs. It is used by
20
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
21
+ #
22
+ # * Simple to use and understand for most users
23
+ # * Flexible enough to meet unexpected needs
24
+ #
25
+ # = Overview
26
+ #
27
+ # The `Status` message contains three pieces of data: error code, error message,
28
+ # and error details. The error code should be an enum value of
29
+ # {Google::Rpc::Code}, but it may accept additional error codes if needed. The
30
+ # error message should be a developer-facing English message that helps
31
+ # developers *understand* and *resolve* the error. If a localized user-facing
32
+ # error message is needed, put the localized message in the error details or
33
+ # localize it in the client. The optional error details may contain arbitrary
34
+ # information about the error. There is a predefined set of error detail types
35
+ # in the package `google.rpc` that can be used for common error conditions.
36
+ #
37
+ # = Language mapping
38
+ #
39
+ # The `Status` message is the logical representation of the error model, but it
40
+ # is not necessarily the actual wire format. When the `Status` message is
41
+ # exposed in different client libraries and different wire protocols, it can be
42
+ # mapped differently. For example, it will likely be mapped to some exceptions
43
+ # in Java, but more likely mapped to some error codes in C.
44
+ #
45
+ # = Other uses
46
+ #
47
+ # The error model and the `Status` message can be used in a variety of
48
+ # environments, either with or without APIs, to provide a
49
+ # consistent developer experience across different environments.
50
+ #
51
+ # Example uses of this error model include:
52
+ #
53
+ # * Partial errors. If a service needs to return partial errors to the client,
54
+ # it may embed the `Status` in the normal response to indicate the partial
55
+ # errors.
56
+ #
57
+ # * Workflow errors. A typical workflow has multiple steps. Each step may
58
+ # have a `Status` message for error reporting.
59
+ #
60
+ # * Batch operations. If a client uses batch request and batch response, the
61
+ # `Status` message should be used directly inside batch response, one for
62
+ # each error sub-response.
63
+ #
64
+ # * Asynchronous operations. If an API call embeds asynchronous operation
65
+ # results in its response, the status of those operations should be
66
+ # represented directly using the `Status` message.
67
+ #
68
+ # * Logging. If some API errors are stored in logs, the message `Status` could
69
+ # be used directly after any stripping needed for security/privacy reasons.
70
+ # @!attribute [rw] code
71
+ # @return [Integer]
72
+ # The status code, which should be an enum value of {Google::Rpc::Code}.
73
+ # @!attribute [rw] message
74
+ # @return [String]
75
+ # A developer-facing error message, which should be in English. Any
76
+ # user-facing error message should be localized and sent in the
77
+ # {Google::Rpc::Status#details} field, or localized by the client.
78
+ # @!attribute [rw] details
79
+ # @return [Array<Google::Protobuf::Any>]
80
+ # A list of messages that carry the error details. There is a common set of
81
+ # message types for APIs to use.
82
+ class Status; end
83
+ end
84
+ end
@@ -0,0 +1,53 @@
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/annotations_pb'
8
+ require 'google/cloud/tasks/v2beta3/target_pb'
9
+ require 'google/protobuf/duration_pb'
10
+ require 'google/protobuf/timestamp_pb'
11
+ Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_message "google.cloud.tasks.v2beta3.Queue" do
13
+ optional :name, :string, 1
14
+ optional :rate_limits, :message, 4, "google.cloud.tasks.v2beta3.RateLimits"
15
+ optional :retry_config, :message, 5, "google.cloud.tasks.v2beta3.RetryConfig"
16
+ optional :state, :enum, 6, "google.cloud.tasks.v2beta3.Queue.State"
17
+ optional :purge_time, :message, 7, "google.protobuf.Timestamp"
18
+ oneof :queue_type do
19
+ optional :app_engine_http_queue, :message, 3, "google.cloud.tasks.v2beta3.AppEngineHttpQueue"
20
+ end
21
+ end
22
+ add_enum "google.cloud.tasks.v2beta3.Queue.State" do
23
+ value :STATE_UNSPECIFIED, 0
24
+ value :RUNNING, 1
25
+ value :PAUSED, 2
26
+ value :DISABLED, 3
27
+ end
28
+ add_message "google.cloud.tasks.v2beta3.RateLimits" do
29
+ optional :max_dispatches_per_second, :double, 1
30
+ optional :max_burst_size, :int32, 2
31
+ optional :max_concurrent_dispatches, :int32, 3
32
+ end
33
+ add_message "google.cloud.tasks.v2beta3.RetryConfig" do
34
+ optional :max_attempts, :int32, 1
35
+ optional :max_retry_duration, :message, 2, "google.protobuf.Duration"
36
+ optional :min_backoff, :message, 3, "google.protobuf.Duration"
37
+ optional :max_backoff, :message, 4, "google.protobuf.Duration"
38
+ optional :max_doublings, :int32, 5
39
+ end
40
+ end
41
+
42
+ module Google
43
+ module Cloud
44
+ module Tasks
45
+ module V2beta3
46
+ Queue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.Queue").msgclass
47
+ Queue::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.Queue.State").enummodule
48
+ RateLimits = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.RateLimits").msgclass
49
+ RetryConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.RetryConfig").msgclass
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,46 @@
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.AppEngineHttpQueue" do
10
+ optional :app_engine_routing_override, :message, 1, "google.cloud.tasks.v2beta3.AppEngineRouting"
11
+ end
12
+ add_message "google.cloud.tasks.v2beta3.AppEngineHttpRequest" do
13
+ optional :http_method, :enum, 1, "google.cloud.tasks.v2beta3.HttpMethod"
14
+ optional :app_engine_routing, :message, 2, "google.cloud.tasks.v2beta3.AppEngineRouting"
15
+ optional :relative_uri, :string, 3
16
+ map :headers, :string, :string, 4
17
+ optional :body, :bytes, 5
18
+ end
19
+ add_message "google.cloud.tasks.v2beta3.AppEngineRouting" do
20
+ optional :service, :string, 1
21
+ optional :version, :string, 2
22
+ optional :instance, :string, 3
23
+ optional :host, :string, 4
24
+ end
25
+ add_enum "google.cloud.tasks.v2beta3.HttpMethod" do
26
+ value :HTTP_METHOD_UNSPECIFIED, 0
27
+ value :POST, 1
28
+ value :GET, 2
29
+ value :HEAD, 3
30
+ value :PUT, 4
31
+ value :DELETE, 5
32
+ end
33
+ end
34
+
35
+ module Google
36
+ module Cloud
37
+ module Tasks
38
+ module V2beta3
39
+ AppEngineHttpQueue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.AppEngineHttpQueue").msgclass
40
+ AppEngineHttpRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.AppEngineHttpRequest").msgclass
41
+ AppEngineRouting = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.AppEngineRouting").msgclass
42
+ HttpMethod = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.HttpMethod").enummodule
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,48 @@
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/annotations_pb'
8
+ require 'google/cloud/tasks/v2beta3/target_pb'
9
+ require 'google/protobuf/timestamp_pb'
10
+ require 'google/rpc/status_pb'
11
+ Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_message "google.cloud.tasks.v2beta3.Task" do
13
+ optional :name, :string, 1
14
+ optional :schedule_time, :message, 4, "google.protobuf.Timestamp"
15
+ optional :create_time, :message, 5, "google.protobuf.Timestamp"
16
+ optional :dispatch_count, :int32, 6
17
+ optional :response_count, :int32, 7
18
+ optional :first_attempt, :message, 8, "google.cloud.tasks.v2beta3.Attempt"
19
+ optional :last_attempt, :message, 9, "google.cloud.tasks.v2beta3.Attempt"
20
+ optional :view, :enum, 10, "google.cloud.tasks.v2beta3.Task.View"
21
+ oneof :payload_type do
22
+ optional :app_engine_http_request, :message, 3, "google.cloud.tasks.v2beta3.AppEngineHttpRequest"
23
+ end
24
+ end
25
+ add_enum "google.cloud.tasks.v2beta3.Task.View" do
26
+ value :VIEW_UNSPECIFIED, 0
27
+ value :BASIC, 1
28
+ value :FULL, 2
29
+ end
30
+ add_message "google.cloud.tasks.v2beta3.Attempt" do
31
+ optional :schedule_time, :message, 1, "google.protobuf.Timestamp"
32
+ optional :dispatch_time, :message, 2, "google.protobuf.Timestamp"
33
+ optional :response_time, :message, 3, "google.protobuf.Timestamp"
34
+ optional :response_status, :message, 4, "google.rpc.Status"
35
+ end
36
+ end
37
+
38
+ module Google
39
+ module Cloud
40
+ module Tasks
41
+ module V2beta3
42
+ Task = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.Task").msgclass
43
+ Task::View = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.Task.View").enummodule
44
+ Attempt = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2beta3.Attempt").msgclass
45
+ end
46
+ end
47
+ end
48
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-21 00:00:00.000000000 Z
11
+ date: 2018-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.50.0
75
+ version: 0.59.2
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.50.0
82
+ version: 0.59.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: simplecov
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -139,6 +139,27 @@ files:
139
139
  - lib/google/cloud/tasks/v2beta2/queue_pb.rb
140
140
  - lib/google/cloud/tasks/v2beta2/target_pb.rb
141
141
  - lib/google/cloud/tasks/v2beta2/task_pb.rb
142
+ - lib/google/cloud/tasks/v2beta3.rb
143
+ - lib/google/cloud/tasks/v2beta3/cloud_tasks_client.rb
144
+ - lib/google/cloud/tasks/v2beta3/cloud_tasks_client_config.json
145
+ - lib/google/cloud/tasks/v2beta3/cloudtasks_pb.rb
146
+ - lib/google/cloud/tasks/v2beta3/cloudtasks_services_pb.rb
147
+ - lib/google/cloud/tasks/v2beta3/credentials.rb
148
+ - lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/cloudtasks.rb
149
+ - lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/queue.rb
150
+ - lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/target.rb
151
+ - lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/task.rb
152
+ - lib/google/cloud/tasks/v2beta3/doc/google/iam/v1/iam_policy.rb
153
+ - lib/google/cloud/tasks/v2beta3/doc/google/iam/v1/policy.rb
154
+ - lib/google/cloud/tasks/v2beta3/doc/google/protobuf/any.rb
155
+ - lib/google/cloud/tasks/v2beta3/doc/google/protobuf/duration.rb
156
+ - lib/google/cloud/tasks/v2beta3/doc/google/protobuf/empty.rb
157
+ - lib/google/cloud/tasks/v2beta3/doc/google/protobuf/field_mask.rb
158
+ - lib/google/cloud/tasks/v2beta3/doc/google/protobuf/timestamp.rb
159
+ - lib/google/cloud/tasks/v2beta3/doc/google/rpc/status.rb
160
+ - lib/google/cloud/tasks/v2beta3/queue_pb.rb
161
+ - lib/google/cloud/tasks/v2beta3/target_pb.rb
162
+ - lib/google/cloud/tasks/v2beta3/task_pb.rb
142
163
  homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-tasks
143
164
  licenses:
144
165
  - Apache-2.0