blob: 66b0bf2d00225e23038244933f182013b564190a [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="cloudscheduler_v1.html">Cloud Scheduler API</a> . <a href="cloudscheduler_v1.projects.html">projects</a> . <a href="cloudscheduler_v1.projects.locations.html">locations</a> . <a href="cloudscheduler_v1.projects.locations.jobs.html">jobs</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Creates a job.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes a job.</p>
83<p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Gets a job.</p>
86<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070087 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Lists jobs.</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Updates a job.</p>
95<p class="toc_element">
96 <code><a href="#pause">pause(name, body=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Pauses a job.</p>
98<p class="toc_element">
99 <code><a href="#resume">resume(name, body=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Resume a job.</p>
101<p class="toc_element">
102 <code><a href="#run">run(name, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Forces a job to run now.</p>
104<h3>Method Details</h3>
105<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107 <pre>Creates a job.
108
109Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700110 parent: string, Required. The location name. For example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700111`projects/PROJECT_ID/locations/LOCATION_ID`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113 The object takes the form of:
114
115{ # Configuration for a job.
116 # The maximum allowed size for a job is 100KB.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700117 &quot;scheduleTime&quot;: &quot;A String&quot;, # Output only. The next time the job is scheduled. Note that this may be a
118 # retry of a previously failed attempt or the next execution time
119 # according to the schedule.
120 &quot;attemptDeadline&quot;: &quot;A String&quot;, # The deadline for job attempts. If the request handler does not respond by
121 # this deadline then the request is cancelled and the attempt is marked as a
122 # `DEADLINE_EXCEEDED` failure. The failed attempt can be viewed in
123 # execution logs. Cloud Scheduler will retry the job according
124 # to the RetryConfig.
125 #
126 # The allowed duration for this deadline is:
127 # * For HTTP targets, between 15 seconds and 30 minutes.
128 # * For App Engine HTTP targets, between 15
129 # seconds and 24 hours.
130 &quot;pubsubTarget&quot;: { # Pub/Sub target. The job will be delivered by publishing a message to # Pub/Sub target.
131 # the given Pub/Sub topic.
132 &quot;topicName&quot;: &quot;A String&quot;, # Required. The name of the Cloud Pub/Sub topic to which messages will
133 # be published when a job is delivered. The topic name must be in the
134 # same format as required by PubSub&#x27;s
135 # [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
136 # for example `projects/PROJECT_ID/topics/TOPIC_ID`.
137 #
138 # The topic must be in the same project as the Cloud Scheduler job.
139 &quot;data&quot;: &quot;A String&quot;, # The message payload for PubsubMessage.
140 #
141 # Pubsub message must contain either non-empty data, or at least one
142 # attribute.
143 &quot;attributes&quot;: { # Attributes for PubsubMessage.
144 #
145 # Pubsub message must contain either non-empty data, or at least one
146 # attribute.
147 &quot;a_key&quot;: &quot;A String&quot;,
148 },
149 },
150 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # Output only. The response from the target for the last attempted execution.
151 # different programming environments, including REST APIs and RPC APIs. It is
152 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
153 # three pieces of data: error code, error message, and error details.
154 #
155 # You can find out more about this error model and how to work with it in the
156 # [API Design Guide](https://cloud.google.com/apis/design/errors).
157 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
158 # user-facing error message should be localized and sent in the
159 # google.rpc.Status.details field, or localized by the client.
160 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
161 # message types for APIs to use.
162 {
163 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
164 },
165 ],
166 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
167 },
168 &quot;schedule&quot;: &quot;A String&quot;, # Required, except when used with UpdateJob.
169 #
170 # Describes the schedule on which the job will be executed.
171 #
172 # The schedule can be either of the following types:
173 #
174 # * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
175 # * English-like
176 # [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
177 #
178 # As a general rule, execution `n + 1` of a job will not begin
179 # until execution `n` has finished. Cloud Scheduler will never
180 # allow two simultaneously outstanding executions. For example,
181 # this implies that if the `n+1`th execution is scheduled to run at
182 # 16:00 but the `n`th execution takes until 16:15, the `n+1`th
183 # execution will not start until `16:15`.
184 # A scheduled start time will be delayed if the previous
185 # execution has not ended when its scheduled time occurs.
186 #
187 # If retry_count &gt; 0 and a job attempt fails,
188 # the job will be tried a total of retry_count
189 # times, with exponential backoff, until the next scheduled start
190 # time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 &quot;description&quot;: &quot;A String&quot;, # Optionally caller-specified in CreateJob or
192 # UpdateJob.
193 #
194 # A human-readable description for the job. This string must not contain
195 # more than 500 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700196 &quot;retryConfig&quot;: { # Settings that determine the retry behavior. # Settings that determine the retry behavior.
197 #
198 # By default, if a job does not complete successfully (meaning that
199 # an acknowledgement is not received from the handler, then it will be retried
200 # with exponential backoff according to the settings in RetryConfig.
201 &quot;maxBackoffDuration&quot;: &quot;A String&quot;, # The maximum amount of time to wait before retrying a job after
202 # it fails.
203 #
204 # The default value of this field is 1 hour.
205 &quot;minBackoffDuration&quot;: &quot;A String&quot;, # The minimum amount of time to wait before retrying a job after
206 # it fails.
207 #
208 # The default value of this field is 5 seconds.
209 &quot;retryCount&quot;: 42, # The number of attempts that the system will make to run a job using the
210 # exponential backoff procedure described by
211 # max_doublings.
212 #
213 # The default value of retry_count is zero.
214 #
215 # If retry_count is zero, a job attempt will *not* be retried if
216 # it fails. Instead the Cloud Scheduler system will wait for the
217 # next scheduled execution time.
218 #
219 # If retry_count is set to a non-zero number then Cloud Scheduler
220 # will retry failed attempts, using exponential backoff,
221 # retry_count times, or until the next scheduled execution time,
222 # whichever comes first.
223 #
224 # Values greater than 5 and negative values are not allowed.
225 &quot;maxRetryDuration&quot;: &quot;A String&quot;, # The time limit for retrying a failed job, measured from time when an
226 # execution was first attempted. If specified with
227 # retry_count, the job will be retried until both
228 # limits are reached.
229 #
230 # The default value for max_retry_duration is zero, which means retry
231 # duration is unlimited.
232 &quot;maxDoublings&quot;: 42, # The time between retries will double `max_doublings` times.
233 #
234 # A job&#x27;s retry interval starts at
235 # min_backoff_duration, then doubles
236 # `max_doublings` times, then increases linearly, and finally
237 # retries at intervals of
238 # max_backoff_duration up to
239 # retry_count times.
240 #
241 # For example, if min_backoff_duration is
242 # 10s, max_backoff_duration is 300s, and
243 # `max_doublings` is 3, then the a job will first be retried in 10s. The
244 # retry interval will double three times, and then increase linearly by
245 # 2^3 * 10s. Finally, the job will retry at intervals of
246 # max_backoff_duration until the job has
247 # been attempted retry_count times. Thus, the
248 # requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
249 #
250 # The default value of this field is 5.
251 },
252 &quot;httpTarget&quot;: { # Http target. The job will be pushed to the job handler by means of # HTTP target.
253 # an HTTP request via an http_method such as HTTP
254 # POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
255 # response code in the range [200 - 299]. A failure to receive a response
256 # constitutes a failed execution. For a redirected request, the response
257 # returned by the redirected request is considered.
258 &quot;headers&quot;: { # The user can specify HTTP request headers to send with the job&#x27;s
259 # HTTP request. This map contains the header field names and
260 # values. Repeated headers are not supported, but a header value can
261 # contain commas. These headers represent a subset of the headers
262 # that will accompany the job&#x27;s HTTP request. Some HTTP request
263 # headers will be ignored or replaced. A partial list of headers that
264 # will be ignored or replaced is below:
265 # - Host: This will be computed by Cloud Scheduler and derived from
266 # uri.
267 # * `Content-Length`: This will be computed by Cloud Scheduler.
268 # * `User-Agent`: This will be set to `&quot;Google-Cloud-Scheduler&quot;`.
269 # * `X-Google-*`: Google internal use only.
270 # * `X-AppEngine-*`: Google internal use only.
271 #
272 # The total size of headers must be less than 80KB.
273 &quot;a_key&quot;: &quot;A String&quot;,
274 },
275 &quot;uri&quot;: &quot;A String&quot;, # Required. The full URI path that the request will be sent to. This string
276 # must begin with either &quot;http://&quot; or &quot;https://&quot;. Some examples of
277 # valid values for uri are:
278 # `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
279 # encode some characters for safety and compatibility. The maximum allowed
280 # URL length is 2083 characters after encoding.
281 &quot;body&quot;: &quot;A String&quot;, # HTTP request body. A request body is allowed only if the HTTP
282 # method is POST, PUT, or PATCH. It is an error to set body on a job with an
283 # incompatible HttpMethod.
284 &quot;oidcToken&quot;: { # Contains information needed for generating an # If specified, an
285 # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
286 # token will be generated and attached as an `Authorization` header in the
287 # HTTP request.
288 #
289 # This type of authorization can be used for many scenarios, including
290 # calling Cloud Run, or endpoints where you intend to validate the token
291 # yourself.
292 # [OpenID Connect
293 # token](https://developers.google.com/identity/protocols/OpenIDConnect).
294 # This type of authorization can be used for many scenarios, including
295 # calling Cloud Run, or endpoints where you intend to validate the token
296 # yourself.
297 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
298 # to be used for generating OIDC token.
299 # The service account must be within the same project as the job. The caller
300 # must have iam.serviceAccounts.actAs permission for the service account.
301 &quot;audience&quot;: &quot;A String&quot;, # Audience to be used when generating OIDC token. If not specified, the URI
302 # specified in target will be used.
303 },
304 &quot;oauthToken&quot;: { # Contains information needed for generating an # If specified, an
305 # [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
306 # will be generated and attached as an `Authorization` header in the HTTP
307 # request.
308 #
309 # This type of authorization should generally only be used when calling
310 # Google APIs hosted on *.googleapis.com.
311 # [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
312 # This type of authorization should generally only be used when calling Google
313 # APIs hosted on *.googleapis.com.
314 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
315 # to be used for generating OAuth token.
316 # The service account must be within the same project as the job. The caller
317 # must have iam.serviceAccounts.actAs permission for the service account.
318 &quot;scope&quot;: &quot;A String&quot;, # OAuth scope to be used for generating OAuth access token.
319 # If not specified, &quot;https://www.googleapis.com/auth/cloud-platform&quot;
320 # will be used.
321 },
322 &quot;httpMethod&quot;: &quot;A String&quot;, # Which HTTP method to use for the request.
323 },
324 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the job.
325 &quot;userUpdateTime&quot;: &quot;A String&quot;, # Output only. The creation time of the job.
326 &quot;timeZone&quot;: &quot;A String&quot;, # Specifies the time zone to be used in interpreting
327 # schedule. The value of this field must be a time
328 # zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
329 #
330 # Note that some time zones include a provision for
331 # daylight savings time. The rules for daylight saving time are
332 # determined by the chosen tz. For UTC use the string &quot;utc&quot;. If a
333 # time zone is not specified, the default will be in UTC (also known
334 # as GMT).
Bu Sun Kim65020912020-05-20 12:08:20 -0700335 &quot;appEngineHttpTarget&quot;: { # App Engine target. The job will be pushed to a job handler by means # App Engine HTTP target.
336 # of an HTTP request via an http_method such
337 # as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an
338 # HTTP response code in the range [200 - 299]. Error 503 is
339 # considered an App Engine system error instead of an application
340 # error. Requests returning error 503 will be retried regardless of
341 # retry configuration and not counted against retry counts. Any other
342 # response code, or a failure to receive a response before the
343 # deadline, constitutes a failed attempt.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700344 &quot;relativeUri&quot;: &quot;A String&quot;, # The relative URI.
345 #
346 # The relative URL must begin with &quot;/&quot; and must be a valid HTTP relative URL.
347 # It can contain a path, query string arguments, and `#` fragments.
348 # If the relative URL is empty, then the root path &quot;/&quot; will be used.
349 # No spaces are allowed, and the maximum length allowed is 2083 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700350 &quot;headers&quot;: { # HTTP request headers.
351 #
352 # This map contains the header field names and values. Headers can be set
353 # when the job is created.
354 #
355 # Cloud Scheduler sets some headers to default values:
356 #
357 # * `User-Agent`: By default, this header is
358 # `&quot;AppEngine-Google; (+http://code.google.com/appengine)&quot;`.
359 # This header can be modified, but Cloud Scheduler will append
360 # `&quot;AppEngine-Google; (+http://code.google.com/appengine)&quot;` to the
361 # modified `User-Agent`.
362 # * `X-CloudScheduler`: This header will be set to true.
363 #
364 # If the job has an body, Cloud Scheduler sets
365 # the following headers:
366 #
367 # * `Content-Type`: By default, the `Content-Type` header is set to
368 # `&quot;application/octet-stream&quot;`. The default can be overridden by explictly
369 # setting `Content-Type` to a particular media type when the job is
370 # created.
371 # For example, `Content-Type` can be set to `&quot;application/json&quot;`.
372 # * `Content-Length`: This is computed by Cloud Scheduler. This value is
373 # output only. It cannot be changed.
374 #
375 # The headers below are output only. They cannot be set or overridden:
376 #
377 # * `X-Google-*`: For Google internal use only.
378 # * `X-AppEngine-*`: For Google internal use only.
379 #
380 # In addition, some App Engine headers, which contain
381 # job-specific information, are also be sent to the job handler.
382 &quot;a_key&quot;: &quot;A String&quot;,
383 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700384 &quot;httpMethod&quot;: &quot;A String&quot;, # The HTTP method to use for the request. PATCH and OPTIONS are not
385 # permitted.
386 &quot;body&quot;: &quot;A String&quot;, # Body.
387 #
388 # HTTP request body. A request body is allowed only if the HTTP method is
389 # POST or PUT. It will result in invalid argument error to set a body on a
390 # job with an incompatible HttpMethod.
Bu Sun Kim65020912020-05-20 12:08:20 -0700391 &quot;appEngineRouting&quot;: { # App Engine Routing. # App Engine Routing setting for the job.
392 #
393 # For more information about services, versions, and instances see
394 # [An Overview of App
395 # Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
396 # [Microservices Architecture on Google App
397 # Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
398 # [App Engine Standard request
399 # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
400 # and [App Engine Flex request
401 # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Bu Sun Kim65020912020-05-20 12:08:20 -0700402 &quot;host&quot;: &quot;A String&quot;, # Output only. The host that the job is sent to.
403 #
404 # For more information about how App Engine requests are routed, see
405 # [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
406 #
407 # The host is constructed as:
408 #
409 #
410 # * `host = [application_domain_name]`&lt;/br&gt;
411 # `| [service] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
412 # `| [version] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
413 # `| [version_dot_service]+ &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
414 # `| [instance] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
415 # `| [instance_dot_service] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
416 # `| [instance_dot_version] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
417 # `| [instance_dot_version_dot_service] + &#x27;.&#x27; + [application_domain_name]`
418 #
419 # * `application_domain_name` = The domain name of the app, for
420 # example &lt;app-id&gt;.appspot.com, which is associated with the
421 # job&#x27;s project ID.
422 #
423 # * `service =` service
424 #
425 # * `version =` version
426 #
427 # * `version_dot_service =`
428 # version `+ &#x27;.&#x27; +`
429 # service
430 #
431 # * `instance =` instance
432 #
433 # * `instance_dot_service =`
434 # instance `+ &#x27;.&#x27; +`
435 # service
436 #
437 # * `instance_dot_version =`
438 # instance `+ &#x27;.&#x27; +`
439 # version
440 #
441 # * `instance_dot_version_dot_service =`
442 # instance `+ &#x27;.&#x27; +`
443 # version `+ &#x27;.&#x27; +`
444 # service
445 #
446 #
447 # If service is empty, then the job will be sent
448 # to the service which is the default service when the job is attempted.
449 #
450 # If version is empty, then the job will be sent
451 # to the version which is the default version when the job is attempted.
452 #
453 # If instance is empty, then the job will be
454 # sent to an instance which is available when the job is attempted.
455 #
456 # If service,
457 # version, or
458 # instance is invalid, then the job will be sent
459 # to the default version of the default service when the job is attempted.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700460 &quot;version&quot;: &quot;A String&quot;, # App version.
461 #
462 # By default, the job is sent to the version which is the default
463 # version when the job is attempted.
464 &quot;service&quot;: &quot;A String&quot;, # App service.
465 #
466 # By default, the job is sent to the service which is the default
467 # service when the job is attempted.
468 &quot;instance&quot;: &quot;A String&quot;, # App instance.
469 #
470 # By default, the job is sent to an instance which is available when
471 # the job is attempted.
472 #
473 # Requests can only be sent to a specific instance if
474 # [manual scaling is used in App Engine
475 # Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
476 # App Engine Flex does not support instances. For more information, see
477 # [App Engine Standard request
478 # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
479 # and [App Engine Flex request
480 # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Bu Sun Kim65020912020-05-20 12:08:20 -0700481 },
482 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700483 &quot;name&quot;: &quot;A String&quot;, # Optionally caller-specified in CreateJob, after
484 # which it becomes output only.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700485 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700486 # The job name. For example:
487 # `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
488 #
489 # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
490 # hyphens (-), colons (:), or periods (.).
491 # For more information, see
492 # [Identifying
493 # projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
494 # * `LOCATION_ID` is the canonical ID for the job&#x27;s location.
495 # The list of available locations can be obtained by calling
496 # ListLocations.
497 # For more information, see https://cloud.google.com/about/locations/.
498 # * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
499 # hyphens (-), or underscores (_). The maximum length is 500 characters.
500 &quot;lastAttemptTime&quot;: &quot;A String&quot;, # Output only. The time the last job attempt started.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700501}
502
503 x__xgafv: string, V1 error format.
504 Allowed values
505 1 - v1 error format
506 2 - v2 error format
507
508Returns:
509 An object of the form:
510
511 { # Configuration for a job.
512 # The maximum allowed size for a job is 100KB.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700513 &quot;scheduleTime&quot;: &quot;A String&quot;, # Output only. The next time the job is scheduled. Note that this may be a
514 # retry of a previously failed attempt or the next execution time
515 # according to the schedule.
516 &quot;attemptDeadline&quot;: &quot;A String&quot;, # The deadline for job attempts. If the request handler does not respond by
517 # this deadline then the request is cancelled and the attempt is marked as a
518 # `DEADLINE_EXCEEDED` failure. The failed attempt can be viewed in
519 # execution logs. Cloud Scheduler will retry the job according
520 # to the RetryConfig.
521 #
522 # The allowed duration for this deadline is:
523 # * For HTTP targets, between 15 seconds and 30 minutes.
524 # * For App Engine HTTP targets, between 15
525 # seconds and 24 hours.
526 &quot;pubsubTarget&quot;: { # Pub/Sub target. The job will be delivered by publishing a message to # Pub/Sub target.
527 # the given Pub/Sub topic.
528 &quot;topicName&quot;: &quot;A String&quot;, # Required. The name of the Cloud Pub/Sub topic to which messages will
529 # be published when a job is delivered. The topic name must be in the
530 # same format as required by PubSub&#x27;s
531 # [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
532 # for example `projects/PROJECT_ID/topics/TOPIC_ID`.
533 #
534 # The topic must be in the same project as the Cloud Scheduler job.
535 &quot;data&quot;: &quot;A String&quot;, # The message payload for PubsubMessage.
536 #
537 # Pubsub message must contain either non-empty data, or at least one
538 # attribute.
539 &quot;attributes&quot;: { # Attributes for PubsubMessage.
540 #
541 # Pubsub message must contain either non-empty data, or at least one
542 # attribute.
543 &quot;a_key&quot;: &quot;A String&quot;,
544 },
545 },
546 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # Output only. The response from the target for the last attempted execution.
547 # different programming environments, including REST APIs and RPC APIs. It is
548 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
549 # three pieces of data: error code, error message, and error details.
550 #
551 # You can find out more about this error model and how to work with it in the
552 # [API Design Guide](https://cloud.google.com/apis/design/errors).
553 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
554 # user-facing error message should be localized and sent in the
555 # google.rpc.Status.details field, or localized by the client.
556 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
557 # message types for APIs to use.
558 {
559 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
560 },
561 ],
562 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
563 },
564 &quot;schedule&quot;: &quot;A String&quot;, # Required, except when used with UpdateJob.
565 #
566 # Describes the schedule on which the job will be executed.
567 #
568 # The schedule can be either of the following types:
569 #
570 # * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
571 # * English-like
572 # [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
573 #
574 # As a general rule, execution `n + 1` of a job will not begin
575 # until execution `n` has finished. Cloud Scheduler will never
576 # allow two simultaneously outstanding executions. For example,
577 # this implies that if the `n+1`th execution is scheduled to run at
578 # 16:00 but the `n`th execution takes until 16:15, the `n+1`th
579 # execution will not start until `16:15`.
580 # A scheduled start time will be delayed if the previous
581 # execution has not ended when its scheduled time occurs.
582 #
583 # If retry_count &gt; 0 and a job attempt fails,
584 # the job will be tried a total of retry_count
585 # times, with exponential backoff, until the next scheduled start
586 # time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700587 &quot;description&quot;: &quot;A String&quot;, # Optionally caller-specified in CreateJob or
588 # UpdateJob.
589 #
590 # A human-readable description for the job. This string must not contain
591 # more than 500 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700592 &quot;retryConfig&quot;: { # Settings that determine the retry behavior. # Settings that determine the retry behavior.
593 #
594 # By default, if a job does not complete successfully (meaning that
595 # an acknowledgement is not received from the handler, then it will be retried
596 # with exponential backoff according to the settings in RetryConfig.
597 &quot;maxBackoffDuration&quot;: &quot;A String&quot;, # The maximum amount of time to wait before retrying a job after
598 # it fails.
599 #
600 # The default value of this field is 1 hour.
601 &quot;minBackoffDuration&quot;: &quot;A String&quot;, # The minimum amount of time to wait before retrying a job after
602 # it fails.
603 #
604 # The default value of this field is 5 seconds.
605 &quot;retryCount&quot;: 42, # The number of attempts that the system will make to run a job using the
606 # exponential backoff procedure described by
607 # max_doublings.
608 #
609 # The default value of retry_count is zero.
610 #
611 # If retry_count is zero, a job attempt will *not* be retried if
612 # it fails. Instead the Cloud Scheduler system will wait for the
613 # next scheduled execution time.
614 #
615 # If retry_count is set to a non-zero number then Cloud Scheduler
616 # will retry failed attempts, using exponential backoff,
617 # retry_count times, or until the next scheduled execution time,
618 # whichever comes first.
619 #
620 # Values greater than 5 and negative values are not allowed.
621 &quot;maxRetryDuration&quot;: &quot;A String&quot;, # The time limit for retrying a failed job, measured from time when an
622 # execution was first attempted. If specified with
623 # retry_count, the job will be retried until both
624 # limits are reached.
625 #
626 # The default value for max_retry_duration is zero, which means retry
627 # duration is unlimited.
628 &quot;maxDoublings&quot;: 42, # The time between retries will double `max_doublings` times.
629 #
630 # A job&#x27;s retry interval starts at
631 # min_backoff_duration, then doubles
632 # `max_doublings` times, then increases linearly, and finally
633 # retries at intervals of
634 # max_backoff_duration up to
635 # retry_count times.
636 #
637 # For example, if min_backoff_duration is
638 # 10s, max_backoff_duration is 300s, and
639 # `max_doublings` is 3, then the a job will first be retried in 10s. The
640 # retry interval will double three times, and then increase linearly by
641 # 2^3 * 10s. Finally, the job will retry at intervals of
642 # max_backoff_duration until the job has
643 # been attempted retry_count times. Thus, the
644 # requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
645 #
646 # The default value of this field is 5.
647 },
648 &quot;httpTarget&quot;: { # Http target. The job will be pushed to the job handler by means of # HTTP target.
649 # an HTTP request via an http_method such as HTTP
650 # POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
651 # response code in the range [200 - 299]. A failure to receive a response
652 # constitutes a failed execution. For a redirected request, the response
653 # returned by the redirected request is considered.
654 &quot;headers&quot;: { # The user can specify HTTP request headers to send with the job&#x27;s
655 # HTTP request. This map contains the header field names and
656 # values. Repeated headers are not supported, but a header value can
657 # contain commas. These headers represent a subset of the headers
658 # that will accompany the job&#x27;s HTTP request. Some HTTP request
659 # headers will be ignored or replaced. A partial list of headers that
660 # will be ignored or replaced is below:
661 # - Host: This will be computed by Cloud Scheduler and derived from
662 # uri.
663 # * `Content-Length`: This will be computed by Cloud Scheduler.
664 # * `User-Agent`: This will be set to `&quot;Google-Cloud-Scheduler&quot;`.
665 # * `X-Google-*`: Google internal use only.
666 # * `X-AppEngine-*`: Google internal use only.
667 #
668 # The total size of headers must be less than 80KB.
669 &quot;a_key&quot;: &quot;A String&quot;,
670 },
671 &quot;uri&quot;: &quot;A String&quot;, # Required. The full URI path that the request will be sent to. This string
672 # must begin with either &quot;http://&quot; or &quot;https://&quot;. Some examples of
673 # valid values for uri are:
674 # `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
675 # encode some characters for safety and compatibility. The maximum allowed
676 # URL length is 2083 characters after encoding.
677 &quot;body&quot;: &quot;A String&quot;, # HTTP request body. A request body is allowed only if the HTTP
678 # method is POST, PUT, or PATCH. It is an error to set body on a job with an
679 # incompatible HttpMethod.
680 &quot;oidcToken&quot;: { # Contains information needed for generating an # If specified, an
681 # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
682 # token will be generated and attached as an `Authorization` header in the
683 # HTTP request.
684 #
685 # This type of authorization can be used for many scenarios, including
686 # calling Cloud Run, or endpoints where you intend to validate the token
687 # yourself.
688 # [OpenID Connect
689 # token](https://developers.google.com/identity/protocols/OpenIDConnect).
690 # This type of authorization can be used for many scenarios, including
691 # calling Cloud Run, or endpoints where you intend to validate the token
692 # yourself.
693 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
694 # to be used for generating OIDC token.
695 # The service account must be within the same project as the job. The caller
696 # must have iam.serviceAccounts.actAs permission for the service account.
697 &quot;audience&quot;: &quot;A String&quot;, # Audience to be used when generating OIDC token. If not specified, the URI
698 # specified in target will be used.
699 },
700 &quot;oauthToken&quot;: { # Contains information needed for generating an # If specified, an
701 # [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
702 # will be generated and attached as an `Authorization` header in the HTTP
703 # request.
704 #
705 # This type of authorization should generally only be used when calling
706 # Google APIs hosted on *.googleapis.com.
707 # [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
708 # This type of authorization should generally only be used when calling Google
709 # APIs hosted on *.googleapis.com.
710 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
711 # to be used for generating OAuth token.
712 # The service account must be within the same project as the job. The caller
713 # must have iam.serviceAccounts.actAs permission for the service account.
714 &quot;scope&quot;: &quot;A String&quot;, # OAuth scope to be used for generating OAuth access token.
715 # If not specified, &quot;https://www.googleapis.com/auth/cloud-platform&quot;
716 # will be used.
717 },
718 &quot;httpMethod&quot;: &quot;A String&quot;, # Which HTTP method to use for the request.
719 },
720 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the job.
721 &quot;userUpdateTime&quot;: &quot;A String&quot;, # Output only. The creation time of the job.
722 &quot;timeZone&quot;: &quot;A String&quot;, # Specifies the time zone to be used in interpreting
723 # schedule. The value of this field must be a time
724 # zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
725 #
726 # Note that some time zones include a provision for
727 # daylight savings time. The rules for daylight saving time are
728 # determined by the chosen tz. For UTC use the string &quot;utc&quot;. If a
729 # time zone is not specified, the default will be in UTC (also known
730 # as GMT).
Bu Sun Kim65020912020-05-20 12:08:20 -0700731 &quot;appEngineHttpTarget&quot;: { # App Engine target. The job will be pushed to a job handler by means # App Engine HTTP target.
732 # of an HTTP request via an http_method such
733 # as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an
734 # HTTP response code in the range [200 - 299]. Error 503 is
735 # considered an App Engine system error instead of an application
736 # error. Requests returning error 503 will be retried regardless of
737 # retry configuration and not counted against retry counts. Any other
738 # response code, or a failure to receive a response before the
739 # deadline, constitutes a failed attempt.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700740 &quot;relativeUri&quot;: &quot;A String&quot;, # The relative URI.
741 #
742 # The relative URL must begin with &quot;/&quot; and must be a valid HTTP relative URL.
743 # It can contain a path, query string arguments, and `#` fragments.
744 # If the relative URL is empty, then the root path &quot;/&quot; will be used.
745 # No spaces are allowed, and the maximum length allowed is 2083 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700746 &quot;headers&quot;: { # HTTP request headers.
747 #
748 # This map contains the header field names and values. Headers can be set
749 # when the job is created.
750 #
751 # Cloud Scheduler sets some headers to default values:
752 #
753 # * `User-Agent`: By default, this header is
754 # `&quot;AppEngine-Google; (+http://code.google.com/appengine)&quot;`.
755 # This header can be modified, but Cloud Scheduler will append
756 # `&quot;AppEngine-Google; (+http://code.google.com/appengine)&quot;` to the
757 # modified `User-Agent`.
758 # * `X-CloudScheduler`: This header will be set to true.
759 #
760 # If the job has an body, Cloud Scheduler sets
761 # the following headers:
762 #
763 # * `Content-Type`: By default, the `Content-Type` header is set to
764 # `&quot;application/octet-stream&quot;`. The default can be overridden by explictly
765 # setting `Content-Type` to a particular media type when the job is
766 # created.
767 # For example, `Content-Type` can be set to `&quot;application/json&quot;`.
768 # * `Content-Length`: This is computed by Cloud Scheduler. This value is
769 # output only. It cannot be changed.
770 #
771 # The headers below are output only. They cannot be set or overridden:
772 #
773 # * `X-Google-*`: For Google internal use only.
774 # * `X-AppEngine-*`: For Google internal use only.
775 #
776 # In addition, some App Engine headers, which contain
777 # job-specific information, are also be sent to the job handler.
778 &quot;a_key&quot;: &quot;A String&quot;,
779 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700780 &quot;httpMethod&quot;: &quot;A String&quot;, # The HTTP method to use for the request. PATCH and OPTIONS are not
781 # permitted.
782 &quot;body&quot;: &quot;A String&quot;, # Body.
783 #
784 # HTTP request body. A request body is allowed only if the HTTP method is
785 # POST or PUT. It will result in invalid argument error to set a body on a
786 # job with an incompatible HttpMethod.
Bu Sun Kim65020912020-05-20 12:08:20 -0700787 &quot;appEngineRouting&quot;: { # App Engine Routing. # App Engine Routing setting for the job.
788 #
789 # For more information about services, versions, and instances see
790 # [An Overview of App
791 # Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
792 # [Microservices Architecture on Google App
793 # Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
794 # [App Engine Standard request
795 # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
796 # and [App Engine Flex request
797 # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Bu Sun Kim65020912020-05-20 12:08:20 -0700798 &quot;host&quot;: &quot;A String&quot;, # Output only. The host that the job is sent to.
799 #
800 # For more information about how App Engine requests are routed, see
801 # [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
802 #
803 # The host is constructed as:
804 #
805 #
806 # * `host = [application_domain_name]`&lt;/br&gt;
807 # `| [service] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
808 # `| [version] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
809 # `| [version_dot_service]+ &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
810 # `| [instance] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
811 # `| [instance_dot_service] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
812 # `| [instance_dot_version] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
813 # `| [instance_dot_version_dot_service] + &#x27;.&#x27; + [application_domain_name]`
814 #
815 # * `application_domain_name` = The domain name of the app, for
816 # example &lt;app-id&gt;.appspot.com, which is associated with the
817 # job&#x27;s project ID.
818 #
819 # * `service =` service
820 #
821 # * `version =` version
822 #
823 # * `version_dot_service =`
824 # version `+ &#x27;.&#x27; +`
825 # service
826 #
827 # * `instance =` instance
828 #
829 # * `instance_dot_service =`
830 # instance `+ &#x27;.&#x27; +`
831 # service
832 #
833 # * `instance_dot_version =`
834 # instance `+ &#x27;.&#x27; +`
835 # version
836 #
837 # * `instance_dot_version_dot_service =`
838 # instance `+ &#x27;.&#x27; +`
839 # version `+ &#x27;.&#x27; +`
840 # service
841 #
842 #
843 # If service is empty, then the job will be sent
844 # to the service which is the default service when the job is attempted.
845 #
846 # If version is empty, then the job will be sent
847 # to the version which is the default version when the job is attempted.
848 #
849 # If instance is empty, then the job will be
850 # sent to an instance which is available when the job is attempted.
851 #
852 # If service,
853 # version, or
854 # instance is invalid, then the job will be sent
855 # to the default version of the default service when the job is attempted.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700856 &quot;version&quot;: &quot;A String&quot;, # App version.
857 #
858 # By default, the job is sent to the version which is the default
859 # version when the job is attempted.
860 &quot;service&quot;: &quot;A String&quot;, # App service.
861 #
862 # By default, the job is sent to the service which is the default
863 # service when the job is attempted.
864 &quot;instance&quot;: &quot;A String&quot;, # App instance.
865 #
866 # By default, the job is sent to an instance which is available when
867 # the job is attempted.
868 #
869 # Requests can only be sent to a specific instance if
870 # [manual scaling is used in App Engine
871 # Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
872 # App Engine Flex does not support instances. For more information, see
873 # [App Engine Standard request
874 # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
875 # and [App Engine Flex request
876 # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Bu Sun Kim65020912020-05-20 12:08:20 -0700877 },
878 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700879 &quot;name&quot;: &quot;A String&quot;, # Optionally caller-specified in CreateJob, after
880 # which it becomes output only.
881 #
882 # The job name. For example:
883 # `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
884 #
885 # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
886 # hyphens (-), colons (:), or periods (.).
887 # For more information, see
888 # [Identifying
889 # projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
890 # * `LOCATION_ID` is the canonical ID for the job&#x27;s location.
891 # The list of available locations can be obtained by calling
892 # ListLocations.
893 # For more information, see https://cloud.google.com/about/locations/.
894 # * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
895 # hyphens (-), or underscores (_). The maximum length is 500 characters.
896 &quot;lastAttemptTime&quot;: &quot;A String&quot;, # Output only. The time the last job attempt started.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700897 }</pre>
898</div>
899
900<div class="method">
901 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
902 <pre>Deletes a job.
903
904Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700905 name: string, Required. The job name. For example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700906`projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. (required)
907 x__xgafv: string, V1 error format.
908 Allowed values
909 1 - v1 error format
910 2 - v2 error format
911
912Returns:
913 An object of the form:
914
915 { # A generic empty message that you can re-use to avoid defining duplicated
916 # empty messages in your APIs. A typical example is to use it as the request
917 # or the response type of an API method. For instance:
918 #
919 # service Foo {
920 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
921 # }
922 #
923 # The JSON representation for `Empty` is empty JSON object `{}`.
924 }</pre>
925</div>
926
927<div class="method">
928 <code class="details" id="get">get(name, x__xgafv=None)</code>
929 <pre>Gets a job.
930
931Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700932 name: string, Required. The job name. For example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700933`projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. (required)
934 x__xgafv: string, V1 error format.
935 Allowed values
936 1 - v1 error format
937 2 - v2 error format
938
939Returns:
940 An object of the form:
941
942 { # Configuration for a job.
943 # The maximum allowed size for a job is 100KB.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700944 &quot;scheduleTime&quot;: &quot;A String&quot;, # Output only. The next time the job is scheduled. Note that this may be a
945 # retry of a previously failed attempt or the next execution time
946 # according to the schedule.
947 &quot;attemptDeadline&quot;: &quot;A String&quot;, # The deadline for job attempts. If the request handler does not respond by
948 # this deadline then the request is cancelled and the attempt is marked as a
949 # `DEADLINE_EXCEEDED` failure. The failed attempt can be viewed in
950 # execution logs. Cloud Scheduler will retry the job according
951 # to the RetryConfig.
952 #
953 # The allowed duration for this deadline is:
954 # * For HTTP targets, between 15 seconds and 30 minutes.
955 # * For App Engine HTTP targets, between 15
956 # seconds and 24 hours.
957 &quot;pubsubTarget&quot;: { # Pub/Sub target. The job will be delivered by publishing a message to # Pub/Sub target.
958 # the given Pub/Sub topic.
959 &quot;topicName&quot;: &quot;A String&quot;, # Required. The name of the Cloud Pub/Sub topic to which messages will
960 # be published when a job is delivered. The topic name must be in the
961 # same format as required by PubSub&#x27;s
962 # [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
963 # for example `projects/PROJECT_ID/topics/TOPIC_ID`.
964 #
965 # The topic must be in the same project as the Cloud Scheduler job.
966 &quot;data&quot;: &quot;A String&quot;, # The message payload for PubsubMessage.
967 #
968 # Pubsub message must contain either non-empty data, or at least one
969 # attribute.
970 &quot;attributes&quot;: { # Attributes for PubsubMessage.
971 #
972 # Pubsub message must contain either non-empty data, or at least one
973 # attribute.
974 &quot;a_key&quot;: &quot;A String&quot;,
975 },
976 },
977 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # Output only. The response from the target for the last attempted execution.
978 # different programming environments, including REST APIs and RPC APIs. It is
979 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
980 # three pieces of data: error code, error message, and error details.
981 #
982 # You can find out more about this error model and how to work with it in the
983 # [API Design Guide](https://cloud.google.com/apis/design/errors).
984 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
985 # user-facing error message should be localized and sent in the
986 # google.rpc.Status.details field, or localized by the client.
987 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
988 # message types for APIs to use.
989 {
990 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
991 },
992 ],
993 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
994 },
995 &quot;schedule&quot;: &quot;A String&quot;, # Required, except when used with UpdateJob.
996 #
997 # Describes the schedule on which the job will be executed.
998 #
999 # The schedule can be either of the following types:
1000 #
1001 # * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
1002 # * English-like
1003 # [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
1004 #
1005 # As a general rule, execution `n + 1` of a job will not begin
1006 # until execution `n` has finished. Cloud Scheduler will never
1007 # allow two simultaneously outstanding executions. For example,
1008 # this implies that if the `n+1`th execution is scheduled to run at
1009 # 16:00 but the `n`th execution takes until 16:15, the `n+1`th
1010 # execution will not start until `16:15`.
1011 # A scheduled start time will be delayed if the previous
1012 # execution has not ended when its scheduled time occurs.
1013 #
1014 # If retry_count &gt; 0 and a job attempt fails,
1015 # the job will be tried a total of retry_count
1016 # times, with exponential backoff, until the next scheduled start
1017 # time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001018 &quot;description&quot;: &quot;A String&quot;, # Optionally caller-specified in CreateJob or
1019 # UpdateJob.
1020 #
1021 # A human-readable description for the job. This string must not contain
1022 # more than 500 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001023 &quot;retryConfig&quot;: { # Settings that determine the retry behavior. # Settings that determine the retry behavior.
1024 #
1025 # By default, if a job does not complete successfully (meaning that
1026 # an acknowledgement is not received from the handler, then it will be retried
1027 # with exponential backoff according to the settings in RetryConfig.
1028 &quot;maxBackoffDuration&quot;: &quot;A String&quot;, # The maximum amount of time to wait before retrying a job after
1029 # it fails.
1030 #
1031 # The default value of this field is 1 hour.
1032 &quot;minBackoffDuration&quot;: &quot;A String&quot;, # The minimum amount of time to wait before retrying a job after
1033 # it fails.
1034 #
1035 # The default value of this field is 5 seconds.
1036 &quot;retryCount&quot;: 42, # The number of attempts that the system will make to run a job using the
1037 # exponential backoff procedure described by
1038 # max_doublings.
1039 #
1040 # The default value of retry_count is zero.
1041 #
1042 # If retry_count is zero, a job attempt will *not* be retried if
1043 # it fails. Instead the Cloud Scheduler system will wait for the
1044 # next scheduled execution time.
1045 #
1046 # If retry_count is set to a non-zero number then Cloud Scheduler
1047 # will retry failed attempts, using exponential backoff,
1048 # retry_count times, or until the next scheduled execution time,
1049 # whichever comes first.
1050 #
1051 # Values greater than 5 and negative values are not allowed.
1052 &quot;maxRetryDuration&quot;: &quot;A String&quot;, # The time limit for retrying a failed job, measured from time when an
1053 # execution was first attempted. If specified with
1054 # retry_count, the job will be retried until both
1055 # limits are reached.
1056 #
1057 # The default value for max_retry_duration is zero, which means retry
1058 # duration is unlimited.
1059 &quot;maxDoublings&quot;: 42, # The time between retries will double `max_doublings` times.
1060 #
1061 # A job&#x27;s retry interval starts at
1062 # min_backoff_duration, then doubles
1063 # `max_doublings` times, then increases linearly, and finally
1064 # retries at intervals of
1065 # max_backoff_duration up to
1066 # retry_count times.
1067 #
1068 # For example, if min_backoff_duration is
1069 # 10s, max_backoff_duration is 300s, and
1070 # `max_doublings` is 3, then the a job will first be retried in 10s. The
1071 # retry interval will double three times, and then increase linearly by
1072 # 2^3 * 10s. Finally, the job will retry at intervals of
1073 # max_backoff_duration until the job has
1074 # been attempted retry_count times. Thus, the
1075 # requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
1076 #
1077 # The default value of this field is 5.
1078 },
1079 &quot;httpTarget&quot;: { # Http target. The job will be pushed to the job handler by means of # HTTP target.
1080 # an HTTP request via an http_method such as HTTP
1081 # POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
1082 # response code in the range [200 - 299]. A failure to receive a response
1083 # constitutes a failed execution. For a redirected request, the response
1084 # returned by the redirected request is considered.
1085 &quot;headers&quot;: { # The user can specify HTTP request headers to send with the job&#x27;s
1086 # HTTP request. This map contains the header field names and
1087 # values. Repeated headers are not supported, but a header value can
1088 # contain commas. These headers represent a subset of the headers
1089 # that will accompany the job&#x27;s HTTP request. Some HTTP request
1090 # headers will be ignored or replaced. A partial list of headers that
1091 # will be ignored or replaced is below:
1092 # - Host: This will be computed by Cloud Scheduler and derived from
1093 # uri.
1094 # * `Content-Length`: This will be computed by Cloud Scheduler.
1095 # * `User-Agent`: This will be set to `&quot;Google-Cloud-Scheduler&quot;`.
1096 # * `X-Google-*`: Google internal use only.
1097 # * `X-AppEngine-*`: Google internal use only.
1098 #
1099 # The total size of headers must be less than 80KB.
1100 &quot;a_key&quot;: &quot;A String&quot;,
1101 },
1102 &quot;uri&quot;: &quot;A String&quot;, # Required. The full URI path that the request will be sent to. This string
1103 # must begin with either &quot;http://&quot; or &quot;https://&quot;. Some examples of
1104 # valid values for uri are:
1105 # `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
1106 # encode some characters for safety and compatibility. The maximum allowed
1107 # URL length is 2083 characters after encoding.
1108 &quot;body&quot;: &quot;A String&quot;, # HTTP request body. A request body is allowed only if the HTTP
1109 # method is POST, PUT, or PATCH. It is an error to set body on a job with an
1110 # incompatible HttpMethod.
1111 &quot;oidcToken&quot;: { # Contains information needed for generating an # If specified, an
1112 # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
1113 # token will be generated and attached as an `Authorization` header in the
1114 # HTTP request.
1115 #
1116 # This type of authorization can be used for many scenarios, including
1117 # calling Cloud Run, or endpoints where you intend to validate the token
1118 # yourself.
1119 # [OpenID Connect
1120 # token](https://developers.google.com/identity/protocols/OpenIDConnect).
1121 # This type of authorization can be used for many scenarios, including
1122 # calling Cloud Run, or endpoints where you intend to validate the token
1123 # yourself.
1124 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
1125 # to be used for generating OIDC token.
1126 # The service account must be within the same project as the job. The caller
1127 # must have iam.serviceAccounts.actAs permission for the service account.
1128 &quot;audience&quot;: &quot;A String&quot;, # Audience to be used when generating OIDC token. If not specified, the URI
1129 # specified in target will be used.
1130 },
1131 &quot;oauthToken&quot;: { # Contains information needed for generating an # If specified, an
1132 # [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
1133 # will be generated and attached as an `Authorization` header in the HTTP
1134 # request.
1135 #
1136 # This type of authorization should generally only be used when calling
1137 # Google APIs hosted on *.googleapis.com.
1138 # [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
1139 # This type of authorization should generally only be used when calling Google
1140 # APIs hosted on *.googleapis.com.
1141 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
1142 # to be used for generating OAuth token.
1143 # The service account must be within the same project as the job. The caller
1144 # must have iam.serviceAccounts.actAs permission for the service account.
1145 &quot;scope&quot;: &quot;A String&quot;, # OAuth scope to be used for generating OAuth access token.
1146 # If not specified, &quot;https://www.googleapis.com/auth/cloud-platform&quot;
1147 # will be used.
1148 },
1149 &quot;httpMethod&quot;: &quot;A String&quot;, # Which HTTP method to use for the request.
1150 },
1151 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the job.
1152 &quot;userUpdateTime&quot;: &quot;A String&quot;, # Output only. The creation time of the job.
1153 &quot;timeZone&quot;: &quot;A String&quot;, # Specifies the time zone to be used in interpreting
1154 # schedule. The value of this field must be a time
1155 # zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
1156 #
1157 # Note that some time zones include a provision for
1158 # daylight savings time. The rules for daylight saving time are
1159 # determined by the chosen tz. For UTC use the string &quot;utc&quot;. If a
1160 # time zone is not specified, the default will be in UTC (also known
1161 # as GMT).
Bu Sun Kim65020912020-05-20 12:08:20 -07001162 &quot;appEngineHttpTarget&quot;: { # App Engine target. The job will be pushed to a job handler by means # App Engine HTTP target.
1163 # of an HTTP request via an http_method such
1164 # as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an
1165 # HTTP response code in the range [200 - 299]. Error 503 is
1166 # considered an App Engine system error instead of an application
1167 # error. Requests returning error 503 will be retried regardless of
1168 # retry configuration and not counted against retry counts. Any other
1169 # response code, or a failure to receive a response before the
1170 # deadline, constitutes a failed attempt.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001171 &quot;relativeUri&quot;: &quot;A String&quot;, # The relative URI.
1172 #
1173 # The relative URL must begin with &quot;/&quot; and must be a valid HTTP relative URL.
1174 # It can contain a path, query string arguments, and `#` fragments.
1175 # If the relative URL is empty, then the root path &quot;/&quot; will be used.
1176 # No spaces are allowed, and the maximum length allowed is 2083 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001177 &quot;headers&quot;: { # HTTP request headers.
1178 #
1179 # This map contains the header field names and values. Headers can be set
1180 # when the job is created.
1181 #
1182 # Cloud Scheduler sets some headers to default values:
1183 #
1184 # * `User-Agent`: By default, this header is
1185 # `&quot;AppEngine-Google; (+http://code.google.com/appengine)&quot;`.
1186 # This header can be modified, but Cloud Scheduler will append
1187 # `&quot;AppEngine-Google; (+http://code.google.com/appengine)&quot;` to the
1188 # modified `User-Agent`.
1189 # * `X-CloudScheduler`: This header will be set to true.
1190 #
1191 # If the job has an body, Cloud Scheduler sets
1192 # the following headers:
1193 #
1194 # * `Content-Type`: By default, the `Content-Type` header is set to
1195 # `&quot;application/octet-stream&quot;`. The default can be overridden by explictly
1196 # setting `Content-Type` to a particular media type when the job is
1197 # created.
1198 # For example, `Content-Type` can be set to `&quot;application/json&quot;`.
1199 # * `Content-Length`: This is computed by Cloud Scheduler. This value is
1200 # output only. It cannot be changed.
1201 #
1202 # The headers below are output only. They cannot be set or overridden:
1203 #
1204 # * `X-Google-*`: For Google internal use only.
1205 # * `X-AppEngine-*`: For Google internal use only.
1206 #
1207 # In addition, some App Engine headers, which contain
1208 # job-specific information, are also be sent to the job handler.
1209 &quot;a_key&quot;: &quot;A String&quot;,
1210 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001211 &quot;httpMethod&quot;: &quot;A String&quot;, # The HTTP method to use for the request. PATCH and OPTIONS are not
1212 # permitted.
1213 &quot;body&quot;: &quot;A String&quot;, # Body.
1214 #
1215 # HTTP request body. A request body is allowed only if the HTTP method is
1216 # POST or PUT. It will result in invalid argument error to set a body on a
1217 # job with an incompatible HttpMethod.
Bu Sun Kim65020912020-05-20 12:08:20 -07001218 &quot;appEngineRouting&quot;: { # App Engine Routing. # App Engine Routing setting for the job.
1219 #
1220 # For more information about services, versions, and instances see
1221 # [An Overview of App
1222 # Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
1223 # [Microservices Architecture on Google App
1224 # Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
1225 # [App Engine Standard request
1226 # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
1227 # and [App Engine Flex request
1228 # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Bu Sun Kim65020912020-05-20 12:08:20 -07001229 &quot;host&quot;: &quot;A String&quot;, # Output only. The host that the job is sent to.
1230 #
1231 # For more information about how App Engine requests are routed, see
1232 # [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
1233 #
1234 # The host is constructed as:
1235 #
1236 #
1237 # * `host = [application_domain_name]`&lt;/br&gt;
1238 # `| [service] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
1239 # `| [version] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
1240 # `| [version_dot_service]+ &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
1241 # `| [instance] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
1242 # `| [instance_dot_service] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
1243 # `| [instance_dot_version] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
1244 # `| [instance_dot_version_dot_service] + &#x27;.&#x27; + [application_domain_name]`
1245 #
1246 # * `application_domain_name` = The domain name of the app, for
1247 # example &lt;app-id&gt;.appspot.com, which is associated with the
1248 # job&#x27;s project ID.
1249 #
1250 # * `service =` service
1251 #
1252 # * `version =` version
1253 #
1254 # * `version_dot_service =`
1255 # version `+ &#x27;.&#x27; +`
1256 # service
1257 #
1258 # * `instance =` instance
1259 #
1260 # * `instance_dot_service =`
1261 # instance `+ &#x27;.&#x27; +`
1262 # service
1263 #
1264 # * `instance_dot_version =`
1265 # instance `+ &#x27;.&#x27; +`
1266 # version
1267 #
1268 # * `instance_dot_version_dot_service =`
1269 # instance `+ &#x27;.&#x27; +`
1270 # version `+ &#x27;.&#x27; +`
1271 # service
1272 #
1273 #
1274 # If service is empty, then the job will be sent
1275 # to the service which is the default service when the job is attempted.
1276 #
1277 # If version is empty, then the job will be sent
1278 # to the version which is the default version when the job is attempted.
1279 #
1280 # If instance is empty, then the job will be
1281 # sent to an instance which is available when the job is attempted.
1282 #
1283 # If service,
1284 # version, or
1285 # instance is invalid, then the job will be sent
1286 # to the default version of the default service when the job is attempted.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001287 &quot;version&quot;: &quot;A String&quot;, # App version.
1288 #
1289 # By default, the job is sent to the version which is the default
1290 # version when the job is attempted.
1291 &quot;service&quot;: &quot;A String&quot;, # App service.
1292 #
1293 # By default, the job is sent to the service which is the default
1294 # service when the job is attempted.
1295 &quot;instance&quot;: &quot;A String&quot;, # App instance.
1296 #
1297 # By default, the job is sent to an instance which is available when
1298 # the job is attempted.
1299 #
1300 # Requests can only be sent to a specific instance if
1301 # [manual scaling is used in App Engine
1302 # Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
1303 # App Engine Flex does not support instances. For more information, see
1304 # [App Engine Standard request
1305 # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
1306 # and [App Engine Flex request
1307 # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Bu Sun Kim65020912020-05-20 12:08:20 -07001308 },
1309 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001310 &quot;name&quot;: &quot;A String&quot;, # Optionally caller-specified in CreateJob, after
1311 # which it becomes output only.
1312 #
1313 # The job name. For example:
1314 # `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
1315 #
1316 # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
1317 # hyphens (-), colons (:), or periods (.).
1318 # For more information, see
1319 # [Identifying
1320 # projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
1321 # * `LOCATION_ID` is the canonical ID for the job&#x27;s location.
1322 # The list of available locations can be obtained by calling
1323 # ListLocations.
1324 # For more information, see https://cloud.google.com/about/locations/.
1325 # * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
1326 # hyphens (-), or underscores (_). The maximum length is 500 characters.
1327 &quot;lastAttemptTime&quot;: &quot;A String&quot;, # Output only. The time the last job attempt started.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001328 }</pre>
1329</div>
1330
1331<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001332 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001333 <pre>Lists jobs.
1334
1335Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001336 parent: string, Required. The location name. For example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001337`projects/PROJECT_ID/locations/LOCATION_ID`. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001338 pageSize: integer, Requested page size.
1339
1340The maximum page size is 500. If unspecified, the page size will
1341be the maximum. Fewer jobs than requested might be returned,
1342even if more jobs exist; use next_page_token to determine if more
1343jobs exist.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001344 pageToken: string, A token identifying a page of results the server will return. To
1345request the first page results, page_token must be empty. To
1346request the next page of results, page_token must be the value of
1347next_page_token returned from
1348the previous call to ListJobs. It is an error to
1349switch the value of filter or
1350order_by while iterating through pages.
1351 x__xgafv: string, V1 error format.
1352 Allowed values
1353 1 - v1 error format
1354 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001355
1356Returns:
1357 An object of the form:
1358
1359 { # Response message for listing jobs using ListJobs.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001360 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve next page of results. Pass this value in the
1361 # page_token field in the subsequent call to
1362 # ListJobs to retrieve the next page of results.
1363 # If this is empty it indicates that there are no more results
1364 # through which to paginate.
1365 #
1366 # The page token is valid for only 2 hours.
Bu Sun Kim65020912020-05-20 12:08:20 -07001367 &quot;jobs&quot;: [ # The list of jobs.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001368 { # Configuration for a job.
1369 # The maximum allowed size for a job is 100KB.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001370 &quot;scheduleTime&quot;: &quot;A String&quot;, # Output only. The next time the job is scheduled. Note that this may be a
1371 # retry of a previously failed attempt or the next execution time
1372 # according to the schedule.
1373 &quot;attemptDeadline&quot;: &quot;A String&quot;, # The deadline for job attempts. If the request handler does not respond by
1374 # this deadline then the request is cancelled and the attempt is marked as a
1375 # `DEADLINE_EXCEEDED` failure. The failed attempt can be viewed in
1376 # execution logs. Cloud Scheduler will retry the job according
1377 # to the RetryConfig.
1378 #
1379 # The allowed duration for this deadline is:
1380 # * For HTTP targets, between 15 seconds and 30 minutes.
1381 # * For App Engine HTTP targets, between 15
1382 # seconds and 24 hours.
1383 &quot;pubsubTarget&quot;: { # Pub/Sub target. The job will be delivered by publishing a message to # Pub/Sub target.
1384 # the given Pub/Sub topic.
1385 &quot;topicName&quot;: &quot;A String&quot;, # Required. The name of the Cloud Pub/Sub topic to which messages will
1386 # be published when a job is delivered. The topic name must be in the
1387 # same format as required by PubSub&#x27;s
1388 # [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
1389 # for example `projects/PROJECT_ID/topics/TOPIC_ID`.
1390 #
1391 # The topic must be in the same project as the Cloud Scheduler job.
1392 &quot;data&quot;: &quot;A String&quot;, # The message payload for PubsubMessage.
1393 #
1394 # Pubsub message must contain either non-empty data, or at least one
1395 # attribute.
1396 &quot;attributes&quot;: { # Attributes for PubsubMessage.
1397 #
1398 # Pubsub message must contain either non-empty data, or at least one
1399 # attribute.
1400 &quot;a_key&quot;: &quot;A String&quot;,
1401 },
1402 },
1403 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # Output only. The response from the target for the last attempted execution.
1404 # different programming environments, including REST APIs and RPC APIs. It is
1405 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1406 # three pieces of data: error code, error message, and error details.
1407 #
1408 # You can find out more about this error model and how to work with it in the
1409 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1410 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1411 # user-facing error message should be localized and sent in the
1412 # google.rpc.Status.details field, or localized by the client.
1413 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1414 # message types for APIs to use.
1415 {
1416 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1417 },
1418 ],
1419 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1420 },
1421 &quot;schedule&quot;: &quot;A String&quot;, # Required, except when used with UpdateJob.
1422 #
1423 # Describes the schedule on which the job will be executed.
1424 #
1425 # The schedule can be either of the following types:
1426 #
1427 # * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
1428 # * English-like
1429 # [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
1430 #
1431 # As a general rule, execution `n + 1` of a job will not begin
1432 # until execution `n` has finished. Cloud Scheduler will never
1433 # allow two simultaneously outstanding executions. For example,
1434 # this implies that if the `n+1`th execution is scheduled to run at
1435 # 16:00 but the `n`th execution takes until 16:15, the `n+1`th
1436 # execution will not start until `16:15`.
1437 # A scheduled start time will be delayed if the previous
1438 # execution has not ended when its scheduled time occurs.
1439 #
1440 # If retry_count &gt; 0 and a job attempt fails,
1441 # the job will be tried a total of retry_count
1442 # times, with exponential backoff, until the next scheduled start
1443 # time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001444 &quot;description&quot;: &quot;A String&quot;, # Optionally caller-specified in CreateJob or
1445 # UpdateJob.
1446 #
1447 # A human-readable description for the job. This string must not contain
1448 # more than 500 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001449 &quot;retryConfig&quot;: { # Settings that determine the retry behavior. # Settings that determine the retry behavior.
1450 #
1451 # By default, if a job does not complete successfully (meaning that
1452 # an acknowledgement is not received from the handler, then it will be retried
1453 # with exponential backoff according to the settings in RetryConfig.
1454 &quot;maxBackoffDuration&quot;: &quot;A String&quot;, # The maximum amount of time to wait before retrying a job after
1455 # it fails.
1456 #
1457 # The default value of this field is 1 hour.
1458 &quot;minBackoffDuration&quot;: &quot;A String&quot;, # The minimum amount of time to wait before retrying a job after
1459 # it fails.
1460 #
1461 # The default value of this field is 5 seconds.
1462 &quot;retryCount&quot;: 42, # The number of attempts that the system will make to run a job using the
1463 # exponential backoff procedure described by
1464 # max_doublings.
1465 #
1466 # The default value of retry_count is zero.
1467 #
1468 # If retry_count is zero, a job attempt will *not* be retried if
1469 # it fails. Instead the Cloud Scheduler system will wait for the
1470 # next scheduled execution time.
1471 #
1472 # If retry_count is set to a non-zero number then Cloud Scheduler
1473 # will retry failed attempts, using exponential backoff,
1474 # retry_count times, or until the next scheduled execution time,
1475 # whichever comes first.
1476 #
1477 # Values greater than 5 and negative values are not allowed.
1478 &quot;maxRetryDuration&quot;: &quot;A String&quot;, # The time limit for retrying a failed job, measured from time when an
1479 # execution was first attempted. If specified with
1480 # retry_count, the job will be retried until both
1481 # limits are reached.
1482 #
1483 # The default value for max_retry_duration is zero, which means retry
1484 # duration is unlimited.
1485 &quot;maxDoublings&quot;: 42, # The time between retries will double `max_doublings` times.
1486 #
1487 # A job&#x27;s retry interval starts at
1488 # min_backoff_duration, then doubles
1489 # `max_doublings` times, then increases linearly, and finally
1490 # retries at intervals of
1491 # max_backoff_duration up to
1492 # retry_count times.
1493 #
1494 # For example, if min_backoff_duration is
1495 # 10s, max_backoff_duration is 300s, and
1496 # `max_doublings` is 3, then the a job will first be retried in 10s. The
1497 # retry interval will double three times, and then increase linearly by
1498 # 2^3 * 10s. Finally, the job will retry at intervals of
1499 # max_backoff_duration until the job has
1500 # been attempted retry_count times. Thus, the
1501 # requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
1502 #
1503 # The default value of this field is 5.
1504 },
1505 &quot;httpTarget&quot;: { # Http target. The job will be pushed to the job handler by means of # HTTP target.
1506 # an HTTP request via an http_method such as HTTP
1507 # POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
1508 # response code in the range [200 - 299]. A failure to receive a response
1509 # constitutes a failed execution. For a redirected request, the response
1510 # returned by the redirected request is considered.
1511 &quot;headers&quot;: { # The user can specify HTTP request headers to send with the job&#x27;s
1512 # HTTP request. This map contains the header field names and
1513 # values. Repeated headers are not supported, but a header value can
1514 # contain commas. These headers represent a subset of the headers
1515 # that will accompany the job&#x27;s HTTP request. Some HTTP request
1516 # headers will be ignored or replaced. A partial list of headers that
1517 # will be ignored or replaced is below:
1518 # - Host: This will be computed by Cloud Scheduler and derived from
1519 # uri.
1520 # * `Content-Length`: This will be computed by Cloud Scheduler.
1521 # * `User-Agent`: This will be set to `&quot;Google-Cloud-Scheduler&quot;`.
1522 # * `X-Google-*`: Google internal use only.
1523 # * `X-AppEngine-*`: Google internal use only.
1524 #
1525 # The total size of headers must be less than 80KB.
1526 &quot;a_key&quot;: &quot;A String&quot;,
1527 },
1528 &quot;uri&quot;: &quot;A String&quot;, # Required. The full URI path that the request will be sent to. This string
1529 # must begin with either &quot;http://&quot; or &quot;https://&quot;. Some examples of
1530 # valid values for uri are:
1531 # `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
1532 # encode some characters for safety and compatibility. The maximum allowed
1533 # URL length is 2083 characters after encoding.
1534 &quot;body&quot;: &quot;A String&quot;, # HTTP request body. A request body is allowed only if the HTTP
1535 # method is POST, PUT, or PATCH. It is an error to set body on a job with an
1536 # incompatible HttpMethod.
1537 &quot;oidcToken&quot;: { # Contains information needed for generating an # If specified, an
1538 # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
1539 # token will be generated and attached as an `Authorization` header in the
1540 # HTTP request.
1541 #
1542 # This type of authorization can be used for many scenarios, including
1543 # calling Cloud Run, or endpoints where you intend to validate the token
1544 # yourself.
1545 # [OpenID Connect
1546 # token](https://developers.google.com/identity/protocols/OpenIDConnect).
1547 # This type of authorization can be used for many scenarios, including
1548 # calling Cloud Run, or endpoints where you intend to validate the token
1549 # yourself.
1550 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
1551 # to be used for generating OIDC token.
1552 # The service account must be within the same project as the job. The caller
1553 # must have iam.serviceAccounts.actAs permission for the service account.
1554 &quot;audience&quot;: &quot;A String&quot;, # Audience to be used when generating OIDC token. If not specified, the URI
1555 # specified in target will be used.
1556 },
1557 &quot;oauthToken&quot;: { # Contains information needed for generating an # If specified, an
1558 # [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
1559 # will be generated and attached as an `Authorization` header in the HTTP
1560 # request.
1561 #
1562 # This type of authorization should generally only be used when calling
1563 # Google APIs hosted on *.googleapis.com.
1564 # [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
1565 # This type of authorization should generally only be used when calling Google
1566 # APIs hosted on *.googleapis.com.
1567 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
1568 # to be used for generating OAuth token.
1569 # The service account must be within the same project as the job. The caller
1570 # must have iam.serviceAccounts.actAs permission for the service account.
1571 &quot;scope&quot;: &quot;A String&quot;, # OAuth scope to be used for generating OAuth access token.
1572 # If not specified, &quot;https://www.googleapis.com/auth/cloud-platform&quot;
1573 # will be used.
1574 },
1575 &quot;httpMethod&quot;: &quot;A String&quot;, # Which HTTP method to use for the request.
1576 },
1577 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the job.
1578 &quot;userUpdateTime&quot;: &quot;A String&quot;, # Output only. The creation time of the job.
1579 &quot;timeZone&quot;: &quot;A String&quot;, # Specifies the time zone to be used in interpreting
1580 # schedule. The value of this field must be a time
1581 # zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
1582 #
1583 # Note that some time zones include a provision for
1584 # daylight savings time. The rules for daylight saving time are
1585 # determined by the chosen tz. For UTC use the string &quot;utc&quot;. If a
1586 # time zone is not specified, the default will be in UTC (also known
1587 # as GMT).
Bu Sun Kim65020912020-05-20 12:08:20 -07001588 &quot;appEngineHttpTarget&quot;: { # App Engine target. The job will be pushed to a job handler by means # App Engine HTTP target.
1589 # of an HTTP request via an http_method such
1590 # as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an
1591 # HTTP response code in the range [200 - 299]. Error 503 is
1592 # considered an App Engine system error instead of an application
1593 # error. Requests returning error 503 will be retried regardless of
1594 # retry configuration and not counted against retry counts. Any other
1595 # response code, or a failure to receive a response before the
1596 # deadline, constitutes a failed attempt.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001597 &quot;relativeUri&quot;: &quot;A String&quot;, # The relative URI.
1598 #
1599 # The relative URL must begin with &quot;/&quot; and must be a valid HTTP relative URL.
1600 # It can contain a path, query string arguments, and `#` fragments.
1601 # If the relative URL is empty, then the root path &quot;/&quot; will be used.
1602 # No spaces are allowed, and the maximum length allowed is 2083 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001603 &quot;headers&quot;: { # HTTP request headers.
1604 #
1605 # This map contains the header field names and values. Headers can be set
1606 # when the job is created.
1607 #
1608 # Cloud Scheduler sets some headers to default values:
1609 #
1610 # * `User-Agent`: By default, this header is
1611 # `&quot;AppEngine-Google; (+http://code.google.com/appengine)&quot;`.
1612 # This header can be modified, but Cloud Scheduler will append
1613 # `&quot;AppEngine-Google; (+http://code.google.com/appengine)&quot;` to the
1614 # modified `User-Agent`.
1615 # * `X-CloudScheduler`: This header will be set to true.
1616 #
1617 # If the job has an body, Cloud Scheduler sets
1618 # the following headers:
1619 #
1620 # * `Content-Type`: By default, the `Content-Type` header is set to
1621 # `&quot;application/octet-stream&quot;`. The default can be overridden by explictly
1622 # setting `Content-Type` to a particular media type when the job is
1623 # created.
1624 # For example, `Content-Type` can be set to `&quot;application/json&quot;`.
1625 # * `Content-Length`: This is computed by Cloud Scheduler. This value is
1626 # output only. It cannot be changed.
1627 #
1628 # The headers below are output only. They cannot be set or overridden:
1629 #
1630 # * `X-Google-*`: For Google internal use only.
1631 # * `X-AppEngine-*`: For Google internal use only.
1632 #
1633 # In addition, some App Engine headers, which contain
1634 # job-specific information, are also be sent to the job handler.
1635 &quot;a_key&quot;: &quot;A String&quot;,
1636 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001637 &quot;httpMethod&quot;: &quot;A String&quot;, # The HTTP method to use for the request. PATCH and OPTIONS are not
1638 # permitted.
1639 &quot;body&quot;: &quot;A String&quot;, # Body.
1640 #
1641 # HTTP request body. A request body is allowed only if the HTTP method is
1642 # POST or PUT. It will result in invalid argument error to set a body on a
1643 # job with an incompatible HttpMethod.
Bu Sun Kim65020912020-05-20 12:08:20 -07001644 &quot;appEngineRouting&quot;: { # App Engine Routing. # App Engine Routing setting for the job.
1645 #
1646 # For more information about services, versions, and instances see
1647 # [An Overview of App
1648 # Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
1649 # [Microservices Architecture on Google App
1650 # Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
1651 # [App Engine Standard request
1652 # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
1653 # and [App Engine Flex request
1654 # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Bu Sun Kim65020912020-05-20 12:08:20 -07001655 &quot;host&quot;: &quot;A String&quot;, # Output only. The host that the job is sent to.
1656 #
1657 # For more information about how App Engine requests are routed, see
1658 # [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
1659 #
1660 # The host is constructed as:
1661 #
1662 #
1663 # * `host = [application_domain_name]`&lt;/br&gt;
1664 # `| [service] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
1665 # `| [version] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
1666 # `| [version_dot_service]+ &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
1667 # `| [instance] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
1668 # `| [instance_dot_service] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
1669 # `| [instance_dot_version] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
1670 # `| [instance_dot_version_dot_service] + &#x27;.&#x27; + [application_domain_name]`
1671 #
1672 # * `application_domain_name` = The domain name of the app, for
1673 # example &lt;app-id&gt;.appspot.com, which is associated with the
1674 # job&#x27;s project ID.
1675 #
1676 # * `service =` service
1677 #
1678 # * `version =` version
1679 #
1680 # * `version_dot_service =`
1681 # version `+ &#x27;.&#x27; +`
1682 # service
1683 #
1684 # * `instance =` instance
1685 #
1686 # * `instance_dot_service =`
1687 # instance `+ &#x27;.&#x27; +`
1688 # service
1689 #
1690 # * `instance_dot_version =`
1691 # instance `+ &#x27;.&#x27; +`
1692 # version
1693 #
1694 # * `instance_dot_version_dot_service =`
1695 # instance `+ &#x27;.&#x27; +`
1696 # version `+ &#x27;.&#x27; +`
1697 # service
1698 #
1699 #
1700 # If service is empty, then the job will be sent
1701 # to the service which is the default service when the job is attempted.
1702 #
1703 # If version is empty, then the job will be sent
1704 # to the version which is the default version when the job is attempted.
1705 #
1706 # If instance is empty, then the job will be
1707 # sent to an instance which is available when the job is attempted.
1708 #
1709 # If service,
1710 # version, or
1711 # instance is invalid, then the job will be sent
1712 # to the default version of the default service when the job is attempted.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001713 &quot;version&quot;: &quot;A String&quot;, # App version.
1714 #
1715 # By default, the job is sent to the version which is the default
1716 # version when the job is attempted.
1717 &quot;service&quot;: &quot;A String&quot;, # App service.
1718 #
1719 # By default, the job is sent to the service which is the default
1720 # service when the job is attempted.
1721 &quot;instance&quot;: &quot;A String&quot;, # App instance.
1722 #
1723 # By default, the job is sent to an instance which is available when
1724 # the job is attempted.
1725 #
1726 # Requests can only be sent to a specific instance if
1727 # [manual scaling is used in App Engine
1728 # Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
1729 # App Engine Flex does not support instances. For more information, see
1730 # [App Engine Standard request
1731 # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
1732 # and [App Engine Flex request
1733 # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Bu Sun Kim65020912020-05-20 12:08:20 -07001734 },
1735 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001736 &quot;name&quot;: &quot;A String&quot;, # Optionally caller-specified in CreateJob, after
1737 # which it becomes output only.
1738 #
1739 # The job name. For example:
1740 # `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
1741 #
1742 # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
1743 # hyphens (-), colons (:), or periods (.).
1744 # For more information, see
1745 # [Identifying
1746 # projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
1747 # * `LOCATION_ID` is the canonical ID for the job&#x27;s location.
1748 # The list of available locations can be obtained by calling
1749 # ListLocations.
1750 # For more information, see https://cloud.google.com/about/locations/.
1751 # * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
1752 # hyphens (-), or underscores (_). The maximum length is 500 characters.
1753 &quot;lastAttemptTime&quot;: &quot;A String&quot;, # Output only. The time the last job attempt started.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001754 },
1755 ],
1756 }</pre>
1757</div>
1758
1759<div class="method">
1760 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1761 <pre>Retrieves the next page of results.
1762
1763Args:
1764 previous_request: The request for the previous page. (required)
1765 previous_response: The response from the request for the previous page. (required)
1766
1767Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001768 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001769 page. Returns None if there are no more items in the collection.
1770 </pre>
1771</div>
1772
1773<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001774 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001775 <pre>Updates a job.
1776
1777If successful, the updated Job is returned. If the job does
1778not exist, `NOT_FOUND` is returned.
1779
1780If UpdateJob does not successfully return, it is possible for the
1781job to be in an Job.State.UPDATE_FAILED state. A job in this state may
1782not be executed. If this happens, retry the UpdateJob request
1783until a successful response is received.
1784
1785Args:
1786 name: string, Optionally caller-specified in CreateJob, after
1787which it becomes output only.
1788
1789The job name. For example:
1790`projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
1791
1792* `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
1793 hyphens (-), colons (:), or periods (.).
1794 For more information, see
1795 [Identifying
1796 projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
Bu Sun Kim65020912020-05-20 12:08:20 -07001797* `LOCATION_ID` is the canonical ID for the job&#x27;s location.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001798 The list of available locations can be obtained by calling
1799 ListLocations.
1800 For more information, see https://cloud.google.com/about/locations/.
1801* `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
1802 hyphens (-), or underscores (_). The maximum length is 500 characters. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001803 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001804 The object takes the form of:
1805
1806{ # Configuration for a job.
1807 # The maximum allowed size for a job is 100KB.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001808 &quot;scheduleTime&quot;: &quot;A String&quot;, # Output only. The next time the job is scheduled. Note that this may be a
1809 # retry of a previously failed attempt or the next execution time
1810 # according to the schedule.
1811 &quot;attemptDeadline&quot;: &quot;A String&quot;, # The deadline for job attempts. If the request handler does not respond by
1812 # this deadline then the request is cancelled and the attempt is marked as a
1813 # `DEADLINE_EXCEEDED` failure. The failed attempt can be viewed in
1814 # execution logs. Cloud Scheduler will retry the job according
1815 # to the RetryConfig.
1816 #
1817 # The allowed duration for this deadline is:
1818 # * For HTTP targets, between 15 seconds and 30 minutes.
1819 # * For App Engine HTTP targets, between 15
1820 # seconds and 24 hours.
1821 &quot;pubsubTarget&quot;: { # Pub/Sub target. The job will be delivered by publishing a message to # Pub/Sub target.
1822 # the given Pub/Sub topic.
1823 &quot;topicName&quot;: &quot;A String&quot;, # Required. The name of the Cloud Pub/Sub topic to which messages will
1824 # be published when a job is delivered. The topic name must be in the
1825 # same format as required by PubSub&#x27;s
1826 # [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
1827 # for example `projects/PROJECT_ID/topics/TOPIC_ID`.
1828 #
1829 # The topic must be in the same project as the Cloud Scheduler job.
1830 &quot;data&quot;: &quot;A String&quot;, # The message payload for PubsubMessage.
1831 #
1832 # Pubsub message must contain either non-empty data, or at least one
1833 # attribute.
1834 &quot;attributes&quot;: { # Attributes for PubsubMessage.
1835 #
1836 # Pubsub message must contain either non-empty data, or at least one
1837 # attribute.
1838 &quot;a_key&quot;: &quot;A String&quot;,
1839 },
1840 },
1841 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # Output only. The response from the target for the last attempted execution.
1842 # different programming environments, including REST APIs and RPC APIs. It is
1843 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1844 # three pieces of data: error code, error message, and error details.
1845 #
1846 # You can find out more about this error model and how to work with it in the
1847 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1848 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1849 # user-facing error message should be localized and sent in the
1850 # google.rpc.Status.details field, or localized by the client.
1851 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1852 # message types for APIs to use.
1853 {
1854 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1855 },
1856 ],
1857 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1858 },
1859 &quot;schedule&quot;: &quot;A String&quot;, # Required, except when used with UpdateJob.
1860 #
1861 # Describes the schedule on which the job will be executed.
1862 #
1863 # The schedule can be either of the following types:
1864 #
1865 # * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
1866 # * English-like
1867 # [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
1868 #
1869 # As a general rule, execution `n + 1` of a job will not begin
1870 # until execution `n` has finished. Cloud Scheduler will never
1871 # allow two simultaneously outstanding executions. For example,
1872 # this implies that if the `n+1`th execution is scheduled to run at
1873 # 16:00 but the `n`th execution takes until 16:15, the `n+1`th
1874 # execution will not start until `16:15`.
1875 # A scheduled start time will be delayed if the previous
1876 # execution has not ended when its scheduled time occurs.
1877 #
1878 # If retry_count &gt; 0 and a job attempt fails,
1879 # the job will be tried a total of retry_count
1880 # times, with exponential backoff, until the next scheduled start
1881 # time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001882 &quot;description&quot;: &quot;A String&quot;, # Optionally caller-specified in CreateJob or
1883 # UpdateJob.
1884 #
1885 # A human-readable description for the job. This string must not contain
1886 # more than 500 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001887 &quot;retryConfig&quot;: { # Settings that determine the retry behavior. # Settings that determine the retry behavior.
1888 #
1889 # By default, if a job does not complete successfully (meaning that
1890 # an acknowledgement is not received from the handler, then it will be retried
1891 # with exponential backoff according to the settings in RetryConfig.
1892 &quot;maxBackoffDuration&quot;: &quot;A String&quot;, # The maximum amount of time to wait before retrying a job after
1893 # it fails.
1894 #
1895 # The default value of this field is 1 hour.
1896 &quot;minBackoffDuration&quot;: &quot;A String&quot;, # The minimum amount of time to wait before retrying a job after
1897 # it fails.
1898 #
1899 # The default value of this field is 5 seconds.
1900 &quot;retryCount&quot;: 42, # The number of attempts that the system will make to run a job using the
1901 # exponential backoff procedure described by
1902 # max_doublings.
1903 #
1904 # The default value of retry_count is zero.
1905 #
1906 # If retry_count is zero, a job attempt will *not* be retried if
1907 # it fails. Instead the Cloud Scheduler system will wait for the
1908 # next scheduled execution time.
1909 #
1910 # If retry_count is set to a non-zero number then Cloud Scheduler
1911 # will retry failed attempts, using exponential backoff,
1912 # retry_count times, or until the next scheduled execution time,
1913 # whichever comes first.
1914 #
1915 # Values greater than 5 and negative values are not allowed.
1916 &quot;maxRetryDuration&quot;: &quot;A String&quot;, # The time limit for retrying a failed job, measured from time when an
1917 # execution was first attempted. If specified with
1918 # retry_count, the job will be retried until both
1919 # limits are reached.
1920 #
1921 # The default value for max_retry_duration is zero, which means retry
1922 # duration is unlimited.
1923 &quot;maxDoublings&quot;: 42, # The time between retries will double `max_doublings` times.
1924 #
1925 # A job&#x27;s retry interval starts at
1926 # min_backoff_duration, then doubles
1927 # `max_doublings` times, then increases linearly, and finally
1928 # retries at intervals of
1929 # max_backoff_duration up to
1930 # retry_count times.
1931 #
1932 # For example, if min_backoff_duration is
1933 # 10s, max_backoff_duration is 300s, and
1934 # `max_doublings` is 3, then the a job will first be retried in 10s. The
1935 # retry interval will double three times, and then increase linearly by
1936 # 2^3 * 10s. Finally, the job will retry at intervals of
1937 # max_backoff_duration until the job has
1938 # been attempted retry_count times. Thus, the
1939 # requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
1940 #
1941 # The default value of this field is 5.
1942 },
1943 &quot;httpTarget&quot;: { # Http target. The job will be pushed to the job handler by means of # HTTP target.
1944 # an HTTP request via an http_method such as HTTP
1945 # POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
1946 # response code in the range [200 - 299]. A failure to receive a response
1947 # constitutes a failed execution. For a redirected request, the response
1948 # returned by the redirected request is considered.
1949 &quot;headers&quot;: { # The user can specify HTTP request headers to send with the job&#x27;s
1950 # HTTP request. This map contains the header field names and
1951 # values. Repeated headers are not supported, but a header value can
1952 # contain commas. These headers represent a subset of the headers
1953 # that will accompany the job&#x27;s HTTP request. Some HTTP request
1954 # headers will be ignored or replaced. A partial list of headers that
1955 # will be ignored or replaced is below:
1956 # - Host: This will be computed by Cloud Scheduler and derived from
1957 # uri.
1958 # * `Content-Length`: This will be computed by Cloud Scheduler.
1959 # * `User-Agent`: This will be set to `&quot;Google-Cloud-Scheduler&quot;`.
1960 # * `X-Google-*`: Google internal use only.
1961 # * `X-AppEngine-*`: Google internal use only.
1962 #
1963 # The total size of headers must be less than 80KB.
1964 &quot;a_key&quot;: &quot;A String&quot;,
1965 },
1966 &quot;uri&quot;: &quot;A String&quot;, # Required. The full URI path that the request will be sent to. This string
1967 # must begin with either &quot;http://&quot; or &quot;https://&quot;. Some examples of
1968 # valid values for uri are:
1969 # `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
1970 # encode some characters for safety and compatibility. The maximum allowed
1971 # URL length is 2083 characters after encoding.
1972 &quot;body&quot;: &quot;A String&quot;, # HTTP request body. A request body is allowed only if the HTTP
1973 # method is POST, PUT, or PATCH. It is an error to set body on a job with an
1974 # incompatible HttpMethod.
1975 &quot;oidcToken&quot;: { # Contains information needed for generating an # If specified, an
1976 # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
1977 # token will be generated and attached as an `Authorization` header in the
1978 # HTTP request.
1979 #
1980 # This type of authorization can be used for many scenarios, including
1981 # calling Cloud Run, or endpoints where you intend to validate the token
1982 # yourself.
1983 # [OpenID Connect
1984 # token](https://developers.google.com/identity/protocols/OpenIDConnect).
1985 # This type of authorization can be used for many scenarios, including
1986 # calling Cloud Run, or endpoints where you intend to validate the token
1987 # yourself.
1988 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
1989 # to be used for generating OIDC token.
1990 # The service account must be within the same project as the job. The caller
1991 # must have iam.serviceAccounts.actAs permission for the service account.
1992 &quot;audience&quot;: &quot;A String&quot;, # Audience to be used when generating OIDC token. If not specified, the URI
1993 # specified in target will be used.
1994 },
1995 &quot;oauthToken&quot;: { # Contains information needed for generating an # If specified, an
1996 # [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
1997 # will be generated and attached as an `Authorization` header in the HTTP
1998 # request.
1999 #
2000 # This type of authorization should generally only be used when calling
2001 # Google APIs hosted on *.googleapis.com.
2002 # [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
2003 # This type of authorization should generally only be used when calling Google
2004 # APIs hosted on *.googleapis.com.
2005 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
2006 # to be used for generating OAuth token.
2007 # The service account must be within the same project as the job. The caller
2008 # must have iam.serviceAccounts.actAs permission for the service account.
2009 &quot;scope&quot;: &quot;A String&quot;, # OAuth scope to be used for generating OAuth access token.
2010 # If not specified, &quot;https://www.googleapis.com/auth/cloud-platform&quot;
2011 # will be used.
2012 },
2013 &quot;httpMethod&quot;: &quot;A String&quot;, # Which HTTP method to use for the request.
2014 },
2015 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the job.
2016 &quot;userUpdateTime&quot;: &quot;A String&quot;, # Output only. The creation time of the job.
2017 &quot;timeZone&quot;: &quot;A String&quot;, # Specifies the time zone to be used in interpreting
2018 # schedule. The value of this field must be a time
2019 # zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
2020 #
2021 # Note that some time zones include a provision for
2022 # daylight savings time. The rules for daylight saving time are
2023 # determined by the chosen tz. For UTC use the string &quot;utc&quot;. If a
2024 # time zone is not specified, the default will be in UTC (also known
2025 # as GMT).
Bu Sun Kim65020912020-05-20 12:08:20 -07002026 &quot;appEngineHttpTarget&quot;: { # App Engine target. The job will be pushed to a job handler by means # App Engine HTTP target.
2027 # of an HTTP request via an http_method such
2028 # as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an
2029 # HTTP response code in the range [200 - 299]. Error 503 is
2030 # considered an App Engine system error instead of an application
2031 # error. Requests returning error 503 will be retried regardless of
2032 # retry configuration and not counted against retry counts. Any other
2033 # response code, or a failure to receive a response before the
2034 # deadline, constitutes a failed attempt.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002035 &quot;relativeUri&quot;: &quot;A String&quot;, # The relative URI.
2036 #
2037 # The relative URL must begin with &quot;/&quot; and must be a valid HTTP relative URL.
2038 # It can contain a path, query string arguments, and `#` fragments.
2039 # If the relative URL is empty, then the root path &quot;/&quot; will be used.
2040 # No spaces are allowed, and the maximum length allowed is 2083 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07002041 &quot;headers&quot;: { # HTTP request headers.
2042 #
2043 # This map contains the header field names and values. Headers can be set
2044 # when the job is created.
2045 #
2046 # Cloud Scheduler sets some headers to default values:
2047 #
2048 # * `User-Agent`: By default, this header is
2049 # `&quot;AppEngine-Google; (+http://code.google.com/appengine)&quot;`.
2050 # This header can be modified, but Cloud Scheduler will append
2051 # `&quot;AppEngine-Google; (+http://code.google.com/appengine)&quot;` to the
2052 # modified `User-Agent`.
2053 # * `X-CloudScheduler`: This header will be set to true.
2054 #
2055 # If the job has an body, Cloud Scheduler sets
2056 # the following headers:
2057 #
2058 # * `Content-Type`: By default, the `Content-Type` header is set to
2059 # `&quot;application/octet-stream&quot;`. The default can be overridden by explictly
2060 # setting `Content-Type` to a particular media type when the job is
2061 # created.
2062 # For example, `Content-Type` can be set to `&quot;application/json&quot;`.
2063 # * `Content-Length`: This is computed by Cloud Scheduler. This value is
2064 # output only. It cannot be changed.
2065 #
2066 # The headers below are output only. They cannot be set or overridden:
2067 #
2068 # * `X-Google-*`: For Google internal use only.
2069 # * `X-AppEngine-*`: For Google internal use only.
2070 #
2071 # In addition, some App Engine headers, which contain
2072 # job-specific information, are also be sent to the job handler.
2073 &quot;a_key&quot;: &quot;A String&quot;,
2074 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002075 &quot;httpMethod&quot;: &quot;A String&quot;, # The HTTP method to use for the request. PATCH and OPTIONS are not
2076 # permitted.
2077 &quot;body&quot;: &quot;A String&quot;, # Body.
2078 #
2079 # HTTP request body. A request body is allowed only if the HTTP method is
2080 # POST or PUT. It will result in invalid argument error to set a body on a
2081 # job with an incompatible HttpMethod.
Bu Sun Kim65020912020-05-20 12:08:20 -07002082 &quot;appEngineRouting&quot;: { # App Engine Routing. # App Engine Routing setting for the job.
2083 #
2084 # For more information about services, versions, and instances see
2085 # [An Overview of App
2086 # Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
2087 # [Microservices Architecture on Google App
2088 # Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
2089 # [App Engine Standard request
2090 # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
2091 # and [App Engine Flex request
2092 # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Bu Sun Kim65020912020-05-20 12:08:20 -07002093 &quot;host&quot;: &quot;A String&quot;, # Output only. The host that the job is sent to.
2094 #
2095 # For more information about how App Engine requests are routed, see
2096 # [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
2097 #
2098 # The host is constructed as:
2099 #
2100 #
2101 # * `host = [application_domain_name]`&lt;/br&gt;
2102 # `| [service] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
2103 # `| [version] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
2104 # `| [version_dot_service]+ &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
2105 # `| [instance] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
2106 # `| [instance_dot_service] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
2107 # `| [instance_dot_version] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
2108 # `| [instance_dot_version_dot_service] + &#x27;.&#x27; + [application_domain_name]`
2109 #
2110 # * `application_domain_name` = The domain name of the app, for
2111 # example &lt;app-id&gt;.appspot.com, which is associated with the
2112 # job&#x27;s project ID.
2113 #
2114 # * `service =` service
2115 #
2116 # * `version =` version
2117 #
2118 # * `version_dot_service =`
2119 # version `+ &#x27;.&#x27; +`
2120 # service
2121 #
2122 # * `instance =` instance
2123 #
2124 # * `instance_dot_service =`
2125 # instance `+ &#x27;.&#x27; +`
2126 # service
2127 #
2128 # * `instance_dot_version =`
2129 # instance `+ &#x27;.&#x27; +`
2130 # version
2131 #
2132 # * `instance_dot_version_dot_service =`
2133 # instance `+ &#x27;.&#x27; +`
2134 # version `+ &#x27;.&#x27; +`
2135 # service
2136 #
2137 #
2138 # If service is empty, then the job will be sent
2139 # to the service which is the default service when the job is attempted.
2140 #
2141 # If version is empty, then the job will be sent
2142 # to the version which is the default version when the job is attempted.
2143 #
2144 # If instance is empty, then the job will be
2145 # sent to an instance which is available when the job is attempted.
2146 #
2147 # If service,
2148 # version, or
2149 # instance is invalid, then the job will be sent
2150 # to the default version of the default service when the job is attempted.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002151 &quot;version&quot;: &quot;A String&quot;, # App version.
2152 #
2153 # By default, the job is sent to the version which is the default
2154 # version when the job is attempted.
2155 &quot;service&quot;: &quot;A String&quot;, # App service.
2156 #
2157 # By default, the job is sent to the service which is the default
2158 # service when the job is attempted.
2159 &quot;instance&quot;: &quot;A String&quot;, # App instance.
2160 #
2161 # By default, the job is sent to an instance which is available when
2162 # the job is attempted.
2163 #
2164 # Requests can only be sent to a specific instance if
2165 # [manual scaling is used in App Engine
2166 # Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
2167 # App Engine Flex does not support instances. For more information, see
2168 # [App Engine Standard request
2169 # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
2170 # and [App Engine Flex request
2171 # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Bu Sun Kim65020912020-05-20 12:08:20 -07002172 },
2173 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002174 &quot;name&quot;: &quot;A String&quot;, # Optionally caller-specified in CreateJob, after
2175 # which it becomes output only.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002176 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002177 # The job name. For example:
2178 # `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
2179 #
2180 # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
2181 # hyphens (-), colons (:), or periods (.).
2182 # For more information, see
2183 # [Identifying
2184 # projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
2185 # * `LOCATION_ID` is the canonical ID for the job&#x27;s location.
2186 # The list of available locations can be obtained by calling
2187 # ListLocations.
2188 # For more information, see https://cloud.google.com/about/locations/.
2189 # * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
2190 # hyphens (-), or underscores (_). The maximum length is 500 characters.
2191 &quot;lastAttemptTime&quot;: &quot;A String&quot;, # Output only. The time the last job attempt started.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002192}
2193
2194 updateMask: string, A mask used to specify which fields of the job are being updated.
2195 x__xgafv: string, V1 error format.
2196 Allowed values
2197 1 - v1 error format
2198 2 - v2 error format
2199
2200Returns:
2201 An object of the form:
2202
2203 { # Configuration for a job.
2204 # The maximum allowed size for a job is 100KB.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002205 &quot;scheduleTime&quot;: &quot;A String&quot;, # Output only. The next time the job is scheduled. Note that this may be a
2206 # retry of a previously failed attempt or the next execution time
2207 # according to the schedule.
2208 &quot;attemptDeadline&quot;: &quot;A String&quot;, # The deadline for job attempts. If the request handler does not respond by
2209 # this deadline then the request is cancelled and the attempt is marked as a
2210 # `DEADLINE_EXCEEDED` failure. The failed attempt can be viewed in
2211 # execution logs. Cloud Scheduler will retry the job according
2212 # to the RetryConfig.
2213 #
2214 # The allowed duration for this deadline is:
2215 # * For HTTP targets, between 15 seconds and 30 minutes.
2216 # * For App Engine HTTP targets, between 15
2217 # seconds and 24 hours.
2218 &quot;pubsubTarget&quot;: { # Pub/Sub target. The job will be delivered by publishing a message to # Pub/Sub target.
2219 # the given Pub/Sub topic.
2220 &quot;topicName&quot;: &quot;A String&quot;, # Required. The name of the Cloud Pub/Sub topic to which messages will
2221 # be published when a job is delivered. The topic name must be in the
2222 # same format as required by PubSub&#x27;s
2223 # [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
2224 # for example `projects/PROJECT_ID/topics/TOPIC_ID`.
2225 #
2226 # The topic must be in the same project as the Cloud Scheduler job.
2227 &quot;data&quot;: &quot;A String&quot;, # The message payload for PubsubMessage.
2228 #
2229 # Pubsub message must contain either non-empty data, or at least one
2230 # attribute.
2231 &quot;attributes&quot;: { # Attributes for PubsubMessage.
2232 #
2233 # Pubsub message must contain either non-empty data, or at least one
2234 # attribute.
2235 &quot;a_key&quot;: &quot;A String&quot;,
2236 },
2237 },
2238 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # Output only. The response from the target for the last attempted execution.
2239 # different programming environments, including REST APIs and RPC APIs. It is
2240 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2241 # three pieces of data: error code, error message, and error details.
2242 #
2243 # You can find out more about this error model and how to work with it in the
2244 # [API Design Guide](https://cloud.google.com/apis/design/errors).
2245 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
2246 # user-facing error message should be localized and sent in the
2247 # google.rpc.Status.details field, or localized by the client.
2248 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
2249 # message types for APIs to use.
2250 {
2251 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2252 },
2253 ],
2254 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2255 },
2256 &quot;schedule&quot;: &quot;A String&quot;, # Required, except when used with UpdateJob.
2257 #
2258 # Describes the schedule on which the job will be executed.
2259 #
2260 # The schedule can be either of the following types:
2261 #
2262 # * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
2263 # * English-like
2264 # [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
2265 #
2266 # As a general rule, execution `n + 1` of a job will not begin
2267 # until execution `n` has finished. Cloud Scheduler will never
2268 # allow two simultaneously outstanding executions. For example,
2269 # this implies that if the `n+1`th execution is scheduled to run at
2270 # 16:00 but the `n`th execution takes until 16:15, the `n+1`th
2271 # execution will not start until `16:15`.
2272 # A scheduled start time will be delayed if the previous
2273 # execution has not ended when its scheduled time occurs.
2274 #
2275 # If retry_count &gt; 0 and a job attempt fails,
2276 # the job will be tried a total of retry_count
2277 # times, with exponential backoff, until the next scheduled start
2278 # time.
Bu Sun Kim65020912020-05-20 12:08:20 -07002279 &quot;description&quot;: &quot;A String&quot;, # Optionally caller-specified in CreateJob or
2280 # UpdateJob.
2281 #
2282 # A human-readable description for the job. This string must not contain
2283 # more than 500 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002284 &quot;retryConfig&quot;: { # Settings that determine the retry behavior. # Settings that determine the retry behavior.
2285 #
2286 # By default, if a job does not complete successfully (meaning that
2287 # an acknowledgement is not received from the handler, then it will be retried
2288 # with exponential backoff according to the settings in RetryConfig.
2289 &quot;maxBackoffDuration&quot;: &quot;A String&quot;, # The maximum amount of time to wait before retrying a job after
2290 # it fails.
2291 #
2292 # The default value of this field is 1 hour.
2293 &quot;minBackoffDuration&quot;: &quot;A String&quot;, # The minimum amount of time to wait before retrying a job after
2294 # it fails.
2295 #
2296 # The default value of this field is 5 seconds.
2297 &quot;retryCount&quot;: 42, # The number of attempts that the system will make to run a job using the
2298 # exponential backoff procedure described by
2299 # max_doublings.
2300 #
2301 # The default value of retry_count is zero.
2302 #
2303 # If retry_count is zero, a job attempt will *not* be retried if
2304 # it fails. Instead the Cloud Scheduler system will wait for the
2305 # next scheduled execution time.
2306 #
2307 # If retry_count is set to a non-zero number then Cloud Scheduler
2308 # will retry failed attempts, using exponential backoff,
2309 # retry_count times, or until the next scheduled execution time,
2310 # whichever comes first.
2311 #
2312 # Values greater than 5 and negative values are not allowed.
2313 &quot;maxRetryDuration&quot;: &quot;A String&quot;, # The time limit for retrying a failed job, measured from time when an
2314 # execution was first attempted. If specified with
2315 # retry_count, the job will be retried until both
2316 # limits are reached.
2317 #
2318 # The default value for max_retry_duration is zero, which means retry
2319 # duration is unlimited.
2320 &quot;maxDoublings&quot;: 42, # The time between retries will double `max_doublings` times.
2321 #
2322 # A job&#x27;s retry interval starts at
2323 # min_backoff_duration, then doubles
2324 # `max_doublings` times, then increases linearly, and finally
2325 # retries at intervals of
2326 # max_backoff_duration up to
2327 # retry_count times.
2328 #
2329 # For example, if min_backoff_duration is
2330 # 10s, max_backoff_duration is 300s, and
2331 # `max_doublings` is 3, then the a job will first be retried in 10s. The
2332 # retry interval will double three times, and then increase linearly by
2333 # 2^3 * 10s. Finally, the job will retry at intervals of
2334 # max_backoff_duration until the job has
2335 # been attempted retry_count times. Thus, the
2336 # requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
2337 #
2338 # The default value of this field is 5.
2339 },
2340 &quot;httpTarget&quot;: { # Http target. The job will be pushed to the job handler by means of # HTTP target.
2341 # an HTTP request via an http_method such as HTTP
2342 # POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
2343 # response code in the range [200 - 299]. A failure to receive a response
2344 # constitutes a failed execution. For a redirected request, the response
2345 # returned by the redirected request is considered.
2346 &quot;headers&quot;: { # The user can specify HTTP request headers to send with the job&#x27;s
2347 # HTTP request. This map contains the header field names and
2348 # values. Repeated headers are not supported, but a header value can
2349 # contain commas. These headers represent a subset of the headers
2350 # that will accompany the job&#x27;s HTTP request. Some HTTP request
2351 # headers will be ignored or replaced. A partial list of headers that
2352 # will be ignored or replaced is below:
2353 # - Host: This will be computed by Cloud Scheduler and derived from
2354 # uri.
2355 # * `Content-Length`: This will be computed by Cloud Scheduler.
2356 # * `User-Agent`: This will be set to `&quot;Google-Cloud-Scheduler&quot;`.
2357 # * `X-Google-*`: Google internal use only.
2358 # * `X-AppEngine-*`: Google internal use only.
2359 #
2360 # The total size of headers must be less than 80KB.
2361 &quot;a_key&quot;: &quot;A String&quot;,
2362 },
2363 &quot;uri&quot;: &quot;A String&quot;, # Required. The full URI path that the request will be sent to. This string
2364 # must begin with either &quot;http://&quot; or &quot;https://&quot;. Some examples of
2365 # valid values for uri are:
2366 # `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
2367 # encode some characters for safety and compatibility. The maximum allowed
2368 # URL length is 2083 characters after encoding.
2369 &quot;body&quot;: &quot;A String&quot;, # HTTP request body. A request body is allowed only if the HTTP
2370 # method is POST, PUT, or PATCH. It is an error to set body on a job with an
2371 # incompatible HttpMethod.
2372 &quot;oidcToken&quot;: { # Contains information needed for generating an # If specified, an
2373 # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
2374 # token will be generated and attached as an `Authorization` header in the
2375 # HTTP request.
2376 #
2377 # This type of authorization can be used for many scenarios, including
2378 # calling Cloud Run, or endpoints where you intend to validate the token
2379 # yourself.
2380 # [OpenID Connect
2381 # token](https://developers.google.com/identity/protocols/OpenIDConnect).
2382 # This type of authorization can be used for many scenarios, including
2383 # calling Cloud Run, or endpoints where you intend to validate the token
2384 # yourself.
2385 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
2386 # to be used for generating OIDC token.
2387 # The service account must be within the same project as the job. The caller
2388 # must have iam.serviceAccounts.actAs permission for the service account.
2389 &quot;audience&quot;: &quot;A String&quot;, # Audience to be used when generating OIDC token. If not specified, the URI
2390 # specified in target will be used.
2391 },
2392 &quot;oauthToken&quot;: { # Contains information needed for generating an # If specified, an
2393 # [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
2394 # will be generated and attached as an `Authorization` header in the HTTP
2395 # request.
2396 #
2397 # This type of authorization should generally only be used when calling
2398 # Google APIs hosted on *.googleapis.com.
2399 # [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
2400 # This type of authorization should generally only be used when calling Google
2401 # APIs hosted on *.googleapis.com.
2402 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
2403 # to be used for generating OAuth token.
2404 # The service account must be within the same project as the job. The caller
2405 # must have iam.serviceAccounts.actAs permission for the service account.
2406 &quot;scope&quot;: &quot;A String&quot;, # OAuth scope to be used for generating OAuth access token.
2407 # If not specified, &quot;https://www.googleapis.com/auth/cloud-platform&quot;
2408 # will be used.
2409 },
2410 &quot;httpMethod&quot;: &quot;A String&quot;, # Which HTTP method to use for the request.
2411 },
2412 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the job.
2413 &quot;userUpdateTime&quot;: &quot;A String&quot;, # Output only. The creation time of the job.
2414 &quot;timeZone&quot;: &quot;A String&quot;, # Specifies the time zone to be used in interpreting
2415 # schedule. The value of this field must be a time
2416 # zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
2417 #
2418 # Note that some time zones include a provision for
2419 # daylight savings time. The rules for daylight saving time are
2420 # determined by the chosen tz. For UTC use the string &quot;utc&quot;. If a
2421 # time zone is not specified, the default will be in UTC (also known
2422 # as GMT).
Bu Sun Kim65020912020-05-20 12:08:20 -07002423 &quot;appEngineHttpTarget&quot;: { # App Engine target. The job will be pushed to a job handler by means # App Engine HTTP target.
2424 # of an HTTP request via an http_method such
2425 # as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an
2426 # HTTP response code in the range [200 - 299]. Error 503 is
2427 # considered an App Engine system error instead of an application
2428 # error. Requests returning error 503 will be retried regardless of
2429 # retry configuration and not counted against retry counts. Any other
2430 # response code, or a failure to receive a response before the
2431 # deadline, constitutes a failed attempt.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002432 &quot;relativeUri&quot;: &quot;A String&quot;, # The relative URI.
2433 #
2434 # The relative URL must begin with &quot;/&quot; and must be a valid HTTP relative URL.
2435 # It can contain a path, query string arguments, and `#` fragments.
2436 # If the relative URL is empty, then the root path &quot;/&quot; will be used.
2437 # No spaces are allowed, and the maximum length allowed is 2083 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07002438 &quot;headers&quot;: { # HTTP request headers.
2439 #
2440 # This map contains the header field names and values. Headers can be set
2441 # when the job is created.
2442 #
2443 # Cloud Scheduler sets some headers to default values:
2444 #
2445 # * `User-Agent`: By default, this header is
2446 # `&quot;AppEngine-Google; (+http://code.google.com/appengine)&quot;`.
2447 # This header can be modified, but Cloud Scheduler will append
2448 # `&quot;AppEngine-Google; (+http://code.google.com/appengine)&quot;` to the
2449 # modified `User-Agent`.
2450 # * `X-CloudScheduler`: This header will be set to true.
2451 #
2452 # If the job has an body, Cloud Scheduler sets
2453 # the following headers:
2454 #
2455 # * `Content-Type`: By default, the `Content-Type` header is set to
2456 # `&quot;application/octet-stream&quot;`. The default can be overridden by explictly
2457 # setting `Content-Type` to a particular media type when the job is
2458 # created.
2459 # For example, `Content-Type` can be set to `&quot;application/json&quot;`.
2460 # * `Content-Length`: This is computed by Cloud Scheduler. This value is
2461 # output only. It cannot be changed.
2462 #
2463 # The headers below are output only. They cannot be set or overridden:
2464 #
2465 # * `X-Google-*`: For Google internal use only.
2466 # * `X-AppEngine-*`: For Google internal use only.
2467 #
2468 # In addition, some App Engine headers, which contain
2469 # job-specific information, are also be sent to the job handler.
2470 &quot;a_key&quot;: &quot;A String&quot;,
2471 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002472 &quot;httpMethod&quot;: &quot;A String&quot;, # The HTTP method to use for the request. PATCH and OPTIONS are not
2473 # permitted.
2474 &quot;body&quot;: &quot;A String&quot;, # Body.
2475 #
2476 # HTTP request body. A request body is allowed only if the HTTP method is
2477 # POST or PUT. It will result in invalid argument error to set a body on a
2478 # job with an incompatible HttpMethod.
Bu Sun Kim65020912020-05-20 12:08:20 -07002479 &quot;appEngineRouting&quot;: { # App Engine Routing. # App Engine Routing setting for the job.
2480 #
2481 # For more information about services, versions, and instances see
2482 # [An Overview of App
2483 # Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
2484 # [Microservices Architecture on Google App
2485 # Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
2486 # [App Engine Standard request
2487 # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
2488 # and [App Engine Flex request
2489 # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Bu Sun Kim65020912020-05-20 12:08:20 -07002490 &quot;host&quot;: &quot;A String&quot;, # Output only. The host that the job is sent to.
2491 #
2492 # For more information about how App Engine requests are routed, see
2493 # [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
2494 #
2495 # The host is constructed as:
2496 #
2497 #
2498 # * `host = [application_domain_name]`&lt;/br&gt;
2499 # `| [service] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
2500 # `| [version] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
2501 # `| [version_dot_service]+ &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
2502 # `| [instance] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
2503 # `| [instance_dot_service] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
2504 # `| [instance_dot_version] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
2505 # `| [instance_dot_version_dot_service] + &#x27;.&#x27; + [application_domain_name]`
2506 #
2507 # * `application_domain_name` = The domain name of the app, for
2508 # example &lt;app-id&gt;.appspot.com, which is associated with the
2509 # job&#x27;s project ID.
2510 #
2511 # * `service =` service
2512 #
2513 # * `version =` version
2514 #
2515 # * `version_dot_service =`
2516 # version `+ &#x27;.&#x27; +`
2517 # service
2518 #
2519 # * `instance =` instance
2520 #
2521 # * `instance_dot_service =`
2522 # instance `+ &#x27;.&#x27; +`
2523 # service
2524 #
2525 # * `instance_dot_version =`
2526 # instance `+ &#x27;.&#x27; +`
2527 # version
2528 #
2529 # * `instance_dot_version_dot_service =`
2530 # instance `+ &#x27;.&#x27; +`
2531 # version `+ &#x27;.&#x27; +`
2532 # service
2533 #
2534 #
2535 # If service is empty, then the job will be sent
2536 # to the service which is the default service when the job is attempted.
2537 #
2538 # If version is empty, then the job will be sent
2539 # to the version which is the default version when the job is attempted.
2540 #
2541 # If instance is empty, then the job will be
2542 # sent to an instance which is available when the job is attempted.
2543 #
2544 # If service,
2545 # version, or
2546 # instance is invalid, then the job will be sent
2547 # to the default version of the default service when the job is attempted.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002548 &quot;version&quot;: &quot;A String&quot;, # App version.
2549 #
2550 # By default, the job is sent to the version which is the default
2551 # version when the job is attempted.
2552 &quot;service&quot;: &quot;A String&quot;, # App service.
2553 #
2554 # By default, the job is sent to the service which is the default
2555 # service when the job is attempted.
2556 &quot;instance&quot;: &quot;A String&quot;, # App instance.
2557 #
2558 # By default, the job is sent to an instance which is available when
2559 # the job is attempted.
2560 #
2561 # Requests can only be sent to a specific instance if
2562 # [manual scaling is used in App Engine
2563 # Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
2564 # App Engine Flex does not support instances. For more information, see
2565 # [App Engine Standard request
2566 # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
2567 # and [App Engine Flex request
2568 # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Bu Sun Kim65020912020-05-20 12:08:20 -07002569 },
2570 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002571 &quot;name&quot;: &quot;A String&quot;, # Optionally caller-specified in CreateJob, after
2572 # which it becomes output only.
2573 #
2574 # The job name. For example:
2575 # `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
2576 #
2577 # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
2578 # hyphens (-), colons (:), or periods (.).
2579 # For more information, see
2580 # [Identifying
2581 # projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
2582 # * `LOCATION_ID` is the canonical ID for the job&#x27;s location.
2583 # The list of available locations can be obtained by calling
2584 # ListLocations.
2585 # For more information, see https://cloud.google.com/about/locations/.
2586 # * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
2587 # hyphens (-), or underscores (_). The maximum length is 500 characters.
2588 &quot;lastAttemptTime&quot;: &quot;A String&quot;, # Output only. The time the last job attempt started.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002589 }</pre>
2590</div>
2591
2592<div class="method">
2593 <code class="details" id="pause">pause(name, body=None, x__xgafv=None)</code>
2594 <pre>Pauses a job.
2595
2596If a job is paused then the system will stop executing the job
2597until it is re-enabled via ResumeJob. The
2598state of the job is stored in state; if paused it
2599will be set to Job.State.PAUSED. A job must be in Job.State.ENABLED
2600to be paused.
2601
2602Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07002603 name: string, Required. The job name. For example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002604`projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. (required)
2605 body: object, The request body.
2606 The object takes the form of:
2607
2608{ # Request message for PauseJob.
2609 }
2610
2611 x__xgafv: string, V1 error format.
2612 Allowed values
2613 1 - v1 error format
2614 2 - v2 error format
2615
2616Returns:
2617 An object of the form:
2618
2619 { # Configuration for a job.
2620 # The maximum allowed size for a job is 100KB.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002621 &quot;scheduleTime&quot;: &quot;A String&quot;, # Output only. The next time the job is scheduled. Note that this may be a
2622 # retry of a previously failed attempt or the next execution time
2623 # according to the schedule.
2624 &quot;attemptDeadline&quot;: &quot;A String&quot;, # The deadline for job attempts. If the request handler does not respond by
2625 # this deadline then the request is cancelled and the attempt is marked as a
2626 # `DEADLINE_EXCEEDED` failure. The failed attempt can be viewed in
2627 # execution logs. Cloud Scheduler will retry the job according
2628 # to the RetryConfig.
2629 #
2630 # The allowed duration for this deadline is:
2631 # * For HTTP targets, between 15 seconds and 30 minutes.
2632 # * For App Engine HTTP targets, between 15
2633 # seconds and 24 hours.
2634 &quot;pubsubTarget&quot;: { # Pub/Sub target. The job will be delivered by publishing a message to # Pub/Sub target.
2635 # the given Pub/Sub topic.
2636 &quot;topicName&quot;: &quot;A String&quot;, # Required. The name of the Cloud Pub/Sub topic to which messages will
2637 # be published when a job is delivered. The topic name must be in the
2638 # same format as required by PubSub&#x27;s
2639 # [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
2640 # for example `projects/PROJECT_ID/topics/TOPIC_ID`.
2641 #
2642 # The topic must be in the same project as the Cloud Scheduler job.
2643 &quot;data&quot;: &quot;A String&quot;, # The message payload for PubsubMessage.
2644 #
2645 # Pubsub message must contain either non-empty data, or at least one
2646 # attribute.
2647 &quot;attributes&quot;: { # Attributes for PubsubMessage.
2648 #
2649 # Pubsub message must contain either non-empty data, or at least one
2650 # attribute.
2651 &quot;a_key&quot;: &quot;A String&quot;,
2652 },
2653 },
2654 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # Output only. The response from the target for the last attempted execution.
2655 # different programming environments, including REST APIs and RPC APIs. It is
2656 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2657 # three pieces of data: error code, error message, and error details.
2658 #
2659 # You can find out more about this error model and how to work with it in the
2660 # [API Design Guide](https://cloud.google.com/apis/design/errors).
2661 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
2662 # user-facing error message should be localized and sent in the
2663 # google.rpc.Status.details field, or localized by the client.
2664 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
2665 # message types for APIs to use.
2666 {
2667 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2668 },
2669 ],
2670 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2671 },
2672 &quot;schedule&quot;: &quot;A String&quot;, # Required, except when used with UpdateJob.
2673 #
2674 # Describes the schedule on which the job will be executed.
2675 #
2676 # The schedule can be either of the following types:
2677 #
2678 # * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
2679 # * English-like
2680 # [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
2681 #
2682 # As a general rule, execution `n + 1` of a job will not begin
2683 # until execution `n` has finished. Cloud Scheduler will never
2684 # allow two simultaneously outstanding executions. For example,
2685 # this implies that if the `n+1`th execution is scheduled to run at
2686 # 16:00 but the `n`th execution takes until 16:15, the `n+1`th
2687 # execution will not start until `16:15`.
2688 # A scheduled start time will be delayed if the previous
2689 # execution has not ended when its scheduled time occurs.
2690 #
2691 # If retry_count &gt; 0 and a job attempt fails,
2692 # the job will be tried a total of retry_count
2693 # times, with exponential backoff, until the next scheduled start
2694 # time.
Bu Sun Kim65020912020-05-20 12:08:20 -07002695 &quot;description&quot;: &quot;A String&quot;, # Optionally caller-specified in CreateJob or
2696 # UpdateJob.
2697 #
2698 # A human-readable description for the job. This string must not contain
2699 # more than 500 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002700 &quot;retryConfig&quot;: { # Settings that determine the retry behavior. # Settings that determine the retry behavior.
2701 #
2702 # By default, if a job does not complete successfully (meaning that
2703 # an acknowledgement is not received from the handler, then it will be retried
2704 # with exponential backoff according to the settings in RetryConfig.
2705 &quot;maxBackoffDuration&quot;: &quot;A String&quot;, # The maximum amount of time to wait before retrying a job after
2706 # it fails.
2707 #
2708 # The default value of this field is 1 hour.
2709 &quot;minBackoffDuration&quot;: &quot;A String&quot;, # The minimum amount of time to wait before retrying a job after
2710 # it fails.
2711 #
2712 # The default value of this field is 5 seconds.
2713 &quot;retryCount&quot;: 42, # The number of attempts that the system will make to run a job using the
2714 # exponential backoff procedure described by
2715 # max_doublings.
2716 #
2717 # The default value of retry_count is zero.
2718 #
2719 # If retry_count is zero, a job attempt will *not* be retried if
2720 # it fails. Instead the Cloud Scheduler system will wait for the
2721 # next scheduled execution time.
2722 #
2723 # If retry_count is set to a non-zero number then Cloud Scheduler
2724 # will retry failed attempts, using exponential backoff,
2725 # retry_count times, or until the next scheduled execution time,
2726 # whichever comes first.
2727 #
2728 # Values greater than 5 and negative values are not allowed.
2729 &quot;maxRetryDuration&quot;: &quot;A String&quot;, # The time limit for retrying a failed job, measured from time when an
2730 # execution was first attempted. If specified with
2731 # retry_count, the job will be retried until both
2732 # limits are reached.
2733 #
2734 # The default value for max_retry_duration is zero, which means retry
2735 # duration is unlimited.
2736 &quot;maxDoublings&quot;: 42, # The time between retries will double `max_doublings` times.
2737 #
2738 # A job&#x27;s retry interval starts at
2739 # min_backoff_duration, then doubles
2740 # `max_doublings` times, then increases linearly, and finally
2741 # retries at intervals of
2742 # max_backoff_duration up to
2743 # retry_count times.
2744 #
2745 # For example, if min_backoff_duration is
2746 # 10s, max_backoff_duration is 300s, and
2747 # `max_doublings` is 3, then the a job will first be retried in 10s. The
2748 # retry interval will double three times, and then increase linearly by
2749 # 2^3 * 10s. Finally, the job will retry at intervals of
2750 # max_backoff_duration until the job has
2751 # been attempted retry_count times. Thus, the
2752 # requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
2753 #
2754 # The default value of this field is 5.
2755 },
2756 &quot;httpTarget&quot;: { # Http target. The job will be pushed to the job handler by means of # HTTP target.
2757 # an HTTP request via an http_method such as HTTP
2758 # POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
2759 # response code in the range [200 - 299]. A failure to receive a response
2760 # constitutes a failed execution. For a redirected request, the response
2761 # returned by the redirected request is considered.
2762 &quot;headers&quot;: { # The user can specify HTTP request headers to send with the job&#x27;s
2763 # HTTP request. This map contains the header field names and
2764 # values. Repeated headers are not supported, but a header value can
2765 # contain commas. These headers represent a subset of the headers
2766 # that will accompany the job&#x27;s HTTP request. Some HTTP request
2767 # headers will be ignored or replaced. A partial list of headers that
2768 # will be ignored or replaced is below:
2769 # - Host: This will be computed by Cloud Scheduler and derived from
2770 # uri.
2771 # * `Content-Length`: This will be computed by Cloud Scheduler.
2772 # * `User-Agent`: This will be set to `&quot;Google-Cloud-Scheduler&quot;`.
2773 # * `X-Google-*`: Google internal use only.
2774 # * `X-AppEngine-*`: Google internal use only.
2775 #
2776 # The total size of headers must be less than 80KB.
2777 &quot;a_key&quot;: &quot;A String&quot;,
2778 },
2779 &quot;uri&quot;: &quot;A String&quot;, # Required. The full URI path that the request will be sent to. This string
2780 # must begin with either &quot;http://&quot; or &quot;https://&quot;. Some examples of
2781 # valid values for uri are:
2782 # `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
2783 # encode some characters for safety and compatibility. The maximum allowed
2784 # URL length is 2083 characters after encoding.
2785 &quot;body&quot;: &quot;A String&quot;, # HTTP request body. A request body is allowed only if the HTTP
2786 # method is POST, PUT, or PATCH. It is an error to set body on a job with an
2787 # incompatible HttpMethod.
2788 &quot;oidcToken&quot;: { # Contains information needed for generating an # If specified, an
2789 # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
2790 # token will be generated and attached as an `Authorization` header in the
2791 # HTTP request.
2792 #
2793 # This type of authorization can be used for many scenarios, including
2794 # calling Cloud Run, or endpoints where you intend to validate the token
2795 # yourself.
2796 # [OpenID Connect
2797 # token](https://developers.google.com/identity/protocols/OpenIDConnect).
2798 # This type of authorization can be used for many scenarios, including
2799 # calling Cloud Run, or endpoints where you intend to validate the token
2800 # yourself.
2801 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
2802 # to be used for generating OIDC token.
2803 # The service account must be within the same project as the job. The caller
2804 # must have iam.serviceAccounts.actAs permission for the service account.
2805 &quot;audience&quot;: &quot;A String&quot;, # Audience to be used when generating OIDC token. If not specified, the URI
2806 # specified in target will be used.
2807 },
2808 &quot;oauthToken&quot;: { # Contains information needed for generating an # If specified, an
2809 # [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
2810 # will be generated and attached as an `Authorization` header in the HTTP
2811 # request.
2812 #
2813 # This type of authorization should generally only be used when calling
2814 # Google APIs hosted on *.googleapis.com.
2815 # [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
2816 # This type of authorization should generally only be used when calling Google
2817 # APIs hosted on *.googleapis.com.
2818 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
2819 # to be used for generating OAuth token.
2820 # The service account must be within the same project as the job. The caller
2821 # must have iam.serviceAccounts.actAs permission for the service account.
2822 &quot;scope&quot;: &quot;A String&quot;, # OAuth scope to be used for generating OAuth access token.
2823 # If not specified, &quot;https://www.googleapis.com/auth/cloud-platform&quot;
2824 # will be used.
2825 },
2826 &quot;httpMethod&quot;: &quot;A String&quot;, # Which HTTP method to use for the request.
2827 },
2828 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the job.
2829 &quot;userUpdateTime&quot;: &quot;A String&quot;, # Output only. The creation time of the job.
2830 &quot;timeZone&quot;: &quot;A String&quot;, # Specifies the time zone to be used in interpreting
2831 # schedule. The value of this field must be a time
2832 # zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
2833 #
2834 # Note that some time zones include a provision for
2835 # daylight savings time. The rules for daylight saving time are
2836 # determined by the chosen tz. For UTC use the string &quot;utc&quot;. If a
2837 # time zone is not specified, the default will be in UTC (also known
2838 # as GMT).
Bu Sun Kim65020912020-05-20 12:08:20 -07002839 &quot;appEngineHttpTarget&quot;: { # App Engine target. The job will be pushed to a job handler by means # App Engine HTTP target.
2840 # of an HTTP request via an http_method such
2841 # as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an
2842 # HTTP response code in the range [200 - 299]. Error 503 is
2843 # considered an App Engine system error instead of an application
2844 # error. Requests returning error 503 will be retried regardless of
2845 # retry configuration and not counted against retry counts. Any other
2846 # response code, or a failure to receive a response before the
2847 # deadline, constitutes a failed attempt.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002848 &quot;relativeUri&quot;: &quot;A String&quot;, # The relative URI.
2849 #
2850 # The relative URL must begin with &quot;/&quot; and must be a valid HTTP relative URL.
2851 # It can contain a path, query string arguments, and `#` fragments.
2852 # If the relative URL is empty, then the root path &quot;/&quot; will be used.
2853 # No spaces are allowed, and the maximum length allowed is 2083 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07002854 &quot;headers&quot;: { # HTTP request headers.
2855 #
2856 # This map contains the header field names and values. Headers can be set
2857 # when the job is created.
2858 #
2859 # Cloud Scheduler sets some headers to default values:
2860 #
2861 # * `User-Agent`: By default, this header is
2862 # `&quot;AppEngine-Google; (+http://code.google.com/appengine)&quot;`.
2863 # This header can be modified, but Cloud Scheduler will append
2864 # `&quot;AppEngine-Google; (+http://code.google.com/appengine)&quot;` to the
2865 # modified `User-Agent`.
2866 # * `X-CloudScheduler`: This header will be set to true.
2867 #
2868 # If the job has an body, Cloud Scheduler sets
2869 # the following headers:
2870 #
2871 # * `Content-Type`: By default, the `Content-Type` header is set to
2872 # `&quot;application/octet-stream&quot;`. The default can be overridden by explictly
2873 # setting `Content-Type` to a particular media type when the job is
2874 # created.
2875 # For example, `Content-Type` can be set to `&quot;application/json&quot;`.
2876 # * `Content-Length`: This is computed by Cloud Scheduler. This value is
2877 # output only. It cannot be changed.
2878 #
2879 # The headers below are output only. They cannot be set or overridden:
2880 #
2881 # * `X-Google-*`: For Google internal use only.
2882 # * `X-AppEngine-*`: For Google internal use only.
2883 #
2884 # In addition, some App Engine headers, which contain
2885 # job-specific information, are also be sent to the job handler.
2886 &quot;a_key&quot;: &quot;A String&quot;,
2887 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002888 &quot;httpMethod&quot;: &quot;A String&quot;, # The HTTP method to use for the request. PATCH and OPTIONS are not
2889 # permitted.
2890 &quot;body&quot;: &quot;A String&quot;, # Body.
2891 #
2892 # HTTP request body. A request body is allowed only if the HTTP method is
2893 # POST or PUT. It will result in invalid argument error to set a body on a
2894 # job with an incompatible HttpMethod.
Bu Sun Kim65020912020-05-20 12:08:20 -07002895 &quot;appEngineRouting&quot;: { # App Engine Routing. # App Engine Routing setting for the job.
2896 #
2897 # For more information about services, versions, and instances see
2898 # [An Overview of App
2899 # Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
2900 # [Microservices Architecture on Google App
2901 # Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
2902 # [App Engine Standard request
2903 # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
2904 # and [App Engine Flex request
2905 # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Bu Sun Kim65020912020-05-20 12:08:20 -07002906 &quot;host&quot;: &quot;A String&quot;, # Output only. The host that the job is sent to.
2907 #
2908 # For more information about how App Engine requests are routed, see
2909 # [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
2910 #
2911 # The host is constructed as:
2912 #
2913 #
2914 # * `host = [application_domain_name]`&lt;/br&gt;
2915 # `| [service] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
2916 # `| [version] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
2917 # `| [version_dot_service]+ &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
2918 # `| [instance] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
2919 # `| [instance_dot_service] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
2920 # `| [instance_dot_version] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
2921 # `| [instance_dot_version_dot_service] + &#x27;.&#x27; + [application_domain_name]`
2922 #
2923 # * `application_domain_name` = The domain name of the app, for
2924 # example &lt;app-id&gt;.appspot.com, which is associated with the
2925 # job&#x27;s project ID.
2926 #
2927 # * `service =` service
2928 #
2929 # * `version =` version
2930 #
2931 # * `version_dot_service =`
2932 # version `+ &#x27;.&#x27; +`
2933 # service
2934 #
2935 # * `instance =` instance
2936 #
2937 # * `instance_dot_service =`
2938 # instance `+ &#x27;.&#x27; +`
2939 # service
2940 #
2941 # * `instance_dot_version =`
2942 # instance `+ &#x27;.&#x27; +`
2943 # version
2944 #
2945 # * `instance_dot_version_dot_service =`
2946 # instance `+ &#x27;.&#x27; +`
2947 # version `+ &#x27;.&#x27; +`
2948 # service
2949 #
2950 #
2951 # If service is empty, then the job will be sent
2952 # to the service which is the default service when the job is attempted.
2953 #
2954 # If version is empty, then the job will be sent
2955 # to the version which is the default version when the job is attempted.
2956 #
2957 # If instance is empty, then the job will be
2958 # sent to an instance which is available when the job is attempted.
2959 #
2960 # If service,
2961 # version, or
2962 # instance is invalid, then the job will be sent
2963 # to the default version of the default service when the job is attempted.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002964 &quot;version&quot;: &quot;A String&quot;, # App version.
2965 #
2966 # By default, the job is sent to the version which is the default
2967 # version when the job is attempted.
2968 &quot;service&quot;: &quot;A String&quot;, # App service.
2969 #
2970 # By default, the job is sent to the service which is the default
2971 # service when the job is attempted.
2972 &quot;instance&quot;: &quot;A String&quot;, # App instance.
2973 #
2974 # By default, the job is sent to an instance which is available when
2975 # the job is attempted.
2976 #
2977 # Requests can only be sent to a specific instance if
2978 # [manual scaling is used in App Engine
2979 # Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
2980 # App Engine Flex does not support instances. For more information, see
2981 # [App Engine Standard request
2982 # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
2983 # and [App Engine Flex request
2984 # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Bu Sun Kim65020912020-05-20 12:08:20 -07002985 },
2986 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002987 &quot;name&quot;: &quot;A String&quot;, # Optionally caller-specified in CreateJob, after
2988 # which it becomes output only.
2989 #
2990 # The job name. For example:
2991 # `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
2992 #
2993 # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
2994 # hyphens (-), colons (:), or periods (.).
2995 # For more information, see
2996 # [Identifying
2997 # projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
2998 # * `LOCATION_ID` is the canonical ID for the job&#x27;s location.
2999 # The list of available locations can be obtained by calling
3000 # ListLocations.
3001 # For more information, see https://cloud.google.com/about/locations/.
3002 # * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
3003 # hyphens (-), or underscores (_). The maximum length is 500 characters.
3004 &quot;lastAttemptTime&quot;: &quot;A String&quot;, # Output only. The time the last job attempt started.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003005 }</pre>
3006</div>
3007
3008<div class="method">
3009 <code class="details" id="resume">resume(name, body=None, x__xgafv=None)</code>
3010 <pre>Resume a job.
3011
3012This method reenables a job after it has been Job.State.PAUSED. The
3013state of a job is stored in Job.state; after calling this method it
3014will be set to Job.State.ENABLED. A job must be in
3015Job.State.PAUSED to be resumed.
3016
3017Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07003018 name: string, Required. The job name. For example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003019`projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. (required)
3020 body: object, The request body.
3021 The object takes the form of:
3022
3023{ # Request message for ResumeJob.
3024 }
3025
3026 x__xgafv: string, V1 error format.
3027 Allowed values
3028 1 - v1 error format
3029 2 - v2 error format
3030
3031Returns:
3032 An object of the form:
3033
3034 { # Configuration for a job.
3035 # The maximum allowed size for a job is 100KB.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003036 &quot;scheduleTime&quot;: &quot;A String&quot;, # Output only. The next time the job is scheduled. Note that this may be a
3037 # retry of a previously failed attempt or the next execution time
3038 # according to the schedule.
3039 &quot;attemptDeadline&quot;: &quot;A String&quot;, # The deadline for job attempts. If the request handler does not respond by
3040 # this deadline then the request is cancelled and the attempt is marked as a
3041 # `DEADLINE_EXCEEDED` failure. The failed attempt can be viewed in
3042 # execution logs. Cloud Scheduler will retry the job according
3043 # to the RetryConfig.
3044 #
3045 # The allowed duration for this deadline is:
3046 # * For HTTP targets, between 15 seconds and 30 minutes.
3047 # * For App Engine HTTP targets, between 15
3048 # seconds and 24 hours.
3049 &quot;pubsubTarget&quot;: { # Pub/Sub target. The job will be delivered by publishing a message to # Pub/Sub target.
3050 # the given Pub/Sub topic.
3051 &quot;topicName&quot;: &quot;A String&quot;, # Required. The name of the Cloud Pub/Sub topic to which messages will
3052 # be published when a job is delivered. The topic name must be in the
3053 # same format as required by PubSub&#x27;s
3054 # [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
3055 # for example `projects/PROJECT_ID/topics/TOPIC_ID`.
3056 #
3057 # The topic must be in the same project as the Cloud Scheduler job.
3058 &quot;data&quot;: &quot;A String&quot;, # The message payload for PubsubMessage.
3059 #
3060 # Pubsub message must contain either non-empty data, or at least one
3061 # attribute.
3062 &quot;attributes&quot;: { # Attributes for PubsubMessage.
3063 #
3064 # Pubsub message must contain either non-empty data, or at least one
3065 # attribute.
3066 &quot;a_key&quot;: &quot;A String&quot;,
3067 },
3068 },
3069 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # Output only. The response from the target for the last attempted execution.
3070 # different programming environments, including REST APIs and RPC APIs. It is
3071 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3072 # three pieces of data: error code, error message, and error details.
3073 #
3074 # You can find out more about this error model and how to work with it in the
3075 # [API Design Guide](https://cloud.google.com/apis/design/errors).
3076 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3077 # user-facing error message should be localized and sent in the
3078 # google.rpc.Status.details field, or localized by the client.
3079 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3080 # message types for APIs to use.
3081 {
3082 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3083 },
3084 ],
3085 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3086 },
3087 &quot;schedule&quot;: &quot;A String&quot;, # Required, except when used with UpdateJob.
3088 #
3089 # Describes the schedule on which the job will be executed.
3090 #
3091 # The schedule can be either of the following types:
3092 #
3093 # * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
3094 # * English-like
3095 # [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
3096 #
3097 # As a general rule, execution `n + 1` of a job will not begin
3098 # until execution `n` has finished. Cloud Scheduler will never
3099 # allow two simultaneously outstanding executions. For example,
3100 # this implies that if the `n+1`th execution is scheduled to run at
3101 # 16:00 but the `n`th execution takes until 16:15, the `n+1`th
3102 # execution will not start until `16:15`.
3103 # A scheduled start time will be delayed if the previous
3104 # execution has not ended when its scheduled time occurs.
3105 #
3106 # If retry_count &gt; 0 and a job attempt fails,
3107 # the job will be tried a total of retry_count
3108 # times, with exponential backoff, until the next scheduled start
3109 # time.
Bu Sun Kim65020912020-05-20 12:08:20 -07003110 &quot;description&quot;: &quot;A String&quot;, # Optionally caller-specified in CreateJob or
3111 # UpdateJob.
3112 #
3113 # A human-readable description for the job. This string must not contain
3114 # more than 500 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003115 &quot;retryConfig&quot;: { # Settings that determine the retry behavior. # Settings that determine the retry behavior.
3116 #
3117 # By default, if a job does not complete successfully (meaning that
3118 # an acknowledgement is not received from the handler, then it will be retried
3119 # with exponential backoff according to the settings in RetryConfig.
3120 &quot;maxBackoffDuration&quot;: &quot;A String&quot;, # The maximum amount of time to wait before retrying a job after
3121 # it fails.
3122 #
3123 # The default value of this field is 1 hour.
3124 &quot;minBackoffDuration&quot;: &quot;A String&quot;, # The minimum amount of time to wait before retrying a job after
3125 # it fails.
3126 #
3127 # The default value of this field is 5 seconds.
3128 &quot;retryCount&quot;: 42, # The number of attempts that the system will make to run a job using the
3129 # exponential backoff procedure described by
3130 # max_doublings.
3131 #
3132 # The default value of retry_count is zero.
3133 #
3134 # If retry_count is zero, a job attempt will *not* be retried if
3135 # it fails. Instead the Cloud Scheduler system will wait for the
3136 # next scheduled execution time.
3137 #
3138 # If retry_count is set to a non-zero number then Cloud Scheduler
3139 # will retry failed attempts, using exponential backoff,
3140 # retry_count times, or until the next scheduled execution time,
3141 # whichever comes first.
3142 #
3143 # Values greater than 5 and negative values are not allowed.
3144 &quot;maxRetryDuration&quot;: &quot;A String&quot;, # The time limit for retrying a failed job, measured from time when an
3145 # execution was first attempted. If specified with
3146 # retry_count, the job will be retried until both
3147 # limits are reached.
3148 #
3149 # The default value for max_retry_duration is zero, which means retry
3150 # duration is unlimited.
3151 &quot;maxDoublings&quot;: 42, # The time between retries will double `max_doublings` times.
3152 #
3153 # A job&#x27;s retry interval starts at
3154 # min_backoff_duration, then doubles
3155 # `max_doublings` times, then increases linearly, and finally
3156 # retries at intervals of
3157 # max_backoff_duration up to
3158 # retry_count times.
3159 #
3160 # For example, if min_backoff_duration is
3161 # 10s, max_backoff_duration is 300s, and
3162 # `max_doublings` is 3, then the a job will first be retried in 10s. The
3163 # retry interval will double three times, and then increase linearly by
3164 # 2^3 * 10s. Finally, the job will retry at intervals of
3165 # max_backoff_duration until the job has
3166 # been attempted retry_count times. Thus, the
3167 # requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
3168 #
3169 # The default value of this field is 5.
3170 },
3171 &quot;httpTarget&quot;: { # Http target. The job will be pushed to the job handler by means of # HTTP target.
3172 # an HTTP request via an http_method such as HTTP
3173 # POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
3174 # response code in the range [200 - 299]. A failure to receive a response
3175 # constitutes a failed execution. For a redirected request, the response
3176 # returned by the redirected request is considered.
3177 &quot;headers&quot;: { # The user can specify HTTP request headers to send with the job&#x27;s
3178 # HTTP request. This map contains the header field names and
3179 # values. Repeated headers are not supported, but a header value can
3180 # contain commas. These headers represent a subset of the headers
3181 # that will accompany the job&#x27;s HTTP request. Some HTTP request
3182 # headers will be ignored or replaced. A partial list of headers that
3183 # will be ignored or replaced is below:
3184 # - Host: This will be computed by Cloud Scheduler and derived from
3185 # uri.
3186 # * `Content-Length`: This will be computed by Cloud Scheduler.
3187 # * `User-Agent`: This will be set to `&quot;Google-Cloud-Scheduler&quot;`.
3188 # * `X-Google-*`: Google internal use only.
3189 # * `X-AppEngine-*`: Google internal use only.
3190 #
3191 # The total size of headers must be less than 80KB.
3192 &quot;a_key&quot;: &quot;A String&quot;,
3193 },
3194 &quot;uri&quot;: &quot;A String&quot;, # Required. The full URI path that the request will be sent to. This string
3195 # must begin with either &quot;http://&quot; or &quot;https://&quot;. Some examples of
3196 # valid values for uri are:
3197 # `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
3198 # encode some characters for safety and compatibility. The maximum allowed
3199 # URL length is 2083 characters after encoding.
3200 &quot;body&quot;: &quot;A String&quot;, # HTTP request body. A request body is allowed only if the HTTP
3201 # method is POST, PUT, or PATCH. It is an error to set body on a job with an
3202 # incompatible HttpMethod.
3203 &quot;oidcToken&quot;: { # Contains information needed for generating an # If specified, an
3204 # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
3205 # token will be generated and attached as an `Authorization` header in the
3206 # HTTP request.
3207 #
3208 # This type of authorization can be used for many scenarios, including
3209 # calling Cloud Run, or endpoints where you intend to validate the token
3210 # yourself.
3211 # [OpenID Connect
3212 # token](https://developers.google.com/identity/protocols/OpenIDConnect).
3213 # This type of authorization can be used for many scenarios, including
3214 # calling Cloud Run, or endpoints where you intend to validate the token
3215 # yourself.
3216 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
3217 # to be used for generating OIDC token.
3218 # The service account must be within the same project as the job. The caller
3219 # must have iam.serviceAccounts.actAs permission for the service account.
3220 &quot;audience&quot;: &quot;A String&quot;, # Audience to be used when generating OIDC token. If not specified, the URI
3221 # specified in target will be used.
3222 },
3223 &quot;oauthToken&quot;: { # Contains information needed for generating an # If specified, an
3224 # [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
3225 # will be generated and attached as an `Authorization` header in the HTTP
3226 # request.
3227 #
3228 # This type of authorization should generally only be used when calling
3229 # Google APIs hosted on *.googleapis.com.
3230 # [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
3231 # This type of authorization should generally only be used when calling Google
3232 # APIs hosted on *.googleapis.com.
3233 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
3234 # to be used for generating OAuth token.
3235 # The service account must be within the same project as the job. The caller
3236 # must have iam.serviceAccounts.actAs permission for the service account.
3237 &quot;scope&quot;: &quot;A String&quot;, # OAuth scope to be used for generating OAuth access token.
3238 # If not specified, &quot;https://www.googleapis.com/auth/cloud-platform&quot;
3239 # will be used.
3240 },
3241 &quot;httpMethod&quot;: &quot;A String&quot;, # Which HTTP method to use for the request.
3242 },
3243 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the job.
3244 &quot;userUpdateTime&quot;: &quot;A String&quot;, # Output only. The creation time of the job.
3245 &quot;timeZone&quot;: &quot;A String&quot;, # Specifies the time zone to be used in interpreting
3246 # schedule. The value of this field must be a time
3247 # zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
3248 #
3249 # Note that some time zones include a provision for
3250 # daylight savings time. The rules for daylight saving time are
3251 # determined by the chosen tz. For UTC use the string &quot;utc&quot;. If a
3252 # time zone is not specified, the default will be in UTC (also known
3253 # as GMT).
Bu Sun Kim65020912020-05-20 12:08:20 -07003254 &quot;appEngineHttpTarget&quot;: { # App Engine target. The job will be pushed to a job handler by means # App Engine HTTP target.
3255 # of an HTTP request via an http_method such
3256 # as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an
3257 # HTTP response code in the range [200 - 299]. Error 503 is
3258 # considered an App Engine system error instead of an application
3259 # error. Requests returning error 503 will be retried regardless of
3260 # retry configuration and not counted against retry counts. Any other
3261 # response code, or a failure to receive a response before the
3262 # deadline, constitutes a failed attempt.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003263 &quot;relativeUri&quot;: &quot;A String&quot;, # The relative URI.
3264 #
3265 # The relative URL must begin with &quot;/&quot; and must be a valid HTTP relative URL.
3266 # It can contain a path, query string arguments, and `#` fragments.
3267 # If the relative URL is empty, then the root path &quot;/&quot; will be used.
3268 # No spaces are allowed, and the maximum length allowed is 2083 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07003269 &quot;headers&quot;: { # HTTP request headers.
3270 #
3271 # This map contains the header field names and values. Headers can be set
3272 # when the job is created.
3273 #
3274 # Cloud Scheduler sets some headers to default values:
3275 #
3276 # * `User-Agent`: By default, this header is
3277 # `&quot;AppEngine-Google; (+http://code.google.com/appengine)&quot;`.
3278 # This header can be modified, but Cloud Scheduler will append
3279 # `&quot;AppEngine-Google; (+http://code.google.com/appengine)&quot;` to the
3280 # modified `User-Agent`.
3281 # * `X-CloudScheduler`: This header will be set to true.
3282 #
3283 # If the job has an body, Cloud Scheduler sets
3284 # the following headers:
3285 #
3286 # * `Content-Type`: By default, the `Content-Type` header is set to
3287 # `&quot;application/octet-stream&quot;`. The default can be overridden by explictly
3288 # setting `Content-Type` to a particular media type when the job is
3289 # created.
3290 # For example, `Content-Type` can be set to `&quot;application/json&quot;`.
3291 # * `Content-Length`: This is computed by Cloud Scheduler. This value is
3292 # output only. It cannot be changed.
3293 #
3294 # The headers below are output only. They cannot be set or overridden:
3295 #
3296 # * `X-Google-*`: For Google internal use only.
3297 # * `X-AppEngine-*`: For Google internal use only.
3298 #
3299 # In addition, some App Engine headers, which contain
3300 # job-specific information, are also be sent to the job handler.
3301 &quot;a_key&quot;: &quot;A String&quot;,
3302 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003303 &quot;httpMethod&quot;: &quot;A String&quot;, # The HTTP method to use for the request. PATCH and OPTIONS are not
3304 # permitted.
3305 &quot;body&quot;: &quot;A String&quot;, # Body.
3306 #
3307 # HTTP request body. A request body is allowed only if the HTTP method is
3308 # POST or PUT. It will result in invalid argument error to set a body on a
3309 # job with an incompatible HttpMethod.
Bu Sun Kim65020912020-05-20 12:08:20 -07003310 &quot;appEngineRouting&quot;: { # App Engine Routing. # App Engine Routing setting for the job.
3311 #
3312 # For more information about services, versions, and instances see
3313 # [An Overview of App
3314 # Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
3315 # [Microservices Architecture on Google App
3316 # Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
3317 # [App Engine Standard request
3318 # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
3319 # and [App Engine Flex request
3320 # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Bu Sun Kim65020912020-05-20 12:08:20 -07003321 &quot;host&quot;: &quot;A String&quot;, # Output only. The host that the job is sent to.
3322 #
3323 # For more information about how App Engine requests are routed, see
3324 # [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
3325 #
3326 # The host is constructed as:
3327 #
3328 #
3329 # * `host = [application_domain_name]`&lt;/br&gt;
3330 # `| [service] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
3331 # `| [version] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
3332 # `| [version_dot_service]+ &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
3333 # `| [instance] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
3334 # `| [instance_dot_service] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
3335 # `| [instance_dot_version] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
3336 # `| [instance_dot_version_dot_service] + &#x27;.&#x27; + [application_domain_name]`
3337 #
3338 # * `application_domain_name` = The domain name of the app, for
3339 # example &lt;app-id&gt;.appspot.com, which is associated with the
3340 # job&#x27;s project ID.
3341 #
3342 # * `service =` service
3343 #
3344 # * `version =` version
3345 #
3346 # * `version_dot_service =`
3347 # version `+ &#x27;.&#x27; +`
3348 # service
3349 #
3350 # * `instance =` instance
3351 #
3352 # * `instance_dot_service =`
3353 # instance `+ &#x27;.&#x27; +`
3354 # service
3355 #
3356 # * `instance_dot_version =`
3357 # instance `+ &#x27;.&#x27; +`
3358 # version
3359 #
3360 # * `instance_dot_version_dot_service =`
3361 # instance `+ &#x27;.&#x27; +`
3362 # version `+ &#x27;.&#x27; +`
3363 # service
3364 #
3365 #
3366 # If service is empty, then the job will be sent
3367 # to the service which is the default service when the job is attempted.
3368 #
3369 # If version is empty, then the job will be sent
3370 # to the version which is the default version when the job is attempted.
3371 #
3372 # If instance is empty, then the job will be
3373 # sent to an instance which is available when the job is attempted.
3374 #
3375 # If service,
3376 # version, or
3377 # instance is invalid, then the job will be sent
3378 # to the default version of the default service when the job is attempted.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003379 &quot;version&quot;: &quot;A String&quot;, # App version.
3380 #
3381 # By default, the job is sent to the version which is the default
3382 # version when the job is attempted.
3383 &quot;service&quot;: &quot;A String&quot;, # App service.
3384 #
3385 # By default, the job is sent to the service which is the default
3386 # service when the job is attempted.
3387 &quot;instance&quot;: &quot;A String&quot;, # App instance.
3388 #
3389 # By default, the job is sent to an instance which is available when
3390 # the job is attempted.
3391 #
3392 # Requests can only be sent to a specific instance if
3393 # [manual scaling is used in App Engine
3394 # Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
3395 # App Engine Flex does not support instances. For more information, see
3396 # [App Engine Standard request
3397 # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
3398 # and [App Engine Flex request
3399 # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Bu Sun Kim65020912020-05-20 12:08:20 -07003400 },
3401 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003402 &quot;name&quot;: &quot;A String&quot;, # Optionally caller-specified in CreateJob, after
3403 # which it becomes output only.
3404 #
3405 # The job name. For example:
3406 # `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
3407 #
3408 # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
3409 # hyphens (-), colons (:), or periods (.).
3410 # For more information, see
3411 # [Identifying
3412 # projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
3413 # * `LOCATION_ID` is the canonical ID for the job&#x27;s location.
3414 # The list of available locations can be obtained by calling
3415 # ListLocations.
3416 # For more information, see https://cloud.google.com/about/locations/.
3417 # * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
3418 # hyphens (-), or underscores (_). The maximum length is 500 characters.
3419 &quot;lastAttemptTime&quot;: &quot;A String&quot;, # Output only. The time the last job attempt started.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003420 }</pre>
3421</div>
3422
3423<div class="method">
3424 <code class="details" id="run">run(name, body=None, x__xgafv=None)</code>
3425 <pre>Forces a job to run now.
3426
3427When this method is called, Cloud Scheduler will dispatch the job, even
3428if the job is already running.
3429
3430Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07003431 name: string, Required. The job name. For example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003432`projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. (required)
3433 body: object, The request body.
3434 The object takes the form of:
3435
3436{ # Request message for forcing a job to run now using
3437 # RunJob.
3438 }
3439
3440 x__xgafv: string, V1 error format.
3441 Allowed values
3442 1 - v1 error format
3443 2 - v2 error format
3444
3445Returns:
3446 An object of the form:
3447
3448 { # Configuration for a job.
3449 # The maximum allowed size for a job is 100KB.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003450 &quot;scheduleTime&quot;: &quot;A String&quot;, # Output only. The next time the job is scheduled. Note that this may be a
3451 # retry of a previously failed attempt or the next execution time
3452 # according to the schedule.
3453 &quot;attemptDeadline&quot;: &quot;A String&quot;, # The deadline for job attempts. If the request handler does not respond by
3454 # this deadline then the request is cancelled and the attempt is marked as a
3455 # `DEADLINE_EXCEEDED` failure. The failed attempt can be viewed in
3456 # execution logs. Cloud Scheduler will retry the job according
3457 # to the RetryConfig.
3458 #
3459 # The allowed duration for this deadline is:
3460 # * For HTTP targets, between 15 seconds and 30 minutes.
3461 # * For App Engine HTTP targets, between 15
3462 # seconds and 24 hours.
3463 &quot;pubsubTarget&quot;: { # Pub/Sub target. The job will be delivered by publishing a message to # Pub/Sub target.
3464 # the given Pub/Sub topic.
3465 &quot;topicName&quot;: &quot;A String&quot;, # Required. The name of the Cloud Pub/Sub topic to which messages will
3466 # be published when a job is delivered. The topic name must be in the
3467 # same format as required by PubSub&#x27;s
3468 # [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
3469 # for example `projects/PROJECT_ID/topics/TOPIC_ID`.
3470 #
3471 # The topic must be in the same project as the Cloud Scheduler job.
3472 &quot;data&quot;: &quot;A String&quot;, # The message payload for PubsubMessage.
3473 #
3474 # Pubsub message must contain either non-empty data, or at least one
3475 # attribute.
3476 &quot;attributes&quot;: { # Attributes for PubsubMessage.
3477 #
3478 # Pubsub message must contain either non-empty data, or at least one
3479 # attribute.
3480 &quot;a_key&quot;: &quot;A String&quot;,
3481 },
3482 },
3483 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # Output only. The response from the target for the last attempted execution.
3484 # different programming environments, including REST APIs and RPC APIs. It is
3485 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3486 # three pieces of data: error code, error message, and error details.
3487 #
3488 # You can find out more about this error model and how to work with it in the
3489 # [API Design Guide](https://cloud.google.com/apis/design/errors).
3490 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3491 # user-facing error message should be localized and sent in the
3492 # google.rpc.Status.details field, or localized by the client.
3493 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3494 # message types for APIs to use.
3495 {
3496 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3497 },
3498 ],
3499 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3500 },
3501 &quot;schedule&quot;: &quot;A String&quot;, # Required, except when used with UpdateJob.
3502 #
3503 # Describes the schedule on which the job will be executed.
3504 #
3505 # The schedule can be either of the following types:
3506 #
3507 # * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview)
3508 # * English-like
3509 # [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)
3510 #
3511 # As a general rule, execution `n + 1` of a job will not begin
3512 # until execution `n` has finished. Cloud Scheduler will never
3513 # allow two simultaneously outstanding executions. For example,
3514 # this implies that if the `n+1`th execution is scheduled to run at
3515 # 16:00 but the `n`th execution takes until 16:15, the `n+1`th
3516 # execution will not start until `16:15`.
3517 # A scheduled start time will be delayed if the previous
3518 # execution has not ended when its scheduled time occurs.
3519 #
3520 # If retry_count &gt; 0 and a job attempt fails,
3521 # the job will be tried a total of retry_count
3522 # times, with exponential backoff, until the next scheduled start
3523 # time.
Bu Sun Kim65020912020-05-20 12:08:20 -07003524 &quot;description&quot;: &quot;A String&quot;, # Optionally caller-specified in CreateJob or
3525 # UpdateJob.
3526 #
3527 # A human-readable description for the job. This string must not contain
3528 # more than 500 characters.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003529 &quot;retryConfig&quot;: { # Settings that determine the retry behavior. # Settings that determine the retry behavior.
3530 #
3531 # By default, if a job does not complete successfully (meaning that
3532 # an acknowledgement is not received from the handler, then it will be retried
3533 # with exponential backoff according to the settings in RetryConfig.
3534 &quot;maxBackoffDuration&quot;: &quot;A String&quot;, # The maximum amount of time to wait before retrying a job after
3535 # it fails.
3536 #
3537 # The default value of this field is 1 hour.
3538 &quot;minBackoffDuration&quot;: &quot;A String&quot;, # The minimum amount of time to wait before retrying a job after
3539 # it fails.
3540 #
3541 # The default value of this field is 5 seconds.
3542 &quot;retryCount&quot;: 42, # The number of attempts that the system will make to run a job using the
3543 # exponential backoff procedure described by
3544 # max_doublings.
3545 #
3546 # The default value of retry_count is zero.
3547 #
3548 # If retry_count is zero, a job attempt will *not* be retried if
3549 # it fails. Instead the Cloud Scheduler system will wait for the
3550 # next scheduled execution time.
3551 #
3552 # If retry_count is set to a non-zero number then Cloud Scheduler
3553 # will retry failed attempts, using exponential backoff,
3554 # retry_count times, or until the next scheduled execution time,
3555 # whichever comes first.
3556 #
3557 # Values greater than 5 and negative values are not allowed.
3558 &quot;maxRetryDuration&quot;: &quot;A String&quot;, # The time limit for retrying a failed job, measured from time when an
3559 # execution was first attempted. If specified with
3560 # retry_count, the job will be retried until both
3561 # limits are reached.
3562 #
3563 # The default value for max_retry_duration is zero, which means retry
3564 # duration is unlimited.
3565 &quot;maxDoublings&quot;: 42, # The time between retries will double `max_doublings` times.
3566 #
3567 # A job&#x27;s retry interval starts at
3568 # min_backoff_duration, then doubles
3569 # `max_doublings` times, then increases linearly, and finally
3570 # retries at intervals of
3571 # max_backoff_duration up to
3572 # retry_count times.
3573 #
3574 # For example, if min_backoff_duration is
3575 # 10s, max_backoff_duration is 300s, and
3576 # `max_doublings` is 3, then the a job will first be retried in 10s. The
3577 # retry interval will double three times, and then increase linearly by
3578 # 2^3 * 10s. Finally, the job will retry at intervals of
3579 # max_backoff_duration until the job has
3580 # been attempted retry_count times. Thus, the
3581 # requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
3582 #
3583 # The default value of this field is 5.
3584 },
3585 &quot;httpTarget&quot;: { # Http target. The job will be pushed to the job handler by means of # HTTP target.
3586 # an HTTP request via an http_method such as HTTP
3587 # POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
3588 # response code in the range [200 - 299]. A failure to receive a response
3589 # constitutes a failed execution. For a redirected request, the response
3590 # returned by the redirected request is considered.
3591 &quot;headers&quot;: { # The user can specify HTTP request headers to send with the job&#x27;s
3592 # HTTP request. This map contains the header field names and
3593 # values. Repeated headers are not supported, but a header value can
3594 # contain commas. These headers represent a subset of the headers
3595 # that will accompany the job&#x27;s HTTP request. Some HTTP request
3596 # headers will be ignored or replaced. A partial list of headers that
3597 # will be ignored or replaced is below:
3598 # - Host: This will be computed by Cloud Scheduler and derived from
3599 # uri.
3600 # * `Content-Length`: This will be computed by Cloud Scheduler.
3601 # * `User-Agent`: This will be set to `&quot;Google-Cloud-Scheduler&quot;`.
3602 # * `X-Google-*`: Google internal use only.
3603 # * `X-AppEngine-*`: Google internal use only.
3604 #
3605 # The total size of headers must be less than 80KB.
3606 &quot;a_key&quot;: &quot;A String&quot;,
3607 },
3608 &quot;uri&quot;: &quot;A String&quot;, # Required. The full URI path that the request will be sent to. This string
3609 # must begin with either &quot;http://&quot; or &quot;https://&quot;. Some examples of
3610 # valid values for uri are:
3611 # `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
3612 # encode some characters for safety and compatibility. The maximum allowed
3613 # URL length is 2083 characters after encoding.
3614 &quot;body&quot;: &quot;A String&quot;, # HTTP request body. A request body is allowed only if the HTTP
3615 # method is POST, PUT, or PATCH. It is an error to set body on a job with an
3616 # incompatible HttpMethod.
3617 &quot;oidcToken&quot;: { # Contains information needed for generating an # If specified, an
3618 # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
3619 # token will be generated and attached as an `Authorization` header in the
3620 # HTTP request.
3621 #
3622 # This type of authorization can be used for many scenarios, including
3623 # calling Cloud Run, or endpoints where you intend to validate the token
3624 # yourself.
3625 # [OpenID Connect
3626 # token](https://developers.google.com/identity/protocols/OpenIDConnect).
3627 # This type of authorization can be used for many scenarios, including
3628 # calling Cloud Run, or endpoints where you intend to validate the token
3629 # yourself.
3630 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
3631 # to be used for generating OIDC token.
3632 # The service account must be within the same project as the job. The caller
3633 # must have iam.serviceAccounts.actAs permission for the service account.
3634 &quot;audience&quot;: &quot;A String&quot;, # Audience to be used when generating OIDC token. If not specified, the URI
3635 # specified in target will be used.
3636 },
3637 &quot;oauthToken&quot;: { # Contains information needed for generating an # If specified, an
3638 # [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
3639 # will be generated and attached as an `Authorization` header in the HTTP
3640 # request.
3641 #
3642 # This type of authorization should generally only be used when calling
3643 # Google APIs hosted on *.googleapis.com.
3644 # [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
3645 # This type of authorization should generally only be used when calling Google
3646 # APIs hosted on *.googleapis.com.
3647 &quot;serviceAccountEmail&quot;: &quot;A String&quot;, # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
3648 # to be used for generating OAuth token.
3649 # The service account must be within the same project as the job. The caller
3650 # must have iam.serviceAccounts.actAs permission for the service account.
3651 &quot;scope&quot;: &quot;A String&quot;, # OAuth scope to be used for generating OAuth access token.
3652 # If not specified, &quot;https://www.googleapis.com/auth/cloud-platform&quot;
3653 # will be used.
3654 },
3655 &quot;httpMethod&quot;: &quot;A String&quot;, # Which HTTP method to use for the request.
3656 },
3657 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the job.
3658 &quot;userUpdateTime&quot;: &quot;A String&quot;, # Output only. The creation time of the job.
3659 &quot;timeZone&quot;: &quot;A String&quot;, # Specifies the time zone to be used in interpreting
3660 # schedule. The value of this field must be a time
3661 # zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).
3662 #
3663 # Note that some time zones include a provision for
3664 # daylight savings time. The rules for daylight saving time are
3665 # determined by the chosen tz. For UTC use the string &quot;utc&quot;. If a
3666 # time zone is not specified, the default will be in UTC (also known
3667 # as GMT).
Bu Sun Kim65020912020-05-20 12:08:20 -07003668 &quot;appEngineHttpTarget&quot;: { # App Engine target. The job will be pushed to a job handler by means # App Engine HTTP target.
3669 # of an HTTP request via an http_method such
3670 # as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an
3671 # HTTP response code in the range [200 - 299]. Error 503 is
3672 # considered an App Engine system error instead of an application
3673 # error. Requests returning error 503 will be retried regardless of
3674 # retry configuration and not counted against retry counts. Any other
3675 # response code, or a failure to receive a response before the
3676 # deadline, constitutes a failed attempt.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003677 &quot;relativeUri&quot;: &quot;A String&quot;, # The relative URI.
3678 #
3679 # The relative URL must begin with &quot;/&quot; and must be a valid HTTP relative URL.
3680 # It can contain a path, query string arguments, and `#` fragments.
3681 # If the relative URL is empty, then the root path &quot;/&quot; will be used.
3682 # No spaces are allowed, and the maximum length allowed is 2083 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07003683 &quot;headers&quot;: { # HTTP request headers.
3684 #
3685 # This map contains the header field names and values. Headers can be set
3686 # when the job is created.
3687 #
3688 # Cloud Scheduler sets some headers to default values:
3689 #
3690 # * `User-Agent`: By default, this header is
3691 # `&quot;AppEngine-Google; (+http://code.google.com/appengine)&quot;`.
3692 # This header can be modified, but Cloud Scheduler will append
3693 # `&quot;AppEngine-Google; (+http://code.google.com/appengine)&quot;` to the
3694 # modified `User-Agent`.
3695 # * `X-CloudScheduler`: This header will be set to true.
3696 #
3697 # If the job has an body, Cloud Scheduler sets
3698 # the following headers:
3699 #
3700 # * `Content-Type`: By default, the `Content-Type` header is set to
3701 # `&quot;application/octet-stream&quot;`. The default can be overridden by explictly
3702 # setting `Content-Type` to a particular media type when the job is
3703 # created.
3704 # For example, `Content-Type` can be set to `&quot;application/json&quot;`.
3705 # * `Content-Length`: This is computed by Cloud Scheduler. This value is
3706 # output only. It cannot be changed.
3707 #
3708 # The headers below are output only. They cannot be set or overridden:
3709 #
3710 # * `X-Google-*`: For Google internal use only.
3711 # * `X-AppEngine-*`: For Google internal use only.
3712 #
3713 # In addition, some App Engine headers, which contain
3714 # job-specific information, are also be sent to the job handler.
3715 &quot;a_key&quot;: &quot;A String&quot;,
3716 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003717 &quot;httpMethod&quot;: &quot;A String&quot;, # The HTTP method to use for the request. PATCH and OPTIONS are not
3718 # permitted.
3719 &quot;body&quot;: &quot;A String&quot;, # Body.
3720 #
3721 # HTTP request body. A request body is allowed only if the HTTP method is
3722 # POST or PUT. It will result in invalid argument error to set a body on a
3723 # job with an incompatible HttpMethod.
Bu Sun Kim65020912020-05-20 12:08:20 -07003724 &quot;appEngineRouting&quot;: { # App Engine Routing. # App Engine Routing setting for the job.
3725 #
3726 # For more information about services, versions, and instances see
3727 # [An Overview of App
3728 # Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
3729 # [Microservices Architecture on Google App
3730 # Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
3731 # [App Engine Standard request
3732 # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
3733 # and [App Engine Flex request
3734 # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Bu Sun Kim65020912020-05-20 12:08:20 -07003735 &quot;host&quot;: &quot;A String&quot;, # Output only. The host that the job is sent to.
3736 #
3737 # For more information about how App Engine requests are routed, see
3738 # [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
3739 #
3740 # The host is constructed as:
3741 #
3742 #
3743 # * `host = [application_domain_name]`&lt;/br&gt;
3744 # `| [service] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
3745 # `| [version] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
3746 # `| [version_dot_service]+ &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
3747 # `| [instance] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
3748 # `| [instance_dot_service] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
3749 # `| [instance_dot_version] + &#x27;.&#x27; + [application_domain_name]`&lt;/br&gt;
3750 # `| [instance_dot_version_dot_service] + &#x27;.&#x27; + [application_domain_name]`
3751 #
3752 # * `application_domain_name` = The domain name of the app, for
3753 # example &lt;app-id&gt;.appspot.com, which is associated with the
3754 # job&#x27;s project ID.
3755 #
3756 # * `service =` service
3757 #
3758 # * `version =` version
3759 #
3760 # * `version_dot_service =`
3761 # version `+ &#x27;.&#x27; +`
3762 # service
3763 #
3764 # * `instance =` instance
3765 #
3766 # * `instance_dot_service =`
3767 # instance `+ &#x27;.&#x27; +`
3768 # service
3769 #
3770 # * `instance_dot_version =`
3771 # instance `+ &#x27;.&#x27; +`
3772 # version
3773 #
3774 # * `instance_dot_version_dot_service =`
3775 # instance `+ &#x27;.&#x27; +`
3776 # version `+ &#x27;.&#x27; +`
3777 # service
3778 #
3779 #
3780 # If service is empty, then the job will be sent
3781 # to the service which is the default service when the job is attempted.
3782 #
3783 # If version is empty, then the job will be sent
3784 # to the version which is the default version when the job is attempted.
3785 #
3786 # If instance is empty, then the job will be
3787 # sent to an instance which is available when the job is attempted.
3788 #
3789 # If service,
3790 # version, or
3791 # instance is invalid, then the job will be sent
3792 # to the default version of the default service when the job is attempted.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003793 &quot;version&quot;: &quot;A String&quot;, # App version.
3794 #
3795 # By default, the job is sent to the version which is the default
3796 # version when the job is attempted.
3797 &quot;service&quot;: &quot;A String&quot;, # App service.
3798 #
3799 # By default, the job is sent to the service which is the default
3800 # service when the job is attempted.
3801 &quot;instance&quot;: &quot;A String&quot;, # App instance.
3802 #
3803 # By default, the job is sent to an instance which is available when
3804 # the job is attempted.
3805 #
3806 # Requests can only be sent to a specific instance if
3807 # [manual scaling is used in App Engine
3808 # Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
3809 # App Engine Flex does not support instances. For more information, see
3810 # [App Engine Standard request
3811 # routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
3812 # and [App Engine Flex request
3813 # routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
Bu Sun Kim65020912020-05-20 12:08:20 -07003814 },
3815 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003816 &quot;name&quot;: &quot;A String&quot;, # Optionally caller-specified in CreateJob, after
3817 # which it becomes output only.
3818 #
3819 # The job name. For example:
3820 # `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
3821 #
3822 # * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
3823 # hyphens (-), colons (:), or periods (.).
3824 # For more information, see
3825 # [Identifying
3826 # projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
3827 # * `LOCATION_ID` is the canonical ID for the job&#x27;s location.
3828 # The list of available locations can be obtained by calling
3829 # ListLocations.
3830 # For more information, see https://cloud.google.com/about/locations/.
3831 # * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
3832 # hyphens (-), or underscores (_). The maximum length is 500 characters.
3833 &quot;lastAttemptTime&quot;: &quot;A String&quot;, # Output only. The time the last job attempt started.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003834 }</pre>
3835</div>
3836
3837</body></html>