Resource: WasmPlugin
WasmPlugin
is a resource representing a service executing a customer-provided Wasm module.
JSON representation |
---|
{ "name" : string , "createTime" : string , "updateTime" : string , "description" : string , "labels" : { string : string , ... } , "mainVersionId" : string , "logConfig" : { object ( |
Fields | |
---|---|
name
|
Identifier. Name of the |
createTime
|
Output only. The timestamp when the resource was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime
|
Output only. The timestamp when the resource was updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
description
|
Optional. A human-readable description of the resource. |
labels
|
Optional. Set of labels associated with the The format must comply with the following requirements . An object containing a list of |
mainVersionId
|
Optional. The ID of the |
logConfig
|
Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. |
versions
|
Optional. All versions of this Lets you create or update a If provided in a Note: In a An object containing a list of |
usedBy[]
|
Output only. List of all extensions
that use this |
LogConfig
Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging.
JSON representation |
---|
{
"enable"
:
boolean
,
"sampleRate"
:
number
,
"minLogLevel"
:
enum (
|
Fields | |
---|---|
enable
|
Optional. Specifies whether to enable logging for activity by this plugin. Defaults to |
sampleRate
|
Non-empty default. Configures the sampling rate of activity logs, where The default value when logging is enabled is This field can be specified only if logging is enabled for this plugin. |
minLogLevel
|
Non-empty default. Specifies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code. This field is can be set only if logging is enabled for the plugin. If the field is not provided when logging is enabled, it is set to |
LogLevel
Possible values to specify the lowest level of logs to be exported to Cloud Logging.
Enums | |
---|---|
LOG_LEVEL_UNSPECIFIED
|
Unspecified value. Defaults to LogLevel.INFO
. |
TRACE
|
Report logs with TRACE level and above. |
DEBUG
|
Report logs with DEBUG level and above. |
INFO
|
Report logs with INFO level and above. |
WARN
|
Report logs with WARN level and above. |
ERROR
|
Report logs with ERROR level and above. |
CRITICAL
|
Report logs with CRITICAL level only. |
VersionDetails
Details of a WasmPluginVersion
resource to be inlined in the WasmPlugin
resource.
JSON representation |
---|
{ "createTime" : string , "updateTime" : string , "description" : string , "labels" : { string : string , ... } , "imageUri" : string , "imageDigest" : string , "pluginConfigDigest" : string , // Union field |
createTime
string (
Timestamp
format)
Output only. The timestamp when the resource was created.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z"
, "2014-10-02T15:01:23.045123456Z"
or "2014-10-02T15:01:23+05:30"
.
updateTime
string (
Timestamp
format)
Output only. The timestamp when the resource was updated.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z"
, "2014-10-02T15:01:23.045123456Z"
or "2014-10-02T15:01:23+05:30"
.
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 image containing the Wasm module, stored in Artifact Registry.
The URI can refer to one of the following repository formats:
-
Container images: the
imageUri
must point to a container that contains a single file with the nameplugin.wasm
. When a newWasmPluginVersion
resource is created, the digest of the image is saved in theimageDigest
field. When pulling a container image from Artifact Registry, the digest value is used instead of an image tag. -
Generic artifacts: the
imageUri
must be in this format:projects/{project}/locations/{location}/repositories/{repository}/ genericArtifacts/{package}:{version}
. The specified package and version must contain a file with the nameplugin.wasm
. When a newWasmPluginVersion
resource is created, the checksum of the contents of the file is saved in theimageDigest
field.
imageDigest
string
Output only. This field holds the digest (usually checksum) value for the plugin image. The value is calculated based on the imageUri
field. If the imageUri
field refers to a container image, the digest value is obtained from the container image. If the imageUri
field refers to a generic artifact, the digest value is calculated based on the contents of the file.
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
field or the 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
version 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 URI can refer to one of the following repository formats:
-
Container images: the
pluginConfigUri
must point to a container that contains a single file with the nameplugin.config
. When a newWasmPluginVersion
resource is created, the digest of the image is saved in thepluginConfigDigest
field. When pulling a container image from Artifact Registry, the digest value is used instead of an image tag. -
Generic artifacts: the
pluginConfigUri
must be in this format:projects/{project}/locations/{location}/repositories/{repository}/ genericArtifacts/{package}:{version}
. The specified package and version must contain a file with the nameplugin.config
. When a newWasmPluginVersion
resource is created, the checksum of the contents of the file is saved in thepluginConfigDigest
field.
UsedBy
Defines a resource that uses the WasmPlugin
resource.
JSON representation |
---|
{ "name" : string } |
Fields | |
---|---|
name
|
Output only. Full name of the resource https://google.aip.dev/122#full-resource-names
, for example |
Methods |
|
---|---|
|
Creates a new WasmPlugin
resource in a given project and location. |
|
Deletes the specified WasmPlugin
resource. |
|
Gets details of the specified WasmPlugin
resource. |
|
Lists WasmPlugin
resources in a given project and location. |
|
Updates the parameters of the specified WasmPlugin
resource. |