v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1346116213.0 KB
projects

Creates a new WasmPlugin resource in a given project and location.

post/v1/{+parent}/wasmPlugins

Path parameters

parentstring required

Required. The parent resource of the WasmPlugin resource. Must be in the format projects/{project}/locations/global.

Query parameters

wasmPluginIdstring

Required. User-provided ID of the WasmPlugin resource to be created.

Request body

namestring

Identifier. Name of the WasmPlugin resource in the following format: projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}.

createTimestring google-datetime

Output only. The timestamp when the resource was created.

updateTimestring google-datetime

Output only. The timestamp when the resource was updated.

descriptionstring

Optional. A human-readable description of the resource.

labelsobject

Optional. Set of labels associated with the WasmPlugin resource. The format must comply with the following requirements.

mainVersionIdstring

Optional. The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource.

versionsobject

Optional. All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Lets you create or update a WasmPlugin resource and its versions in a single request. When the main_version_id field is not empty, it must point to one of the VersionDetails objects in the map. If provided in a PATCH request, the new versions replace the previous set. Any version omitted from the versions field is removed. Because the WasmPluginVersion resource is immutable, if a WasmPluginVersion resource with the same name already exists and differs, the request fails. Note: In a GET request, this field is populated only if the field GetWasmPluginRequest.view is set to WASM_PLUGIN_VIEW_FULL.

Response

Successful response