(::Google::Cloud::NetworkServices::V1::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.
value (::Google::Cloud::NetworkServices::V1::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.
Returns
(::Google::Cloud::NetworkServices::V1::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.
#main_version_id
defmain_version_id()->::String
Returns
(::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.
#main_version_id=
defmain_version_id=(value)->::String
Parameter
value (::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.
Returns
(::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.
#name
defname()->::String
Returns
(::String) — Identifier. Name of the WasmPlugin resource in the following format:
projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}.
#name=
defname=(value)->::String
Parameter
value (::String) — Identifier. Name of the WasmPlugin resource in the following format:
projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}.
Returns
(::String) — Identifier. Name of the WasmPlugin resource in the following format:
projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}.
(::Google::Protobuf::Map{::String => ::Google::Cloud::NetworkServices::V1::WasmPlugin::VersionDetails}) — 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.
value (::Google::Protobuf::Map{::String => ::Google::Cloud::NetworkServices::V1::WasmPlugin::VersionDetails}) — 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
(::Google::Protobuf::Map{::String => ::Google::Cloud::NetworkServices::V1::WasmPlugin::VersionDetails}) — 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::WasmPlugin (v2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-WasmPlugin)\n- [2.3.0](/ruby/docs/reference/google-cloud-network_services-v1/2.3.0/Google-Cloud-NetworkServices-V1-WasmPlugin)\n- [2.2.0](/ruby/docs/reference/google-cloud-network_services-v1/2.2.0/Google-Cloud-NetworkServices-V1-WasmPlugin)\n- [2.1.0](/ruby/docs/reference/google-cloud-network_services-v1/2.1.0/Google-Cloud-NetworkServices-V1-WasmPlugin)\n- [2.0.1](/ruby/docs/reference/google-cloud-network_services-v1/2.0.1/Google-Cloud-NetworkServices-V1-WasmPlugin)\n- [1.2.0](/ruby/docs/reference/google-cloud-network_services-v1/1.2.0/Google-Cloud-NetworkServices-V1-WasmPlugin)\n- [1.1.0](/ruby/docs/reference/google-cloud-network_services-v1/1.1.0/Google-Cloud-NetworkServices-V1-WasmPlugin)\n- [1.0.1](/ruby/docs/reference/google-cloud-network_services-v1/1.0.1/Google-Cloud-NetworkServices-V1-WasmPlugin)\n- [0.2.0](/ruby/docs/reference/google-cloud-network_services-v1/0.2.0/Google-Cloud-NetworkServices-V1-WasmPlugin)\n- [0.1.0](/ruby/docs/reference/google-cloud-network_services-v1/0.1.0/Google-Cloud-NetworkServices-V1-WasmPlugin) \nReference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::WasmPlugin.\n\n`WasmPlugin` is a resource representing a service executing\na customer-provided Wasm module. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #create_time\n\n def create_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. The timestamp when the resource was created.\n\n### #description\n\n def description() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. A human-readable description of the resource.\n\n### #description=\n\n def description=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. A human-readable description of the resource. \n**Returns**\n\n- (::String) --- Optional. A human-readable description of the resource.\n\n### #labels\n\n def labels() -\u003e ::Google::Protobuf::Map{::String =\u003e ::String}\n\n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- Optional. Set of labels associated with the `WasmPlugin` resource.\n\n\n The format must comply with [the following\n requirements](/compute/docs/labeling-resources#requirements).\n\n### #labels=\n\n def labels=(value) -\u003e ::Google::Protobuf::Map{::String =\u003e ::String}\n\n**Parameter**\n\n- **value** (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- Optional. Set of labels associated with the `WasmPlugin` resource.\n\n\n The format must comply with [the following\nrequirements](/compute/docs/labeling-resources#requirements). \n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- Optional. Set of labels associated with the `WasmPlugin` resource.\n\n\n The format must comply with [the following\n requirements](/compute/docs/labeling-resources#requirements).\n\n### #log_config\n\n def log_config() -\u003e ::Google::Cloud::NetworkServices::V1::WasmPlugin::LogConfig\n\n**Returns**\n\n- ([::Google::Cloud::NetworkServices::V1::WasmPlugin::LogConfig](./Google-Cloud-NetworkServices-V1-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.\n\n### #log_config=\n\n def log_config=(value) -\u003e ::Google::Cloud::NetworkServices::V1::WasmPlugin::LogConfig\n\n**Parameter**\n\n- **value** ([::Google::Cloud::NetworkServices::V1::WasmPlugin::LogConfig](./Google-Cloud-NetworkServices-V1-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. \n**Returns**\n\n- ([::Google::Cloud::NetworkServices::V1::WasmPlugin::LogConfig](./Google-Cloud-NetworkServices-V1-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.\n\n### #main_version_id\n\n def main_version_id() -\u003e ::String\n\n**Returns**\n\n- (::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.\n\n### #main_version_id=\n\n def main_version_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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. \n**Returns**\n\n- (::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.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Identifier. Name of the `WasmPlugin` resource in the following format: `projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}`.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Identifier. Name of the `WasmPlugin` resource in the following format: `projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}`. \n**Returns**\n\n- (::String) --- Identifier. Name of the `WasmPlugin` resource in the following format: `projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}`.\n\n### #update_time\n\n def update_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. The timestamp when the resource was updated.\n\n### #used_by\n\n def used_by() -\u003e ::Array\u003c::Google::Cloud::NetworkServices::V1::WasmPlugin::UsedBy\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::NetworkServices::V1::WasmPlugin::UsedBy](./Google-Cloud-NetworkServices-V1-WasmPlugin-UsedBy)\\\u003e) --- Output only. List of all [extensions](https://cloud.google.com/service-extensions/docs/overview) that use this `WasmPlugin` resource.\n\n### #versions\n\n def versions() -\u003e ::Google::Protobuf::Map{::String =\u003e ::Google::Cloud::NetworkServices::V1::WasmPlugin::VersionDetails}\n\n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::Google::Cloud::NetworkServices::V1::WasmPlugin::VersionDetails}) --- 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.\n\n\n Lets you create or update a `WasmPlugin` resource and its versions in a\n single request. When the `main_version_id` field is not empty, it must\n point to one of the `VersionDetails` objects in the map.\n\n If provided in a `PATCH` request, the new versions replace the\n previous set. Any version omitted from the `versions` field is removed.\n Because the `WasmPluginVersion` resource is immutable, if a\n `WasmPluginVersion` resource with the same name already exists and differs,\n the request fails.\n\n Note: In a `GET` request, this field is populated only if the field\n `GetWasmPluginRequest.view` is set to `WASM_PLUGIN_VIEW_FULL`.\n\n### #versions=\n\n def versions=(value) -\u003e ::Google::Protobuf::Map{::String =\u003e ::Google::Cloud::NetworkServices::V1::WasmPlugin::VersionDetails}\n\n**Parameter**\n\n- **value** (::Google::Protobuf::Map{::String =\\\u003e ::Google::Cloud::NetworkServices::V1::WasmPlugin::VersionDetails}) --- 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.\n\n\n Lets you create or update a `WasmPlugin` resource and its versions in a\n single request. When the `main_version_id` field is not empty, it must\n point to one of the `VersionDetails` objects in the map.\n\n If provided in a `PATCH` request, the new versions replace the\n previous set. Any version omitted from the `versions` field is removed.\n Because the `WasmPluginVersion` resource is immutable, if a\n `WasmPluginVersion` resource with the same name already exists and differs,\n the request fails.\n\n Note: In a `GET` request, this field is populated only if the field\n`GetWasmPluginRequest.view` is set to `WASM_PLUGIN_VIEW_FULL`. \n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::Google::Cloud::NetworkServices::V1::WasmPlugin::VersionDetails}) --- 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.\n\n\n Lets you create or update a `WasmPlugin` resource and its versions in a\n single request. When the `main_version_id` field is not empty, it must\n point to one of the `VersionDetails` objects in the map.\n\n If provided in a `PATCH` request, the new versions replace the\n previous set. Any version omitted from the `versions` field is removed.\n Because the `WasmPluginVersion` resource is immutable, if a\n `WasmPluginVersion` resource with the same name already exists and differs,\n the request fails.\n\n Note: In a `GET` request, this field is populated only if the field\n `GetWasmPluginRequest.view` is set to `WASM_PLUGIN_VIEW_FULL`."]]