Class: Google::Apis::NetworkservicesV1::WasmPluginVersion
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1::WasmPluginVersion
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkservices_v1/classes.rb,
lib/google/apis/networkservices_v1/representations.rb,
lib/google/apis/networkservices_v1/representations.rb
Overview
A single immutable version of a WasmPlugin
. Defines the Wasm module used and
optionally its runtime config.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#image_digest ⇒ String
Output only.
-
#image_uri ⇒ String
Optional.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Identifier.
-
#plugin_config_data ⇒ String
Configuration for the Wasm plugin.
-
#plugin_config_digest ⇒ String
Output only.
-
#plugin_config_uri ⇒ String
URI of the Wasm plugin configuration stored in the Artifact Registry.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WasmPluginVersion
constructor
A new instance of WasmPluginVersion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WasmPluginVersion
Returns a new instance of WasmPluginVersion.
4078 4079 4080 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4078 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The timestamp when the resource was created.
Corresponds to the JSON property createTime
4012 4013 4014 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4012 def create_time @create_time end |
#description ⇒ String
Optional. A human-readable description of the resource.
Corresponds to the JSON property description
4017 4018 4019 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4017 def description @description end |
#image_digest ⇒ String
Output only. The resolved digest for the image specified in image
. The
digest is resolved during the creation of WasmPluginVersion
resource. This
field holds the digest value regardless of whether a tag or digest was
originally specified in the image
field.
Corresponds to the JSON property imageDigest
4025 4026 4027 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4025 def image_digest @image_digest end |
#image_uri ⇒ String
Optional. URI of the container image containing the Wasm plugin, stored in the
Artifact Registry. When a new WasmPluginVersion
resource is created, the
digest of the container image is saved in the image_digest
field. When
downloading an image, the digest value is used instead of an image tag.
Corresponds to the JSON property imageUri
4033 4034 4035 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4033 def image_uri @image_uri end |
#labels ⇒ Hash<String,String>
Optional. Set of labels associated with the WasmPluginVersion
resource.
Corresponds to the JSON property labels
4038 4039 4040 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4038 def labels @labels end |
#name ⇒ String
Identifier. Name of the WasmPluginVersion
resource in the following format:
projects/
project/locations/
location/wasmPlugins/
wasm_plugin/ versions/
wasm_plugin_version`.
Corresponds to the JSON property
name`
4045 4046 4047 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4045 def name @name end |
#plugin_config_data ⇒ String
Configuration for the Wasm plugin. The configuration is provided to the Wasm
plugin at runtime through the ON_CONFIGURE
callback. When a new
WasmPluginVersion
resource is created, the digest of the contents is saved in
the plugin_config_digest
field.
Corresponds to the JSON property pluginConfigData
NOTE: Values are automatically base64 encoded/decoded in the client library.
4054 4055 4056 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4054 def plugin_config_data @plugin_config_data end |
#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 the
plugin_config_data
or the container image defined by the plugin_config_uri
field.
Corresponds to the JSON property pluginConfigDigest
4062 4063 4064 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4062 def plugin_config_digest @plugin_config_digest end |
#plugin_config_uri ⇒ String
URI of the Wasm plugin configuration stored in the Artifact Registry. The
configuration is provided to the plugin at runtime through the ON_CONFIGURE
callback. The container image must contain only a single file with the name
plugin.config
. When a new WasmPluginVersion
resource is created, the digest
of the container image is saved in the plugin_config_digest
field.
Corresponds to the JSON property pluginConfigUri
4071 4072 4073 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4071 def plugin_config_uri @plugin_config_uri end |
#update_time ⇒ String
Output only. The timestamp when the resource was updated.
Corresponds to the JSON property updateTime
4076 4077 4078 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4076 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4083 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @image_digest = args[:image_digest] if args.key?(:image_digest) @image_uri = args[:image_uri] if args.key?(:image_uri) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @plugin_config_data = args[:plugin_config_data] if args.key?(:plugin_config_data) @plugin_config_digest = args[:plugin_config_digest] if args.key?(:plugin_config_digest) @plugin_config_uri = args[:plugin_config_uri] if args.key?(:plugin_config_uri) @update_time = args[:update_time] if args.key?(:update_time) end |