C# Класс ConoHaNet.Objects.Servers.ServerImage

Наследование: SimpleServerImage
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
UpdateThis ( SimpleServerImage serverImage ) : void

Описание методов

AddMetadata() публичный Метод

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.
Результат bool

AddMetadata() публичный Метод

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.
Результат bool

DeleteMetadata() публичный Метод

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.
Результат bool

DeleteMetadataItem() публичный Метод

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.
Результат bool

GetMetadata() публичный Метод

Gets the metadata associated with the specified image.
If the REST API request failed.
public GetMetadata ( ) : Metadata
Результат Metadata

SetMetadata() публичный Метод

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.
Результат bool

UpdateMetadata() публичный Метод

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.
Результат bool

UpdateMetadataItem() публичный Метод

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.
Результат bool

UpdateThis() защищенный Метод

protected UpdateThis ( SimpleServerImage serverImage ) : void
serverImage SimpleServerImage
Результат void