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, "mainVersionDetails": { object ( |
Fields | |
---|---|
name |
Required. Name of the |
createTime |
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: |
updateTime |
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 |
mainVersionId |
Optional. The ID of the |
mainVersionDetails |
Output only. Inlined details of the current main version. Equal to the contents of the |
logConfig |
Optional. Specifies the logging options for the activity performed by this |
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, "pluginConfig": string, "pluginConfigDigest": string, // Union field |
Fields | |
---|---|
createTime |
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: |
updateTime |
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 |
imageUri |
Required. 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 |
imageDigest |
Output only. The resolved digest for the image specified in |
pluginConfig |
Optional. Configuration for the Wasm plugin. The configuration is provided to the Proxy-Wasm plugin at runtime by using the Deprecated: Use A base64-encoded string. |
pluginConfigDigest |
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
|
|
pluginConfigData |
Configuration for the Wasm plugin. The configuration is provided to the Wasm plugin at runtime through the A base64-encoded string. |
pluginConfigUri |
URI of the WasmPlugin configuration stored in the Artifact Registry. The configuration is provided to the Wasm plugin at runtime through the |
LogConfig
Specifies the logging options for the activity performed by this WasmPlugin
. 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 Defaults to |
sampleRate |
Non-empty default. Configures the sampling rate of activity logs, where The setting relates to logs generated in your Wasm code. Note that for the logs generated on the HTTP processing path, the sample rate is multiplied by the sample rate configured in the Media CDN service using this Wasm plugin. For example:
This field can only be specified if logging is enabled for this If the field is not provided when logging is enabled it is set to |
minLogLevel |
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 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. |
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. |
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. |