C# Класс Microsoft.Azure.Commands.RecoveryServices.Backup.Helpers.ServiceClientHelpers

Helper methods used by the service client adapter.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetLastIdFromFullId ( string fullId ) : string

Use this function to get the last part of a URL. Generally this is the ID of object or OperationId. Note: This doesn't work if the string has any extra characters after slash. (CSM ID's generally don't have)

GetServiceClientContainerType ( Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models containerType ) : string

Gets the service client specific container type given the PS container type

GetServiceClientProviderType ( Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models containerType ) : string

Gets the provider type with which the service client calls are to made to contact the backend service. This can be determined by the container type in case of certain containers such as those of the type AzureVM.

GetServiceClientWorkloadType ( Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models workloadType ) : string

Gets the service client specific workload type given the PS workload type

GetSkipTokenFromNextLink ( string nextLink, string &skipToken ) : void

Gets the skip token from the next link. Usually, next link is the location uri returned as a header when an ARM call is made. When this skip token (if non-null) is used in the next call to the backend service, the next set of objects are returned.

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

GetLastIdFromFullId() публичный статический Метод

Use this function to get the last part of a URL. Generally this is the ID of object or OperationId. Note: This doesn't work if the string has any extra characters after slash. (CSM ID's generally don't have)
public static GetLastIdFromFullId ( string fullId ) : string
fullId string
Результат string

GetServiceClientContainerType() публичный статический Метод

Gets the service client specific container type given the PS container type
public static GetServiceClientContainerType ( Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models containerType ) : string
containerType Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models PS container type
Результат string

GetServiceClientProviderType() публичный статический Метод

Gets the provider type with which the service client calls are to made to contact the backend service. This can be determined by the container type in case of certain containers such as those of the type AzureVM.
public static GetServiceClientProviderType ( Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models containerType ) : string
containerType Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models Type of the container
Результат string

GetServiceClientWorkloadType() публичный статический Метод

Gets the service client specific workload type given the PS workload type
public static GetServiceClientWorkloadType ( Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models workloadType ) : string
workloadType Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models
Результат string

GetSkipTokenFromNextLink() публичный статический Метод

Gets the skip token from the next link. Usually, next link is the location uri returned as a header when an ARM call is made. When this skip token (if non-null) is used in the next call to the backend service, the next set of objects are returned.
public static GetSkipTokenFromNextLink ( string nextLink, string &skipToken ) : void
nextLink string The next link a.k.a location url
skipToken string The skip token extracted from the next link
Результат void