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 \ V1Methods
__construct
Constructor.
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
↳ update_time
↳ 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
getName
Identifier. Name of the WasmPlugin
resource in the following format: projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}
.
string
setName
Identifier. Name of the WasmPlugin
resource in the following format: projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}
.
var
string
$this
getCreateTime
Output only. The timestamp when the resource was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp when the resource was created.
$this
getUpdateTime
Output only. The timestamp when the resource was updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The timestamp when the resource was updated.
$this
getDescription
Optional. A human-readable description of the resource.
string
setDescription
Optional. A human-readable description of the resource.
var
string
$this
getLabels
Optional. Set of labels associated with the WasmPlugin
resource.
The format must comply with the following requirements .
setLabels
Optional. Set of labels associated with the WasmPlugin
resource.
The format must comply with the following requirements .
$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.
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.
var
string
$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.
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.
$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
.
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
.
$this
getUsedBy
Output only. List of all extensions
that use this WasmPlugin
resource.
setUsedBy
Output only. List of all extensions
that use this WasmPlugin
resource.
$this