google-cloud-tasks-v2beta2 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,7 +24,8 @@ module Google
24
24
  # A unit of scheduled work.
25
25
  # @!attribute [rw] name
26
26
  # @return [::String]
27
- # Optionally caller-specified in {::Google::Cloud::Tasks::V2beta2::CloudTasks::Client#create_task CreateTask}.
27
+ # Optionally caller-specified in
28
+ # {::Google::Cloud::Tasks::V2beta2::CloudTasks::Client#create_task CreateTask}.
28
29
  #
29
30
  # The task name.
30
31
  #
@@ -48,16 +49,21 @@ module Google
48
49
  # @return [::Google::Cloud::Tasks::V2beta2::AppEngineHttpRequest]
49
50
  # App Engine HTTP request that is sent to the task's target. Can
50
51
  # be set only if
51
- # {::Google::Cloud::Tasks::V2beta2::Queue#app_engine_http_target app_engine_http_target} is set
52
- # on the queue.
52
+ # {::Google::Cloud::Tasks::V2beta2::Queue#app_engine_http_target app_engine_http_target}
53
+ # is set on the queue.
53
54
  #
54
- # An App Engine task is a task that has {::Google::Cloud::Tasks::V2beta2::AppEngineHttpRequest AppEngineHttpRequest} set.
55
+ # An App Engine task is a task that has
56
+ # {::Google::Cloud::Tasks::V2beta2::AppEngineHttpRequest AppEngineHttpRequest}
57
+ # set.
55
58
  # @!attribute [rw] pull_message
56
59
  # @return [::Google::Cloud::Tasks::V2beta2::PullMessage]
57
- # {::Google::Cloud::Tasks::V2beta2::CloudTasks::Client#lease_tasks LeaseTasks} to process the task. Can be
58
- # set only if {::Google::Cloud::Tasks::V2beta2::Queue#pull_target pull_target} is set on the queue.
60
+ # {::Google::Cloud::Tasks::V2beta2::CloudTasks::Client#lease_tasks LeaseTasks} to process
61
+ # the task. Can be set only if
62
+ # {::Google::Cloud::Tasks::V2beta2::Queue#pull_target pull_target} is set on the
63
+ # queue.
59
64
  #
60
- # A pull task is a task that has {::Google::Cloud::Tasks::V2beta2::PullMessage PullMessage} set.
65
+ # A pull task is a task that has
66
+ # {::Google::Cloud::Tasks::V2beta2::PullMessage PullMessage} set.
61
67
  # @!attribute [rw] schedule_time
62
68
  # @return [::Google::Protobuf::Timestamp]
63
69
  # The time when the task is scheduled to be attempted.
@@ -67,7 +73,8 @@ module Google
67
73
  # For pull queues, this is the time when the task is available to
68
74
  # be leased; if a task is currently leased, this is the time when
69
75
  # the current lease expires, that is, the time that the task was
70
- # leased plus the {::Google::Cloud::Tasks::V2beta2::LeaseTasksRequest#lease_duration lease_duration}.
76
+ # leased plus the
77
+ # {::Google::Cloud::Tasks::V2beta2::LeaseTasksRequest#lease_duration lease_duration}.
71
78
  #
72
79
  # `schedule_time` will be truncated to the nearest microsecond.
73
80
  # @!attribute [rw] create_time
@@ -80,13 +87,14 @@ module Google
80
87
  # Output only. The task status.
81
88
  # @!attribute [rw] view
82
89
  # @return [::Google::Cloud::Tasks::V2beta2::Task::View]
83
- # Output only. The view specifies which subset of the {::Google::Cloud::Tasks::V2beta2::Task Task} has
84
- # been returned.
90
+ # Output only. The view specifies which subset of the
91
+ # {::Google::Cloud::Tasks::V2beta2::Task Task} has been returned.
85
92
  class Task
86
93
  include ::Google::Protobuf::MessageExts
87
94
  extend ::Google::Protobuf::MessageExts::ClassMethods
88
95
 
89
- # The view specifies a subset of {::Google::Cloud::Tasks::V2beta2::Task Task} data.
96
+ # The view specifies a subset of {::Google::Cloud::Tasks::V2beta2::Task Task}
97
+ # data.
90
98
  #
91
99
  # When a task is returned in a response, not all
92
100
  # information is retrieved by default because some data, such as
@@ -101,18 +109,21 @@ module Google
101
109
  # sensitive data.
102
110
  #
103
111
  # This view does not include the
104
- # ({::Google::Cloud::Tasks::V2beta2::AppEngineHttpRequest payload in AppEngineHttpRequest} and
105
- # {::Google::Cloud::Tasks::V2beta2::PullMessage#payload payload in PullMessage}). These payloads are
106
- # desirable to return only when needed, because they can be large
107
- # and because of the sensitivity of the data that you choose to
108
- # store in it.
112
+ # ([payload in
113
+ # AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest]
114
+ # and [payload in
115
+ # PullMessage][google.cloud.tasks.v2beta2.PullMessage.payload]). These
116
+ # payloads are desirable to return only when needed, because they can be
117
+ # large and because of the sensitivity of the data that you choose to store
118
+ # in it.
109
119
  BASIC = 1
110
120
 
111
121
  # All information is returned.
112
122
  #
