Class: Google::Apis::NetworkservicesV1::WasmPluginVersionDetails

Inherits:
Object
  • Object
show all
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

Details of a WasmPluginVersion resource to be inlined in the WasmPlugin resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WasmPluginVersionDetails

Returns a new instance of WasmPluginVersionDetails.



4165
4166
4167
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4165

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)


4105
4106
4107
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4105

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


4110
4111
4112
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4110

def description
  @description
end

#image_digestString

Output only. The resolved digest for the image specified in image. The digest is resolved during the creation of a 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)


4118
4119
4120
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4118

def image_digest
  @image_digest
end

#image_uriString

Optional. URI of the container image containing the Wasm module, stored in the Artifact Registry. The container image must contain only a single file with the name plugin.wasm. When a new WasmPluginVersion resource is created, the URI gets resolved to an image digest and saved in the image_digest field. Corresponds to the JSON property imageUri

Returns:

  • (String)


4126
4127
4128
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4126

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


4131
4132
4133
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4131

def labels
  @labels
end

#plugin_config_dataString

Configuration for the Wasm plugin. The configuration is provided to the Wasm 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. Corresponds to the JSON property pluginConfigData NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


4140
4141
4142
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4140

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

Returns:

  • (String)


4148
4149
4150
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4148

def plugin_config_digest
  @plugin_config_digest
end

#plugin_config_uriString

URI of the WasmPlugin configuration stored in the Artifact Registry. The configuration is provided to the Wasm 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)


4158
4159
4160
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4158

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)


4163
4164
4165
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4163

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
# File 'lib/google/apis/networkservices_v1/classes.rb', line 4170

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