REST Resource: projects.locations.wasmPlugins.versions

Resource: WasmPluginVersion

A single immutable version of a WasmPlugin resource. Defines the Wasm module used and optionally its runtime config.

JSON representation
{
  "name": string,
  "createTime": string,
  "updateTime": string,
  "description": string,
  "labels": {
    string: string,
    ...
  },
  "imageUri": string,
  "imageDigest": string,
  "pluginConfigDigest": string,

  // Union field plugin_config_source can be only one of the following:
  "pluginConfigData": string,
  "pluginConfigUri": string
  // End of list of possible types for union field plugin_config_source.
}
Fields
name

string

Identifier. Name of the WasmPluginVersion resource in the following format: projects/{project}/locations/{location}/wasmPlugins/{wasmPlugin}/ versions/{wasmPluginVersion}.

createTime

string (Timestamp format)

Output only. The timestamp when the resource was created.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

updateTime

string (Timestamp format)

Output only. The timestamp when the resource was updated.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

description

string

Optional. A human-readable description of the resource.

labels

map (key: string, value: string)

Optional. Set of labels associated with the WasmPluginVersion resource.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

imageUri

string

Optional. URI of the container image containing the plugin, stored in the Artifact Registry. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the imageDigest field. When downloading an image, the digest value is used instead of an image tag.

imageDigest

string

Output only. The resolved digest for the image specified in the image field. The digest is resolved during the creation of WasmPluginVersion resource. This field holds the digest value, regardless of whether a tag or digest was originally specified in the image field.

pluginConfigDigest

string

Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of pluginConfigData or the container image defined by the pluginConfigUri field.

Union field plugin_config_source.

plugin_config_source can be only one of the following:

pluginConfigData

string (bytes format)

Configuration for the plugin. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. When a new WasmPluginVersion resource is created, the digest of the contents is saved in the pluginConfigDigest field.

A base64-encoded string.

pluginConfigUri

string

URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. The container image must contain only a single file with the name plugin.config. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the pluginConfigDigest field.

Methods

create

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

delete

Deletes the specified WasmPluginVersion resource.

get

Gets details of the specified WasmPluginVersion resource.

list

Lists WasmPluginVersion resources in a given project and location.