StorageCacheManagementClient class
构造函数
| Storage |
初始化 StorageCacheManagementClient 类的新实例。 |
属性
| accept |
|
| api |
|
| asc |
|
| caches | |
| credentials | |
| long |
长时间运行的作的重试超时(以秒为单位)。 默认值为 30。 |
| operations | |
| skus | |
| storage |
|
| storage |
|
| subscription |
|
| usage |
方法
| begin |
发送 LRO(长时间运行的作)的初始请求,并返回一个 HttpLongRunningOperationResponse,该请求提供轮询 LRO 的方法并检查 LRO 是否已完成。 |
| restore |
从提供的 LROPollState 还原 LROPoller。 此方法可用于在不同的进程或计算机上重新创建 LROPoller。 |
| send |
提供一种机制,用于发出将轮询和提供最终结果的请求。 |
| send |
发送 LRO(长时间运行的作)的初始请求,并返回一个 LROPoller,该 LROLer 提供轮询 LRO 的方法,并检查 LRO 是否已完成。 |
| send |
发送使用提供的 OperationSpec 填充的 HTTP 请求。 |
| send |
发送提供的 httpRequest。 |
构造函数详细信息
StorageCacheManagementClient(ServiceClientCredentials | TokenCredential, string, Models.StorageCacheManagementClientOptions)
初始化 StorageCacheManagementClient 类的新实例。
new StorageCacheManagementClient(credentials: ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageCacheManagementClientOptions)
参数
- credentials
-
ServiceClientCredentials | TokenCredential
客户端连接到 Azure 所需的凭据。 建议使用从 @azure/identity 包实现 TokenCredential 接口的凭据。 有关这些凭据的详细信息,请参阅 <xref:https%3A%2F%2Fwww.npmjs.com%2Fpackage%2F%40azure%2Fidentity>。 从旧包实现 ServiceClientCredentials 接口的凭据 @azure/ms-rest-nodeauth 和
- subscriptionId
-
string
唯一标识 azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。
- options
- Models.StorageCacheManagementClientOptions
属性详细信息
acceptLanguage
acceptLanguage: string
属性值
string
apiVersion
apiVersion?: undefined | string
属性值
undefined | string
ascOperations
caches
credentials
credentials: ServiceClientCredentials | TokenCredential
属性值
ServiceClientCredentials | TokenCredential
longRunningOperationRetryTimeout
长时间运行的作的重试超时(以秒为单位)。 默认值为 30。
longRunningOperationRetryTimeout?: undefined | number
属性值
undefined | number
operations
skus
storageTarget
storageTargets
subscriptionId
subscriptionId: string
属性值
string
usageModels
方法详细信息
beginLongRunningRequest(RequestPrepareOptions | WebResource, RequestOptionsBase)
发送 LRO(长时间运行的作)的初始请求,并返回一个 HttpLongRunningOperationResponse,该请求提供轮询 LRO 的方法并检查 LRO 是否已完成。
function beginLongRunningRequest(request: RequestPrepareOptions | WebResource, options?: RequestOptionsBase)
参数
- request
-
RequestPrepareOptions | WebResource
请求对象
- options
-
RequestOptionsBase
返回
Promise<LROPoller>
HttpLongRunningOperationResponse,提供与 LRO 交互的方法。
restoreLROPoller(LROPollState)
从提供的 LROPollState 还原 LROPoller。 此方法可用于在不同的进程或计算机上重新创建 LROPoller。
function restoreLROPoller(lroPollState: LROPollState)
参数
- lroPollState
-
LROPollState
返回
LROPoller
sendLongRunningRequest(RequestPrepareOptions | WebResource, RequestOptionsBase)
提供一种机制,用于发出将轮询和提供最终结果的请求。
function sendLongRunningRequest(request: RequestPrepareOptions | WebResource, options?: RequestOptionsBase)
参数
- request
-
RequestPrepareOptions | WebResource
请求对象
- options
-
RequestOptionsBase
返回
Promise<HttpOperationResponse>
包含最终轮询请求、响应和 responseBody 的 HttpOperationResponse。
sendLRORequest(OperationArguments, OperationSpec, RequestOptionsBase)
发送 LRO(长时间运行的作)的初始请求,并返回一个 LROPoller,该 LROLer 提供轮询 LRO 的方法,并检查 LRO 是否已完成。
function sendLRORequest(operationArguments: OperationArguments, operationSpec: OperationSpec, options?: RequestOptionsBase)
参数
- operationArguments
-
OperationArguments
作的参数。
- operationSpec
-
OperationSpec
作的规范。
- options
-
RequestOptionsBase
发出请求时要发送的其他选项。
返回
Promise<LROPoller>
提供与 LRO 交互的方法的 LROPoller 对象。
sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)
发送使用提供的 OperationSpec 填充的 HTTP 请求。
function sendOperationRequest(operationArguments: OperationArguments, operationSpec: OperationSpec, callback?: ServiceCallback<any>)
参数
- operationArguments
-
OperationArguments
将从中填充 HTTP 请求的模板化值的参数。
- operationSpec
-
OperationSpec
用于填充 httpRequest 的 OperationSpec。
- callback
-
ServiceCallback<any>
收到响应时要调用的回调。
返回
Promise<RestResponse>
sendRequest(RequestPrepareOptions | WebResourceLike)
发送提供的 httpRequest。
function sendRequest(options: RequestPrepareOptions | WebResourceLike)
参数
- options
-
RequestPrepareOptions | WebResourceLike
返回
Promise<HttpOperationResponse>