Google Cloud Network Services V1 Client - Class WasmPlugin (0.5.0)

Reference documentation and code samples for the Google Cloud Network Services V1 Client class WasmPlugin.

WasmPlugin is a resource representing a service executing a customer-provided Wasm module.

Generated from protobuf message google.cloud.networkservices.v1.WasmPlugin

Namespace

Google \ Cloud \ NetworkServices \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ name
string

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

↳ create_time
Google\Protobuf\Timestamp

Output only. The timestamp when the resource was created.

↳ update_time
Google\Protobuf\Timestamp

Output only. The timestamp when the resource was updated.

↳ description
string

Optional. A human-readable description of the resource.

↳ labels
array| Google\Protobuf\Internal\MapField

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

↳ main_version_id
string

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.

↳ log_config
WasmPlugin\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
array| Google\Protobuf\Internal\MapField

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 .

↳ used_by
array< WasmPlugin\UsedBy >

Output only. List of all extensions that use this WasmPlugin resource.

getName

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

Returns
Type
Description
string

setName

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

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getCreateTime

Output only. The timestamp when the resource was created.

Returns
Type
Description

hasCreateTime

clearCreateTime

setCreateTime

Output only. The timestamp when the resource was created.

Parameter
Name
Description
Returns
Type
Description
$this

getUpdateTime

Output only. The timestamp when the resource was updated.

Returns
Type
Description

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The timestamp when the resource was updated.

Parameter
Name
Description
Returns
Type
Description
$this

getDescription

Optional. A human-readable description of the resource.

Returns
Type
Description
string

setDescription

Optional. A human-readable description of the resource.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getLabels

Optional. Set of labels associated with the WasmPlugin resource.

The format must comply with the following requirements .

Returns
Type
Description

setLabels

Optional. Set of labels associated with the WasmPlugin resource.

The format must comply with the following requirements .

Parameter
Name
Description
Returns
Type
Description
$this

getMainVersionId

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.

Returns
Type
Description
string

setMainVersionId

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.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getLogConfig

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.

Returns
Type
Description

hasLogConfig

clearLogConfig

setLogConfig

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.

Parameter
Name
Description
Returns
Type
Description
$this

getVersions

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 .

Returns
Type
Description

setVersions

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 .

Parameter
Name
Description
Returns
Type
Description
$this

getUsedBy

Output only. List of all extensions that use this WasmPlugin resource.

Returns
Type
Description

setUsedBy

Output only. List of all extensions that use this WasmPlugin resource.

Parameter
Name
Description
var
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: