C# Class ConoHaNet.Objects.Servers.ServerImage

Inheritance: SimpleServerImage
Mostra file Open project: crowdy/OpenStack-ConoHa

Private Properties

Property Type Description

Public Methods

Method Description
AddMetadata ( Metadata metadata ) : bool

Updates the metadata for the specified image.

For each item in metadata, if the key exists, the value is updated; otherwise, the item is added.

AddMetadata ( string key, string value ) : bool

Sets the value for the specified metadata item. If the key already exists, it is updated; otherwise, a new metadata item is added.

DeleteMetadata ( Metadata metadata ) : bool

Deletes the specified metadata items from the image.

This method ignores the values in metadata. Metadata items are removed whether or not their current values match those in metadata.

DeleteMetadataItem ( string key ) : bool

Deletes the specified metadata item from the image.

GetMetadata ( ) : Metadata

Gets the metadata associated with the specified image.

SetMetadata ( Metadata metadata ) : bool

Sets the metadata associated with the specified image, replacing any existing metadata.

UpdateMetadata ( Metadata metadata ) : bool

Updates the metadata for the specified image.

For each item in metadata, if the key exists, the value is updated; otherwise, the item is added.

UpdateMetadataItem ( string key, string value ) : bool

Sets the value for the specified metadata item. If the key already exists, it is updated; otherwise, a new metadata item is added.

Protected Methods

Method Description
UpdateThis ( SimpleServerImage serverImage ) : void

Method Details

AddMetadata() public method

Updates the metadata for the specified image.
For each item in metadata, if the key exists, the value is updated; otherwise, the item is added.
If is . If contains any values with empty keys. If the REST API request failed.
public AddMetadata ( Metadata metadata ) : bool
metadata Metadata The image metadata to update.
return bool

AddMetadata() public method

Sets the value for the specified metadata item. If the key already exists, it is updated; otherwise, a new metadata item is added.
/// If is . /// -or- /// If is . /// If is empty. If the REST API request failed.
public AddMetadata ( string key, string value ) : bool
key string The metadata key.
value string The new value for the metadata item.
return bool

DeleteMetadata() public method

Deletes the specified metadata items from the image.
This method ignores the values in metadata. Metadata items are removed whether or not their current values match those in metadata.
If is . If contains a null or empty key. If the REST API request failed.
public DeleteMetadata ( Metadata metadata ) : bool
metadata Metadata A collection of metadata items to delete.
return bool

DeleteMetadataItem() public method

Deletes the specified metadata item from the image.
If is . If is empty. If the REST API request failed.
public DeleteMetadataItem ( string key ) : bool
key string The metadata key.
return bool

GetMetadata() public method

Gets the metadata associated with the specified image.
If the REST API request failed.
public GetMetadata ( ) : Metadata
return Metadata

SetMetadata() public method

Sets the metadata associated with the specified image, replacing any existing metadata.
If is . If contains any values with empty keys. If the REST API request failed.
public SetMetadata ( Metadata metadata ) : bool
metadata Metadata The metadata to associate with the image.
return bool

UpdateMetadata() public method

Updates the metadata for the specified image.
For each item in metadata, if the key exists, the value is updated; otherwise, the item is added.
If is . If contains any values with empty keys. If the REST API request failed.
public UpdateMetadata ( Metadata metadata ) : bool
metadata Metadata The image metadata to update.
return bool

UpdateMetadataItem() public method

Sets the value for the specified metadata item. If the key already exists, it is updated; otherwise, a new metadata item is added.
/// If is . /// -or- /// If is . /// If is empty. If the REST API request failed.
public UpdateMetadataItem ( string key, string value ) : bool
key string The metadata key.
value string The new value for the metadata item.
return bool

UpdateThis() protected method

protected UpdateThis ( SimpleServerImage serverImage ) : void
serverImage SimpleServerImage
return void