Class: Google::Apis::NetworkservicesV1beta1::WasmPluginVersion

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkservices_v1beta1/classes.rb,
lib/google/apis/networkservices_v1beta1/representations.rb,
lib/google/apis/networkservices_v1beta1/representations.rb

Overview

A single immutable version of a WasmPlugin resource. Defines the Wasm module used and optionally its runtime config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WasmPluginVersion

Returns a new instance of WasmPluginVersion.



3966
3967
3968
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3966

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. The timestamp when the resource was created. Corresponds to the JSON property createTime

Returns:

  • (String)


3900
3901
3902
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3900

def create_time
  @create_time
end

#descriptionString

Optional. A human-readable description of the resource. Corresponds to the JSON property description

Returns:

  • (String)


3905
3906
3907
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3905

def description
  @description
end

#image_digestString

Output only. The resolved digest for the image specified in the image field. 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

Returns:

  • (String)


3913
3914
3915
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3913

def image_digest
  @image_digest
end

#image_uriString

Optional. URI of the container image containing the 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

Returns:

  • (String)


3921
3922
3923
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3921

def image_uri
  @image_uri
end

#labelsHash<String,String>

Optional. Set of labels associated with the WasmPluginVersion resource. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


3926
3927
3928
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3926

def labels
  @labels
end

#nameString

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 propertyname`

Returns:

  • (String)


3933
3934
3935
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3933

def name
  @name
end

#plugin_config_dataString

Configuration for the plugin. The configuration is provided to the 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.

Returns:

  • (String)


3942
3943
3944
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3942

def plugin_config_data
  @plugin_config_data
end

#plugin_config_digestString

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 or the container image defined by the plugin_config_uri field. Corresponds to the JSON property pluginConfigDigest

Returns:

  • (String)


3950
3951
3952
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3950

def plugin_config_digest
  @plugin_config_digest
end

#plugin_config_uriString

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

Returns:

  • (String)


3959
3960
3961
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3959

def plugin_config_uri
  @plugin_config_uri
end

#update_timeString

Output only. The timestamp when the resource was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


3964
3965
3966
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3964

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3971

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