All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.cbs.v20170312.models.DescribeDisksRequest Maven / Gradle / Ivy

There is a newer version: 3.0.1034
Show newest version
/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.cbs.v20170312.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class DescribeDisksRequest extends AbstractModel{

    /**
    * Query by one or more cloud disk IDs, such as `disk-11112222`. For the format of this parameter, please see the ids.N section of the API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). This parameter does not support specifying both `DiskIds` and `Filters`.
    */
    @SerializedName("DiskIds")
    @Expose
    private String [] DiskIds;

    /**
    * Filters. You cannot specify `DiskIds` and `Filters` at the same time. 
  • disk-usage - Array of String - Optional - Filters by cloud disk type. (SYSTEM_DISK: system disk | DATA_DISK: data disk)
  • disk-charge-type - Array of String - Optional - Filters by cloud disk billing method. (POSTPAID_BY_HOUR: pay-as-you-go)
  • portable - Array of String- Optional - Filters by whether the cloud disk is elastic or not. (TRUE: elastic | FALSE: non-elastic)
  • project-id - Array of Integer - Optional - Filters by the ID of the project to which a cloud disk belongs.
  • disk-id - Array of String - Optional - Filters by cloud disk ID, such as `disk-11112222`.
  • disk-name - Array of String - Optional - Filters by cloud disk name.
  • disk-type - Array of String - Optional - Filters by cloud disk media type (CLOUD_BASIC: HDD cloud disk | CLOUD_PREMIUM: Premium Cloud Storage | CLOUD_SSD: SSD cloud disk.)
  • disk-state - Array of String - Optional - Filters by cloud disk state. (UNATTACHED: not mounted | ATTACHING: being mounted | ATTACHED: mounted | DETACHING: being unmounted | EXPANDING: being expanded | ROLLBACKING: being rolled back | TORECYCLE: to be repossessed.)
  • instance-id - Array of String - Optional - Filters by the ID of the CVM instance on which a cloud disk is mounted. You can use this parameter to query the cloud disks mounted on specific CVMs.
  • zone - Array of String - Optional - Filters by [availability zone](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo)
  • instance-ip-address - Array of String - Optional - Filters by the private or public IP of the CVM on which a cloud disk is mounted.
  • instance-name - Array of String - Optional - Filters by the name of the instance on which a cloud disk is mounted.
  • tag-key - Array of String - Optional - Filters by tag key.
  • tag-value - Array of String - Optional - Filters by tag value.
  • tag:tag-key - Array of String - Optional - Filters by tag key-value pair. Please replace `tag-key` with a specific tag key. */ @SerializedName("Filters") @Expose private Filter [] Filters; /** * Offset. Default is 0. For more information on `Offset`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). */ @SerializedName("Offset") @Expose private Long Offset; /** * Number of results to be returned. Default is 20. Maximum is 100. For more information on `Limit`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). */ @SerializedName("Limit") @Expose private Long Limit; /** * Outputs the ordering of the cloud disk list. Value range:
  • ASC: Ascending order
  • DESC: Descending order. */ @SerializedName("Order") @Expose private String Order; /** * The field by which the cloud disk list is sorted. Value range:
  • CREATE_TIME: sorted by the creation time of cloud disks
  • DEADLINE: sorted by the expiration time of cloud disks
    By default, the cloud disk list is sorted by the creation time of cloud disks. */ @SerializedName("OrderField") @Expose private String OrderField; /** * Whether the ID of the periodic snapshot policy bound to the cloud disk needs to be returned in the cloud disk details. TRUE: return; FALSE: do not return. */ @SerializedName("ReturnBindAutoSnapshotPolicy") @Expose private Boolean ReturnBindAutoSnapshotPolicy; /** * Get Query by one or more cloud disk IDs, such as `disk-11112222`. For the format of this parameter, please see the ids.N section of the API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). This parameter does not support specifying both `DiskIds` and `Filters`. * @return DiskIds Query by one or more cloud disk IDs, such as `disk-11112222`. For the format of this parameter, please see the ids.N section of the API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). This parameter does not support specifying both `DiskIds` and `Filters`. */ public String [] getDiskIds() { return this.DiskIds; } /** * Set Query by one or more cloud disk IDs, such as `disk-11112222`. For the format of this parameter, please see the ids.N section of the API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). This parameter does not support specifying both `DiskIds` and `Filters`. * @param DiskIds Query by one or more cloud disk IDs, such as `disk-11112222`. For the format of this parameter, please see the ids.N section of the API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). This parameter does not support specifying both `DiskIds` and `Filters`. */ public void setDiskIds(String [] DiskIds) { this.DiskIds = DiskIds; } /** * Get Filters. You cannot specify `DiskIds` and `Filters` at the same time.
  • disk-usage - Array of String - Optional - Filters by cloud disk type. (SYSTEM_DISK: system disk | DATA_DISK: data disk)
  • disk-charge-type - Array of String - Optional - Filters by cloud disk billing method. (POSTPAID_BY_HOUR: pay-as-you-go)
  • portable - Array of String- Optional - Filters by whether the cloud disk is elastic or not. (TRUE: elastic | FALSE: non-elastic)
  • project-id - Array of Integer - Optional - Filters by the ID of the project to which a cloud disk belongs.
  • disk-id - Array of String - Optional - Filters by cloud disk ID, such as `disk-11112222`.
  • disk-name - Array of String - Optional - Filters by cloud disk name.
  • disk-type - Array of String - Optional - Filters by cloud disk media type (CLOUD_BASIC: HDD cloud disk | CLOUD_PREMIUM: Premium Cloud Storage | CLOUD_SSD: SSD cloud disk.)
  • disk-state - Array of String - Optional - Filters by cloud disk state. (UNATTACHED: not mounted | ATTACHING: being mounted | ATTACHED: mounted | DETACHING: being unmounted | EXPANDING: being expanded | ROLLBACKING: being rolled back | TORECYCLE: to be repossessed.)
  • instance-id - Array of String - Optional - Filters by the ID of the CVM instance on which a cloud disk is mounted. You can use this parameter to query the cloud disks mounted on specific CVMs.
  • zone - Array of String - Optional - Filters by [availability zone](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo)
  • instance-ip-address - Array of String - Optional - Filters by the private or public IP of the CVM on which a cloud disk is mounted.
  • instance-name - Array of String - Optional - Filters by the name of the instance on which a cloud disk is mounted.
  • tag-key - Array of String - Optional - Filters by tag key.
  • tag-value - Array of String - Optional - Filters by tag value.
  • tag:tag-key - Array of String - Optional - Filters by tag key-value pair. Please replace `tag-key` with a specific tag key. * @return Filters Filters. You cannot specify `DiskIds` and `Filters` at the same time.
  • disk-usage - Array of String - Optional - Filters by cloud disk type. (SYSTEM_DISK: system disk | DATA_DISK: data disk)
  • disk-charge-type - Array of String - Optional - Filters by cloud disk billing method. (POSTPAID_BY_HOUR: pay-as-you-go)
  • portable - Array of String- Optional - Filters by whether the cloud disk is elastic or not. (TRUE: elastic | FALSE: non-elastic)
  • project-id - Array of Integer - Optional - Filters by the ID of the project to which a cloud disk belongs.
  • disk-id - Array of String - Optional - Filters by cloud disk ID, such as `disk-11112222`.
  • disk-name - Array of String - Optional - Filters by cloud disk name.
  • disk-type - Array of String - Optional - Filters by cloud disk media type (CLOUD_BASIC: HDD cloud disk | CLOUD_PREMIUM: Premium Cloud Storage | CLOUD_SSD: SSD cloud disk.)
  • disk-state - Array of String - Optional - Filters by cloud disk state. (UNATTACHED: not mounted | ATTACHING: being mounted | ATTACHED: mounted | DETACHING: being unmounted | EXPANDING: being expanded | ROLLBACKING: being rolled back | TORECYCLE: to be repossessed.)
  • instance-id - Array of String - Optional - Filters by the ID of the CVM instance on which a cloud disk is mounted. You can use this parameter to query the cloud disks mounted on specific CVMs.
  • zone - Array of String - Optional - Filters by [availability zone](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo)
  • instance-ip-address - Array of String - Optional - Filters by the private or public IP of the CVM on which a cloud disk is mounted.
  • instance-name - Array of String - Optional - Filters by the name of the instance on which a cloud disk is mounted.
  • tag-key - Array of String - Optional - Filters by tag key.
  • tag-value - Array of String - Optional - Filters by tag value.
  • tag:tag-key - Array of String - Optional - Filters by tag key-value pair. Please replace `tag-key` with a specific tag key. */ public Filter [] getFilters() { return this.Filters; } /** * Set Filters. You cannot specify `DiskIds` and `Filters` at the same time.
  • disk-usage - Array of String - Optional - Filters by cloud disk type. (SYSTEM_DISK: system disk | DATA_DISK: data disk)
  • disk-charge-type - Array of String - Optional - Filters by cloud disk billing method. (POSTPAID_BY_HOUR: pay-as-you-go)
  • portable - Array of String- Optional - Filters by whether the cloud disk is elastic or not. (TRUE: elastic | FALSE: non-elastic)
  • project-id - Array of Integer - Optional - Filters by the ID of the project to which a cloud disk belongs.
  • disk-id - Array of String - Optional - Filters by cloud disk ID, such as `disk-11112222`.
  • disk-name - Array of String - Optional - Filters by cloud disk name.
  • disk-type - Array of String - Optional - Filters by cloud disk media type (CLOUD_BASIC: HDD cloud disk | CLOUD_PREMIUM: Premium Cloud Storage | CLOUD_SSD: SSD cloud disk.)
  • disk-state - Array of String - Optional - Filters by cloud disk state. (UNATTACHED: not mounted | ATTACHING: being mounted | ATTACHED: mounted | DETACHING: being unmounted | EXPANDING: being expanded | ROLLBACKING: being rolled back | TORECYCLE: to be repossessed.)
  • instance-id - Array of String - Optional - Filters by the ID of the CVM instance on which a cloud disk is mounted. You can use this parameter to query the cloud disks mounted on specific CVMs.
  • zone - Array of String - Optional - Filters by [availability zone](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo)
  • instance-ip-address - Array of String - Optional - Filters by the private or public IP of the CVM on which a cloud disk is mounted.
  • instance-name - Array of String - Optional - Filters by the name of the instance on which a cloud disk is mounted.
  • tag-key - Array of String - Optional - Filters by tag key.
  • tag-value - Array of String - Optional - Filters by tag value.
  • tag:tag-key - Array of String - Optional - Filters by tag key-value pair. Please replace `tag-key` with a specific tag key. * @param Filters Filters. You cannot specify `DiskIds` and `Filters` at the same time.
  • disk-usage - Array of String - Optional - Filters by cloud disk type. (SYSTEM_DISK: system disk | DATA_DISK: data disk)
  • disk-charge-type - Array of String - Optional - Filters by cloud disk billing method. (POSTPAID_BY_HOUR: pay-as-you-go)
  • portable - Array of String- Optional - Filters by whether the cloud disk is elastic or not. (TRUE: elastic | FALSE: non-elastic)
  • project-id - Array of Integer - Optional - Filters by the ID of the project to which a cloud disk belongs.
  • disk-id - Array of String - Optional - Filters by cloud disk ID, such as `disk-11112222`.
  • disk-name - Array of String - Optional - Filters by cloud disk name.
  • disk-type - Array of String - Optional - Filters by cloud disk media type (CLOUD_BASIC: HDD cloud disk | CLOUD_PREMIUM: Premium Cloud Storage | CLOUD_SSD: SSD cloud disk.)
  • disk-state - Array of String - Optional - Filters by cloud disk state. (UNATTACHED: not mounted | ATTACHING: being mounted | ATTACHED: mounted | DETACHING: being unmounted | EXPANDING: being expanded | ROLLBACKING: being rolled back | TORECYCLE: to be repossessed.)
  • instance-id - Array of String - Optional - Filters by the ID of the CVM instance on which a cloud disk is mounted. You can use this parameter to query the cloud disks mounted on specific CVMs.
  • zone - Array of String - Optional - Filters by [availability zone](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo)
  • instance-ip-address - Array of String - Optional - Filters by the private or public IP of the CVM on which a cloud disk is mounted.
  • instance-name - Array of String - Optional - Filters by the name of the instance on which a cloud disk is mounted.
  • tag-key - Array of String - Optional - Filters by tag key.
  • tag-value - Array of String - Optional - Filters by tag value.
  • tag:tag-key - Array of String - Optional - Filters by tag key-value pair. Please replace `tag-key` with a specific tag key. */ public void setFilters(Filter [] Filters) { this.Filters = Filters; } /** * Get Offset. Default is 0. For more information on `Offset`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). * @return Offset Offset. Default is 0. For more information on `Offset`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). */ public Long getOffset() { return this.Offset; } /** * Set Offset. Default is 0. For more information on `Offset`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). * @param Offset Offset. Default is 0. For more information on `Offset`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). */ public void setOffset(Long Offset) { this.Offset = Offset; } /** * Get Number of results to be returned. Default is 20. Maximum is 100. For more information on `Limit`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). * @return Limit Number of results to be returned. Default is 20. Maximum is 100. For more information on `Limit`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). */ public Long getLimit() { return this.Limit; } /** * Set Number of results to be returned. Default is 20. Maximum is 100. For more information on `Limit`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). * @param Limit Number of results to be returned. Default is 20. Maximum is 100. For more information on `Limit`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). */ public void setLimit(Long Limit) { this.Limit = Limit; } /** * Get Outputs the ordering of the cloud disk list. Value range:
  • ASC: Ascending order
  • DESC: Descending order. * @return Order Outputs the ordering of the cloud disk list. Value range:
  • ASC: Ascending order
  • DESC: Descending order. */ public String getOrder() { return this.Order; } /** * Set Outputs the ordering of the cloud disk list. Value range:
  • ASC: Ascending order
  • DESC: Descending order. * @param Order Outputs the ordering of the cloud disk list. Value range:
  • ASC: Ascending order
  • DESC: Descending order. */ public void setOrder(String Order) { this.Order = Order; } /** * Get The field by which the cloud disk list is sorted. Value range:
  • CREATE_TIME: sorted by the creation time of cloud disks
  • DEADLINE: sorted by the expiration time of cloud disks
    By default, the cloud disk list is sorted by the creation time of cloud disks. * @return OrderField The field by which the cloud disk list is sorted. Value range:
  • CREATE_TIME: sorted by the creation time of cloud disks
  • DEADLINE: sorted by the expiration time of cloud disks
    By default, the cloud disk list is sorted by the creation time of cloud disks. */ public String getOrderField() { return this.OrderField; } /** * Set The field by which the cloud disk list is sorted. Value range:
  • CREATE_TIME: sorted by the creation time of cloud disks
  • DEADLINE: sorted by the expiration time of cloud disks
    By default, the cloud disk list is sorted by the creation time of cloud disks. * @param OrderField The field by which the cloud disk list is sorted. Value range:
  • CREATE_TIME: sorted by the creation time of cloud disks
  • DEADLINE: sorted by the expiration time of cloud disks
    By default, the cloud disk list is sorted by the creation time of cloud disks. */ public void setOrderField(String OrderField) { this.OrderField = OrderField; } /** * Get Whether the ID of the periodic snapshot policy bound to the cloud disk needs to be returned in the cloud disk details. TRUE: return; FALSE: do not return. * @return ReturnBindAutoSnapshotPolicy Whether the ID of the periodic snapshot policy bound to the cloud disk needs to be returned in the cloud disk details. TRUE: return; FALSE: do not return. */ public Boolean getReturnBindAutoSnapshotPolicy() { return this.ReturnBindAutoSnapshotPolicy; } /** * Set Whether the ID of the periodic snapshot policy bound to the cloud disk needs to be returned in the cloud disk details. TRUE: return; FALSE: do not return. * @param ReturnBindAutoSnapshotPolicy Whether the ID of the periodic snapshot policy bound to the cloud disk needs to be returned in the cloud disk details. TRUE: return; FALSE: do not return. */ public void setReturnBindAutoSnapshotPolicy(Boolean ReturnBindAutoSnapshotPolicy) { this.ReturnBindAutoSnapshotPolicy = ReturnBindAutoSnapshotPolicy; } public DescribeDisksRequest() { } /** * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, * and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. */ public DescribeDisksRequest(DescribeDisksRequest source) { if (source.DiskIds != null) { this.DiskIds = new String[source.DiskIds.length]; for (int i = 0; i < source.DiskIds.length; i++) { this.DiskIds[i] = new String(source.DiskIds[i]); } } if (source.Filters != null) { this.Filters = new Filter[source.Filters.length]; for (int i = 0; i < source.Filters.length; i++) { this.Filters[i] = new Filter(source.Filters[i]); } } if (source.Offset != null) { this.Offset = new Long(source.Offset); } if (source.Limit != null) { this.Limit = new Long(source.Limit); } if (source.Order != null) { this.Order = new String(source.Order); } if (source.OrderField != null) { this.OrderField = new String(source.OrderField); } if (source.ReturnBindAutoSnapshotPolicy != null) { this.ReturnBindAutoSnapshotPolicy = new Boolean(source.ReturnBindAutoSnapshotPolicy); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamArraySimple(map, prefix + "DiskIds.", this.DiskIds); this.setParamArrayObj(map, prefix + "Filters.", this.Filters); this.setParamSimple(map, prefix + "Offset", this.Offset); this.setParamSimple(map, prefix + "Limit", this.Limit); this.setParamSimple(map, prefix + "Order", this.Order); this.setParamSimple(map, prefix + "OrderField", this.OrderField); this.setParamSimple(map, prefix + "ReturnBindAutoSnapshotPolicy", this.ReturnBindAutoSnapshotPolicy); } }




  • © 2015 - 2025 Weber Informatics LLC | Privacy Policy