google-cloud-tasks 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/tasks.rb +6 -0
- data/lib/google/cloud/tasks/v2beta2.rb +6 -0
- data/lib/google/cloud/tasks/v2beta2/cloud_tasks_client.rb +5 -3
- data/lib/google/cloud/tasks/v2beta2/cloudtasks_pb.rb +1 -0
- data/lib/google/cloud/tasks/v2beta2/cloudtasks_services_pb.rb +1 -0
- data/lib/google/cloud/tasks/v2beta2/credentials.rb +1 -0
- data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/cloudtasks.rb +1 -0
- data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/queue.rb +1 -0
- data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/target.rb +1 -0
- data/lib/google/cloud/tasks/v2beta2/doc/google/cloud/tasks/v2beta2/task.rb +1 -0
- data/lib/google/cloud/tasks/v2beta2/doc/google/iam/v1/iam_policy.rb +4 -3
- data/lib/google/cloud/tasks/v2beta2/doc/google/iam/v1/policy.rb +5 -4
- data/lib/google/cloud/tasks/v2beta2/doc/google/protobuf/any.rb +14 -8
- data/lib/google/cloud/tasks/v2beta2/doc/google/protobuf/duration.rb +1 -0
- data/lib/google/cloud/tasks/v2beta2/doc/google/protobuf/empty.rb +1 -0
- data/lib/google/cloud/tasks/v2beta2/doc/google/protobuf/field_mask.rb +7 -0
- data/lib/google/cloud/tasks/v2beta2/doc/google/protobuf/timestamp.rb +9 -6
- data/lib/google/cloud/tasks/v2beta2/doc/google/rpc/status.rb +1 -0
- data/lib/google/cloud/tasks/v2beta2/doc/overview.rb +1 -0
- data/lib/google/cloud/tasks/v2beta2/queue_pb.rb +1 -0
- data/lib/google/cloud/tasks/v2beta2/target_pb.rb +1 -0
- data/lib/google/cloud/tasks/v2beta2/task_pb.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8457ebffcb1198e249e7cab9d03050ee15f3dbe88c3e18d4fea7d89d756c5c6
|
4
|
+
data.tar.gz: 5097710dee88268f2bc5cb6af1e3dd7be6371bbcb30e6b38d8a3942f5c318661
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89e7fc2ef5122ce303fffdaae7ca2108b6f58aa83e28cc993f96adb939cdb48b97480267c8381117ebf305a6b3c62d5192bada98ecebd03a5ecc5cf32cd5577e
|
7
|
+
data.tar.gz: f8c138b2161c2d7bed3921aa33a5c4c6b78d72c8871adb9cefb2eab20888439c9719ff170e24299e7f748e162bcd6a2453712dc61949dbf68928ac51d9e58310
|
data/lib/google/cloud/tasks.rb
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
require "google/gax"
|
16
17
|
require "pathname"
|
17
18
|
|
@@ -35,6 +36,11 @@ module Google
|
|
35
36
|
# 3. [Enable the Cloud Tasks API.](https://console.cloud.google.com/apis/library/tasks.googleapis.com)
|
36
37
|
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
37
38
|
#
|
39
|
+
# ### Installation
|
40
|
+
# ```
|
41
|
+
# $ gem install google-cloud-tasks
|
42
|
+
# ```
|
43
|
+
#
|
38
44
|
# ### Next Steps
|
39
45
|
# - Read the [Cloud Tasks API Product documentation][Product Documentation]
|
40
46
|
# to learn more about the product and see How-to Guides.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
require "google/cloud/tasks/v2beta2/cloud_tasks_client"
|
16
17
|
|
17
18
|
module Google
|
@@ -35,6 +36,11 @@ module Google
|
|
35
36
|
# 3. [Enable the Cloud Tasks API.](https://console.cloud.google.com/apis/library/tasks.googleapis.com)
|
36
37
|
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
37
38
|
#
|
39
|
+
# ### Installation
|
40
|
+
# ```
|
41
|
+
# $ gem install google-cloud-tasks
|
42
|
+
# ```
|
43
|
+
#
|
38
44
|
# ### Next Steps
|
39
45
|
# - Read the [Cloud Tasks API Product documentation][Product Documentation]
|
40
46
|
# to learn more about the product and see How-to Guides.
|
@@ -19,6 +19,7 @@
|
|
19
19
|
# For the short term, the refresh process will only be runnable by Google
|
20
20
|
# engineers.
|
21
21
|
|
22
|
+
|
22
23
|
require "json"
|
23
24
|
require "pathname"
|
24
25
|
|
@@ -37,6 +38,7 @@ module Google
|
|
37
38
|
# @!attribute [r] cloud_tasks_stub
|
38
39
|
# @return [Google::Cloud::Tasks::V2beta2::CloudTasks::Stub]
|
39
40
|
class CloudTasksClient
|
41
|
+
# @private
|
40
42
|
attr_reader :cloud_tasks_stub
|
41
43
|
|
42
44
|
# The default address of the service.
|
@@ -815,7 +817,7 @@ module Google
|
|
815
817
|
# @param resource [String]
|
816
818
|
# REQUIRED: The resource for which the policy is being requested.
|
817
819
|
# +resource+ is usually specified as a path. For example, a Project
|
818
|
-
# resource is specified as +projects
|
820
|
+
# resource is specified as +projects/\\{project}+.
|
819
821
|
# @param options [Google::Gax::CallOptions]
|
820
822
|
# Overrides the default settings for this call, e.g, timeout,
|
821
823
|
# retries, etc.
|
@@ -857,7 +859,7 @@ module Google
|
|
857
859
|
# @param resource [String]
|
858
860
|
# REQUIRED: The resource for which the policy is being specified.
|
859
861
|
# +resource+ is usually specified as a path. For example, a Project
|
860
|
-
# resource is specified as +projects
|
862
|
+
# resource is specified as +projects/\\{project}+.
|
861
863
|
# @param policy [Google::Iam::V1::Policy | Hash]
|
862
864
|
# REQUIRED: The complete policy to be applied to the +resource+. The size of
|
863
865
|
# the policy is limited to a few 10s of KB. An empty policy is a
|
@@ -907,7 +909,7 @@ module Google
|
|
907
909
|
# @param resource [String]
|
908
910
|
# REQUIRED: The resource for which the policy detail is being requested.
|
909
911
|
# +resource+ is usually specified as a path. For example, a Project
|
910
|
-
# resource is specified as +projects
|
912
|
+
# resource is specified as +projects/\\{project}+.
|
911
913
|
# @param permissions [Array<String>]
|
912
914
|
# The set of permissions to check for the +resource+. Permissions with
|
913
915
|
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Iam
|
17
18
|
module V1
|
@@ -20,7 +21,7 @@ module Google
|
|
20
21
|
# @return [String]
|
21
22
|
# REQUIRED: The resource for which the policy is being specified.
|
22
23
|
# +resource+ is usually specified as a path. For example, a Project
|
23
|
-
# resource is specified as +projects
|
24
|
+
# resource is specified as +projects/\\{project}+.
|
24
25
|
# @!attribute [rw] policy
|
25
26
|
# @return [Google::Iam::V1::Policy]
|
26
27
|
# REQUIRED: The complete policy to be applied to the +resource+. The size of
|
@@ -34,7 +35,7 @@ module Google
|
|
34
35
|
# @return [String]
|
35
36
|
# REQUIRED: The resource for which the policy is being requested.
|
36
37
|
# +resource+ is usually specified as a path. For example, a Project
|
37
|
-
# resource is specified as +projects
|
38
|
+
# resource is specified as +projects/\\{project}+.
|
38
39
|
class GetIamPolicyRequest; end
|
39
40
|
|
40
41
|
# Request message for +TestIamPermissions+ method.
|
@@ -42,7 +43,7 @@ module Google
|
|
42
43
|
# @return [String]
|
43
44
|
# REQUIRED: The resource for which the policy detail is being requested.
|
44
45
|
# +resource+ is usually specified as a path. For example, a Project
|
45
|
-
# resource is specified as +projects
|
46
|
+
# resource is specified as +projects/\\{project}+.
|
46
47
|
# @!attribute [rw] permissions
|
47
48
|
# @return [Array<String>]
|
48
49
|
# The set of permissions to check for the +resource+. Permissions with
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Iam
|
17
18
|
module V1
|
@@ -85,17 +86,17 @@ module Google
|
|
85
86
|
# * +allAuthenticatedUsers+: A special identifier that represents anyone
|
86
87
|
# who is authenticated with a Google account or a service account.
|
87
88
|
#
|
88
|
-
# * +user
|
89
|
+
# * +user:\\{emailid}+: An email address that represents a specific Google
|
89
90
|
# account. For example, +alice@gmail.com+ or +joe@example.com+.
|
90
91
|
#
|
91
92
|
#
|
92
|
-
# * +serviceAccount
|
93
|
+
# * +serviceAccount:\\{emailid}+: An email address that represents a service
|
93
94
|
# account. For example, +my-other-app@appspot.gserviceaccount.com+.
|
94
95
|
#
|
95
|
-
# * +group
|
96
|
+
# * +group:\\{emailid}+: An email address that represents a Google group.
|
96
97
|
# For example, +admins@example.com+.
|
97
98
|
#
|
98
|
-
# * +domain
|
99
|
+
# * +domain:\\{domain}+: A Google Apps domain name that represents all the
|
99
100
|
# users of that domain. For example, +google.com+ or +example.com+.
|
100
101
|
class Binding; end
|
101
102
|
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Protobuf
|
17
18
|
# +Any+ contains an arbitrary serialized protocol buffer message along with a
|
@@ -95,17 +96,18 @@ module Google
|
|
95
96
|
# }
|
96
97
|
# @!attribute [rw] type_url
|
97
98
|
# @return [String]
|
98
|
-
# A URL/resource name
|
99
|
-
#
|
99
|
+
# A URL/resource name that uniquely identifies the type of the serialized
|
100
|
+
# protocol buffer message. The last segment of the URL's path must represent
|
101
|
+
# the fully qualified name of the type (as in
|
102
|
+
# +path/google.protobuf.Duration+). The name should be in a canonical form
|
103
|
+
# (e.g., leading "." is not accepted).
|
100
104
|
#
|
101
|
-
#
|
102
|
-
#
|
105
|
+
# In practice, teams usually precompile into the binary all types that they
|
106
|
+
# expect it to use in the context of Any. However, for URLs which use the
|
107
|
+
# scheme +http+, +https+, or no scheme, one can optionally set up a type
|
108
|
+
# server that maps type URLs to message definitions as follows:
|
103
109
|
#
|
104
110
|
# * If no scheme is provided, +https+ is assumed.
|
105
|
-
# * The last segment of the URL's path must represent the fully
|
106
|
-
# qualified name of the type (as in +path/google.protobuf.Duration+).
|
107
|
-
# The name should be in a canonical form (e.g., leading "." is
|
108
|
-
# not accepted).
|
109
111
|
# * An HTTP GET on the URL must yield a {Google::Protobuf::Type}
|
110
112
|
# value in binary format, or produce an error.
|
111
113
|
# * Applications are allowed to cache lookup results based on the
|
@@ -114,6 +116,10 @@ module Google
|
|
114
116
|
# on changes to types. (Use versioned type names to manage
|
115
117
|
# breaking changes.)
|
116
118
|
#
|
119
|
+
# Note: this functionality is not currently available in the official
|
120
|
+
# protobuf release, and it is not used for type URLs beginning with
|
121
|
+
# type.googleapis.com.
|
122
|
+
#
|
117
123
|
# Schemes other than +http+, +https+ (or the empty scheme) might be
|
118
124
|
# used with implementation specific semantics.
|
119
125
|
# @!attribute [rw] value
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Protobuf
|
17
18
|
# +FieldMask+ represents a set of symbolic field paths, for example:
|
@@ -215,6 +216,12 @@ module Google
|
|
215
216
|
#
|
216
217
|
# Note that oneof type names ("test_oneof" in this case) cannot be used in
|
217
218
|
# paths.
|
219
|
+
#
|
220
|
+
# == Field Mask Verification
|
221
|
+
#
|
222
|
+
# The implementation of any API method which has a FieldMask type field in the
|
223
|
+
# request should verify the included field paths, and return an
|
224
|
+
# +INVALID_ARGUMENT+ error if any path is duplicated or unmappable.
|
218
225
|
# @!attribute [rw] paths
|
219
226
|
# @return [Array<String>]
|
220
227
|
# The set of field mask paths.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Protobuf
|
17
18
|
# A Timestamp represents a point in time independent of any time zone
|
@@ -72,12 +73,14 @@ module Google
|
|
72
73
|
#
|
73
74
|
# In JSON format, the Timestamp type is encoded as a string in the
|
74
75
|
# [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
75
|
-
# format is "{year}
|
76
|
-
# where {year} is always expressed using four digits while {month}, {day},
|
77
|
-
# {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
76
|
+
# format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z"
|
77
|
+
# where \\{year} is always expressed using four digits while \\{month}, \\{day},
|
78
|
+
# \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional
|
78
79
|
# seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
79
80
|
# are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
80
|
-
# is required
|
81
|
+
# is required. A proto3 JSON serializer should always use UTC (as indicated by
|
82
|
+
# "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
83
|
+
# able to accept both UTC and other timezones (as indicated by an offset).
|
81
84
|
#
|
82
85
|
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
83
86
|
# 01:30 UTC on January 15, 2017.
|
@@ -88,8 +91,8 @@ module Google
|
|
88
91
|
# to this format using [+strftime+](https://docs.python.org/2/library/time.html#time.strftime)
|
89
92
|
# with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
|
90
93
|
# can use the Joda Time's [+ISODateTimeFormat.dateTime()+](
|
91
|
-
# http://joda-time
|
92
|
-
# to obtain a formatter capable of generating timestamps in this format.
|
94
|
+
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime--
|
95
|
+
# ) to obtain a formatter capable of generating timestamps in this format.
|
93
96
|
# @!attribute [rw] seconds
|
94
97
|
# @return [Integer]
|
95
98
|
# Represents seconds of UTC time since Unix epoch
|
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
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|