google-cloud-tasks-v2beta3 0.3.3 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,6 +21,33 @@ module Google
21
21
  module Cloud
22
22
  module Tasks
23
23
  module V2beta3
24
+ # Pull Message.
25
+ #
26
+ # This proto can only be used for tasks in a queue which has
27
+ # {::Google::Cloud::Tasks::V2beta3::Queue#type PULL} type. It currently exists for backwards compatibility with
28
+ # the App Engine Task Queue SDK. This message type maybe returned with methods
29
+ # [list][google.cloud.tasks.v2beta3.CloudTask.ListTasks] and
30
+ # [get][google.cloud.tasks.v2beta3.CloudTask.ListTasks], when the response view
31
+ # is [FULL][google.cloud.tasks.v2beta3.Task.View.Full].
32
+ # @!attribute [rw] payload
33
+ # @return [::String]
34
+ # A data payload consumed by the worker to execute the task.
35
+ # @!attribute [rw] tag
36
+ # @return [::String]
37
+ # The tasks's tag.
38
+ #
39
+ # The tag is less than 500 characters.
40
+ #
41
+ # SDK compatibility: Although the SDK allows tags to be either
42
+ # string or
43
+ # [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
44
+ # only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
45
+ # encoded, the tag will be empty when the task is returned by Cloud Tasks.
46
+ class PullMessage
47
+ include ::Google::Protobuf::MessageExts
48
+ extend ::Google::Protobuf::MessageExts::ClassMethods
49
+ end
50
+
24
51
  # HTTP request.
25
52
  #
26
53
  # The task will be pushed to the worker as an HTTP request. If the worker
@@ -54,6 +54,15 @@ module Google
54
54
  # HTTP request that is sent to the task's target.
55
55
  #
56
56
  # An HTTP task is a task that has {::Google::Cloud::Tasks::V2beta3::HttpRequest HttpRequest} set.
57
+ # @!attribute [rw] pull_message
58
+ # @return [::Google::Cloud::Tasks::V2beta3::PullMessage]
59
+ # Pull Message contained in a task in a {::Google::Cloud::Tasks::V2beta3::Queue#type PULL} queue type. This
60
+ # payload type cannot be explicitly set through Cloud Tasks API. Its
61
+ # purpose, currently is to provide backward compatibility with App Engine
62
+ # Task Queue
63
+ # [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/)
64
+ # queues to provide a way to inspect contents of pull tasks through the
65
+ # {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#get_task CloudTasks.GetTask}.
57
66
  # @!attribute [rw] schedule_time
58
67
  # @return [::Google::Protobuf::Timestamp]
59
68
  # The time when the task is scheduled to be attempted.
@@ -57,10 +57,13 @@ module Google
57
57
  # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
- # any, err := ptypes.MarshalAny(foo)
60
+ # any, err := anypb.New(foo)
61
+ # if err != nil {
62
+ # ...
63
+ # }
61
64
  # ...
62
65
  # foo := &pb.Foo{}
63
- # if err := ptypes.UnmarshalAny(any, foo); err != nil {
66
+ # if err := any.UnmarshalTo(foo); err != nil {
64
67
  # ...
65
68
  # }
66
69
  #
@@ -70,7 +70,16 @@ module Google
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
72
  #
73
- # Example 5: Compute Timestamp from current time in Python.
73
+ # Example 5: Compute Timestamp from Java `Instant.now()`.
74
+ #
75
+ # Instant now = Instant.now();
76
+ #
77
+ # Timestamp timestamp =
78
+ # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
+ # .setNanos(now.getNano()).build();
80
+ #
81
+ #
82
+ # Example 6: Compute Timestamp from current time in Python.
74
83
  #
75
84
  # timestamp = Timestamp()
76
85
  # timestamp.GetCurrentTime()
@@ -19,30 +19,53 @@
19
19
 
20
20
  module Google
21
21
  module Type
22
- # Represents an expression text. Example:
22
+ # Represents a textual expression in the Common Expression Language (CEL)
23
+ # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
24
+ # are documented at https://github.com/google/cel-spec.
23
25
  #
