StorageTargets class
表示 StorageTargets 的类。
构造函数
| Storage |
创建 StorageTargets。 |
方法
构造函数详细信息
StorageTargets(StorageCacheManagementClientContext)
创建 StorageTargets。
new StorageTargets(client: StorageCacheManagementClientContext)
参数
对服务客户端的引用。
方法详细信息
beginCreateOrUpdate(string, string, string, Models.StorageTargetsBeginCreateOrUpdateOptionalParams)
创建或更新存储目标。 可以随时允许此作,但如果缓存关闭或运行不正常,则存储目标的实际创建/修改可能会延迟,直到缓存再次正常运行。
function beginCreateOrUpdate(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: Models.StorageTargetsBeginCreateOrUpdateOptionalParams)
参数
- resourceGroupName
-
string
目标资源组。
- cacheName
-
string
缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。
- storageTargetName
-
string
存储目标的名称。
- options
- Models.StorageTargetsBeginCreateOrUpdateOptionalParams
返回
Promise<LROPoller>
承诺<msRestAzure.LROPoller>
beginDeleteMethod(string, string, string, Models.StorageTargetsBeginDeleteMethodOptionalParams)
从缓存中删除存储目标。 可随时允许此作,但如果缓存关闭或运行不正常,则存储目标的实际删除可能会延迟,直到缓存再次正常运行。 请注意,如果缓存的数据要刷新到存储目标,则会在删除存储目标之前刷新数据。
function beginDeleteMethod(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: Models.StorageTargetsBeginDeleteMethodOptionalParams)
参数
- resourceGroupName
-
string
目标资源组。
- cacheName
-
string
缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。
- storageTargetName
-
string
存储目标的名称。
- options
- Models.StorageTargetsBeginDeleteMethodOptionalParams
返回
Promise<LROPoller>
承诺<msRestAzure.LROPoller>
beginDnsRefresh(string, string, string, msRest.RequestOptionsBase)
告知存储目标刷新其 DNS 信息。
function beginDnsRefresh(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: msRest.RequestOptionsBase)
参数
- resourceGroupName
-
string
目标资源组。
- cacheName
-
string
缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。
- storageTargetName
-
string
存储目标的名称。
- options
- msRest.RequestOptionsBase
返回
Promise<LROPoller>
承诺<msRestAzure.LROPoller>
createOrUpdate(string, string, string, Models.StorageTargetsCreateOrUpdateOptionalParams)
创建或更新存储目标。 可以随时允许此作,但如果缓存关闭或运行不正常,则存储目标的实际创建/修改可能会延迟,直到缓存再次正常运行。
function createOrUpdate(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: Models.StorageTargetsCreateOrUpdateOptionalParams)
参数
- resourceGroupName
-
string
目标资源组。
- cacheName
-
string
缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。
- storageTargetName
-
string
存储目标的名称。
- options
- Models.StorageTargetsCreateOrUpdateOptionalParams
返回
Promise<Models.StorageTargetsCreateOrUpdateResponse>
承诺<Models.StorageTargetsCreateOrUpdateResponse>
deleteMethod(string, string, string, Models.StorageTargetsDeleteMethodOptionalParams)
从缓存中删除存储目标。 可随时允许此作,但如果缓存关闭或运行不正常,则存储目标的实际删除可能会延迟,直到缓存再次正常运行。 请注意,如果缓存的数据要刷新到存储目标,则会在删除存储目标之前刷新数据。
function deleteMethod(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: Models.StorageTargetsDeleteMethodOptionalParams)
参数
- resourceGroupName
-
string
目标资源组。
- cacheName
-
string
缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。
- storageTargetName
-
string
存储目标的名称。
- options
- Models.StorageTargetsDeleteMethodOptionalParams
返回
Promise<RestResponse>
承诺<msRest.RestResponse>
dnsRefresh(string, string, string, msRest.RequestOptionsBase)
告知存储目标刷新其 DNS 信息。
function dnsRefresh(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: msRest.RequestOptionsBase)
参数
- resourceGroupName
-
string
目标资源组。
- cacheName
-
string
缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。
- storageTargetName
-
string
存储目标的名称。
- options
- msRest.RequestOptionsBase
返回
Promise<RestResponse>
承诺<msRest.RestResponse>
get(string, string, string, msRest.RequestOptionsBase)
从缓存返回存储目标。
function get(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: msRest.RequestOptionsBase)
参数
- resourceGroupName
-
string
目标资源组。
- cacheName
-
string
缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。
- storageTargetName
-
string
存储目标的名称。
- options
- msRest.RequestOptionsBase
返回
Promise<Models.StorageTargetsGetResponse>
承诺<Models.StorageTargetsGetResponse>
get(string, string, string, RequestOptionsBase, ServiceCallback<StorageTarget>)
function get(resourceGroupName: string, cacheName: string, storageTargetName: string, options: RequestOptionsBase, callback: ServiceCallback<StorageTarget>)
参数
- resourceGroupName
-
string
目标资源组。
- cacheName
-
string
缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。
- storageTargetName
-
string
存储目标的名称。
- options
-
RequestOptionsBase
可选参数
- callback
-
ServiceCallback<StorageTarget>
回调
get(string, string, string, ServiceCallback<StorageTarget>)
function get(resourceGroupName: string, cacheName: string, storageTargetName: string, callback: ServiceCallback<StorageTarget>)
参数
- resourceGroupName
-
string
目标资源组。
- cacheName
-
string
缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。
- storageTargetName
-
string
存储目标的名称。
- callback
-
ServiceCallback<StorageTarget>
回调
listByCache(string, string, msRest.RequestOptionsBase)
返回指定缓存的存储目标列表。
function listByCache(resourceGroupName: string, cacheName: string, options?: msRest.RequestOptionsBase)
参数
- resourceGroupName
-
string
目标资源组。
- cacheName
-
string
缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。
- options
- msRest.RequestOptionsBase
返回
Promise<Models.StorageTargetsListByCacheResponse>
承诺<Models.StorageTargetsListByCacheResponse>
listByCache(string, string, RequestOptionsBase, ServiceCallback<StorageTargetsResult>)
function listByCache(resourceGroupName: string, cacheName: string, options: RequestOptionsBase, callback: ServiceCallback<StorageTargetsResult>)
参数
- resourceGroupName
-
string
目标资源组。
- cacheName
-
string
缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。
- options
-
RequestOptionsBase
可选参数
- callback
-
ServiceCallback<StorageTargetsResult>
回调
listByCache(string, string, ServiceCallback<StorageTargetsResult>)
function listByCache(resourceGroupName: string, cacheName: string, callback: ServiceCallback<StorageTargetsResult>)
参数
- resourceGroupName
-
string
目标资源组。
- cacheName
-
string
缓存的名称。 名称长度不得大于 80,字符必须来自 [-0-9a-zA-Z_] 字符类。
- callback
-
ServiceCallback<StorageTargetsResult>
回调
listByCacheNext(string, msRest.RequestOptionsBase)
返回指定缓存的存储目标列表。
function listByCacheNext(nextPageLink: string, options?: msRest.RequestOptionsBase)
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- options
- msRest.RequestOptionsBase
返回
Promise<Models.StorageTargetsListByCacheNextResponse>
Promise<Models.StorageTargetsListByCacheNextResponse>
listByCacheNext(string, RequestOptionsBase, ServiceCallback<StorageTargetsResult>)
function listByCacheNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<StorageTargetsResult>)
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- options
-
RequestOptionsBase
可选参数
- callback
-
ServiceCallback<StorageTargetsResult>
回调
listByCacheNext(string, ServiceCallback<StorageTargetsResult>)
function listByCacheNext(nextPageLink: string, callback: ServiceCallback<StorageTargetsResult>)
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- callback
-
ServiceCallback<StorageTargetsResult>
回调