Reference documentation and code samples for the Google Cloud Network Services V1 Client class VersionDetails.
Details of a WasmPluginVersion resource to be inlined in the
WasmPlugin resource.
Generated from protobuf message google.cloud.networkservices.v1.WasmPlugin.VersionDetails
Namespace
Google \ Cloud \ NetworkServices \ V1 \ WasmPluginMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ plugin_config_data |
string
Configuration for the plugin. The configuration is provided to the plugin at runtime through the |
↳ plugin_config_uri |
string
URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the |
↳ 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 |
↳ image_uri |
string
Optional. URI of the image containing the Wasm module, stored in Artifact Registry. The URI can refer to one of the following repository formats: * * Container images: the |
↳ image_digest |
string
Output only. This field holds the digest (usually checksum) value for the plugin image. The value is calculated based on the |
↳ plugin_config_digest |
string
Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of |
getPluginConfigData
Configuration for the plugin.
The configuration is provided to the plugin at runtime through
the ON_CONFIGURE callback. When a new
WasmPluginVersion version is created, the digest of the
contents is saved in the plugin_config_digest field.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasPluginConfigData
setPluginConfigData
Configuration for the plugin.
The configuration is provided to the plugin at runtime through
the ON_CONFIGURE callback. When a new
WasmPluginVersion version is created, the digest of the
contents is saved in the plugin_config_digest field.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPluginConfigUri
URI of the plugin configuration stored in the Artifact Registry.
The configuration is provided to the plugin at runtime through
the ON_CONFIGURE callback.
The URI can refer to one of the following repository formats:
- Container images: the
plugin_config_urimust point to a container that contains a single file with the nameplugin.config. When a newWasmPluginVersionresource is created, the digest of the image is saved in theplugin_config_digestfield. When pulling a container image from Artifact Registry, the digest value is used instead of an image tag. - Generic artifacts: the
plugin_config_urimust be in this format:projects/{project}/locations/{location}/repositories/{repository}/ genericArtifacts/{package}:{version}. The specified package and version must contain a file with the nameplugin.config. When a newWasmPluginVersionresource is created, the checksum of the contents of the file is saved in theplugin_config_digestfield.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasPluginConfigUri
setPluginConfigUri
URI of the plugin configuration stored in the Artifact Registry.
The configuration is provided to the plugin at runtime through
the ON_CONFIGURE callback.
The URI can refer to one of the following repository formats:
- Container images: the
plugin_config_urimust point to a container that contains a single file with the nameplugin.config. When a newWasmPluginVersionresource is created, the digest of the image is saved in theplugin_config_digestfield. When pulling a container image from Artifact Registry, the digest value is used instead of an image tag. - Generic artifacts: the
plugin_config_urimust be in this format:projects/{project}/locations/{location}/repositories/{repository}/ genericArtifacts/{package}:{version}. The specified package and version must contain a file with the nameplugin.config. When a newWasmPluginVersionresource is created, the checksum of the contents of the file is saved in theplugin_config_digestfield.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCreateTime
Output only. The timestamp when the resource was created.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp when the resource was created.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUpdateTime
Output only. The timestamp when the resource was updated.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The timestamp when the resource was updated.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| 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 WasmPluginVersion
resource.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField |
|
setLabels
Optional. Set of labels associated with the WasmPluginVersion
resource.
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getImageUri
Optional. URI of the image containing the Wasm module, stored in Artifact Registry.
The URI can refer to one of the following repository formats:
- Container images: the
image_urimust point to a container that contains a single file with the nameplugin.wasm. When a newWasmPluginVersionresource is created, the digest of the image is saved in theimage_digestfield. When pulling a container image from Artifact Registry, the digest value is used instead of an image tag. - Generic artifacts: the
image_urimust be in this format:projects/{project}/locations/{location}/repositories/{repository}/ genericArtifacts/{package}:{version}. The specified package and version must contain a file with the nameplugin.wasm. When a newWasmPluginVersionresource is created, the checksum of the contents of the file is saved in theimage_digestfield.
| Returns | |
|---|---|
| Type | Description |
string |
|
setImageUri
Optional. URI of the image containing the Wasm module, stored in Artifact Registry.
The URI can refer to one of the following repository formats:
- Container images: the
image_urimust point to a container that contains a single file with the nameplugin.wasm. When a newWasmPluginVersionresource is created, the digest of the image is saved in theimage_digestfield. When pulling a container image from Artifact Registry, the digest value is used instead of an image tag. - Generic artifacts: the
image_urimust be in this format:projects/{project}/locations/{location}/repositories/{repository}/ genericArtifacts/{package}:{version}. The specified package and version must contain a file with the nameplugin.wasm. When a newWasmPluginVersionresource is created, the checksum of the contents of the file is saved in theimage_digestfield.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getImageDigest
Output only. This field holds the digest (usually checksum) value for the
plugin image. The value is calculated based on the image_uri field. If
the image_uri field refers to a container image, the digest value is
obtained from the container image. If the image_uri field refers to
a generic artifact, the digest value is calculated based on the
contents of the file.
| Returns | |
|---|---|
| Type | Description |
string |
|
setImageDigest
Output only. This field holds the digest (usually checksum) value for the
plugin image. The value is calculated based on the image_uri field. If
the image_uri field refers to a container image, the digest value is
obtained from the container image. If the image_uri field refers to
a generic artifact, the digest value is calculated based on the
contents of the file.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPluginConfigDigest
Output only. This field holds the digest (usually checksum) value for the
plugin configuration. The value is calculated based on the contents of
plugin_config_data field or the image defined by the
plugin_config_uri field.
| Returns | |
|---|---|
| Type | Description |
string |
|
setPluginConfigDigest
Output only. This field holds the digest (usually checksum) value for the
plugin configuration. The value is calculated based on the contents of
plugin_config_data field or the image defined by the
plugin_config_uri field.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPluginConfigSource
| Returns | |
|---|---|
| Type | Description |
string |
|