google-apis-cloudtasks_v2beta3 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2c842b61679883875dbadbf0e5d5e188c41235c11e619e5ede27af78c48068c9
4
+ data.tar.gz: e7f1026adae82a3f973f2099e9fa75a110ea9c3ebcc8bf5c9030f126ef3cf28f
5
+ SHA512:
6
+ metadata.gz: 3be3344fd3a0436b3de1ebfbd5daf12fe82cb6239853bd6094941ff90cbde982ce0314c3e1a250874c9a45576335163461877a5a30afbf1e217f0bb1988f293d
7
+ data.tar.gz: f75c50938c4fc901e45dcaa47c9664b671d01dfa698f290e821fda8444692ba57f17799e7640b998323b49956165af0dedb75efee89086e8f5b4d5b5904cd8d7
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-cloudtasks_v2beta3
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/cloudtasks_v2beta3/*.rb
9
+ lib/google/apis/cloudtasks_v2beta3.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-cloudtasks_v2beta3
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201202
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V2beta3 of the Cloud Tasks API
2
+
3
+ This is a simple client library for version V2beta3 of the Cloud Tasks API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/cloudtasks.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-cloudtasks_v2beta3', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-cloudtasks_v2beta3
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/cloudtasks_v2beta3"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::CloudtasksV2beta3::CloudTasksService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
62
+
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
+
66
+ (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Cloudtasks service in particular.)
67
+
68
+ For reference information on specific calls in the Cloud Tasks API, see the {Google::Apis::CloudtasksV2beta3::CloudTasksService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-cloudtasks_v2beta3`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://cloud.google.com/tasks/) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
87
+
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 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
+ # http://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
+ require "google/apis/cloudtasks_v2beta3"
@@ -0,0 +1,36 @@
1
+ # Copyright 2020 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
+ # http://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
+ require 'google/apis/cloudtasks_v2beta3/service.rb'
16
+ require 'google/apis/cloudtasks_v2beta3/classes.rb'
17
+ require 'google/apis/cloudtasks_v2beta3/representations.rb'
18
+ require 'google/apis/cloudtasks_v2beta3/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Cloud Tasks API
23
+ #
24
+ # Manages the execution of large numbers of distributed requests.
25
+ #
26
+ # @see https://cloud.google.com/tasks/
27
+ module CloudtasksV2beta3
28
+ # Version of the Cloud Tasks API this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V2beta3'
31
+
32
+ # View and manage your data across Google Cloud Platform services
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,1577 @@
1
+ # Copyright 2020 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
+ # http://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
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module CloudtasksV2beta3
24
+
25
+ # App Engine HTTP queue. The task will be delivered to the App Engine
26
+ # application hostname specified by its AppEngineHttpQueue and
27
+ # AppEngineHttpRequest. The documentation for AppEngineHttpRequest explains how
28
+ # the task's host URL is constructed. Using AppEngineHttpQueue requires [`
29
+ # appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/
30
+ # access-control) Google IAM permission for the project and the following scope:
31
+ # `https://www.googleapis.com/auth/cloud-platform`
32
+ class AppEngineHttpQueue
33
+ include Google::Apis::Core::Hashable
34
+
35
+ # App Engine Routing. Defines routing characteristics specific to App Engine -
36
+ # service, version, and instance. For more information about services, versions,
37
+ # and instances see [An Overview of App Engine](https://cloud.google.com/
38
+ # appengine/docs/python/an-overview-of-app-engine), [Microservices Architecture
39
+ # on Google App Engine](https://cloud.google.com/appengine/docs/python/
40
+ # microservices-on-app-engine), [App Engine Standard request routing](https://
41
+ # cloud.google.com/appengine/docs/standard/python/how-requests-are-routed), and [
42
+ # App Engine Flex request routing](https://cloud.google.com/appengine/docs/
43
+ # flexible/python/how-requests-are-routed).
44
+ # Corresponds to the JSON property `appEngineRoutingOverride`
45
+ # @return [Google::Apis::CloudtasksV2beta3::AppEngineRouting]
46
+ attr_accessor :app_engine_routing_override
47
+
48
+ def initialize(**args)
49
+ update!(**args)
50
+ end
51
+
52
+ # Update properties of this object
53
+ def update!(**args)
54
+ @app_engine_routing_override = args[:app_engine_routing_override] if args.key?(:app_engine_routing_override)
55
+ end
56
+ end
57
+
58
+ # App Engine HTTP request. The message defines the HTTP request that is sent to
59
+ # an App Engine app when the task is dispatched. Using AppEngineHttpRequest
60
+ # requires [`appengine.applications.get`](https://cloud.google.com/appengine/
61
+ # docs/admin-api/access-control) Google IAM permission for the project and the
62
+ # following scope: `https://www.googleapis.com/auth/cloud-platform` The task
63
+ # will be delivered to the App Engine app which belongs to the same project as
64
+ # the queue. For more information, see [How Requests are Routed](https://cloud.
65
+ # google.com/appengine/docs/standard/python/how-requests-are-routed) and how
66
+ # routing is affected by [dispatch files](https://cloud.google.com/appengine/
67
+ # docs/python/config/dispatchref). Traffic is encrypted during transport and
68
+ # never leaves Google datacenters. Because this traffic is carried over a
69
+ # communication mechanism internal to Google, you cannot explicitly set the
70
+ # protocol (for example, HTTP or HTTPS). The request to the handler, however,
71
+ # will appear to have used the HTTP protocol. The AppEngineRouting used to
72
+ # construct the URL that the task is delivered to can be set at the queue-level
73
+ # or task-level: * If set, app_engine_routing_override is used for all tasks in
74
+ # the queue, no matter what the setting is for the task-level app_engine_routing.
75
+ # The `url` that the task will be sent to is: * `url =` host `+` relative_uri
76
+ # Tasks can be dispatched to secure app handlers, unsecure app handlers, and
77
+ # URIs restricted with [`login: admin`](https://cloud.google.com/appengine/docs/
78
+ # standard/python/config/appref). Because tasks are not run as any user, they
79
+ # cannot be dispatched to URIs restricted with [`login: required`](https://cloud.
80
+ # google.com/appengine/docs/standard/python/config/appref) Task dispatches also
81
+ # do not follow redirects. The task attempt has succeeded if the app's request
82
+ # handler returns an HTTP response code in the range [`200` - `299`]. The task
83
+ # attempt has failed if the app's handler returns a non-2xx response code or
84
+ # Cloud Tasks does not receive response before the deadline. Failed tasks will
85
+ # be retried according to the retry configuration. `503` (Service Unavailable)
86
+ # is considered an App Engine system error instead of an application error and
87
+ # will cause Cloud Tasks' traffic congestion control to temporarily throttle the
88
+ # queue's dispatches. Unlike other types of task targets, a `429` (Too Many
89
+ # Requests) response from an app handler does not cause traffic congestion
90
+ # control to throttle the queue.
91
+ class AppEngineHttpRequest
92
+ include Google::Apis::Core::Hashable
93
+
94
+ # App Engine Routing. Defines routing characteristics specific to App Engine -
95
+ # service, version, and instance. For more information about services, versions,
96
+ # and instances see [An Overview of App Engine](https://cloud.google.com/
97
+ # appengine/docs/python/an-overview-of-app-engine), [Microservices Architecture
98
+ # on Google App Engine](https://cloud.google.com/appengine/docs/python/
99
+ # microservices-on-app-engine), [App Engine Standard request routing](https://
100
+ # cloud.google.com/appengine/docs/standard/python/how-requests-are-routed), and [
101
+ # App Engine Flex request routing](https://cloud.google.com/appengine/docs/
102
+ # flexible/python/how-requests-are-routed).
103
+ # Corresponds to the JSON property `appEngineRouting`
104
+ # @return [Google::Apis::CloudtasksV2beta3::AppEngineRouting]
105
+ attr_accessor :app_engine_routing
106
+
107
+ # HTTP request body. A request body is allowed only if the HTTP method is POST
108
+ # or PUT. It is an error to set a body on a task with an incompatible HttpMethod.
109
+ # Corresponds to the JSON property `body`
110
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
111
+ # @return [String]
112
+ attr_accessor :body
113
+
114
+ # HTTP request headers. This map contains the header field names and values.
115
+ # Headers can be set when the task is created. Repeated headers are not
116
+ # supported but a header value can contain commas. Cloud Tasks sets some headers
117
+ # to default values: * `User-Agent`: By default, this header is `"AppEngine-
118
+ # Google; (+http://code.google.com/appengine)"`. This header can be modified,
119
+ # but Cloud Tasks will append `"AppEngine-Google; (+http://code.google.com/
120
+ # appengine)"` to the modified `User-Agent`. If the task has a body, Cloud Tasks
121
+ # sets the following headers: * `Content-Type`: By default, the `Content-Type`
122
+ # header is set to `"application/octet-stream"`. The default can be overridden
123
+ # by explicitly setting `Content-Type` to a particular media type when the task
124
+ # is created. For example, `Content-Type` can be set to `"application/json"`. * `
125
+ # Content-Length`: This is computed by Cloud Tasks. This value is output only.
126
+ # It cannot be changed. The headers below cannot be set or overridden: * `Host` *
127
+ # `X-Google-*` * `X-AppEngine-*` In addition, Cloud Tasks sets some headers
128
+ # when the task is dispatched, such as headers containing information about the
129
+ # task; see [request headers](https://cloud.google.com/tasks/docs/creating-
130
+ # appengine-handlers#reading_request_headers). These headers are set only when
131
+ # the task is dispatched, so they are not visible when the task is returned in a
132
+ # Cloud Tasks response. Although there is no specific limit for the maximum
133
+ # number of headers or the size, there is a limit on the maximum size of the
134
+ # Task. For more information, see the CreateTask documentation.
135
+ # Corresponds to the JSON property `headers`
136
+ # @return [Hash<String,String>]
137
+ attr_accessor :headers
138
+
139
+ # The HTTP method to use for the request. The default is POST. The app's request
140
+ # handler for the task's target URL must be able to handle HTTP requests with
141
+ # this http_method, otherwise the task attempt fails with error code 405 (Method
142
+ # Not Allowed). See [Writing a push task request handler](https://cloud.google.
143
+ # com/appengine/docs/java/taskqueue/push/creating-handlers#
144
+ # writing_a_push_task_request_handler) and the App Engine documentation for your
145
+ # runtime on [How Requests are Handled](https://cloud.google.com/appengine/docs/
146
+ # standard/python3/how-requests-are-handled).
147
+ # Corresponds to the JSON property `httpMethod`
148
+ # @return [String]
149
+ attr_accessor :http_method
150
+
151
+ # The relative URI. The relative URI must begin with "/" and must be a valid
152
+ # HTTP relative URI. It can contain a path and query string arguments. If the
153
+ # relative URI is empty, then the root path "/" will be used. No spaces are
154
+ # allowed, and the maximum length allowed is 2083 characters.
155
+ # Corresponds to the JSON property `relativeUri`
156
+ # @return [String]
157
+ attr_accessor :relative_uri
158
+
159
+ def initialize(**args)
160
+ update!(**args)
161
+ end
162
+
163
+ # Update properties of this object
164
+ def update!(**args)
165
+ @app_engine_routing = args[:app_engine_routing] if args.key?(:app_engine_routing)
166
+ @body = args[:body] if args.key?(:body)
167
+ @headers = args[:headers] if args.key?(:headers)
168
+ @http_method = args[:http_method] if args.key?(:http_method)
169
+ @relative_uri = args[:relative_uri] if args.key?(:relative_uri)
170
+ end
171
+ end
172
+
173
+ # App Engine Routing. Defines routing characteristics specific to App Engine -
174
+ # service, version, and instance. For more information about services, versions,
175
+ # and instances see [An Overview of App Engine](https://cloud.google.com/
176
+ # appengine/docs/python/an-overview-of-app-engine), [Microservices Architecture
177
+ # on Google App Engine](https://cloud.google.com/appengine/docs/python/
178
+ # microservices-on-app-engine), [App Engine Standard request routing](https://
179
+ # cloud.google.com/appengine/docs/standard/python/how-requests-are-routed), and [
180
+ # App Engine Flex request routing](https://cloud.google.com/appengine/docs/
181
+ # flexible/python/how-requests-are-routed).
182
+ class AppEngineRouting
183
+ include Google::Apis::Core::Hashable
184
+
185
+ # Output only. The host that the task is sent to. The host is constructed from
186
+ # the domain name of the app associated with the queue's project ID (for example
187
+ # .appspot.com), and the service, version, and instance. Tasks which were
188
+ # created using the App Engine SDK might have a custom domain name. For more
189
+ # information, see [How Requests are Routed](https://cloud.google.com/appengine/
190
+ # docs/standard/python/how-requests-are-routed).
191
+ # Corresponds to the JSON property `host`
192
+ # @return [String]
193
+ attr_accessor :host
194
+
195
+ # App instance. By default, the task is sent to an instance which is available
196
+ # when the task is attempted. Requests can only be sent to a specific instance
197
+ # if [manual scaling is used in App Engine Standard](https://cloud.google.com/
198
+ # appengine/docs/python/an-overview-of-app-engine?hl=en_US#
199
+ # scaling_types_and_instance_classes). App Engine Flex does not support
200
+ # instances. For more information, see [App Engine Standard request routing](
201
+ # https://cloud.google.com/appengine/docs/standard/python/how-requests-are-
202
+ # routed) and [App Engine Flex request routing](https://cloud.google.com/
203
+ # appengine/docs/flexible/python/how-requests-are-routed).
204
+ # Corresponds to the JSON property `instance`
205
+ # @return [String]
206
+ attr_accessor :instance
207
+
208
+ # App service. By default, the task is sent to the service which is the default
209
+ # service when the task is attempted. For some queues or tasks which were
210
+ # created using the App Engine Task Queue API, host is not parsable into service,
211
+ # version, and instance. For example, some tasks which were created using the
212
+ # App Engine SDK use a custom domain name; custom domains are not parsed by
213
+ # Cloud Tasks. If host is not parsable, then service, version, and instance are
214
+ # the empty string.
215
+ # Corresponds to the JSON property `service`
216
+ # @return [String]
217
+ attr_accessor :service
218
+
219
+ # App version. By default, the task is sent to the version which is the default
220
+ # version when the task is attempted. For some queues or tasks which were
221
+ # created using the App Engine Task Queue API, host is not parsable into service,
222
+ # version, and instance. For example, some tasks which were created using the
223
+ # App Engine SDK use a custom domain name; custom domains are not parsed by
224
+ # Cloud Tasks. If host is not parsable, then service, version, and instance are
225
+ # the empty string.
226
+ # Corresponds to the JSON property `version`
227
+ # @return [String]
228
+ attr_accessor :version
229
+
230
+ def initialize(**args)
231
+ update!(**args)
232
+ end
233
+
234
+ # Update properties of this object
235
+ def update!(**args)
236
+ @host = args[:host] if args.key?(:host)
237
+ @instance = args[:instance] if args.key?(:instance)
238
+ @service = args[:service] if args.key?(:service)
239
+ @version = args[:version] if args.key?(:version)
240
+ end
241
+ end
242
+
243
+ # The status of a task attempt.
244
+ class Attempt
245
+ include Google::Apis::Core::Hashable
246
+
247
+ # Output only. The time that this attempt was dispatched. `dispatch_time` will
248
+ # be truncated to the nearest microsecond.
249
+ # Corresponds to the JSON property `dispatchTime`
250
+ # @return [String]
251
+ attr_accessor :dispatch_time
252
+
253
+ # The `Status` type defines a logical error model that is suitable for different
254
+ # programming environments, including REST APIs and RPC APIs. It is used by [
255
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
256
+ # data: error code, error message, and error details. You can find out more
257
+ # about this error model and how to work with it in the [API Design Guide](https:
258
+ # //cloud.google.com/apis/design/errors).
259
+ # Corresponds to the JSON property `responseStatus`
260
+ # @return [Google::Apis::CloudtasksV2beta3::Status]
261
+ attr_accessor :response_status
262
+
263
+ # Output only. The time that this attempt response was received. `response_time`
264
+ # will be truncated to the nearest microsecond.
265
+ # Corresponds to the JSON property `responseTime`
266
+ # @return [String]
267
+ attr_accessor :response_time
268
+
269
+ # Output only. The time that this attempt was scheduled. `schedule_time` will be
270
+ # truncated to the nearest microsecond.
271
+ # Corresponds to the JSON property `scheduleTime`
272
+ # @return [String]
273
+ attr_accessor :schedule_time
274
+
275
+ def initialize(**args)
276
+ update!(**args)
277
+ end
278
+
279
+ # Update properties of this object
280
+ def update!(**args)
281
+ @dispatch_time = args[:dispatch_time] if args.key?(:dispatch_time)
282
+ @response_status = args[:response_status] if args.key?(:response_status)
283
+ @response_time = args[:response_time] if args.key?(:response_time)
284
+ @schedule_time = args[:schedule_time] if args.key?(:schedule_time)
285
+ end
286
+ end
287
+
288
+ # Associates `members` with a `role`.
289
+ class Binding
290
+ include Google::Apis::Core::Hashable
291
+
292
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
293
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
294
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
295
+ # "Summary size limit" description: "Determines if a summary is less than 100
296
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
297
+ # Requestor is owner" description: "Determines if requestor is the document
298
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
299
+ # Logic): title: "Public documents" description: "Determine whether the document
300
+ # should be publicly visible" expression: "document.type != 'private' &&
301
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
302
+ # string" description: "Create a notification string with a timestamp."
303
+ # expression: "'New message received at ' + string(document.create_time)" The
304
+ # exact variables and functions that may be referenced within an expression are
305
+ # determined by the service that evaluates it. See the service documentation for
306
+ # additional information.
307
+ # Corresponds to the JSON property `condition`
308
+ # @return [Google::Apis::CloudtasksV2beta3::Expr]
309
+ attr_accessor :condition
310
+
311
+ # Specifies the identities requesting access for a Cloud Platform resource. `
312
+ # members` can have the following values: * `allUsers`: A special identifier
313
+ # that represents anyone who is on the internet; with or without a Google
314
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
315
+ # anyone who is authenticated with a Google account or a service account. * `
316
+ # user:`emailid``: An email address that represents a specific Google account.
317
+ # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
318
+ # address that represents a service account. For example, `my-other-app@appspot.
319
+ # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
320
+ # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
321
+ # `uniqueid``: An email address (plus unique identifier) representing a user
322
+ # that has been recently deleted. For example, `alice@example.com?uid=
323
+ # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
324
+ # emailid`` and the recovered user retains the role in the binding. * `deleted:
325
+ # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
326
+ # identifier) representing a service account that has been recently deleted. For
327
+ # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
328
+ # If the service account is undeleted, this value reverts to `serviceAccount:`
329
+ # emailid`` and the undeleted service account retains the role in the binding. *
330
+ # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
331
+ # identifier) representing a Google group that has been recently deleted. For
332
+ # example, `admins@example.com?uid=123456789012345678901`. If the group is
333
+ # recovered, this value reverts to `group:`emailid`` and the recovered group
334
+ # retains the role in the binding. * `domain:`domain``: The G Suite domain (
335
+ # primary) that represents all the users of that domain. For example, `google.
336
+ # com` or `example.com`.
337
+ # Corresponds to the JSON property `members`
338
+ # @return [Array<String>]
339
+ attr_accessor :members
340
+
341
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
342
+ # , or `roles/owner`.
343
+ # Corresponds to the JSON property `role`
344
+ # @return [String]
345
+ attr_accessor :role
346
+
347
+ def initialize(**args)
348
+ update!(**args)
349
+ end
350
+
351
+ # Update properties of this object
352
+ def update!(**args)
353
+ @condition = args[:condition] if args.key?(:condition)
354
+ @members = args[:members] if args.key?(:members)
355
+ @role = args[:role] if args.key?(:role)
356
+ end
357
+ end
358
+
359
+ # Request message for CreateTask.
360
+ class CreateTaskRequest
361
+ include Google::Apis::Core::Hashable
362
+
363
+ # The response_view specifies which subset of the Task will be returned. By
364
+ # default response_view is BASIC; not all information is retrieved by default
365
+ # because some data, such as payloads, might be desirable to return only when
366
+ # needed because of its large size or because of the sensitivity of data that it
367
+ # contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google
368
+ # IAM](https://cloud.google.com/iam/) permission on the Task resource.
369
+ # Corresponds to the JSON property `responseView`
370
+ # @return [String]
371
+ attr_accessor :response_view
372
+
373
+ # A unit of scheduled work.
374
+ # Corresponds to the JSON property `task`
375
+ # @return [Google::Apis::CloudtasksV2beta3::Task]
376
+ attr_accessor :task
377
+
378
+ def initialize(**args)
379
+ update!(**args)
380
+ end
381
+
382
+ # Update properties of this object
383
+ def update!(**args)
384
+ @response_view = args[:response_view] if args.key?(:response_view)
385
+ @task = args[:task] if args.key?(:task)
386
+ end
387
+ end
388
+
389
+ # A generic empty message that you can re-use to avoid defining duplicated empty
390
+ # messages in your APIs. A typical example is to use it as the request or the
391
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
392
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
393
+ # `Empty` is empty JSON object ````.
394
+ class Empty
395
+ include Google::Apis::Core::Hashable
396
+
397
+ def initialize(**args)
398
+ update!(**args)
399
+ end
400
+
401
+ # Update properties of this object
402
+ def update!(**args)
403
+ end
404
+ end
405
+
406
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
407
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
408
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
409
+ # "Summary size limit" description: "Determines if a summary is less than 100
410
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
411
+ # Requestor is owner" description: "Determines if requestor is the document
412
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
413
+ # Logic): title: "Public documents" description: "Determine whether the document
414
+ # should be publicly visible" expression: "document.type != 'private' &&
415
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
416
+ # string" description: "Create a notification string with a timestamp."
417
+ # expression: "'New message received at ' + string(document.create_time)" The
418
+ # exact variables and functions that may be referenced within an expression are
419
+ # determined by the service that evaluates it. See the service documentation for
420
+ # additional information.
421
+ class Expr
422
+ include Google::Apis::Core::Hashable
423
+
424
+ # Optional. Description of the expression. This is a longer text which describes
425
+ # the expression, e.g. when hovered over it in a UI.
426
+ # Corresponds to the JSON property `description`
427
+ # @return [String]
428
+ attr_accessor :description
429
+
430
+ # Textual representation of an expression in Common Expression Language syntax.
431
+ # Corresponds to the JSON property `expression`
432
+ # @return [String]
433
+ attr_accessor :expression
434
+
435
+ # Optional. String indicating the location of the expression for error reporting,
436
+ # e.g. a file name and a position in the file.
437
+ # Corresponds to the JSON property `location`
438
+ # @return [String]
439
+ attr_accessor :location
440
+
441
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
442
+ # This can be used e.g. in UIs which allow to enter the expression.
443
+ # Corresponds to the JSON property `title`
444
+ # @return [String]
445
+ attr_accessor :title
446
+
447
+ def initialize(**args)
448
+ update!(**args)
449
+ end
450
+
451
+ # Update properties of this object
452
+ def update!(**args)
453
+ @description = args[:description] if args.key?(:description)
454
+ @expression = args[:expression] if args.key?(:expression)
455
+ @location = args[:location] if args.key?(:location)
456
+ @title = args[:title] if args.key?(:title)
457
+ end
458
+ end
459
+
460
+ # Request message for `GetIamPolicy` method.
461
+ class GetIamPolicyRequest
462
+ include Google::Apis::Core::Hashable
463
+
464
+ # Encapsulates settings provided to GetIamPolicy.
465
+ # Corresponds to the JSON property `options`
466
+ # @return [Google::Apis::CloudtasksV2beta3::GetPolicyOptions]
467
+ attr_accessor :options
468
+
469
+ def initialize(**args)
470
+ update!(**args)
471
+ end
472
+
473
+ # Update properties of this object
474
+ def update!(**args)
475
+ @options = args[:options] if args.key?(:options)
476
+ end
477
+ end
478
+
479
+ # Encapsulates settings provided to GetIamPolicy.
480
+ class GetPolicyOptions
481
+ include Google::Apis::Core::Hashable
482
+
483
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
484
+ # 3. Requests specifying an invalid value will be rejected. Requests for
485
+ # policies with any conditional bindings must specify version 3. Policies
486
+ # without any conditional bindings may specify any valid value or leave the
487
+ # field unset. To learn which resources support conditions in their IAM policies,
488
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
489
+ # resource-policies).
490
+ # Corresponds to the JSON property `requestedPolicyVersion`
491
+ # @return [Fixnum]
492
+ attr_accessor :requested_policy_version
493
+
494
+ def initialize(**args)
495
+ update!(**args)
496
+ end
497
+
498
+ # Update properties of this object
499
+ def update!(**args)
500
+ @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
501
+ end
502
+ end
503
+
504
+ # HTTP request. The task will be pushed to the worker as an HTTP request. If the
505
+ # worker or the redirected worker acknowledges the task by returning a
506
+ # successful HTTP response code ([`200` - `299`]), the task will be removed from
507
+ # the queue. If any other HTTP response code is returned or no response is
508
+ # received, the task will be retried according to the following: * User-
509
+ # specified throttling: retry configuration, rate limits, and the queue's state.
510
+ # * System throttling: To prevent the worker from overloading, Cloud Tasks may
511
+ # temporarily reduce the queue's effective rate. User-specified settings will
512
+ # not be changed. System throttling happens because: * Cloud Tasks backs off on
513
+ # all errors. Normally the backoff specified in rate limits will be used. But if
514
+ # the worker returns `429` (Too Many Requests), `503` (Service Unavailable), or
515
+ # the rate of errors is high, Cloud Tasks will use a higher backoff rate. The
516
+ # retry specified in the `Retry-After` HTTP response header is considered. * To
517
+ # prevent traffic spikes and to smooth sudden increases in traffic, dispatches
518
+ # ramp up slowly when the queue is newly created or idle and if large numbers of
519
+ # tasks suddenly become available to dispatch (due to spikes in create task
520
+ # rates, the queue being unpaused, or many tasks that are scheduled at the same
521
+ # time).
522
+ class HttpRequest
523
+ include Google::Apis::Core::Hashable
524
+
525
+ # HTTP request body. A request body is allowed only if the HTTP method is POST,
526
+ # PUT, or PATCH. It is an error to set body on a task with an incompatible
527
+ # HttpMethod.
528
+ # Corresponds to the JSON property `body`
529
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
530
+ # @return [String]
531
+ attr_accessor :body
532
+
533
+ # HTTP request headers. This map contains the header field names and values.
534
+ # Headers can be set when the task is created. These headers represent a subset
535
+ # of the headers that will accompany the task's HTTP request. Some HTTP request
536
+ # headers will be ignored or replaced. A partial list of headers that will be
537
+ # ignored or replaced is: * Host: This will be computed by Cloud Tasks and
538
+ # derived from HttpRequest.url. * Content-Length: This will be computed by Cloud
539
+ # Tasks. * User-Agent: This will be set to `"Google-Cloud-Tasks"`. * X-Google-*:
540
+ # Google use only. * X-AppEngine-*: Google use only. `Content-Type` won't be set
541
+ # by Cloud Tasks. You can explicitly set `Content-Type` to a media type when the
542
+ # task is created. For example, `Content-Type` can be set to `"application/octet-
543
+ # stream"` or `"application/json"`. Headers which can have multiple values (
544
+ # according to RFC2616) can be specified using comma-separated values. The size
545
+ # of the headers must be less than 80KB.
546
+ # Corresponds to the JSON property `headers`
547
+ # @return [Hash<String,String>]
548
+ attr_accessor :headers
549
+
550
+ # The HTTP method to use for the request. The default is POST.
551
+ # Corresponds to the JSON property `httpMethod`
552
+ # @return [String]
553
+ attr_accessor :http_method
554
+
555
+ # Contains information needed for generating an [OAuth token](https://developers.
556
+ # google.com/identity/protocols/OAuth2). This type of authorization should
557
+ # generally only be used when calling Google APIs hosted on *.googleapis.com.
558
+ # Corresponds to the JSON property `oauthToken`
559
+ # @return [Google::Apis::CloudtasksV2beta3::OAuthToken]
560
+ attr_accessor :oauth_token
561
+
562
+ # Contains information needed for generating an [OpenID Connect token](https://
563
+ # developers.google.com/identity/protocols/OpenIDConnect). This type of
564
+ # authorization can be used for many scenarios, including calling Cloud Run, or
565
+ # endpoints where you intend to validate the token yourself.
566
+ # Corresponds to the JSON property `oidcToken`
567
+ # @return [Google::Apis::CloudtasksV2beta3::OidcToken]
568
+ attr_accessor :oidc_token
569
+
570
+ # Required. The full url path that the request will be sent to. This string must
571
+ # begin with either "http://" or "https://". Some examples are: `http://acme.com`
572
+ # and `https://acme.com/sales:8080`. Cloud Tasks will encode some characters
573
+ # for safety and compatibility. The maximum allowed URL length is 2083
574
+ # characters after encoding. The `Location` header response from a redirect
575
+ # response [`300` - `399`] may be followed. The redirect is not counted as a
576
+ # separate attempt.
577
+ # Corresponds to the JSON property `url`
578
+ # @return [String]
579
+ attr_accessor :url
580
+
581
+ def initialize(**args)
582
+ update!(**args)
583
+ end
584
+
585
+ # Update properties of this object
586
+ def update!(**args)
587
+ @body = args[:body] if args.key?(:body)
588
+ @headers = args[:headers] if args.key?(:headers)
589
+ @http_method = args[:http_method] if args.key?(:http_method)
590
+ @oauth_token = args[:oauth_token] if args.key?(:oauth_token)
591
+ @oidc_token = args[:oidc_token] if args.key?(:oidc_token)
592
+ @url = args[:url] if args.key?(:url)
593
+ end
594
+ end
595
+
596
+ # The response message for Locations.ListLocations.
597
+ class ListLocationsResponse
598
+ include Google::Apis::Core::Hashable
599
+
600
+ # A list of locations that matches the specified filter in the request.
601
+ # Corresponds to the JSON property `locations`
602
+ # @return [Array<Google::Apis::CloudtasksV2beta3::Location>]
603
+ attr_accessor :locations
604
+
605
+ # The standard List next-page token.
606
+ # Corresponds to the JSON property `nextPageToken`
607
+ # @return [String]
608
+ attr_accessor :next_page_token
609
+
610
+ def initialize(**args)
611
+ update!(**args)
612
+ end
613
+
614
+ # Update properties of this object
615
+ def update!(**args)
616
+ @locations = args[:locations] if args.key?(:locations)
617
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
618
+ end
619
+ end
620
+
621
+ # Response message for ListQueues.
622
+ class ListQueuesResponse
623
+ include Google::Apis::Core::Hashable
624
+
625
+ # A token to retrieve next page of results. To return the next page of results,
626
+ # call ListQueues with this value as the page_token. If the next_page_token is
627
+ # empty, there are no more results. The page token is valid for only 2 hours.
628
+ # Corresponds to the JSON property `nextPageToken`
629
+ # @return [String]
630
+ attr_accessor :next_page_token
631
+
632
+ # The list of queues.
633
+ # Corresponds to the JSON property `queues`
634
+ # @return [Array<Google::Apis::CloudtasksV2beta3::Queue>]
635
+ attr_accessor :queues
636
+
637
+ def initialize(**args)
638
+ update!(**args)
639
+ end
640
+
641
+ # Update properties of this object
642
+ def update!(**args)
643
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
644
+ @queues = args[:queues] if args.key?(:queues)
645
+ end
646
+ end
647
+
648
+ # Response message for listing tasks using ListTasks.
649
+ class ListTasksResponse
650
+ include Google::Apis::Core::Hashable
651
+
652
+ # A token to retrieve next page of results. To return the next page of results,
653
+ # call ListTasks with this value as the page_token. If the next_page_token is
654
+ # empty, there are no more results.
655
+ # Corresponds to the JSON property `nextPageToken`
656
+ # @return [String]
657
+ attr_accessor :next_page_token
658
+
659
+ # The list of tasks.
660
+ # Corresponds to the JSON property `tasks`
661
+ # @return [Array<Google::Apis::CloudtasksV2beta3::Task>]
662
+ attr_accessor :tasks
663
+
664
+ def initialize(**args)
665
+ update!(**args)
666
+ end
667
+
668
+ # Update properties of this object
669
+ def update!(**args)
670
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
671
+ @tasks = args[:tasks] if args.key?(:tasks)
672
+ end
673
+ end
674
+
675
+ # A resource that represents Google Cloud Platform location.
676
+ class Location
677
+ include Google::Apis::Core::Hashable
678
+
679
+ # The friendly name for this location, typically a nearby city name. For example,
680
+ # "Tokyo".
681
+ # Corresponds to the JSON property `displayName`
682
+ # @return [String]
683
+ attr_accessor :display_name
684
+
685
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
686
+ # region": "us-east1"`
687
+ # Corresponds to the JSON property `labels`
688
+ # @return [Hash<String,String>]
689
+ attr_accessor :labels
690
+
691
+ # The canonical id for this location. For example: `"us-east1"`.
692
+ # Corresponds to the JSON property `locationId`
693
+ # @return [String]
694
+ attr_accessor :location_id
695
+
696
+ # Service-specific metadata. For example the available capacity at the given
697
+ # location.
698
+ # Corresponds to the JSON property `metadata`
699
+ # @return [Hash<String,Object>]
700
+ attr_accessor :metadata
701
+
702
+ # Resource name for the location, which may vary between implementations. For
703
+ # example: `"projects/example-project/locations/us-east1"`
704
+ # Corresponds to the JSON property `name`
705
+ # @return [String]
706
+ attr_accessor :name
707
+
708
+ def initialize(**args)
709
+ update!(**args)
710
+ end
711
+
712
+ # Update properties of this object
713
+ def update!(**args)
714
+ @display_name = args[:display_name] if args.key?(:display_name)
715
+ @labels = args[:labels] if args.key?(:labels)
716
+ @location_id = args[:location_id] if args.key?(:location_id)
717
+ @metadata = args[:metadata] if args.key?(:metadata)
718
+ @name = args[:name] if args.key?(:name)
719
+ end
720
+ end
721
+
722
+ # Contains information needed for generating an [OAuth token](https://developers.
723
+ # google.com/identity/protocols/OAuth2). This type of authorization should
724
+ # generally only be used when calling Google APIs hosted on *.googleapis.com.
725
+ class OAuthToken
726
+ include Google::Apis::Core::Hashable
727
+
728
+ # OAuth scope to be used for generating OAuth access token. If not specified, "
729
+ # https://www.googleapis.com/auth/cloud-platform" will be used.
730
+ # Corresponds to the JSON property `scope`
731
+ # @return [String]
732
+ attr_accessor :scope
733
+
734
+ # [Service account email](https://cloud.google.com/iam/docs/service-accounts) to
735
+ # be used for generating OAuth token. The service account must be within the
736
+ # same project as the queue. The caller must have iam.serviceAccounts.actAs
737
+ # permission for the service account.
738
+ # Corresponds to the JSON property `serviceAccountEmail`
739
+ # @return [String]
740
+ attr_accessor :service_account_email
741
+
742
+ def initialize(**args)
743
+ update!(**args)
744
+ end
745
+
746
+ # Update properties of this object
747
+ def update!(**args)
748
+ @scope = args[:scope] if args.key?(:scope)
749
+ @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
750
+ end
751
+ end
752
+
753
+ # Contains information needed for generating an [OpenID Connect token](https://
754
+ # developers.google.com/identity/protocols/OpenIDConnect). This type of
755
+ # authorization can be used for many scenarios, including calling Cloud Run, or
756
+ # endpoints where you intend to validate the token yourself.
757
+ class OidcToken
758
+ include Google::Apis::Core::Hashable
759
+
760
+ # Audience to be used when generating OIDC token. If not specified, the URI
761
+ # specified in target will be used.
762
+ # Corresponds to the JSON property `audience`
763
+ # @return [String]
764
+ attr_accessor :audience
765
+
766
+ # [Service account email](https://cloud.google.com/iam/docs/service-accounts) to
767
+ # be used for generating OIDC token. The service account must be within the same
768
+ # project as the queue. The caller must have iam.serviceAccounts.actAs
769
+ # permission for the service account.
770
+ # Corresponds to the JSON property `serviceAccountEmail`
771
+ # @return [String]
772
+ attr_accessor :service_account_email
773
+
774
+ def initialize(**args)
775
+ update!(**args)
776
+ end
777
+
778
+ # Update properties of this object
779
+ def update!(**args)
780
+ @audience = args[:audience] if args.key?(:audience)
781
+ @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
782
+ end
783
+ end
784
+
785
+ # Request message for PauseQueue.
786
+ class PauseQueueRequest
787
+ include Google::Apis::Core::Hashable
788
+
789
+ def initialize(**args)
790
+ update!(**args)
791
+ end
792
+
793
+ # Update properties of this object
794
+ def update!(**args)
795
+ end
796
+ end
797
+
798
+ # An Identity and Access Management (IAM) policy, which specifies access
799
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
800
+ # A `binding` binds one or more `members` to a single `role`. Members can be
801
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
802
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
803
+ # role or a user-created custom role. For some types of Google Cloud resources,
804
+ # a `binding` can also specify a `condition`, which is a logical expression that
805
+ # allows access to a resource only if the expression evaluates to `true`. A
806
+ # condition can add constraints based on attributes of the request, the resource,
807
+ # or both. To learn which resources support conditions in their IAM policies,
808
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
809
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
810
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
811
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
812
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
813
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
814
+ # title": "expirable access", "description": "Does not grant access after Sep
815
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
816
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
817
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
818
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
819
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
820
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
821
+ # description: Does not grant access after Sep 2020 expression: request.time <
822
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
823
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
824
+ # google.com/iam/docs/).
825
+ class Policy
826
+ include Google::Apis::Core::Hashable
827
+
828
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
829
+ # condition` that determines how and when the `bindings` are applied. Each of
830
+ # the `bindings` must contain at least one member.
831
+ # Corresponds to the JSON property `bindings`
832
+ # @return [Array<Google::Apis::CloudtasksV2beta3::Binding>]
833
+ attr_accessor :bindings
834
+
835
+ # `etag` is used for optimistic concurrency control as a way to help prevent
836
+ # simultaneous updates of a policy from overwriting each other. It is strongly
837
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
838
+ # to perform policy updates in order to avoid race conditions: An `etag` is
839
+ # returned in the response to `getIamPolicy`, and systems are expected to put
840
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
841
+ # applied to the same version of the policy. **Important:** If you use IAM
842
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
843
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
844
+ # with a version `1` policy, and all of the conditions in the version `3` policy
845
+ # are lost.
846
+ # Corresponds to the JSON property `etag`
847
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
848
+ # @return [String]
849
+ attr_accessor :etag
850
+
851
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
852
+ # Requests that specify an invalid value are rejected. Any operation that
853
+ # affects conditional role bindings must specify version `3`. This requirement
854
+ # applies to the following operations: * Getting a policy that includes a
855
+ # conditional role binding * Adding a conditional role binding to a policy *
856
+ # Changing a conditional role binding in a policy * Removing any role binding,
857
+ # with or without a condition, from a policy that includes conditions **
858
+ # Important:** If you use IAM Conditions, you must include the `etag` field
859
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
860
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
861
+ # conditions in the version `3` policy are lost. If a policy does not include
862
+ # any conditions, operations on that policy may specify any valid version or
863
+ # leave the field unset. To learn which resources support conditions in their
864
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
865
+ # conditions/resource-policies).
866
+ # Corresponds to the JSON property `version`
867
+ # @return [Fixnum]
868
+ attr_accessor :version
869
+
870
+ def initialize(**args)
871
+ update!(**args)
872
+ end
873
+
874
+ # Update properties of this object
875
+ def update!(**args)
876
+ @bindings = args[:bindings] if args.key?(:bindings)
877
+ @etag = args[:etag] if args.key?(:etag)
878
+ @version = args[:version] if args.key?(:version)
879
+ end
880
+ end
881
+
882
+ # Pull Message. This proto can only be used for tasks in a queue which has PULL
883
+ # type. It currently exists for backwards compatibility with the App Engine Task
884
+ # Queue SDK. This message type maybe returned with methods list and get, when
885
+ # the response view is FULL.
886
+ class PullMessage
887
+ include Google::Apis::Core::Hashable
888
+
889
+ # A data payload consumed by the worker to execute the task.
890
+ # Corresponds to the JSON property `payload`
891
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
892
+ # @return [String]
893
+ attr_accessor :payload
894
+
895
+ # The tasks's tag. The tag is less than 500 characters. SDK compatibility:
896
+ # Although the SDK allows tags to be either string or [bytes](https://cloud.
897
+ # google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/
898
+ # taskqueue/TaskOptions.html#tag-byte:A-), only UTF-8 encoded tags can be used
899
+ # in Cloud Tasks. If a tag isn't UTF-8 encoded, the tag will be empty when the
900
+ # task is returned by Cloud Tasks.
901
+ # Corresponds to the JSON property `tag`
902
+ # @return [String]
903
+ attr_accessor :tag
904
+
905
+ def initialize(**args)
906
+ update!(**args)
907
+ end
908
+
909
+ # Update properties of this object
910
+ def update!(**args)
911
+ @payload = args[:payload] if args.key?(:payload)
912
+ @tag = args[:tag] if args.key?(:tag)
913
+ end
914
+ end
915
+
916
+ # Request message for PurgeQueue.
917
+ class PurgeQueueRequest
918
+ include Google::Apis::Core::Hashable
919
+
920
+ def initialize(**args)
921
+ update!(**args)
922
+ end
923
+
924
+ # Update properties of this object
925
+ def update!(**args)
926
+ end
927
+ end
928
+
929
+ # A queue is a container of related tasks. Queues are configured to manage how
930
+ # those tasks are dispatched. Configurable properties include rate limits, retry
931
+ # options, queue types, and others.
932
+ class Queue
933
+ include Google::Apis::Core::Hashable
934
+
935
+ # App Engine HTTP queue. The task will be delivered to the App Engine
936
+ # application hostname specified by its AppEngineHttpQueue and
937
+ # AppEngineHttpRequest. The documentation for AppEngineHttpRequest explains how
938
+ # the task's host URL is constructed. Using AppEngineHttpQueue requires [`
939
+ # appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/
940
+ # access-control) Google IAM permission for the project and the following scope:
941
+ # `https://www.googleapis.com/auth/cloud-platform`
942
+ # Corresponds to the JSON property `appEngineHttpQueue`
943
+ # @return [Google::Apis::CloudtasksV2beta3::AppEngineHttpQueue]
944
+ attr_accessor :app_engine_http_queue
945
+
946
+ # Caller-specified and required in CreateQueue, after which it becomes output
947
+ # only. The queue name. The queue name must have the following format: `projects/
948
+ # PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * `PROJECT_ID` can contain
949
+ # letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.).
950
+ # For more information, see [Identifying projects](https://cloud.google.com/
951
+ # resource-manager/docs/creating-managing-projects#identifying_projects) * `
952
+ # LOCATION_ID` is the canonical ID for the queue's location. The list of
953
+ # available locations can be obtained by calling ListLocations. For more
954
+ # information, see https://cloud.google.com/about/locations/. * `QUEUE_ID` can
955
+ # contain letters ([A-Za-z]), numbers ([0-9]), or hyphens (-). The maximum
956
+ # length is 100 characters.
957
+ # Corresponds to the JSON property `name`
958
+ # @return [String]
959
+ attr_accessor :name
960
+
961
+ # Output only. The last time this queue was purged. All tasks that were created
962
+ # before this time were purged. A queue can be purged using PurgeQueue, the [App
963
+ # Engine Task Queue SDK, or the Cloud Console](https://cloud.google.com/
964
+ # appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#
965
+ # purging_all_tasks_from_a_queue). Purge time will be truncated to the nearest
966
+ # microsecond. Purge time will be unset if the queue has never been purged.
967
+ # Corresponds to the JSON property `purgeTime`
968
+ # @return [String]
969
+ attr_accessor :purge_time
970
+
971
+ # Rate limits. This message determines the maximum rate that tasks can be
972
+ # dispatched by a queue, regardless of whether the dispatch is a first task
973
+ # attempt or a retry. Note: The debugging command, RunTask, will run a task even
974
+ # if the queue has reached its RateLimits.
975
+ # Corresponds to the JSON property `rateLimits`
976
+ # @return [Google::Apis::CloudtasksV2beta3::RateLimits]
977
+ attr_accessor :rate_limits
978
+
979
+ # Retry config. These settings determine when a failed task attempt is retried.
980
+ # Corresponds to the JSON property `retryConfig`
981
+ # @return [Google::Apis::CloudtasksV2beta3::RetryConfig]
982
+ attr_accessor :retry_config
983
+
984
+ # Configuration options for writing logs to [Stackdriver Logging](https://cloud.
985
+ # google.com/logging/docs/).
986
+ # Corresponds to the JSON property `stackdriverLoggingConfig`
987
+ # @return [Google::Apis::CloudtasksV2beta3::StackdriverLoggingConfig]
988
+ attr_accessor :stackdriver_logging_config
989
+
990
+ # Output only. The state of the queue. `state` can only be changed by called
991
+ # PauseQueue, ResumeQueue, or uploading [queue.yaml/xml](https://cloud.google.
992
+ # com/appengine/docs/python/config/queueref). UpdateQueue cannot be used to
993
+ # change `state`.
994
+ # Corresponds to the JSON property `state`
995
+ # @return [String]
996
+ attr_accessor :state
997
+
998
+ # Statistics for a queue.
999
+ # Corresponds to the JSON property `stats`
1000
+ # @return [Google::Apis::CloudtasksV2beta3::QueueStats]
1001
+ attr_accessor :stats
1002
+
1003
+ # Immutable. The type of a queue (push or pull). `Queue.type` is an immutable
1004
+ # property of the queue that is set at the queue creation time. When left
1005
+ # unspecified, the default value of `PUSH` is selected.
1006
+ # Corresponds to the JSON property `type`
1007
+ # @return [String]
1008
+ attr_accessor :type
1009
+
1010
+ def initialize(**args)
1011
+ update!(**args)
1012
+ end
1013
+
1014
+ # Update properties of this object
1015
+ def update!(**args)
1016
+ @app_engine_http_queue = args[:app_engine_http_queue] if args.key?(:app_engine_http_queue)
1017
+ @name = args[:name] if args.key?(:name)
1018
+ @purge_time = args[:purge_time] if args.key?(:purge_time)
1019
+ @rate_limits = args[:rate_limits] if args.key?(:rate_limits)
1020
+ @retry_config = args[:retry_config] if args.key?(:retry_config)
1021
+ @stackdriver_logging_config = args[:stackdriver_logging_config] if args.key?(:stackdriver_logging_config)
1022
+ @state = args[:state] if args.key?(:state)
1023
+ @stats = args[:stats] if args.key?(:stats)
1024
+ @type = args[:type] if args.key?(:type)
1025
+ end
1026
+ end
1027
+
1028
+ # Statistics for a queue.
1029
+ class QueueStats
1030
+ include Google::Apis::Core::Hashable
1031
+
1032
+ # Output only. The number of requests that the queue has dispatched but has not
1033
+ # received a reply for yet.
1034
+ # Corresponds to the JSON property `concurrentDispatchesCount`
1035
+ # @return [Fixnum]
1036
+ attr_accessor :concurrent_dispatches_count
1037
+
1038
+ # Output only. The current maximum number of tasks per second executed by the
1039
+ # queue. The maximum value of this variable is controlled by the RateLimits of
1040
+ # the Queue. However, this value could be less to avoid overloading the
1041
+ # endpoints tasks in the queue are targeting.
1042
+ # Corresponds to the JSON property `effectiveExecutionRate`
1043
+ # @return [Float]
1044
+ attr_accessor :effective_execution_rate
1045
+
1046
+ # Output only. The number of tasks that the queue has dispatched and received a
1047
+ # reply for during the last minute. This variable counts both successful and non-
1048
+ # successful executions.
1049
+ # Corresponds to the JSON property `executedLastMinuteCount`
1050
+ # @return [Fixnum]
1051
+ attr_accessor :executed_last_minute_count
1052
+
1053
+ # Output only. An estimation of the nearest time in the future where a task in
1054
+ # the queue is scheduled to be executed.
1055
+ # Corresponds to the JSON property `oldestEstimatedArrivalTime`
1056
+ # @return [String]
1057
+ attr_accessor :oldest_estimated_arrival_time
1058
+
1059
+ # Output only. An estimation of the number of tasks in the queue, that is, the
1060
+ # tasks in the queue that haven't been executed, the tasks in the queue which
1061
+ # the queue has dispatched but has not yet received a reply for, and the failed
1062
+ # tasks that the queue is retrying.
1063
+ # Corresponds to the JSON property `tasksCount`
1064
+ # @return [Fixnum]
1065
+ attr_accessor :tasks_count
1066
+
1067
+ def initialize(**args)
1068
+ update!(**args)
1069
+ end
1070
+
1071
+ # Update properties of this object
1072
+ def update!(**args)
1073
+ @concurrent_dispatches_count = args[:concurrent_dispatches_count] if args.key?(:concurrent_dispatches_count)
1074
+ @effective_execution_rate = args[:effective_execution_rate] if args.key?(:effective_execution_rate)
1075
+ @executed_last_minute_count = args[:executed_last_minute_count] if args.key?(:executed_last_minute_count)
1076
+ @oldest_estimated_arrival_time = args[:oldest_estimated_arrival_time] if args.key?(:oldest_estimated_arrival_time)
1077
+ @tasks_count = args[:tasks_count] if args.key?(:tasks_count)
1078
+ end
1079
+ end
1080
+
1081
+ # Rate limits. This message determines the maximum rate that tasks can be
1082
+ # dispatched by a queue, regardless of whether the dispatch is a first task
1083
+ # attempt or a retry. Note: The debugging command, RunTask, will run a task even
1084
+ # if the queue has reached its RateLimits.
1085
+ class RateLimits
1086
+ include Google::Apis::Core::Hashable
1087
+
1088
+ # The max burst size. Max burst size limits how fast tasks in queue are
1089
+ # processed when many tasks are in the queue and the rate is high. This field
1090
+ # allows the queue to have a high rate so processing starts shortly after a task
1091
+ # is enqueued, but still limits resource usage when many tasks are enqueued in a
1092
+ # short period of time. The [token bucket](https://wikipedia.org/wiki/
1093
+ # Token_Bucket) algorithm is used to control the rate of task dispatches. Each
1094
+ # queue has a token bucket that holds tokens, up to the maximum specified by `
1095
+ # max_burst_size`. Each time a task is dispatched, a token is removed from the
1096
+ # bucket. Tasks will be dispatched until the queue's bucket runs out of tokens.
1097
+ # The bucket will be continuously refilled with new tokens based on
1098
+ # max_dispatches_per_second. The default value of `max_burst_size` is picked by
1099
+ # Cloud Tasks based on the value of max_dispatches_per_second. The maximum value
1100
+ # of `max_burst_size` is 500. For App Engine queues that were created or updated
1101
+ # using `queue.yaml/xml`, `max_burst_size` is equal to [bucket_size](https://
1102
+ # cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
1103
+ # If UpdateQueue is called on a queue without explicitly setting a value for `
1104
+ # max_burst_size`, `max_burst_size` value will get updated if UpdateQueue is
1105
+ # updating max_dispatches_per_second.
1106
+ # Corresponds to the JSON property `maxBurstSize`
1107
+ # @return [Fixnum]
1108
+ attr_accessor :max_burst_size
1109
+
1110
+ # The maximum number of concurrent tasks that Cloud Tasks allows to be
1111
+ # dispatched for this queue. After this threshold has been reached, Cloud Tasks
1112
+ # stops dispatching tasks until the number of concurrent requests decreases. If
1113
+ # unspecified when the queue is created, Cloud Tasks will pick the default. The
1114
+ # maximum allowed value is 5,000. This field has the same meaning as [
1115
+ # max_concurrent_requests in queue.yaml/xml](https://cloud.google.com/appengine/
1116
+ # docs/standard/python/config/queueref#max_concurrent_requests).
1117
+ # Corresponds to the JSON property `maxConcurrentDispatches`
1118
+ # @return [Fixnum]
1119
+ attr_accessor :max_concurrent_dispatches
1120
+
1121
+ # The maximum rate at which tasks are dispatched from this queue. If unspecified
1122
+ # when the queue is created, Cloud Tasks will pick the default. * For App Engine
1123
+ # queues, the maximum allowed value is 500. This field has the same meaning as [
1124
+ # rate in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/
1125
+ # python/config/queueref#rate).
1126
+ # Corresponds to the JSON property `maxDispatchesPerSecond`
1127
+ # @return [Float]
1128
+ attr_accessor :max_dispatches_per_second
1129
+
1130
+ def initialize(**args)
1131
+ update!(**args)
1132
+ end
1133
+
1134
+ # Update properties of this object
1135
+ def update!(**args)
1136
+ @max_burst_size = args[:max_burst_size] if args.key?(:max_burst_size)
1137
+ @max_concurrent_dispatches = args[:max_concurrent_dispatches] if args.key?(:max_concurrent_dispatches)
1138
+ @max_dispatches_per_second = args[:max_dispatches_per_second] if args.key?(:max_dispatches_per_second)
1139
+ end
1140
+ end
1141
+
1142
+ # Request message for ResumeQueue.
1143
+ class ResumeQueueRequest
1144
+ include Google::Apis::Core::Hashable
1145
+
1146
+ def initialize(**args)
1147
+ update!(**args)
1148
+ end
1149
+
1150
+ # Update properties of this object
1151
+ def update!(**args)
1152
+ end
1153
+ end
1154
+
1155
+ # Retry config. These settings determine when a failed task attempt is retried.
1156
+ class RetryConfig
1157
+ include Google::Apis::Core::Hashable
1158
+
1159
+ # Number of attempts per task. Cloud Tasks will attempt the task `max_attempts`
1160
+ # times (that is, if the first attempt fails, then there will be `max_attempts -
1161
+ # 1` retries). Must be >= -1. If unspecified when the queue is created, Cloud
1162
+ # Tasks will pick the default. -1 indicates unlimited attempts. This field has
1163
+ # the same meaning as [task_retry_limit in queue.yaml/xml](https://cloud.google.
1164
+ # com/appengine/docs/standard/python/config/queueref#retry_parameters).
1165
+ # Corresponds to the JSON property `maxAttempts`
1166
+ # @return [Fixnum]
1167
+ attr_accessor :max_attempts
1168
+
1169
+ # A task will be scheduled for retry between min_backoff and max_backoff
1170
+ # duration after it fails, if the queue's RetryConfig specifies that the task
1171
+ # should be retried. If unspecified when the queue is created, Cloud Tasks will
1172
+ # pick the default. `max_backoff` will be truncated to the nearest second. This
1173
+ # field has the same meaning as [max_backoff_seconds in queue.yaml/xml](https://
1174
+ # cloud.google.com/appengine/docs/standard/python/config/queueref#
1175
+ # retry_parameters).
1176
+ # Corresponds to the JSON property `maxBackoff`
1177
+ # @return [String]
1178
+ attr_accessor :max_backoff
1179
+
1180
+ # The time between retries will double `max_doublings` times. A task's retry
1181
+ # interval starts at min_backoff, then doubles `max_doublings` times, then
1182
+ # increases linearly, and finally retries at intervals of max_backoff up to
1183
+ # max_attempts times. For example, if min_backoff is 10s, max_backoff is 300s,
1184
+ # and `max_doublings` is 3, then the a task will first be retried in 10s. The
1185
+ # retry interval will double three times, and then increase linearly by 2^3 *
1186
+ # 10s. Finally, the task will retry at intervals of max_backoff until the task
1187
+ # has been attempted max_attempts times. Thus, the requests will retry at 10s,
1188
+ # 20s, 40s, 80s, 160s, 240s, 300s, 300s, .... If unspecified when the queue is
1189
+ # created, Cloud Tasks will pick the default. This field has the same meaning as
1190
+ # [max_doublings in queue.yaml/xml](https://cloud.google.com/appengine/docs/
1191
+ # standard/python/config/queueref#retry_parameters).
1192
+ # Corresponds to the JSON property `maxDoublings`
1193
+ # @return [Fixnum]
1194
+ attr_accessor :max_doublings
1195
+
1196
+ # If positive, `max_retry_duration` specifies the time limit for retrying a
1197
+ # failed task, measured from when the task was first attempted. Once `
1198
+ # max_retry_duration` time has passed *and* the task has been attempted
1199
+ # max_attempts times, no further attempts will be made and the task will be
1200
+ # deleted. If zero, then the task age is unlimited. If unspecified when the
1201
+ # queue is created, Cloud Tasks will pick the default. `max_retry_duration` will
1202
+ # be truncated to the nearest second. This field has the same meaning as [
1203
+ # task_age_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/
1204
+ # standard/python/config/queueref#retry_parameters).
1205
+ # Corresponds to the JSON property `maxRetryDuration`
1206
+ # @return [String]
1207
+ attr_accessor :max_retry_duration
1208
+
1209
+ # A task will be scheduled for retry between min_backoff and max_backoff
1210
+ # duration after it fails, if the queue's RetryConfig specifies that the task
1211
+ # should be retried. If unspecified when the queue is created, Cloud Tasks will
1212
+ # pick the default. `min_backoff` will be truncated to the nearest second. This
1213
+ # field has the same meaning as [min_backoff_seconds in queue.yaml/xml](https://
1214
+ # cloud.google.com/appengine/docs/standard/python/config/queueref#
1215
+ # retry_parameters).
1216
+ # Corresponds to the JSON property `minBackoff`
1217
+ # @return [String]
1218
+ attr_accessor :min_backoff
1219
+
1220
+ def initialize(**args)
1221
+ update!(**args)
1222
+ end
1223
+
1224
+ # Update properties of this object
1225
+ def update!(**args)
1226
+ @max_attempts = args[:max_attempts] if args.key?(:max_attempts)
1227
+ @max_backoff = args[:max_backoff] if args.key?(:max_backoff)
1228
+ @max_doublings = args[:max_doublings] if args.key?(:max_doublings)
1229
+ @max_retry_duration = args[:max_retry_duration] if args.key?(:max_retry_duration)
1230
+ @min_backoff = args[:min_backoff] if args.key?(:min_backoff)
1231
+ end
1232
+ end
1233
+
1234
+ # Request message for forcing a task to run now using RunTask.
1235
+ class RunTaskRequest
1236
+ include Google::Apis::Core::Hashable
1237
+
1238
+ # The response_view specifies which subset of the Task will be returned. By
1239
+ # default response_view is BASIC; not all information is retrieved by default
1240
+ # because some data, such as payloads, might be desirable to return only when
1241
+ # needed because of its large size or because of the sensitivity of data that it
1242
+ # contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google
1243
+ # IAM](https://cloud.google.com/iam/) permission on the Task resource.
1244
+ # Corresponds to the JSON property `responseView`
1245
+ # @return [String]
1246
+ attr_accessor :response_view
1247
+
1248
+ def initialize(**args)
1249
+ update!(**args)
1250
+ end
1251
+
1252
+ # Update properties of this object
1253
+ def update!(**args)
1254
+ @response_view = args[:response_view] if args.key?(:response_view)
1255
+ end
1256
+ end
1257
+
1258
+ # Request message for `SetIamPolicy` method.
1259
+ class SetIamPolicyRequest
1260
+ include Google::Apis::Core::Hashable
1261
+
1262
+ # An Identity and Access Management (IAM) policy, which specifies access
1263
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1264
+ # A `binding` binds one or more `members` to a single `role`. Members can be
1265
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
1266
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
1267
+ # role or a user-created custom role. For some types of Google Cloud resources,
1268
+ # a `binding` can also specify a `condition`, which is a logical expression that
1269
+ # allows access to a resource only if the expression evaluates to `true`. A
1270
+ # condition can add constraints based on attributes of the request, the resource,
1271
+ # or both. To learn which resources support conditions in their IAM policies,
1272
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1273
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1274
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1275
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1276
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1277
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1278
+ # title": "expirable access", "description": "Does not grant access after Sep
1279
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1280
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1281
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
1282
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1283
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1284
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
1285
+ # description: Does not grant access after Sep 2020 expression: request.time <
1286
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1287
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
1288
+ # google.com/iam/docs/).
1289
+ # Corresponds to the JSON property `policy`
1290
+ # @return [Google::Apis::CloudtasksV2beta3::Policy]
1291
+ attr_accessor :policy
1292
+
1293
+ def initialize(**args)
1294
+ update!(**args)
1295
+ end
1296
+
1297
+ # Update properties of this object
1298
+ def update!(**args)
1299
+ @policy = args[:policy] if args.key?(:policy)
1300
+ end
1301
+ end
1302
+
1303
+ # Configuration options for writing logs to [Stackdriver Logging](https://cloud.
1304
+ # google.com/logging/docs/).
1305
+ class StackdriverLoggingConfig
1306
+ include Google::Apis::Core::Hashable
1307
+
1308
+ # Specifies the fraction of operations to write to [Stackdriver Logging](https://
1309
+ # cloud.google.com/logging/docs/). This field may contain any value between 0.0
1310
+ # and 1.0, inclusive. 0.0 is the default and means that no operations are logged.
1311
+ # Corresponds to the JSON property `samplingRatio`
1312
+ # @return [Float]
1313
+ attr_accessor :sampling_ratio
1314
+
1315
+ def initialize(**args)
1316
+ update!(**args)
1317
+ end
1318
+
1319
+ # Update properties of this object
1320
+ def update!(**args)
1321
+ @sampling_ratio = args[:sampling_ratio] if args.key?(:sampling_ratio)
1322
+ end
1323
+ end
1324
+
1325
+ # The `Status` type defines a logical error model that is suitable for different
1326
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1327
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1328
+ # data: error code, error message, and error details. You can find out more
1329
+ # about this error model and how to work with it in the [API Design Guide](https:
1330
+ # //cloud.google.com/apis/design/errors).
1331
+ class Status
1332
+ include Google::Apis::Core::Hashable
1333
+
1334
+ # The status code, which should be an enum value of google.rpc.Code.
1335
+ # Corresponds to the JSON property `code`
1336
+ # @return [Fixnum]
1337
+ attr_accessor :code
1338
+
1339
+ # A list of messages that carry the error details. There is a common set of
1340
+ # message types for APIs to use.
1341
+ # Corresponds to the JSON property `details`
1342
+ # @return [Array<Hash<String,Object>>]
1343
+ attr_accessor :details
1344
+
1345
+ # A developer-facing error message, which should be in English. Any user-facing
1346
+ # error message should be localized and sent in the google.rpc.Status.details
1347
+ # field, or localized by the client.
1348
+ # Corresponds to the JSON property `message`
1349
+ # @return [String]
1350
+ attr_accessor :message
1351
+
1352
+ def initialize(**args)
1353
+ update!(**args)
1354
+ end
1355
+
1356
+ # Update properties of this object
1357
+ def update!(**args)
1358
+ @code = args[:code] if args.key?(:code)
1359
+ @details = args[:details] if args.key?(:details)
1360
+ @message = args[:message] if args.key?(:message)
1361
+ end
1362
+ end
1363
+
1364
+ # A unit of scheduled work.
1365
+ class Task
1366
+ include Google::Apis::Core::Hashable
1367
+
1368
+ # App Engine HTTP request. The message defines the HTTP request that is sent to
1369
+ # an App Engine app when the task is dispatched. Using AppEngineHttpRequest
1370
+ # requires [`appengine.applications.get`](https://cloud.google.com/appengine/
1371
+ # docs/admin-api/access-control) Google IAM permission for the project and the
1372
+ # following scope: `https://www.googleapis.com/auth/cloud-platform` The task
1373
+ # will be delivered to the App Engine app which belongs to the same project as
1374
+ # the queue. For more information, see [How Requests are Routed](https://cloud.
1375
+ # google.com/appengine/docs/standard/python/how-requests-are-routed) and how
1376
+ # routing is affected by [dispatch files](https://cloud.google.com/appengine/
1377
+ # docs/python/config/dispatchref). Traffic is encrypted during transport and
1378
+ # never leaves Google datacenters. Because this traffic is carried over a
1379
+ # communication mechanism internal to Google, you cannot explicitly set the
1380
+ # protocol (for example, HTTP or HTTPS). The request to the handler, however,
1381
+ # will appear to have used the HTTP protocol. The AppEngineRouting used to
1382
+ # construct the URL that the task is delivered to can be set at the queue-level
1383
+ # or task-level: * If set, app_engine_routing_override is used for all tasks in
1384
+ # the queue, no matter what the setting is for the task-level app_engine_routing.
1385
+ # The `url` that the task will be sent to is: * `url =` host `+` relative_uri
1386
+ # Tasks can be dispatched to secure app handlers, unsecure app handlers, and
1387
+ # URIs restricted with [`login: admin`](https://cloud.google.com/appengine/docs/
1388
+ # standard/python/config/appref). Because tasks are not run as any user, they
1389
+ # cannot be dispatched to URIs restricted with [`login: required`](https://cloud.
1390
+ # google.com/appengine/docs/standard/python/config/appref) Task dispatches also
1391
+ # do not follow redirects. The task attempt has succeeded if the app's request
1392
+ # handler returns an HTTP response code in the range [`200` - `299`]. The task
1393
+ # attempt has failed if the app's handler returns a non-2xx response code or
1394
+ # Cloud Tasks does not receive response before the deadline. Failed tasks will
1395
+ # be retried according to the retry configuration. `503` (Service Unavailable)
1396
+ # is considered an App Engine system error instead of an application error and
1397
+ # will cause Cloud Tasks' traffic congestion control to temporarily throttle the
1398
+ # queue's dispatches. Unlike other types of task targets, a `429` (Too Many
1399
+ # Requests) response from an app handler does not cause traffic congestion
1400
+ # control to throttle the queue.
1401
+ # Corresponds to the JSON property `appEngineHttpRequest`
1402
+ # @return [Google::Apis::CloudtasksV2beta3::AppEngineHttpRequest]
1403
+ attr_accessor :app_engine_http_request
1404
+
1405
+ # Output only. The time that the task was created. `create_time` will be
1406
+ # truncated to the nearest second.
1407
+ # Corresponds to the JSON property `createTime`
1408
+ # @return [String]
1409
+ attr_accessor :create_time
1410
+
1411
+ # Output only. The number of attempts dispatched. This count includes attempts
1412
+ # which have been dispatched but haven't received a response.
1413
+ # Corresponds to the JSON property `dispatchCount`
1414
+ # @return [Fixnum]
1415
+ attr_accessor :dispatch_count
1416
+
1417
+ # The deadline for requests sent to the worker. If the worker does not respond
1418
+ # by this deadline then the request is cancelled and the attempt is marked as a `
1419
+ # DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the task according to the
1420
+ # RetryConfig. Note that when the request is cancelled, Cloud Tasks will stop
1421
+ # listening for the response, but whether the worker stops processing depends on
1422
+ # the worker. For example, if the worker is stuck, it may not react to cancelled
1423
+ # requests. The default and maximum values depend on the type of request: * For
1424
+ # HTTP tasks, the default is 10 minutes. The deadline must be in the interval [
1425
+ # 15 seconds, 30 minutes]. * For App Engine tasks, 0 indicates that the request
1426
+ # has the default deadline. The default deadline depends on the [scaling type](
1427
+ # https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#
1428
+ # instance_scaling) of the service: 10 minutes for standard apps with automatic
1429
+ # scaling, 24 hours for standard apps with manual and basic scaling, and 60
1430
+ # minutes for flex apps. If the request deadline is set, it must be in the
1431
+ # interval [15 seconds, 24 hours 15 seconds]. Regardless of the task's `
1432
+ # dispatch_deadline`, the app handler will not run for longer than than the
1433
+ # service's timeout. We recommend setting the `dispatch_deadline` to at most a
1434
+ # few seconds more than the app handler's timeout. For more information see [
1435
+ # Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#
1436
+ # timeouts). `dispatch_deadline` will be truncated to the nearest millisecond.
1437
+ # The deadline is an approximate deadline.
1438
+ # Corresponds to the JSON property `dispatchDeadline`
1439
+ # @return [String]
1440
+ attr_accessor :dispatch_deadline
1441
+
1442
+ # The status of a task attempt.
1443
+ # Corresponds to the JSON property `firstAttempt`
1444
+ # @return [Google::Apis::CloudtasksV2beta3::Attempt]
1445
+ attr_accessor :first_attempt
1446
+
1447
+ # HTTP request. The task will be pushed to the worker as an HTTP request. If the
1448
+ # worker or the redirected worker acknowledges the task by returning a
1449
+ # successful HTTP response code ([`200` - `299`]), the task will be removed from
1450
+ # the queue. If any other HTTP response code is returned or no response is
1451
+ # received, the task will be retried according to the following: * User-
1452
+ # specified throttling: retry configuration, rate limits, and the queue's state.
1453
+ # * System throttling: To prevent the worker from overloading, Cloud Tasks may
1454
+ # temporarily reduce the queue's effective rate. User-specified settings will
1455
+ # not be changed. System throttling happens because: * Cloud Tasks backs off on
1456
+ # all errors. Normally the backoff specified in rate limits will be used. But if
1457
+ # the worker returns `429` (Too Many Requests), `503` (Service Unavailable), or
1458
+ # the rate of errors is high, Cloud Tasks will use a higher backoff rate. The
1459
+ # retry specified in the `Retry-After` HTTP response header is considered. * To
1460
+ # prevent traffic spikes and to smooth sudden increases in traffic, dispatches
1461
+ # ramp up slowly when the queue is newly created or idle and if large numbers of
1462
+ # tasks suddenly become available to dispatch (due to spikes in create task
1463
+ # rates, the queue being unpaused, or many tasks that are scheduled at the same
1464
+ # time).
1465
+ # Corresponds to the JSON property `httpRequest`
1466
+ # @return [Google::Apis::CloudtasksV2beta3::HttpRequest]
1467
+ attr_accessor :http_request
1468
+
1469
+ # The status of a task attempt.
1470
+ # Corresponds to the JSON property `lastAttempt`
1471
+ # @return [Google::Apis::CloudtasksV2beta3::Attempt]
1472
+ attr_accessor :last_attempt
1473
+
1474
+ # Optionally caller-specified in CreateTask. The task name. The task name must
1475
+ # have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/
1476
+ # QUEUE_ID/tasks/TASK_ID` * `PROJECT_ID` can contain letters ([A-Za-z]), numbers
1477
+ # ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [
1478
+ # Identifying projects](https://cloud.google.com/resource-manager/docs/creating-
1479
+ # managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID
1480
+ # for the task's location. The list of available locations can be obtained by
1481
+ # calling ListLocations. For more information, see https://cloud.google.com/
1482
+ # about/locations/. * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
1483
+ # or hyphens (-). The maximum length is 100 characters. * `TASK_ID` can contain
1484
+ # only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The
1485
+ # maximum length is 500 characters.
1486
+ # Corresponds to the JSON property `name`
1487
+ # @return [String]
1488
+ attr_accessor :name
1489
+
1490
+ # Pull Message. This proto can only be used for tasks in a queue which has PULL
1491
+ # type. It currently exists for backwards compatibility with the App Engine Task
1492
+ # Queue SDK. This message type maybe returned with methods list and get, when
1493
+ # the response view is FULL.
1494
+ # Corresponds to the JSON property `pullMessage`
1495
+ # @return [Google::Apis::CloudtasksV2beta3::PullMessage]
1496
+ attr_accessor :pull_message
1497
+
1498
+ # Output only. The number of attempts which have received a response.
1499
+ # Corresponds to the JSON property `responseCount`
1500
+ # @return [Fixnum]
1501
+ attr_accessor :response_count
1502
+
1503
+ # The time when the task is scheduled to be attempted. For App Engine queues,
1504
+ # this is when the task will be attempted or retried. `schedule_time` will be
1505
+ # truncated to the nearest microsecond.
1506
+ # Corresponds to the JSON property `scheduleTime`
1507
+ # @return [String]
1508
+ attr_accessor :schedule_time
1509
+
1510
+ # Output only. The view specifies which subset of the Task has been returned.
1511
+ # Corresponds to the JSON property `view`
1512
+ # @return [String]
1513
+ attr_accessor :view
1514
+
1515
+ def initialize(**args)
1516
+ update!(**args)
1517
+ end
1518
+
1519
+ # Update properties of this object
1520
+ def update!(**args)
1521
+ @app_engine_http_request = args[:app_engine_http_request] if args.key?(:app_engine_http_request)
1522
+ @create_time = args[:create_time] if args.key?(:create_time)
1523
+ @dispatch_count = args[:dispatch_count] if args.key?(:dispatch_count)
1524
+ @dispatch_deadline = args[:dispatch_deadline] if args.key?(:dispatch_deadline)
1525
+ @first_attempt = args[:first_attempt] if args.key?(:first_attempt)
1526
+ @http_request = args[:http_request] if args.key?(:http_request)
1527
+ @last_attempt = args[:last_attempt] if args.key?(:last_attempt)
1528
+ @name = args[:name] if args.key?(:name)
1529
+ @pull_message = args[:pull_message] if args.key?(:pull_message)
1530
+ @response_count = args[:response_count] if args.key?(:response_count)
1531
+ @schedule_time = args[:schedule_time] if args.key?(:schedule_time)
1532
+ @view = args[:view] if args.key?(:view)
1533
+ end
1534
+ end
1535
+
1536
+ # Request message for `TestIamPermissions` method.
1537
+ class TestIamPermissionsRequest
1538
+ include Google::Apis::Core::Hashable
1539
+
1540
+ # The set of permissions to check for the `resource`. Permissions with wildcards
1541
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
1542
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
1543
+ # Corresponds to the JSON property `permissions`
1544
+ # @return [Array<String>]
1545
+ attr_accessor :permissions
1546
+
1547
+ def initialize(**args)
1548
+ update!(**args)
1549
+ end
1550
+
1551
+ # Update properties of this object
1552
+ def update!(**args)
1553
+ @permissions = args[:permissions] if args.key?(:permissions)
1554
+ end
1555
+ end
1556
+
1557
+ # Response message for `TestIamPermissions` method.
1558
+ class TestIamPermissionsResponse
1559
+ include Google::Apis::Core::Hashable
1560
+
1561
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1562
+ # Corresponds to the JSON property `permissions`
1563
+ # @return [Array<String>]
1564
+ attr_accessor :permissions
1565
+
1566
+ def initialize(**args)
1567
+ update!(**args)
1568
+ end
1569
+
1570
+ # Update properties of this object
1571
+ def update!(**args)
1572
+ @permissions = args[:permissions] if args.key?(:permissions)
1573
+ end
1574
+ end
1575
+ end
1576
+ end
1577
+ end