113
- # Authorization for {::Google::Cloud::Tasks::V2beta2::Task::View::FULL FULL} requires
114
- # `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
115
- # permission on the {::Google::Cloud::Tasks::V2beta2::Queue Queue} resource.
123
+ # Authorization for {::Google::Cloud::Tasks::V2beta2::Task::View::FULL FULL}
124
+ # requires `cloudtasks.tasks.fullView` [Google
125
+ # IAM](https://cloud.google.com/iam/) permission on the
126
+ # {::Google::Cloud::Tasks::V2beta2::Queue Queue} resource.
116
127
  FULL = 2
117
128
  end
118
129
  end
@@ -128,20 +139,26 @@ module Google
128
139
  # @return [::Integer]
129
140
  # Output only. The number of attempts which have received a response.
130
141
  #
131
- # This field is not calculated for {::Google::Cloud::Tasks::V2beta2::PullMessage pull tasks}.
142
+ # This field is not calculated for [pull
143
+ # tasks][google.cloud.tasks.v2beta2.PullMessage].
132
144
  # @!attribute [rw] first_attempt_status
133
145
  # @return [::Google::Cloud::Tasks::V2beta2::AttemptStatus]
134
146
  # Output only. The status of the task's first attempt.
135
147
  #
136
- # Only {::Google::Cloud::Tasks::V2beta2::AttemptStatus#dispatch_time dispatch_time} will be set.
137
- # The other {::Google::Cloud::Tasks::V2beta2::AttemptStatus AttemptStatus} information is not retained by Cloud Tasks.
148
+ # Only
149
+ # {::Google::Cloud::Tasks::V2beta2::AttemptStatus#dispatch_time dispatch_time}
150
+ # will be set. The other
151
+ # {::Google::Cloud::Tasks::V2beta2::AttemptStatus AttemptStatus} information is
152
+ # not retained by Cloud Tasks.
138
153
  #
139
- # This field is not calculated for {::Google::Cloud::Tasks::V2beta2::PullMessage pull tasks}.
154
+ # This field is not calculated for [pull
155
+ # tasks][google.cloud.tasks.v2beta2.PullMessage].
140
156
  # @!attribute [rw] last_attempt_status
141
157
  # @return [::Google::Cloud::Tasks::V2beta2::AttemptStatus]
142
158
  # Output only. The status of the task's last attempt.
143
159
  #
144
- # This field is not calculated for {::Google::Cloud::Tasks::V2beta2::PullMessage pull tasks}.
160
+ # This field is not calculated for [pull
161
+ # tasks][google.cloud.tasks.v2beta2.PullMessage].
145
162
  class TaskStatus
146
163
  include ::Google::Protobuf::MessageExts
147
164
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -35,7 +35,8 @@ module Google
35
35
  # only if the expression evaluates to `true`. A condition can add constraints
36
36
  # based on attributes of the request, the resource, or both. To learn which
37
37
  # resources support conditions in their IAM policies, see the
38
- # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
38
+ # [IAM
39
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
39
40
  #
40
41
  # **JSON example:**
41
42
  #
@@ -58,7 +59,8 @@ module Google
58
59
  # "condition": {
59
60
  # "title": "expirable access",
60
61
  # "description": "Does not grant access after Sep 2020",
61
- # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')",
62
+ # "expression": "request.time <
63
+ # timestamp('2020-10-01T00:00:00.000Z')",
62
64
  # }
63
65
  # }
64
66
  # ],
@@ -112,7 +114,8 @@ module Google
112
114
  # specify any valid version or leave the field unset.
113
115
  #
114
116
  # To learn which resources support conditions in their IAM policies, see the
115
- # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
117
+ # [IAM
118
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
116
119
  # @!attribute [rw] bindings
117
120
  # @return [::Array<::Google::Iam::V1::Binding>]
118
121
  # Associates a list of `members`, or principals, with a `role`. Optionally,
@@ -305,7 +308,8 @@ module Google
305
308
  # @return [::Array<::String>]
306
309
  # Specifies the identities that do not cause logging for this type of
307
310
  # permission.
308
- # Follows the same format of {::Google::Iam::V1::Binding#members Binding.members}.
311
+ # Follows the same format of
312
+ # {::Google::Iam::V1::Binding#members Binding.members}.
309
313
  class AuditLogConfig
310
314
  include ::Google::Protobuf::MessageExts
311
315
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -43,8 +43,12 @@ module Google
43
43
  # if (any.is(Foo.class)) {
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
46
50
  #
47
- # Example 3: Pack and unpack a message in Python.
51
+ # Example 3: Pack and unpack a message in Python.
48
52
  #
49
53
  # foo = Foo(...)
50
54
  # any = Any()
@@ -54,7 +58,7 @@ module Google
54
58
  # any.Unpack(foo)
55
59
  # ...
56
60
  #
57
- # Example 4: Pack and unpack a message in Go
61
+ # Example 4: Pack and unpack a message in Go
58
62
  #
59
63
  # foo := &pb.Foo{...}
60
64
  # any, err := anypb.New(foo)
@@ -73,9 +77,8 @@ module Google
73
77
  # in the type URL, for example "foo.bar.com/x/y.z" will yield type
74
78
  # name "y.z".
75
79
  #
76
- #
77
80
  # JSON
78
- #
81
+ # ====
79
82
  # The JSON representation of an `Any` value uses the regular
80
83
  # representation of the deserialized, embedded message, with an
81
84
  # additional field `@type` which contains the type URL. Example:
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-tasks-v2beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.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: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.19.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.19.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a