make regen-apis

This commit is contained in:
OMGeeky
2023-10-23 12:55:17 +02:00
parent 8fc78fe0ae
commit c356d5fd0e
887 changed files with 9716 additions and 8753 deletions

View File

@@ -30,3 +30,6 @@ pub use method_builders::*;
mod call_builders;
pub use call_builders::*;
mod enums;
pub use enums::*;

View File

@@ -36,7 +36,7 @@ pub struct AppEngineHttpRequest {
/// The HTTP method to use for the request. The default is POST. The app's request handler for the task's target URL must be able to handle HTTP requests with this http_method, otherwise the task attempt fails with error code 405 (Method Not Allowed). See [Writing a push task request handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) and the App Engine documentation for your runtime on [How Requests are Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
#[serde(rename="httpMethod")]
pub http_method: Option<String>,
pub http_method: Option<AppEngineHttpRequestHttpMethodEnum>,
/// Payload. The payload will be sent as the HTTP message body. A message body, and thus a payload, is allowed only if the HTTP method is POST or PUT. It is an error to set a data payload on a task with an incompatible HttpMethod.
#[serde_as(as = "Option<::client::serde::urlsafe_base64::Wrapper>")]
@@ -191,7 +191,7 @@ pub struct CancelLeaseRequest {
/// The response_view specifies which subset of the Task will be returned. By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the Task resource.
#[serde(rename="responseView")]
pub response_view: Option<String>,
pub response_view: Option<CancelLeaseRequestResponseViewEnum>,
/// Required. The task's current schedule time, available in the schedule_time returned by LeaseTasks response or RenewLease response. This restriction is to ensure that your worker currently holds the lease.
#[serde(rename="scheduleTime")]
@@ -215,7 +215,7 @@ pub struct CreateTaskRequest {
/// The response_view specifies which subset of the Task will be returned. By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the Task resource.
#[serde(rename="responseView")]
pub response_view: Option<String>,
pub response_view: Option<CreateTaskRequestResponseViewEnum>,
/// Required. The task to add. Task names have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. The user can optionally specify a task name. If a name is not specified then the system will generate a random unique task id, which will be set in the task returned in the response. If schedule_time is not set or is in the past then Cloud Tasks will set it to the current time. Task De-duplication: Explicitly specifying a task ID enables task de-duplication. If a task's ID is identical to that of an existing task or a task that was deleted or completed recently then the call will fail with ALREADY_EXISTS. If the task's queue was created using Cloud Tasks, then another task with the same name can't be created for ~1hour after the original task was deleted or completed. If the task's queue was created using queue.yaml or queue.xml, then another task with the same name can't be created for ~9days after the original task was deleted or completed. Because there is an extra lookup cost to identify duplicate task names, these CreateTask calls have significantly increased latency. Using hashed strings for the task id or for the prefix of the task id is recommended. Choosing task ids that are sequential or have sequential prefixes, for example using a timestamp, causes an increase in latency and error rates in all task commands. The infrastructure relies on an approximately uniform distribution of task ids to store and serve tasks efficiently.
pub task: Option<Task>,
@@ -378,7 +378,7 @@ pub struct HttpRequest {
/// The HTTP method to use for the request. The default is POST.
#[serde(rename="httpMethod")]
pub http_method: Option<String>,
pub http_method: Option<HttpRequestHttpMethodEnum>,
/// If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.
#[serde(rename="oauthToken")]
@@ -409,7 +409,7 @@ pub struct HttpTarget {
/// The HTTP method to use for the request. When specified, it will override HttpRequest for the task. Note that if the value is set to HttpMethod the HttpRequest of the task will be ignored at execution time.
#[serde(rename="httpMethod")]
pub http_method: Option<String>,
pub http_method: Option<HttpTargetHttpMethodEnum>,
/// If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.
#[serde(rename="oauthToken")]
@@ -453,7 +453,7 @@ pub struct LeaseTasksRequest {
/// The response_view specifies which subset of the Task will be returned. By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the Task resource.
#[serde(rename="responseView")]
pub response_view: Option<String>,
pub response_view: Option<LeaseTasksRequestResponseViewEnum>,
}
impl client::RequestValue for LeaseTasksRequest {}
@@ -781,7 +781,7 @@ pub struct Queue {
pub retry_config: Option<RetryConfig>,
/// Output only. The state of the queue. `state` can only be changed by called PauseQueue, ResumeQueue, or uploading [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). UpdateQueue cannot be used to change `state`.
pub state: Option<String>,
pub state: Option<QueueStateEnum>,
/// Output only. The realtime, informational statistics for a queue. In order to receive the statistics the caller should include this field in the FieldMask.
pub stats: Option<QueueStats>,
@@ -879,7 +879,7 @@ pub struct RenewLeaseRequest {
/// The response_view specifies which subset of the Task will be returned. By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the Task resource.
#[serde(rename="responseView")]
pub response_view: Option<String>,
pub response_view: Option<RenewLeaseRequestResponseViewEnum>,
/// Required. The task's current schedule time, available in the schedule_time returned by LeaseTasks response or RenewLease response. This restriction is to ensure that your worker currently holds the lease.
#[serde(rename="scheduleTime")]
@@ -957,7 +957,7 @@ pub struct RunTaskRequest {
/// The response_view specifies which subset of the Task will be returned. By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the Task resource.
#[serde(rename="responseView")]
pub response_view: Option<String>,
pub response_view: Option<RunTaskRequestResponseViewEnum>,
}
impl client::RequestValue for RunTaskRequest {}
@@ -1046,7 +1046,7 @@ pub struct Task {
pub status: Option<TaskStatus>,
/// Output only. The view specifies which subset of the Task has been returned.
pub view: Option<String>,
pub view: Option<TaskViewEnum>,
}
impl client::ResponseResult for Task {}
@@ -1142,11 +1142,11 @@ pub struct UriOverride {
pub query_override: Option<QueryOverride>,
/// Scheme override. When specified, the task URI scheme is replaced by the provided value (HTTP or HTTPS).
pub scheme: Option<String>,
pub scheme: Option<UriOverrideSchemeEnum>,
/// URI Override Enforce Mode When specified, determines the Target UriOverride mode. If not specified, it defaults to ALWAYS.
#[serde(rename="uriOverrideEnforceMode")]
pub uri_override_enforce_mode: Option<String>,
pub uri_override_enforce_mode: Option<UriOverrideUriOverrideEnforceModeEnum>,
}
impl client::Part for UriOverride {}