C# Class ConoHaNet.Objects.Servers.ServerImage

Inheritance: SimpleServerImage
Afficher le fichier Open project: crowdy/OpenStack-ConoHa

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
UpdateThis ( SimpleServerImage serverImage ) : void

Method Details

AddMetadata() public méthode

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.
Résultat bool

AddMetadata() public méthode

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.
Résultat bool

DeleteMetadata() public méthode

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.
Résultat bool

DeleteMetadataItem() public méthode

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.
Résultat bool

GetMetadata() public méthode

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

SetMetadata() public méthode

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.
Résultat bool

UpdateMetadata() public méthode

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.
Résultat bool

UpdateMetadataItem() public méthode

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.
Résultat bool

UpdateThis() protected méthode

protected UpdateThis ( SimpleServerImage serverImage ) : void
serverImage SimpleServerImage
Résultat void