google-cloud-tasks 0.2.6 → 0.3.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.rb +1 -1
- data/lib/google/cloud/tasks/v2beta2.rb +1 -1
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks_client.rb +1 -1
- data/lib/google/cloud/tasks/v2beta2/credentials.rb +1 -1
- data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/cloudtasks.rb +1 -1
- data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/queue.rb +1 -1
- data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/target.rb +1 -1
- data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/task.rb +1 -1
- data/lib/google/cloud/tasks/v2beta2/doc/google/iam/v1/iam_policy.rb +1 -1
- data/lib/google/cloud/tasks/v2beta2/doc/google/iam/v1/policy.rb +1 -25
- data/lib/google/cloud/tasks/v2beta2/doc/google/protobuf/any.rb +1 -1
- data/lib/google/cloud/tasks/v2beta2/doc/google/protobuf/duration.rb +1 -1
- data/lib/google/cloud/tasks/v2beta2/doc/google/protobuf/empty.rb +1 -1
- data/lib/google/cloud/tasks/v2beta2/doc/google/protobuf/field_mask.rb +1 -1
- data/lib/google/cloud/tasks/v2beta2/doc/google/protobuf/timestamp.rb +1 -1
- data/lib/google/cloud/tasks/v2beta2/doc/google/rpc/status.rb +1 -1
- data/lib/google/cloud/tasks/v2beta3.rb +1 -1
- data/lib/google/cloud/tasks/v2beta3/cloud_tasks_client.rb +1 -1
- data/lib/google/cloud/tasks/v2beta3/credentials.rb +1 -1
- data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/cloudtasks.rb +1 -1
- data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/queue.rb +21 -11
- data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/target.rb +22 -9
- data/lib/google/cloud/tasks/v2beta3/doc/google/cloud/tasks/v2beta3/task.rb +33 -6
- data/lib/google/cloud/tasks/v2beta3/doc/google/iam/v1/iam_policy.rb +1 -1
- data/lib/google/cloud/tasks/v2beta3/doc/google/iam/v1/policy.rb +1 -25
- data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/any.rb +1 -1
- data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/duration.rb +1 -1
- data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/empty.rb +1 -1
- data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/field_mask.rb +1 -1
- data/lib/google/cloud/tasks/v2beta3/doc/google/protobuf/timestamp.rb +1 -1
- data/lib/google/cloud/tasks/v2beta3/doc/google/rpc/status.rb +1 -1
- data/lib/google/cloud/tasks/v2beta3/target_pb.rb +2 -0
- data/lib/google/cloud/tasks/v2beta3/task_pb.rb +2 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1de76d4bcf754951a5842548b490c7667a125f2927ce7c67e72c4a057a3e709
|
4
|
+
data.tar.gz: 25145bfe4ba73f34d4078294a185d00aa2a292d8109f3c5bbbe5f2c0e293c0c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd3a4383a06ade7155334f04719f43dc39b430d45bcec0927da38d7c48b6a3fb2d8d745ba0bf6df3a95255caf342f5b03c648c680b95208c3e825bcef0d36799
|
7
|
+
data.tar.gz: 7222dbae191fd758ae2e044bac04433d6c9db44a946963bdb87680ee7d9e99d293da756e20cd2d3711d404440ee743acae761c33cd8fe01511b2723eb398ff96
|
data/lib/google/cloud/tasks.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2019 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -99,30 +99,6 @@ module Google
|
|
99
99
|
# * `domain:{domain}`: A Google Apps domain name that represents all the
|
100
100
|
# users of that domain. For example, `google.com` or `example.com`.
|
101
101
|
class Binding; end
|
102
|
-
|
103
|
-
# The difference delta between two policies.
|
104
|
-
# @!attribute [rw] binding_deltas
|
105
|
-
# @return [Array<Google::Iam::V1::BindingDelta>]
|
106
|
-
# The delta for Bindings between two policies.
|
107
|
-
class PolicyDelta; end
|
108
|
-
|
109
|
-
# One delta entry for Binding. Each individual change (only one member in each
|
110
|
-
# entry) to a binding will be a separate entry.
|
111
|
-
# @!attribute [rw] action
|
112
|
-
# @return [Google::Iam::V1::BindingDelta::Action]
|
113
|
-
# The action that was performed on a Binding.
|
114
|
-
# Required
|
115
|
-
# @!attribute [rw] role
|
116
|
-
# @return [String]
|
117
|
-
# Role that is assigned to `members`.
|
118
|
-
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
119
|
-
# Required
|
120
|
-
# @!attribute [rw] member
|
121
|
-
# @return [String]
|
122
|
-
# A single identity requesting access for a Cloud Platform resource.
|
123
|
-
# Follows the same format of Binding.members.
|
124
|
-
# Required
|
125
|
-
class BindingDelta; end
|
126
102
|
end
|
127
103
|
end
|
128
104
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2019 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -42,17 +42,15 @@ module Google
|
|
42
42
|
# hyphens (-). The maximum length is 100 characters.
|
43
43
|
# @!attribute [rw] app_engine_http_queue
|
44
44
|
# @return [Google::Cloud::Tasks::V2beta3::AppEngineHttpQueue]
|
45
|
-
#
|
46
|
-
#
|
47
|
-
# An App Engine queue is a queue that has an {Google::Cloud::Tasks::V2beta3::AppEngineHttpQueue AppEngineHttpQueue} type.
|
45
|
+
# {Google::Cloud::Tasks::V2beta3::AppEngineHttpQueue AppEngineHttpQueue} settings apply only to
|
46
|
+
# {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest App Engine tasks} in this queue.
|
48
47
|
# @!attribute [rw] rate_limits
|
49
48
|
# @return [Google::Cloud::Tasks::V2beta3::RateLimits]
|
50
49
|
# Rate limits for task dispatches.
|
51
50
|
#
|
52
|
-
# {Google::Cloud::Tasks::V2beta3::Queue#rate_limits rate_limits} and
|
53
|
-
#
|
54
|
-
#
|
55
|
-
# attempted in different ways:
|
51
|
+
# {Google::Cloud::Tasks::V2beta3::Queue#rate_limits rate_limits} and {Google::Cloud::Tasks::V2beta3::Queue#retry_config retry_config} are
|
52
|
+
# related because they both control task attempts. However they control task
|
53
|
+
# attempts in different ways:
|
56
54
|
#
|
57
55
|
# * {Google::Cloud::Tasks::V2beta3::Queue#rate_limits rate_limits} controls the total rate of
|
58
56
|
# dispatches from a queue (i.e. all traffic dispatched from the
|
@@ -62,6 +60,16 @@ module Google
|
|
62
60
|
# particular a task after its first attempt fails. That is,
|
63
61
|
# {Google::Cloud::Tasks::V2beta3::Queue#retry_config retry_config} controls task retries (the
|
64
62
|
# second attempt, third attempt, etc).
|
63
|
+
#
|
64
|
+
# The queue's actual dispatch rate is the result of:
|
65
|
+
#
|
66
|
+
# * Number of tasks in the queue
|
67
|
+
# * User-specified throttling: {Queue::RateLimits rate limits}
|
68
|
+
# {Queue::RetryConfig retry configuration}, and the
|
69
|
+
# {Google::Cloud::Tasks::V2beta3::Queue#state queue's state}.
|
70
|
+
# * System throttling due to `429` (Too Many Requests) or `503` (Service
|
71
|
+
# Unavailable) responses from the worker, high error rates, or to smooth
|
72
|
+
# sudden large traffic spikes.
|
65
73
|
# @!attribute [rw] retry_config
|
66
74
|
# @return [Google::Cloud::Tasks::V2beta3::RetryConfig]
|
67
75
|
# Settings that determine the retry behavior.
|
@@ -118,9 +126,11 @@ module Google
|
|
118
126
|
# The queue is disabled.
|
119
127
|
#
|
120
128
|
# A queue becomes `DISABLED` when
|
121
|
-
# [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref)
|
122
|
-
#
|
123
|
-
#
|
129
|
+
# [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref)
|
130
|
+
# or
|
131
|
+
# [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref)
|
132
|
+
# is uploaded which does not contain the queue. You cannot directly disable
|
133
|
+
# a queue.
|
124
134
|
#
|
125
135
|
# When a queue is disabled, tasks can still be added to a queue
|
126
136
|
# but the tasks are not dispatched.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2019 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -60,6 +60,11 @@ module Google
|
|
60
60
|
# [How Requests are Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
|
61
61
|
# and how routing is affected by
|
62
62
|
# [dispatch files](https://cloud.google.com/appengine/docs/python/config/dispatchref).
|
63
|
+
# Traffic is encrypted during transport and never leaves Google datacenters.
|
64
|
+
# Because this traffic is carried over a communication mechanism internal to
|
65
|
+
# Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS).
|
66
|
+
# The request to the handler, however, will appear to have used the HTTP
|
67
|
+
# protocol.
|
63
68
|
#
|
64
69
|
# The {Google::Cloud::Tasks::V2beta3::AppEngineRouting AppEngineRouting} used to construct the URL that the task is
|
65
70
|
# delivered to can be set at the queue-level or task-level:
|
@@ -76,6 +81,14 @@ module Google
|
|
76
81
|
# * `url =` {Google::Cloud::Tasks::V2beta3::AppEngineRouting#host host} `+`
|
77
82
|
# {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest#relative_uri relative_uri}
|
78
83
|
#
|
84
|
+
# Tasks can be dispatched to secure app handlers, unsecure app handlers, and
|
85
|
+
# URIs restricted with
|
86
|
+
# [`login: admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref).
|
87
|
+
# Because tasks are not run as any user, they cannot be dispatched to URIs
|
88
|
+
# restricted with
|
89
|
+
# [`login: required`](https://cloud.google.com/appengine/docs/standard/python/config/appref)
|
90
|
+
# Task dispatches also do not follow redirects.
|
91
|
+
#
|
79
92
|
# The task attempt has succeeded if the app's request handler returns
|
80
93
|
# an HTTP response code in the range [`200` - `299`]. `503` is
|
81
94
|
# considered an App Engine system error instead of an application
|
@@ -163,14 +176,8 @@ module Google
|
|
163
176
|
|
164
177
|
# App Engine Routing.
|
165
178
|
#
|
166
|
-
#
|
167
|
-
#
|
168
|
-
# [`login: admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref)
|
169
|
-
# the protocol (for example, HTTP or HTTPS) cannot be explictly specified.
|
170
|
-
# Task dispatches do not follow redirects and cannot target URI paths
|
171
|
-
# restricted with
|
172
|
-
# [`login: required`](https://cloud.google.com/appengine/docs/standard/python/config/appref)
|
173
|
-
# because tasks are not run as any user.
|
179
|
+
# Defines routing characteristics specific to App Engine - service, version,
|
180
|
+
# and instance.
|
174
181
|
#
|
175
182
|
# For more information about services, versions, and instances see
|
176
183
|
# [An Overview of App Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
|
@@ -258,6 +265,12 @@ module Google
|
|
258
265
|
|
259
266
|
# HTTP DELETE
|
260
267
|
DELETE = 5
|
268
|
+
|
269
|
+
# HTTP PATCH
|
270
|
+
PATCH = 6
|
271
|
+
|
272
|
+
# HTTP OPTIONS
|
273
|
+
OPTIONS = 7
|
261
274
|
end
|
262
275
|
end
|
263
276
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2019 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -41,10 +41,7 @@ module Google
|
|
41
41
|
# hyphens (-), or underscores (_). The maximum length is 500 characters.
|
42
42
|
# @!attribute [rw] app_engine_http_request
|
43
43
|
# @return [Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest]
|
44
|
-
#
|
45
|
-
# be set only if
|
46
|
-
# {Google::Cloud::Tasks::V2beta3::Queue#app_engine_http_queue app_engine_http_queue} is set
|
47
|
-
# on the queue.
|
44
|
+
# HTTP request that is sent to the App Engine app handler.
|
48
45
|
#
|
49
46
|
# An App Engine task is a task that has {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest AppEngineHttpRequest} set.
|
50
47
|
# @!attribute [rw] schedule_time
|
@@ -59,6 +56,36 @@ module Google
|
|
59
56
|
# Output only. The time that the task was created.
|
60
57
|
#
|
61
58
|
# `create_time` will be truncated to the nearest second.
|
59
|
+
# @!attribute [rw] dispatch_deadline
|
60
|
+
# @return [Google::Protobuf::Duration]
|
61
|
+
# The deadline for requests sent to the worker. If the worker does not
|
62
|
+
# respond by this deadline then the request is cancelled and the attempt
|
63
|
+
# is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
|
64
|
+
# task according to the {Google::Cloud::Tasks::V2beta3::RetryConfig RetryConfig}.
|
65
|
+
#
|
66
|
+
# Note that when the request is cancelled, Cloud Tasks will stop listing for
|
67
|
+
# the response, but whether the worker stops processing depends on the
|
68
|
+
# worker. For example, if the worker is stuck, it may not react to cancelled
|
69
|
+
# requests.
|
70
|
+
#
|
71
|
+
# The default and maximum values depend on the type of request:
|
72
|
+
#
|
73
|
+
#
|
74
|
+
# * For {Google::Cloud::Tasks::V2beta3::AppEngineHttpRequest App Engine tasks}, 0 indicates that the
|
75
|
+
# request has the default deadline. The default deadline depends on the
|
76
|
+
# [scaling type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
|
77
|
+
# of the service: 10 minutes for standard apps with automatic scaling, 24
|
78
|
+
# hours for standard apps with manual and basic scaling, and 60 minutes for
|
79
|
+
# flex apps. If the request deadline is set, it must be in the interval [15
|
80
|
+
# seconds, 24 hours 15 seconds]. Regardless of the task's
|
81
|
+
# `dispatch_deadline`, the app handler will not run for longer than than
|
82
|
+
# the service's timeout. We recommend setting the `dispatch_deadline` to
|
83
|
+
# at most a few seconds more than the app handler's timeout. For more
|
84
|
+
# information see
|
85
|
+
# [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
|
86
|
+
#
|
87
|
+
# `dispatch_deadline` will be truncated to the nearest millisecond. The
|
88
|
+
# deadline is an approximate deadline.
|
62
89
|
# @!attribute [rw] dispatch_count
|
63
90
|
# @return [Integer]
|
64
91
|
# Output only. The number of attempts dispatched.
|
@@ -130,7 +157,7 @@ module Google
|
|
130
157
|
# `response_time` will be truncated to the nearest microsecond.
|
131
158
|
# @!attribute [rw] response_status
|
132
159
|
# @return [Google::Rpc::Status]
|
133
|
-
# Output only. The response from the
|
160
|
+
# Output only. The response from the worker for this attempt.
|
134
161
|
#
|
135
162
|
# If `response_time` is unset, then the task has not been attempted or is
|
136
163
|
# currently running and the `response_status` field is meaningless.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2019 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -99,30 +99,6 @@ module Google
|
|
99
99
|
# * `domain:{domain}`: A Google Apps domain name that represents all the
|
100
100
|
# users of that domain. For example, `google.com` or `example.com`.
|
101
101
|
class Binding; end
|
102
|
-
|
103
|
-
# The difference delta between two policies.
|
104
|
-
# @!attribute [rw] binding_deltas
|
105
|
-
# @return [Array<Google::Iam::V1::BindingDelta>]
|
106
|
-
# The delta for Bindings between two policies.
|
107
|
-
class PolicyDelta; end
|
108
|
-
|
109
|
-
# One delta entry for Binding. Each individual change (only one member in each
|
110
|
-
# entry) to a binding will be a separate entry.
|
111
|
-
# @!attribute [rw] action
|
112
|
-
# @return [Google::Iam::V1::BindingDelta::Action]
|
113
|
-
# The action that was performed on a Binding.
|
114
|
-
# Required
|
115
|
-
# @!attribute [rw] role
|
116
|
-
# @return [String]
|
117
|
-
# Role that is assigned to `members`.
|
118
|
-
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
119
|
-
# Required
|
120
|
-
# @!attribute [rw] member
|
121
|
-
# @return [String]
|
122
|
-
# A single identity requesting access for a Cloud Platform resource.
|
123
|
-
# Follows the same format of Binding.members.
|
124
|
-
# Required
|
125
|
-
class BindingDelta; end
|
126
102
|
end
|
127
103
|
end
|
128
104
|
end
|
@@ -6,6 +6,7 @@ require 'google/protobuf'
|
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/cloud/tasks/v2beta3/target_pb'
|
9
|
+
require 'google/protobuf/duration_pb'
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
10
11
|
require 'google/rpc/status_pb'
|
11
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -13,6 +14,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
13
14
|
optional :name, :string, 1
|
14
15
|
optional :schedule_time, :message, 4, "google.protobuf.Timestamp"
|
15
16
|
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
17
|
+
optional :dispatch_deadline, :message, 12, "google.protobuf.Duration"
|
16
18
|
optional :dispatch_count, :int32, 6
|
17
19
|
optional :response_count, :int32, 7
|
18
20
|
optional :first_attempt, :message, 8, "google.cloud.tasks.v2beta3.Attempt"
|
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.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-04 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.
|
75
|
+
version: 0.61.0
|
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.
|
82
|
+
version: 0.61.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: simplecov
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
182
|
rubyforge_project:
|
183
|
-
rubygems_version: 2.7.
|
183
|
+
rubygems_version: 2.7.6
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: API Client library for Cloud Tasks API
|