Service class
Klass som representerar en tjänst.
Konstruktorer
| Service(Storage |
Skapa en tjänst. |
Metoder
Konstruktorinformation
Service(StorageClientContext)
Skapa en tjänst.
new Service(client: StorageClientContext)
Parametrar
- client
- StorageClientContext
Referens till tjänstklienten.
Metodinformation
getProperties(Models.ServiceGetPropertiesOptionalParams)
Hämtar egenskaperna för ett lagringskontos filtjänst, inklusive egenskaper för lagringsanalysmått och CORS-regler (resursdelning mellan ursprung).
function getProperties(options?: Models.ServiceGetPropertiesOptionalParams)
Parametrar
- options
- Models.ServiceGetPropertiesOptionalParams
Returer
Promise<Models.ServiceGetPropertiesResponse>
Löfte<Models.ServiceGetPropertiesResponse>
getProperties(ServiceCallback<StorageServiceProperties>)
function getProperties(callback: ServiceCallback<StorageServiceProperties>)
Parametrar
- callback
-
ServiceCallback<StorageServiceProperties>
Återanropet
getProperties(ServiceGetPropertiesOptionalParams, ServiceCallback<StorageServiceProperties>)
function getProperties(options: ServiceGetPropertiesOptionalParams, callback: ServiceCallback<StorageServiceProperties>)
Parametrar
De valfria parametrarna
- callback
-
ServiceCallback<StorageServiceProperties>
Återanropet
listSharesSegment(Models.ServiceListSharesSegmentOptionalParams)
Åtgärden List shares segment returnerar en lista över resurser och resursögonblicksbilder under det angivna kontot.
function listSharesSegment(options?: Models.ServiceListSharesSegmentOptionalParams)
Parametrar
- options
- Models.ServiceListSharesSegmentOptionalParams
Returer
Promise<Models.ServiceListSharesSegmentResponse>
Löfte<Models.ServiceListSharesSegmentResponse>
listSharesSegment(ServiceCallback<ListSharesResponse>)
function listSharesSegment(callback: ServiceCallback<ListSharesResponse>)
Parametrar
- callback
-
ServiceCallback<ListSharesResponse>
Återanropet
listSharesSegment(ServiceListSharesSegmentOptionalParams, ServiceCallback<ListSharesResponse>)
function listSharesSegment(options: ServiceListSharesSegmentOptionalParams, callback: ServiceCallback<ListSharesResponse>)
Parametrar
De valfria parametrarna
- callback
-
ServiceCallback<ListSharesResponse>
Återanropet
setProperties(StorageServiceProperties, Models.ServiceSetPropertiesOptionalParams)
Anger egenskaper för ett lagringskontos filtjänstslutpunkt, inklusive egenskaper för lagringsanalysmått och CORS-regler (resursdelning mellan ursprung).
function setProperties(storageServiceProperties: StorageServiceProperties, options?: Models.ServiceSetPropertiesOptionalParams)
Parametrar
- storageServiceProperties
- StorageServiceProperties
StorageService-egenskaperna.
- options
- Models.ServiceSetPropertiesOptionalParams
Returer
Promise<Models.ServiceSetPropertiesResponse>
Löfte<Models.ServiceSetPropertiesResponse>
setProperties(StorageServiceProperties, ServiceCallback<void>)
function setProperties(storageServiceProperties: StorageServiceProperties, callback: ServiceCallback<void>)
Parametrar
- storageServiceProperties
- StorageServiceProperties
StorageService-egenskaperna.
- callback
-
ServiceCallback<void>
Återanropet
setProperties(StorageServiceProperties, ServiceSetPropertiesOptionalParams, ServiceCallback<void>)
function setProperties(storageServiceProperties: StorageServiceProperties, options: ServiceSetPropertiesOptionalParams, callback: ServiceCallback<void>)
Parametrar
- storageServiceProperties
- StorageServiceProperties
StorageService-egenskaperna.
De valfria parametrarna
- callback
-
ServiceCallback<void>
Återanropet