docs: update docs (#916)
* fix: re-run script
* test: fix noxfile
diff --git a/docs/dyn/cloudtasks_v2.projects.locations.queues.tasks.html b/docs/dyn/cloudtasks_v2.projects.locations.queues.tasks.html
index 61f67bf..23a392b 100644
--- a/docs/dyn/cloudtasks_v2.projects.locations.queues.tasks.html
+++ b/docs/dyn/cloudtasks_v2.projects.locations.queues.tasks.html
@@ -155,12 +155,6 @@
# task commands. The infrastructure relies on an approximately
# uniform distribution of task ids to store and serve tasks
# efficiently.
- "scheduleTime": "A String", # The time when the task is scheduled to be attempted or retried.
- #
- # `schedule_time` will be truncated to the nearest microsecond.
- "createTime": "A String", # Output only. The time that the task was created.
- #
- # `create_time` will be truncated to the nearest second.
"httpRequest": { # HTTP request. # HTTP request that is sent to the worker.
#
# An HTTP task is a task that has HttpRequest set.
@@ -191,33 +185,6 @@
# if large numbers of tasks suddenly become available to dispatch (due to
# spikes in create task rates, the queue being unpaused, or many tasks
# that are scheduled at the same time).
- "oidcToken": { # Contains information needed for generating an # If specified, an
- # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
- # token will be generated and attached as an `Authorization` header in the
- # HTTP request.
- #
- # This type of authorization can be used for many scenarios, including
- # calling Cloud Run, or endpoints where you intend to validate the token
- # yourself.
- # [OpenID Connect
- # token](https://developers.google.com/identity/protocols/OpenIDConnect).
- # This type of authorization can be used for many scenarios, including
- # calling Cloud Run, or endpoints where you intend to validate the token
- # yourself.
- "audience": "A String", # Audience to be used when generating OIDC token. If not specified, the URI
- # specified in target will be used.
- "serviceAccountEmail": "A String", # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
- # to be used for generating OIDC token.
- # The service account must be within the same project as the queue. The
- # caller must have iam.serviceAccounts.actAs permission for the service
- # account.
- },
- "httpMethod": "A String", # The HTTP method to use for the request. The default is POST.
- "body": "A String", # HTTP request body.
- #
- # A request body is allowed only if the
- # HTTP method is POST, PUT, or PATCH. It is an
- # error to set body on a task with an incompatible HttpMethod.
"oauthToken": { # Contains information needed for generating an # If specified, an
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
# will be generated and attached as an `Authorization` header in the HTTP
@@ -228,14 +195,14 @@
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
# This type of authorization should generally only be used when calling Google
# APIs hosted on *.googleapis.com.
+ "scope": "A String", # OAuth scope to be used for generating OAuth access token.
+ # If not specified, "https://www.googleapis.com/auth/cloud-platform"
+ # will be used.
"serviceAccountEmail": "A String", # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
# to be used for generating OAuth token.
# The service account must be within the same project as the queue. The
# caller must have iam.serviceAccounts.actAs permission for the service
# account.
- "scope": "A String", # OAuth scope to be used for generating OAuth access token.
- # If not specified, "https://www.googleapis.com/auth/cloud-platform"
- # will be used.
},
"headers": { # HTTP request headers.
#
@@ -276,6 +243,33 @@
#
# The `Location` header response from a redirect response [`300` - `399`]
# may be followed. The redirect is not counted as a separate attempt.
+ "oidcToken": { # Contains information needed for generating an # If specified, an
+ # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
+ # token will be generated and attached as an `Authorization` header in the
+ # HTTP request.
+ #
+ # This type of authorization can be used for many scenarios, including
+ # calling Cloud Run, or endpoints where you intend to validate the token
+ # yourself.
+ # [OpenID Connect
+ # token](https://developers.google.com/identity/protocols/OpenIDConnect).
+ # This type of authorization can be used for many scenarios, including
+ # calling Cloud Run, or endpoints where you intend to validate the token
+ # yourself.
+ "audience": "A String", # Audience to be used when generating OIDC token. If not specified, the URI
+ # specified in target will be used.
+ "serviceAccountEmail": "A String", # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
+ # to be used for generating OIDC token.
+ # The service account must be within the same project as the queue. The
+ # caller must have iam.serviceAccounts.actAs permission for the service
+ # account.
+ },
+ "httpMethod": "A String", # The HTTP method to use for the request. The default is POST.
+ "body": "A String", # HTTP request body.
+ #
+ # A request body is allowed only if the
+ # HTTP method is POST, PUT, or PATCH. It is an
+ # error to set body on a task with an incompatible HttpMethod.
},
"name": "A String", # Optionally caller-specified in CreateTask.
#
@@ -336,12 +330,6 @@
#
# Only dispatch_time will be set.
# The other Attempt information is not retained by Cloud Tasks.
- "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
- #
- # `schedule_time` will be truncated to the nearest microsecond.
- "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
- #
- # `dispatch_time` will be truncated to the nearest microsecond.
"responseTime": "A String", # Output only. The time that this attempt response was received.
#
# `response_time` will be truncated to the nearest microsecond.
@@ -366,14 +354,14 @@
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
},
+ "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
+ #
+ # `schedule_time` will be truncated to the nearest microsecond.
+ "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
+ #
+ # `dispatch_time` will be truncated to the nearest microsecond.
},
"lastAttempt": { # The status of a task attempt. # Output only. The status of the task's last attempt.
- "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
- #
- # `schedule_time` will be truncated to the nearest microsecond.
- "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
- #
- # `dispatch_time` will be truncated to the nearest microsecond.
"responseTime": "A String", # Output only. The time that this attempt response was received.
#
# `response_time` will be truncated to the nearest microsecond.
@@ -398,6 +386,12 @@
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
},
+ "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
+ #
+ # `schedule_time` will be truncated to the nearest microsecond.
+ "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
+ #
+ # `dispatch_time` will be truncated to the nearest microsecond.
},
"responseCount": 42, # Output only. The number of attempts which have received a response.
"appEngineHttpRequest": { # App Engine HTTP request. # HTTP request that is sent to the App Engine app handler.
@@ -462,12 +456,6 @@
# the queue's dispatches. Unlike other types of task targets, a `429` (Too Many
# Requests) response from an app handler does not cause traffic congestion
# control to throttle the queue.
- "relativeUri": "A String", # The relative URI.
- #
- # The relative URI must begin with "/" and must be a valid HTTP relative URI.
- # It can contain a path and query string arguments.
- # If the relative URI is empty, then the root path "/" will be used.
- # No spaces are allowed, and the maximum length allowed is 2083 characters.
"headers": { # HTTP request headers.
#
# This map contains the header field names and values.
@@ -607,9 +595,21 @@
#
# A request body is allowed only if the HTTP method is POST or PUT. It is
# an error to set a body on a task with an incompatible HttpMethod.
+ "relativeUri": "A String", # The relative URI.
+ #
+ # The relative URI must begin with "/" and must be a valid HTTP relative URI.
+ # It can contain a path and query string arguments.
+ # If the relative URI is empty, then the root path "/" will be used.
+ # No spaces are allowed, and the maximum length allowed is 2083 characters.
},
"view": "A String", # Output only. The view specifies which subset of the Task has
# been returned.
+ "scheduleTime": "A String", # The time when the task is scheduled to be attempted or retried.
+ #
+ # `schedule_time` will be truncated to the nearest microsecond.
+ "createTime": "A String", # Output only. The time that the task was created.
+ #
+ # `create_time` will be truncated to the nearest second.
},
}
@@ -622,12 +622,6 @@
An object of the form:
{ # A unit of scheduled work.
- "scheduleTime": "A String", # The time when the task is scheduled to be attempted or retried.
- #
- # `schedule_time` will be truncated to the nearest microsecond.
- "createTime": "A String", # Output only. The time that the task was created.
- #
- # `create_time` will be truncated to the nearest second.
"httpRequest": { # HTTP request. # HTTP request that is sent to the worker.
#
# An HTTP task is a task that has HttpRequest set.
@@ -658,33 +652,6 @@
# if large numbers of tasks suddenly become available to dispatch (due to
# spikes in create task rates, the queue being unpaused, or many tasks
# that are scheduled at the same time).
- "oidcToken": { # Contains information needed for generating an # If specified, an
- # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
- # token will be generated and attached as an `Authorization` header in the
- # HTTP request.
- #
- # This type of authorization can be used for many scenarios, including
- # calling Cloud Run, or endpoints where you intend to validate the token
- # yourself.
- # [OpenID Connect
- # token](https://developers.google.com/identity/protocols/OpenIDConnect).
- # This type of authorization can be used for many scenarios, including
- # calling Cloud Run, or endpoints where you intend to validate the token
- # yourself.
- "audience": "A String", # Audience to be used when generating OIDC token. If not specified, the URI
- # specified in target will be used.
- "serviceAccountEmail": "A String", # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
- # to be used for generating OIDC token.
- # The service account must be within the same project as the queue. The
- # caller must have iam.serviceAccounts.actAs permission for the service
- # account.
- },
- "httpMethod": "A String", # The HTTP method to use for the request. The default is POST.
- "body": "A String", # HTTP request body.
- #
- # A request body is allowed only if the
- # HTTP method is POST, PUT, or PATCH. It is an
- # error to set body on a task with an incompatible HttpMethod.
"oauthToken": { # Contains information needed for generating an # If specified, an
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
# will be generated and attached as an `Authorization` header in the HTTP
@@ -695,14 +662,14 @@
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
# This type of authorization should generally only be used when calling Google
# APIs hosted on *.googleapis.com.
+ "scope": "A String", # OAuth scope to be used for generating OAuth access token.
+ # If not specified, "https://www.googleapis.com/auth/cloud-platform"
+ # will be used.
"serviceAccountEmail": "A String", # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
# to be used for generating OAuth token.
# The service account must be within the same project as the queue. The
# caller must have iam.serviceAccounts.actAs permission for the service
# account.
- "scope": "A String", # OAuth scope to be used for generating OAuth access token.
- # If not specified, "https://www.googleapis.com/auth/cloud-platform"
- # will be used.
},
"headers": { # HTTP request headers.
#
@@ -743,6 +710,33 @@
#
# The `Location` header response from a redirect response [`300` - `399`]
# may be followed. The redirect is not counted as a separate attempt.
+ "oidcToken": { # Contains information needed for generating an # If specified, an
+ # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
+ # token will be generated and attached as an `Authorization` header in the
+ # HTTP request.
+ #
+ # This type of authorization can be used for many scenarios, including
+ # calling Cloud Run, or endpoints where you intend to validate the token
+ # yourself.
+ # [OpenID Connect
+ # token](https://developers.google.com/identity/protocols/OpenIDConnect).
+ # This type of authorization can be used for many scenarios, including
+ # calling Cloud Run, or endpoints where you intend to validate the token
+ # yourself.
+ "audience": "A String", # Audience to be used when generating OIDC token. If not specified, the URI
+ # specified in target will be used.
+ "serviceAccountEmail": "A String", # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
+ # to be used for generating OIDC token.
+ # The service account must be within the same project as the queue. The
+ # caller must have iam.serviceAccounts.actAs permission for the service
+ # account.
+ },
+ "httpMethod": "A String", # The HTTP method to use for the request. The default is POST.
+ "body": "A String", # HTTP request body.
+ #
+ # A request body is allowed only if the
+ # HTTP method is POST, PUT, or PATCH. It is an
+ # error to set body on a task with an incompatible HttpMethod.
},
"name": "A String", # Optionally caller-specified in CreateTask.
#
@@ -803,12 +797,6 @@
#
# Only dispatch_time will be set.
# The other Attempt information is not retained by Cloud Tasks.
- "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
- #
- # `schedule_time` will be truncated to the nearest microsecond.
- "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
- #
- # `dispatch_time` will be truncated to the nearest microsecond.
"responseTime": "A String", # Output only. The time that this attempt response was received.
#
# `response_time` will be truncated to the nearest microsecond.
@@ -833,14 +821,14 @@
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
},
+ "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
+ #
+ # `schedule_time` will be truncated to the nearest microsecond.
+ "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
+ #
+ # `dispatch_time` will be truncated to the nearest microsecond.
},
"lastAttempt": { # The status of a task attempt. # Output only. The status of the task's last attempt.
- "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
- #
- # `schedule_time` will be truncated to the nearest microsecond.
- "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
- #
- # `dispatch_time` will be truncated to the nearest microsecond.
"responseTime": "A String", # Output only. The time that this attempt response was received.
#
# `response_time` will be truncated to the nearest microsecond.
@@ -865,6 +853,12 @@
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
},
+ "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
+ #
+ # `schedule_time` will be truncated to the nearest microsecond.
+ "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
+ #
+ # `dispatch_time` will be truncated to the nearest microsecond.
},
"responseCount": 42, # Output only. The number of attempts which have received a response.
"appEngineHttpRequest": { # App Engine HTTP request. # HTTP request that is sent to the App Engine app handler.
@@ -929,12 +923,6 @@
# the queue's dispatches. Unlike other types of task targets, a `429` (Too Many
# Requests) response from an app handler does not cause traffic congestion
# control to throttle the queue.
- "relativeUri": "A String", # The relative URI.
- #
- # The relative URI must begin with "/" and must be a valid HTTP relative URI.
- # It can contain a path and query string arguments.
- # If the relative URI is empty, then the root path "/" will be used.
- # No spaces are allowed, and the maximum length allowed is 2083 characters.
"headers": { # HTTP request headers.
#
# This map contains the header field names and values.
@@ -1074,9 +1062,21 @@
#
# A request body is allowed only if the HTTP method is POST or PUT. It is
# an error to set a body on a task with an incompatible HttpMethod.
+ "relativeUri": "A String", # The relative URI.
+ #
+ # The relative URI must begin with "/" and must be a valid HTTP relative URI.
+ # It can contain a path and query string arguments.
+ # If the relative URI is empty, then the root path "/" will be used.
+ # No spaces are allowed, and the maximum length allowed is 2083 characters.
},
"view": "A String", # Output only. The view specifies which subset of the Task has
# been returned.
+ "scheduleTime": "A String", # The time when the task is scheduled to be attempted or retried.
+ #
+ # `schedule_time` will be truncated to the nearest microsecond.
+ "createTime": "A String", # Output only. The time that the task was created.
+ #
+ # `create_time` will be truncated to the nearest second.
}</pre>
</div>
@@ -1139,12 +1139,6 @@
An object of the form:
{ # A unit of scheduled work.
- "scheduleTime": "A String", # The time when the task is scheduled to be attempted or retried.
- #
- # `schedule_time` will be truncated to the nearest microsecond.
- "createTime": "A String", # Output only. The time that the task was created.
- #
- # `create_time` will be truncated to the nearest second.
"httpRequest": { # HTTP request. # HTTP request that is sent to the worker.
#
# An HTTP task is a task that has HttpRequest set.
@@ -1175,33 +1169,6 @@
# if large numbers of tasks suddenly become available to dispatch (due to
# spikes in create task rates, the queue being unpaused, or many tasks
# that are scheduled at the same time).
- "oidcToken": { # Contains information needed for generating an # If specified, an
- # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
- # token will be generated and attached as an `Authorization` header in the
- # HTTP request.
- #
- # This type of authorization can be used for many scenarios, including
- # calling Cloud Run, or endpoints where you intend to validate the token
- # yourself.
- # [OpenID Connect
- # token](https://developers.google.com/identity/protocols/OpenIDConnect).
- # This type of authorization can be used for many scenarios, including
- # calling Cloud Run, or endpoints where you intend to validate the token
- # yourself.
- "audience": "A String", # Audience to be used when generating OIDC token. If not specified, the URI
- # specified in target will be used.
- "serviceAccountEmail": "A String", # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
- # to be used for generating OIDC token.
- # The service account must be within the same project as the queue. The
- # caller must have iam.serviceAccounts.actAs permission for the service
- # account.
- },
- "httpMethod": "A String", # The HTTP method to use for the request. The default is POST.
- "body": "A String", # HTTP request body.
- #
- # A request body is allowed only if the
- # HTTP method is POST, PUT, or PATCH. It is an
- # error to set body on a task with an incompatible HttpMethod.
"oauthToken": { # Contains information needed for generating an # If specified, an
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
# will be generated and attached as an `Authorization` header in the HTTP
@@ -1212,14 +1179,14 @@
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
# This type of authorization should generally only be used when calling Google
# APIs hosted on *.googleapis.com.
+ "scope": "A String", # OAuth scope to be used for generating OAuth access token.
+ # If not specified, "https://www.googleapis.com/auth/cloud-platform"
+ # will be used.
"serviceAccountEmail": "A String", # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
# to be used for generating OAuth token.
# The service account must be within the same project as the queue. The
# caller must have iam.serviceAccounts.actAs permission for the service
# account.
- "scope": "A String", # OAuth scope to be used for generating OAuth access token.
- # If not specified, "https://www.googleapis.com/auth/cloud-platform"
- # will be used.
},
"headers": { # HTTP request headers.
#
@@ -1260,6 +1227,33 @@
#
# The `Location` header response from a redirect response [`300` - `399`]
# may be followed. The redirect is not counted as a separate attempt.
+ "oidcToken": { # Contains information needed for generating an # If specified, an
+ # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
+ # token will be generated and attached as an `Authorization` header in the
+ # HTTP request.
+ #
+ # This type of authorization can be used for many scenarios, including
+ # calling Cloud Run, or endpoints where you intend to validate the token
+ # yourself.
+ # [OpenID Connect
+ # token](https://developers.google.com/identity/protocols/OpenIDConnect).
+ # This type of authorization can be used for many scenarios, including
+ # calling Cloud Run, or endpoints where you intend to validate the token
+ # yourself.
+ "audience": "A String", # Audience to be used when generating OIDC token. If not specified, the URI
+ # specified in target will be used.
+ "serviceAccountEmail": "A String", # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
+ # to be used for generating OIDC token.
+ # The service account must be within the same project as the queue. The
+ # caller must have iam.serviceAccounts.actAs permission for the service
+ # account.
+ },
+ "httpMethod": "A String", # The HTTP method to use for the request. The default is POST.
+ "body": "A String", # HTTP request body.
+ #
+ # A request body is allowed only if the
+ # HTTP method is POST, PUT, or PATCH. It is an
+ # error to set body on a task with an incompatible HttpMethod.
},
"name": "A String", # Optionally caller-specified in CreateTask.
#
@@ -1320,12 +1314,6 @@
#
# Only dispatch_time will be set.
# The other Attempt information is not retained by Cloud Tasks.
- "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
- #
- # `schedule_time` will be truncated to the nearest microsecond.
- "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
- #
- # `dispatch_time` will be truncated to the nearest microsecond.
"responseTime": "A String", # Output only. The time that this attempt response was received.
#
# `response_time` will be truncated to the nearest microsecond.
@@ -1350,14 +1338,14 @@
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
},
+ "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
+ #
+ # `schedule_time` will be truncated to the nearest microsecond.
+ "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
+ #
+ # `dispatch_time` will be truncated to the nearest microsecond.
},
"lastAttempt": { # The status of a task attempt. # Output only. The status of the task's last attempt.
- "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
- #
- # `schedule_time` will be truncated to the nearest microsecond.
- "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
- #
- # `dispatch_time` will be truncated to the nearest microsecond.
"responseTime": "A String", # Output only. The time that this attempt response was received.
#
# `response_time` will be truncated to the nearest microsecond.
@@ -1382,6 +1370,12 @@
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
},
+ "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
+ #
+ # `schedule_time` will be truncated to the nearest microsecond.
+ "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
+ #
+ # `dispatch_time` will be truncated to the nearest microsecond.
},
"responseCount": 42, # Output only. The number of attempts which have received a response.
"appEngineHttpRequest": { # App Engine HTTP request. # HTTP request that is sent to the App Engine app handler.
@@ -1446,12 +1440,6 @@
# the queue's dispatches. Unlike other types of task targets, a `429` (Too Many
# Requests) response from an app handler does not cause traffic congestion
# control to throttle the queue.
- "relativeUri": "A String", # The relative URI.
- #
- # The relative URI must begin with "/" and must be a valid HTTP relative URI.
- # It can contain a path and query string arguments.
- # If the relative URI is empty, then the root path "/" will be used.
- # No spaces are allowed, and the maximum length allowed is 2083 characters.
"headers": { # HTTP request headers.
#
# This map contains the header field names and values.
@@ -1591,9 +1579,21 @@
#
# A request body is allowed only if the HTTP method is POST or PUT. It is
# an error to set a body on a task with an incompatible HttpMethod.
+ "relativeUri": "A String", # The relative URI.
+ #
+ # The relative URI must begin with "/" and must be a valid HTTP relative URI.
+ # It can contain a path and query string arguments.
+ # If the relative URI is empty, then the root path "/" will be used.
+ # No spaces are allowed, and the maximum length allowed is 2083 characters.
},
"view": "A String", # Output only. The view specifies which subset of the Task has
# been returned.
+ "scheduleTime": "A String", # The time when the task is scheduled to be attempted or retried.
+ #
+ # `schedule_time` will be truncated to the nearest microsecond.
+ "createTime": "A String", # Output only. The time that the task was created.
+ #
+ # `create_time` will be truncated to the nearest second.
}</pre>
</div>
@@ -1652,12 +1652,6 @@
{ # Response message for listing tasks using ListTasks.
"tasks": [ # The list of tasks.
{ # A unit of scheduled work.
- "scheduleTime": "A String", # The time when the task is scheduled to be attempted or retried.
- #
- # `schedule_time` will be truncated to the nearest microsecond.
- "createTime": "A String", # Output only. The time that the task was created.
- #
- # `create_time` will be truncated to the nearest second.
"httpRequest": { # HTTP request. # HTTP request that is sent to the worker.
#
# An HTTP task is a task that has HttpRequest set.
@@ -1688,33 +1682,6 @@
# if large numbers of tasks suddenly become available to dispatch (due to
# spikes in create task rates, the queue being unpaused, or many tasks
# that are scheduled at the same time).
- "oidcToken": { # Contains information needed for generating an # If specified, an
- # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
- # token will be generated and attached as an `Authorization` header in the
- # HTTP request.
- #
- # This type of authorization can be used for many scenarios, including
- # calling Cloud Run, or endpoints where you intend to validate the token
- # yourself.
- # [OpenID Connect
- # token](https://developers.google.com/identity/protocols/OpenIDConnect).
- # This type of authorization can be used for many scenarios, including
- # calling Cloud Run, or endpoints where you intend to validate the token
- # yourself.
- "audience": "A String", # Audience to be used when generating OIDC token. If not specified, the URI
- # specified in target will be used.
- "serviceAccountEmail": "A String", # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
- # to be used for generating OIDC token.
- # The service account must be within the same project as the queue. The
- # caller must have iam.serviceAccounts.actAs permission for the service
- # account.
- },
- "httpMethod": "A String", # The HTTP method to use for the request. The default is POST.
- "body": "A String", # HTTP request body.
- #
- # A request body is allowed only if the
- # HTTP method is POST, PUT, or PATCH. It is an
- # error to set body on a task with an incompatible HttpMethod.
"oauthToken": { # Contains information needed for generating an # If specified, an
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
# will be generated and attached as an `Authorization` header in the HTTP
@@ -1725,14 +1692,14 @@
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
# This type of authorization should generally only be used when calling Google
# APIs hosted on *.googleapis.com.
+ "scope": "A String", # OAuth scope to be used for generating OAuth access token.
+ # If not specified, "https://www.googleapis.com/auth/cloud-platform"
+ # will be used.
"serviceAccountEmail": "A String", # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
# to be used for generating OAuth token.
# The service account must be within the same project as the queue. The
# caller must have iam.serviceAccounts.actAs permission for the service
# account.
- "scope": "A String", # OAuth scope to be used for generating OAuth access token.
- # If not specified, "https://www.googleapis.com/auth/cloud-platform"
- # will be used.
},
"headers": { # HTTP request headers.
#
@@ -1773,6 +1740,33 @@
#
# The `Location` header response from a redirect response [`300` - `399`]
# may be followed. The redirect is not counted as a separate attempt.
+ "oidcToken": { # Contains information needed for generating an # If specified, an
+ # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
+ # token will be generated and attached as an `Authorization` header in the
+ # HTTP request.
+ #
+ # This type of authorization can be used for many scenarios, including
+ # calling Cloud Run, or endpoints where you intend to validate the token
+ # yourself.
+ # [OpenID Connect
+ # token](https://developers.google.com/identity/protocols/OpenIDConnect).
+ # This type of authorization can be used for many scenarios, including
+ # calling Cloud Run, or endpoints where you intend to validate the token
+ # yourself.
+ "audience": "A String", # Audience to be used when generating OIDC token. If not specified, the URI
+ # specified in target will be used.
+ "serviceAccountEmail": "A String", # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
+ # to be used for generating OIDC token.
+ # The service account must be within the same project as the queue. The
+ # caller must have iam.serviceAccounts.actAs permission for the service
+ # account.
+ },
+ "httpMethod": "A String", # The HTTP method to use for the request. The default is POST.
+ "body": "A String", # HTTP request body.
+ #
+ # A request body is allowed only if the
+ # HTTP method is POST, PUT, or PATCH. It is an
+ # error to set body on a task with an incompatible HttpMethod.
},
"name": "A String", # Optionally caller-specified in CreateTask.
#
@@ -1833,12 +1827,6 @@
#
# Only dispatch_time will be set.
# The other Attempt information is not retained by Cloud Tasks.
- "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
- #
- # `schedule_time` will be truncated to the nearest microsecond.
- "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
- #
- # `dispatch_time` will be truncated to the nearest microsecond.
"responseTime": "A String", # Output only. The time that this attempt response was received.
#
# `response_time` will be truncated to the nearest microsecond.
@@ -1863,14 +1851,14 @@
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
},
+ "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
+ #
+ # `schedule_time` will be truncated to the nearest microsecond.
+ "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
+ #
+ # `dispatch_time` will be truncated to the nearest microsecond.
},
"lastAttempt": { # The status of a task attempt. # Output only. The status of the task's last attempt.
- "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
- #
- # `schedule_time` will be truncated to the nearest microsecond.
- "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
- #
- # `dispatch_time` will be truncated to the nearest microsecond.
"responseTime": "A String", # Output only. The time that this attempt response was received.
#
# `response_time` will be truncated to the nearest microsecond.
@@ -1895,6 +1883,12 @@
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
},
+ "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
+ #
+ # `schedule_time` will be truncated to the nearest microsecond.
+ "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
+ #
+ # `dispatch_time` will be truncated to the nearest microsecond.
},
"responseCount": 42, # Output only. The number of attempts which have received a response.
"appEngineHttpRequest": { # App Engine HTTP request. # HTTP request that is sent to the App Engine app handler.
@@ -1959,12 +1953,6 @@
# the queue's dispatches. Unlike other types of task targets, a `429` (Too Many
# Requests) response from an app handler does not cause traffic congestion
# control to throttle the queue.
- "relativeUri": "A String", # The relative URI.
- #
- # The relative URI must begin with "/" and must be a valid HTTP relative URI.
- # It can contain a path and query string arguments.
- # If the relative URI is empty, then the root path "/" will be used.
- # No spaces are allowed, and the maximum length allowed is 2083 characters.
"headers": { # HTTP request headers.
#
# This map contains the header field names and values.
@@ -2104,9 +2092,21 @@
#
# A request body is allowed only if the HTTP method is POST or PUT. It is
# an error to set a body on a task with an incompatible HttpMethod.
+ "relativeUri": "A String", # The relative URI.
+ #
+ # The relative URI must begin with "/" and must be a valid HTTP relative URI.
+ # It can contain a path and query string arguments.
+ # If the relative URI is empty, then the root path "/" will be used.
+ # No spaces are allowed, and the maximum length allowed is 2083 characters.
},
"view": "A String", # Output only. The view specifies which subset of the Task has
# been returned.
+ "scheduleTime": "A String", # The time when the task is scheduled to be attempted or retried.
+ #
+ # `schedule_time` will be truncated to the nearest microsecond.
+ "createTime": "A String", # Output only. The time that the task was created.
+ #
+ # `create_time` will be truncated to the nearest second.
},
],
"nextPageToken": "A String", # A token to retrieve next page of results.
@@ -2191,12 +2191,6 @@
An object of the form:
{ # A unit of scheduled work.
- "scheduleTime": "A String", # The time when the task is scheduled to be attempted or retried.
- #
- # `schedule_time` will be truncated to the nearest microsecond.
- "createTime": "A String", # Output only. The time that the task was created.
- #
- # `create_time` will be truncated to the nearest second.
"httpRequest": { # HTTP request. # HTTP request that is sent to the worker.
#
# An HTTP task is a task that has HttpRequest set.
@@ -2227,33 +2221,6 @@
# if large numbers of tasks suddenly become available to dispatch (due to
# spikes in create task rates, the queue being unpaused, or many tasks
# that are scheduled at the same time).
- "oidcToken": { # Contains information needed for generating an # If specified, an
- # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
- # token will be generated and attached as an `Authorization` header in the
- # HTTP request.
- #
- # This type of authorization can be used for many scenarios, including
- # calling Cloud Run, or endpoints where you intend to validate the token
- # yourself.
- # [OpenID Connect
- # token](https://developers.google.com/identity/protocols/OpenIDConnect).
- # This type of authorization can be used for many scenarios, including
- # calling Cloud Run, or endpoints where you intend to validate the token
- # yourself.
- "audience": "A String", # Audience to be used when generating OIDC token. If not specified, the URI
- # specified in target will be used.
- "serviceAccountEmail": "A String", # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
- # to be used for generating OIDC token.
- # The service account must be within the same project as the queue. The
- # caller must have iam.serviceAccounts.actAs permission for the service
- # account.
- },
- "httpMethod": "A String", # The HTTP method to use for the request. The default is POST.
- "body": "A String", # HTTP request body.
- #
- # A request body is allowed only if the
- # HTTP method is POST, PUT, or PATCH. It is an
- # error to set body on a task with an incompatible HttpMethod.
"oauthToken": { # Contains information needed for generating an # If specified, an
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
# will be generated and attached as an `Authorization` header in the HTTP
@@ -2264,14 +2231,14 @@
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
# This type of authorization should generally only be used when calling Google
# APIs hosted on *.googleapis.com.
+ "scope": "A String", # OAuth scope to be used for generating OAuth access token.
+ # If not specified, "https://www.googleapis.com/auth/cloud-platform"
+ # will be used.
"serviceAccountEmail": "A String", # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
# to be used for generating OAuth token.
# The service account must be within the same project as the queue. The
# caller must have iam.serviceAccounts.actAs permission for the service
# account.
- "scope": "A String", # OAuth scope to be used for generating OAuth access token.
- # If not specified, "https://www.googleapis.com/auth/cloud-platform"
- # will be used.
},
"headers": { # HTTP request headers.
#
@@ -2312,6 +2279,33 @@
#
# The `Location` header response from a redirect response [`300` - `399`]
# may be followed. The redirect is not counted as a separate attempt.
+ "oidcToken": { # Contains information needed for generating an # If specified, an
+ # [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
+ # token will be generated and attached as an `Authorization` header in the
+ # HTTP request.
+ #
+ # This type of authorization can be used for many scenarios, including
+ # calling Cloud Run, or endpoints where you intend to validate the token
+ # yourself.
+ # [OpenID Connect
+ # token](https://developers.google.com/identity/protocols/OpenIDConnect).
+ # This type of authorization can be used for many scenarios, including
+ # calling Cloud Run, or endpoints where you intend to validate the token
+ # yourself.
+ "audience": "A String", # Audience to be used when generating OIDC token. If not specified, the URI
+ # specified in target will be used.
+ "serviceAccountEmail": "A String", # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
+ # to be used for generating OIDC token.
+ # The service account must be within the same project as the queue. The
+ # caller must have iam.serviceAccounts.actAs permission for the service
+ # account.
+ },
+ "httpMethod": "A String", # The HTTP method to use for the request. The default is POST.
+ "body": "A String", # HTTP request body.
+ #
+ # A request body is allowed only if the
+ # HTTP method is POST, PUT, or PATCH. It is an
+ # error to set body on a task with an incompatible HttpMethod.
},
"name": "A String", # Optionally caller-specified in CreateTask.
#
@@ -2372,12 +2366,6 @@
#
# Only dispatch_time will be set.
# The other Attempt information is not retained by Cloud Tasks.
- "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
- #
- # `schedule_time` will be truncated to the nearest microsecond.
- "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
- #
- # `dispatch_time` will be truncated to the nearest microsecond.
"responseTime": "A String", # Output only. The time that this attempt response was received.
#
# `response_time` will be truncated to the nearest microsecond.
@@ -2402,14 +2390,14 @@
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
},
+ "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
+ #
+ # `schedule_time` will be truncated to the nearest microsecond.
+ "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
+ #
+ # `dispatch_time` will be truncated to the nearest microsecond.
},
"lastAttempt": { # The status of a task attempt. # Output only. The status of the task's last attempt.
- "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
- #
- # `schedule_time` will be truncated to the nearest microsecond.
- "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
- #
- # `dispatch_time` will be truncated to the nearest microsecond.
"responseTime": "A String", # Output only. The time that this attempt response was received.
#
# `response_time` will be truncated to the nearest microsecond.
@@ -2434,6 +2422,12 @@
# user-facing error message should be localized and sent in the
# google.rpc.Status.details field, or localized by the client.
},
+ "scheduleTime": "A String", # Output only. The time that this attempt was scheduled.
+ #
+ # `schedule_time` will be truncated to the nearest microsecond.
+ "dispatchTime": "A String", # Output only. The time that this attempt was dispatched.
+ #
+ # `dispatch_time` will be truncated to the nearest microsecond.
},
"responseCount": 42, # Output only. The number of attempts which have received a response.
"appEngineHttpRequest": { # App Engine HTTP request. # HTTP request that is sent to the App Engine app handler.
@@ -2498,12 +2492,6 @@
# the queue's dispatches. Unlike other types of task targets, a `429` (Too Many
# Requests) response from an app handler does not cause traffic congestion
# control to throttle the queue.
- "relativeUri": "A String", # The relative URI.
- #
- # The relative URI must begin with "/" and must be a valid HTTP relative URI.
- # It can contain a path and query string arguments.
- # If the relative URI is empty, then the root path "/" will be used.
- # No spaces are allowed, and the maximum length allowed is 2083 characters.
"headers": { # HTTP request headers.
#
# This map contains the header field names and values.
@@ -2643,9 +2631,21 @@
#
# A request body is allowed only if the HTTP method is POST or PUT. It is
# an error to set a body on a task with an incompatible HttpMethod.
+ "relativeUri": "A String", # The relative URI.
+ #
+ # The relative URI must begin with "/" and must be a valid HTTP relative URI.
+ # It can contain a path and query string arguments.
+ # If the relative URI is empty, then the root path "/" will be used.
+ # No spaces are allowed, and the maximum length allowed is 2083 characters.
},
"view": "A String", # Output only. The view specifies which subset of the Task has
# been returned.
+ "scheduleTime": "A String", # The time when the task is scheduled to be attempted or retried.
+ #
+ # `schedule_time` will be truncated to the nearest microsecond.
+ "createTime": "A String", # Output only. The time that the task was created.
+ #
+ # `create_time` will be truncated to the nearest second.
}</pre>
</div>