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 |
create |
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: |
update |
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: |
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 |
main |
Optional. The ID of the |
log |
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 |
used |
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 |
sample |
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. |
min |
Non-empty default. Specificies 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 |
Fields | |
---|---|
create |
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: |
update |
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: |
description |
Optional. A human-readable description of the resource. |
labels |
Optional. Set of labels associated with the An object containing a list of |
image |
Optional. URI of the container image containing the Wasm module, stored in the Artifact Registry. The container image must contain only a single file with the name |
image |
Output only. The resolved digest for the image specified in |
plugin |
Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of the |
Union field
|
|
plugin |
Configuration for the plugin. The configuration is provided to the plugin at runtime through the A base64-encoded string. |
plugin |
URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the |
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. |