24
- # title: "User account presence"
25
- # description: "Determines whether the request has a user account"
26
- # expression: "size(request.user) > 0"
26
+ # Example (Comparison):
27
+ #
28
+ # title: "Summary size limit"
29
+ # description: "Determines if a summary is less than 100 chars"
30
+ # expression: "document.summary.size() < 100"
31
+ #
32
+ # Example (Equality):
33
+ #
34
+ # title: "Requestor is owner"
35
+ # description: "Determines if requestor is the document owner"
36
+ # expression: "document.owner == request.auth.claims.email"
37
+ #
38
+ # Example (Logic):
39
+ #
40
+ # title: "Public documents"
41
+ # description: "Determine whether the document should be publicly visible"
42
+ # expression: "document.type != 'private' && document.type != 'internal'"
43
+ #
44
+ # Example (Data Manipulation):
45
+ #
46
+ # title: "Notification string"
47
+ # description: "Create a notification string with a timestamp."
48
+ # expression: "'New message received at ' + string(document.create_time)"
49
+ #
50
+ # The exact variables and functions that may be referenced within an expression
51
+ # are determined by the service that evaluates it. See the service
52
+ # documentation for additional information.
27
53
  # @!attribute [rw] expression
28
54
  # @return [::String]
29
- # Textual representation of an expression in
30
- # Common Expression Language syntax.
31
- #
32
- # The application context of the containing message determines which
33
- # well-known feature set of CEL is supported.
55
+ # Textual representation of an expression in Common Expression Language
56
+ # syntax.
34
57
  # @!attribute [rw] title
35
58
  # @return [::String]
36
- # An optional title for the expression, i.e. a short string describing
59
+ # Optional. Title for the expression, i.e. a short string describing
37
60
  # its purpose. This can be used e.g. in UIs which allow to enter the
38
61
  # expression.
39
62
  # @!attribute [rw] description
40
63
  # @return [::String]
41
- # An optional description of the expression. This is a longer text which
64
+ # Optional. Description of the expression. This is a longer text which
42
65
  # describes the expression, e.g. when hovered over it in a UI.
43
66
  # @!attribute [rw] location
44
67
  # @return [::String]
45
- # An optional string indicating the location of the expression for error
68
+ # Optional. String indicating the location of the expression for error
46
69
  # reporting, e.g. a file name and a position in the file.
47
70
  class Expr
48
71
  include ::Google::Protobuf::MessageExts
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-tasks-v2beta3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-20 00:00:00.000000000 Z
11
+ date: 2021-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.5'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '0.3'
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.5'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.3'
32
+ version: 2.a
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: google-cloud-errors
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -47,7 +53,7 @@ dependencies:
47
53
  version: 0.6.10
48
54
  - - "<"
49
55
  - !ruby/object:Gem::Version
50
- version: '2.0'
56
+ version: 2.a
51
57
  type: :runtime
52
58
  prerelease: false
53
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,21 +63,21 @@ dependencies:
57
63
  version: 0.6.10
58
64
  - - "<"
59
65
  - !ruby/object:Gem::Version
60
- version: '2.0'
66
+ version: 2.a
61
67
  - !ruby/object:Gem::Dependency
62
68
  name: google-style
63
69
  requirement: !ruby/object:Gem::Requirement
64
70
  requirements:
65
71
  - - "~>"
66
72
  - !ruby/object:Gem::Version
67
- version: 1.24.0
73
+ version: 1.25.1
68
74
  type: :development
69
75
  prerelease: false
70
76
  version_requirements: !ruby/object:Gem::Requirement
71
77
  requirements:
72
78
  - - "~>"
73
79
  - !ruby/object:Gem::Version
74
- version: 1.24.0
80
+ version: 1.25.1
75
81
  - !ruby/object:Gem::Dependency
76
82
  name: minitest
77
83
  requirement: !ruby/object:Gem::Requirement
@@ -173,7 +179,9 @@ dependencies:
173
179
  description: Cloud Tasks is a fully managed service that allows you to manage the
174
180
  execution, dispatch and delivery of a large number of distributed tasks. You can
175
181
  asynchronously perform work outside of a user request. Your tasks can be executed
176
- on App Engine or any arbitrary HTTP endpoint.
182
+ on App Engine or any arbitrary HTTP endpoint. Note that google-cloud-tasks-v2beta3
183
+ is a version-specific client library. For most uses, we recommend installing the
184
+ main client library google-cloud-tasks instead. See the readme for more details.
177
185
  email: googleapis-packages@google.com
178
186
  executables: []
179
187
  extensions: []
@@ -224,14 +232,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
224
232
  requirements:
225
233
  - - ">="
226
234
  - !ruby/object:Gem::Version
227
- version: '2.4'
235
+ version: '2.5'
228
236
  required_rubygems_version: !ruby/object:Gem::Requirement
229
237
  requirements:
230
238
  - - ">="
231
239
  - !ruby/object:Gem::Version
232
240
  version: '0'
233
241
  requirements: []
234
- rubygems_version: 3.2.6
242
+ rubygems_version: 3.2.17
235
243
  signing_key:
236
244
  specification_version: 4
237
245
  summary: API Client library for the Cloud Tasks V2beta3 API