# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::WasmPlugin (v2.10.1)

2.10.1 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.1 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.2.0 0.1.0 Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::WasmPlugin.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The timestamp when the resource was created.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Optional. A human-readable description of the resource.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A human-readable description of the resource.
**Returns**

- (::String) --- Optional. A human-readable description of the resource.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Set of labels associated with the `WasmPlugin` resource.


  The format must comply with [the following
  requirements](https://docs.cloud.google.com/compute/docs/labeling-resources#requirements).

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Set of labels associated with the `WasmPlugin` resource.


  The format must comply with [the following
  requirements](https://docs.cloud.google.com/compute/docs/labeling-resources#requirements).
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Set of labels associated with the `WasmPlugin` resource.


  The format must comply with [the following
  requirements](https://docs.cloud.google.com/compute/docs/labeling-resources#requirements).

### #log_config

    def log_config() -> ::Google::Cloud::NetworkServices::V1::WasmPlugin::LogConfig

**Returns**

- ([::Google::Cloud::NetworkServices::V1::WasmPlugin::LogConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/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.

### #log_config=

    def log_config=(value) -> ::Google::Cloud::NetworkServices::V1::WasmPlugin::LogConfig

**Parameter**

- **value** ([::Google::Cloud::NetworkServices::V1::WasmPlugin::LogConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/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

    def main_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=

    def main_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

    def name() -> ::String

**Returns**

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

### #name=

    def name=(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}`.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The timestamp when the resource was updated.

### #used_by

    def used_by() -> ::Array<::Google::Cloud::NetworkServices::V1::WasmPlugin::UsedBy>

**Returns**

- (::Array\<[::Google::Cloud::NetworkServices::V1::WasmPlugin::UsedBy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-WasmPlugin-UsedBy)\>) --- Output only. List of all [extensions](https://cloud.google.com/service-extensions/docs/overview) that use this `WasmPlugin` resource.

### #versions

    def versions() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::NetworkServices::V1::WasmPlugin::VersionDetails}

**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`.

### #versions=

    def versions=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::NetworkServices::V1::WasmPlugin::VersionDetails}

**Parameter**

- **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`.