Поделиться через


Service class

Класс, представляющий службу.

Конструкторы

Service(StorageClientContext)

Создание службы.

Методы

getProperties(Models.ServiceGetPropertiesOptionalParams)

Возвращает свойства файловой службы учетной записи хранения, включая свойства для метрик аналитики хранилища и правил CORS (совместное использование ресурсов между источниками).

getProperties(ServiceCallback<StorageServiceProperties>)
getProperties(ServiceGetPropertiesOptionalParams, ServiceCallback<StorageServiceProperties>)
listSharesSegment(Models.ServiceListSharesSegmentOptionalParams)

Операция сегмента списка общих папок возвращает список общих папок и моментальных снимков общих папок в указанной учетной записи.

listSharesSegment(ServiceCallback<ListSharesResponse>)
listSharesSegment(ServiceListSharesSegmentOptionalParams, ServiceCallback<ListSharesResponse>)
setProperties(StorageServiceProperties, Models.ServiceSetPropertiesOptionalParams)

Задает свойства конечной точки службы файловой службы учетной записи хранения, включая свойства метрик аналитики хранилища и правила CORS (совместное использование ресурсов между источниками).

setProperties(StorageServiceProperties, ServiceCallback<void>)
setProperties(StorageServiceProperties, ServiceSetPropertiesOptionalParams, ServiceCallback<void>)

Сведения о конструкторе

Service(StorageClientContext)

Создание службы.

new Service(client: StorageClientContext)

Параметры

client
StorageClientContext

Ссылка на клиент службы.

Сведения о методе

getProperties(Models.ServiceGetPropertiesOptionalParams)

Возвращает свойства файловой службы учетной записи хранения, включая свойства для метрик аналитики хранилища и правил CORS (совместное использование ресурсов между источниками).

function getProperties(options?: Models.ServiceGetPropertiesOptionalParams)

Параметры

options
Models.ServiceGetPropertiesOptionalParams

Возвращаемое значение

Promise<Models.ServiceGetPropertiesResponse>

Обещание<Models.ServiceGetPropertiesResponse>

getProperties(ServiceCallback<StorageServiceProperties>)

function getProperties(callback: ServiceCallback<StorageServiceProperties>)

Параметры

callback

ServiceCallback<StorageServiceProperties>

Обратный вызов

getProperties(ServiceGetPropertiesOptionalParams, ServiceCallback<StorageServiceProperties>)

function getProperties(options: ServiceGetPropertiesOptionalParams, callback: ServiceCallback<StorageServiceProperties>)

Параметры

options
ServiceGetPropertiesOptionalParams

Необязательные параметры

callback

ServiceCallback<StorageServiceProperties>

Обратный вызов

listSharesSegment(Models.ServiceListSharesSegmentOptionalParams)

Операция сегмента списка общих папок возвращает список общих папок и моментальных снимков общих папок в указанной учетной записи.

function listSharesSegment(options?: Models.ServiceListSharesSegmentOptionalParams)

Параметры

options
Models.ServiceListSharesSegmentOptionalParams

Возвращаемое значение

Promise<Models.ServiceListSharesSegmentResponse>

Обещание<Models.ServiceListSharesSegmentResponse>

listSharesSegment(ServiceCallback<ListSharesResponse>)

function listSharesSegment(callback: ServiceCallback<ListSharesResponse>)

Параметры

callback

ServiceCallback<ListSharesResponse>

Обратный вызов

listSharesSegment(ServiceListSharesSegmentOptionalParams, ServiceCallback<ListSharesResponse>)

function listSharesSegment(options: ServiceListSharesSegmentOptionalParams, callback: ServiceCallback<ListSharesResponse>)

Параметры

options
ServiceListSharesSegmentOptionalParams

Необязательные параметры

callback

ServiceCallback<ListSharesResponse>

Обратный вызов

setProperties(StorageServiceProperties, Models.ServiceSetPropertiesOptionalParams)

Задает свойства конечной точки службы файловой службы учетной записи хранения, включая свойства метрик аналитики хранилища и правила CORS (совместное использование ресурсов между источниками).

function setProperties(storageServiceProperties: StorageServiceProperties, options?: Models.ServiceSetPropertiesOptionalParams)

Параметры

storageServiceProperties
StorageServiceProperties

Свойства StorageService.

options
Models.ServiceSetPropertiesOptionalParams

Возвращаемое значение

Promise<Models.ServiceSetPropertiesResponse>

Обещание<Models.ServiceSetPropertiesResponse>

setProperties(StorageServiceProperties, ServiceCallback<void>)

function setProperties(storageServiceProperties: StorageServiceProperties, callback: ServiceCallback<void>)

Параметры

storageServiceProperties
StorageServiceProperties

Свойства StorageService.

callback

ServiceCallback<void>

Обратный вызов

setProperties(StorageServiceProperties, ServiceSetPropertiesOptionalParams, ServiceCallback<void>)

function setProperties(storageServiceProperties: StorageServiceProperties, options: ServiceSetPropertiesOptionalParams, callback: ServiceCallback<void>)

Параметры

storageServiceProperties
StorageServiceProperties

Свойства StorageService.

options
ServiceSetPropertiesOptionalParams

Необязательные параметры

callback

ServiceCallback<void>

Обратный вызов