/// <summary>Snippet for Delete</summary> public void DeleteRequestObject() { // Snippet: Delete(DeleteDiskRequest, CallSettings) // Create client DisksClient disksClient = DisksClient.Create(); // Initialize request argument(s) DeleteDiskRequest request = new DeleteDiskRequest { Disk = "", Zone = "", RequestId = "", Project = "", }; // Make the request Operation response = disksClient.Delete(request); // End snippet }
/// <summary>Snippet for DeleteAsync</summary> public async Task DeleteRequestObjectAsync() { // Snippet: DeleteAsync(DeleteDiskRequest, CallSettings) // Additional: DeleteAsync(DeleteDiskRequest, CancellationToken) // Create client DisksClient disksClient = await DisksClient.CreateAsync(); // Initialize request argument(s) DeleteDiskRequest request = new DeleteDiskRequest { Disk = "", Zone = "", RequestId = "", Project = "", }; // Make the request Operation response = await disksClient.DeleteAsync(request); // End snippet }
/// <summary> /// - 删除一块按配置计费的云硬盘,云盘类型包括高效云盘、SSD云盘、通用型SSD、性能型SSD和容量型HDD。 /// - 删除云盘时,云盘的状态必须为 待挂载(Available)。 /// - 云盘被删除后,云硬盘快照可以被保留。 /// /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public async Task <DeleteDiskResponse> DeleteDisk(DeleteDiskRequest request) { return(await new DeleteDiskExecutor().Client(this).Execute <DeleteDiskResponse, DeleteDiskResult, DeleteDiskRequest>(request).ConfigureAwait(false)); }
/// <summary> /// - 删除一块按配置计费的云硬盘,云盘类型包括高效云盘、SSD云盘、通用型SSD、性能型SSD和容量型HDD。 /// - 删除云盘时,云盘的状态必须为 待挂载(Available)。 /// - 云盘被删除后,云硬盘快照可以被保留。 /// /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public DeleteDiskResponse DeleteDisk(DeleteDiskRequest request) { return(new DeleteDiskExecutor().Client(this).Execute <DeleteDiskResponse, DeleteDiskResult, DeleteDiskRequest>(request)); }