tencentcloud-sdk-cvm 3.0.524 → 3.0.525

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e33916bd8d3aec13264cc5bf3483e221ff5a7c73
4
- data.tar.gz: 51ce99336619c48675090de1dea607a2425135b9
3
+ metadata.gz: de6ce360283bc2a45246157e39a071bd326142fa
4
+ data.tar.gz: 71082e2c35eb57d932e633245fafeba6f1ee6900
5
5
  SHA512:
6
- metadata.gz: f571fcc7d7fb807b9453fc6d9c20ec1d445348c4b2bce65473c14273d575797f5eceb795de5b1b7d73712b2522cfb5d4c03d7cdbdb377e36d1cedf7c1ceca2d1
7
- data.tar.gz: 65fd47f9865880c142884542e89dab418c652386d3d403f6fddc0915d1e3f4ee99370ab5afd6d1e441a00e496adcbdae2cea4df77d8d12b4a7776d3e273fe5eb
6
+ metadata.gz: e224e61b56cbc2f9065c249d02f60aa26f2fe9a02c1a6e714c3993d8a78e6898d53492e30901b321a005a89c6f679b024ed484b59d8d4ff8511594304d1479d9
7
+ data.tar.gz: 18a56d803c86e9f4d86ba38a92949292155874959e6ee37abcb426adc7b431f60b416800194bb1ddd66eedfe3f75a871eb7206addc7a3f6e93a241e8fbf4c85e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.524
1
+ 3.0.525
@@ -1145,6 +1145,35 @@ module TencentCloud
1145
1145
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1146
1146
  end
1147
1147
 
1148
+ # 本接口 (DescribeTaskInfo) 用于查询云服务器维修任务列表及详细信息。
1149
+
1150
+ # - 可以根据实例ID、实例名称或任务状态等信息来查询维修任务列表。过滤信息详情可参考入参说明。
1151
+ # - 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的维修任务列表。
1152
+
1153
+ # 默认接口请求频率限制:10次/秒。</br>
1154
+
1155
+ # @param request: Request instance for DescribeTaskInfo.
1156
+ # @type request: :class:`Tencentcloud::cvm::V20170312::DescribeTaskInfoRequest`
1157
+ # @rtype: :class:`Tencentcloud::cvm::V20170312::DescribeTaskInfoResponse`
1158
+ def DescribeTaskInfo(request)
1159
+ body = send_request('DescribeTaskInfo', request.serialize)
1160
+ response = JSON.parse(body)
1161
+ if response['Response'].key?('Error') == false
1162
+ model = DescribeTaskInfoResponse.new
1163
+ model.deserialize(response['Response'])
1164
+ model
1165
+ else
1166
+ code = response['Response']['Error']['Code']
1167
+ message = response['Response']['Error']['Message']
1168
+ reqid = response['Response']['RequestId']
1169
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1170
+ end
1171
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1172
+ raise e
1173
+ rescue StandardError => e
1174
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1175
+ end
1176
+
1148
1177
  # 本接口(DescribeZoneInstanceConfigInfos) 获取可用区的机型信息。
1149
1178
 
1150
1179
  # @param request: Request instance for DescribeZoneInstanceConfigInfos.
@@ -3019,6 +3019,137 @@ module TencentCloud
3019
3019
  end
3020
3020
  end
3021
3021
 
3022
+ # DescribeTaskInfo请求参数结构体
3023
+ class DescribeTaskInfoRequest < TencentCloud::Common::AbstractModel
3024
+ # @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
3025
+ # @type Limit: Integer
3026
+ # @param Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
3027
+ # @type Offset: Integer
3028
+ # @param Product: 按照指定的产品类型查询,支持取值:
3029
+
3030
+ # - `CVM`:云服务器
3031
+ # - `CDH`:专用宿主机
3032
+ # - `CPM2.0`:裸金属云服务器
3033
+
3034
+ # 未传入或为空时,默认查询全部产品类型。
3035
+ # @type Product: String
3036
+ # @param TaskStatus: 按照一个或多个任务状态ID进行过滤。
3037
+ # `TaskStatus`(任务状态ID)与任务状态中文名的对应关系如下:
3038
+
3039
+ # - `1`:待授权
3040
+ # - `2`:处理中
3041
+ # - `3`:已结束
3042
+ # - `4`:已预约
3043
+ # - `5`:已取消
3044
+ # - `6`:已避免
3045
+
3046
+ # 各任务状态的具体含义,可参考 [任务状态](https://cloud.tencent.com/document/product/213/67789#.E4.BB.BB.E5.8A.A1.E7.8A.B6.E6.80.81)。
3047
+ # @type TaskStatus: Array
3048
+ # @param TaskTypeIds: 按照一个或多个任务类型ID进行过滤。
3049
+
3050
+ # `TaskTypeId`(任务类型ID)与任务类型中文名的对应关系如下:
3051
+
3052
+ # - `101`:实例运行隐患
3053
+ # - `102`:实例运行异常
3054
+ # - `103`:实例硬盘异常
3055
+ # - `104`:实例网络连接异常
3056
+ # - `105`:实例运行预警
3057
+ # - `106`:实例硬盘预警
3058
+ # - `107`:实例维护升级
3059
+
3060
+ # 各任务类型的具体含义,可参考 [维修任务分类](https://cloud.tencent.com/document/product/213/67789#.E7.BB.B4.E4.BF.AE.E4.BB.BB.E5.8A.A1.E5.88.86.E7.B1.BB)。
3061
+ # @type TaskTypeIds: Array
3062
+ # @param TaskIds: 按照一个或者多个任务ID查询。任务ID形如:`rep-xxxxxxxx`。
3063
+ # @type TaskIds: Array
3064
+ # @param InstanceIds: 按照一个或者多个实例ID查询。实例ID形如:`ins-xxxxxxxx`。
3065
+ # @type InstanceIds: Array
3066
+ # @param Aliases: 按照一个或者多个实例名称查询。
3067
+ # @type Aliases: Array
3068
+ # @param StartDate: 时间查询区间的起始位置,会根据`OrderField`中指定的字段进行过滤。未传入时默认为当天`00:00:00`。
3069
+ # @type StartDate: String
3070
+ # @param EndDate: 时间查询区间的终止位置,会根据`OrderField`中指定的字段进行过滤。未传入时默认为当前时刻。
3071
+ # @type EndDate: String
3072
+ # @param OrderField: 指定返回维修任务列表的排序字段,目前支持:
3073
+
3074
+ # - `CreateTime`:任务创建时间
3075
+ # - `AuthTime`:任务授权时间
3076
+ # - `EndTime`:任务结束时间
3077
+
3078
+ # 未传入时或为空时,默认按`CreateTime`字段进行排序。
3079
+ # @type OrderField: String
3080
+ # @param Order: 排序方式,目前支持:
3081
+
3082
+ # - `0`:升序(默认)
3083
+ # - `1`:降序
3084
+
3085
+ # 未传入或为空时,默认按升序排序。
3086
+ # @type Order: Integer
3087
+
3088
+ attr_accessor :Limit, :Offset, :Product, :TaskStatus, :TaskTypeIds, :TaskIds, :InstanceIds, :Aliases, :StartDate, :EndDate, :OrderField, :Order
3089
+
3090
+ def initialize(limit=nil, offset=nil, product=nil, taskstatus=nil, tasktypeids=nil, taskids=nil, instanceids=nil, aliases=nil, startdate=nil, enddate=nil, orderfield=nil, order=nil)
3091
+ @Limit = limit
3092
+ @Offset = offset
3093
+ @Product = product
3094
+ @TaskStatus = taskstatus
3095
+ @TaskTypeIds = tasktypeids
3096
+ @TaskIds = taskids
3097
+ @InstanceIds = instanceids
3098
+ @Aliases = aliases
3099
+ @StartDate = startdate
3100
+ @EndDate = enddate
3101
+ @OrderField = orderfield
3102
+ @Order = order
3103
+ end
3104
+
3105
+ def deserialize(params)
3106
+ @Limit = params['Limit']
3107
+ @Offset = params['Offset']
3108
+ @Product = params['Product']
3109
+ @TaskStatus = params['TaskStatus']
3110
+ @TaskTypeIds = params['TaskTypeIds']
3111
+ @TaskIds = params['TaskIds']
3112
+ @InstanceIds = params['InstanceIds']
3113
+ @Aliases = params['Aliases']
3114
+ @StartDate = params['StartDate']
3115
+ @EndDate = params['EndDate']
3116
+ @OrderField = params['OrderField']
3117
+ @Order = params['Order']
3118
+ end
3119
+ end
3120
+
3121
+ # DescribeTaskInfo返回参数结构体
3122
+ class DescribeTaskInfoResponse < TencentCloud::Common::AbstractModel
3123
+ # @param TotalCount: 查询返回的维修任务总数量。
3124
+ # @type TotalCount: Integer
3125
+ # @param RepairTaskInfoSet: 查询返回的维修任务列表。
3126
+ # 注意:此字段可能返回 null,表示取不到有效值。
3127
+ # @type RepairTaskInfoSet: Array
3128
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3129
+ # @type RequestId: String
3130
+
3131
+ attr_accessor :TotalCount, :RepairTaskInfoSet, :RequestId
3132
+
3133
+ def initialize(totalcount=nil, repairtaskinfoset=nil, requestid=nil)
3134
+ @TotalCount = totalcount
3135
+ @RepairTaskInfoSet = repairtaskinfoset
3136
+ @RequestId = requestid
3137
+ end
3138
+
3139
+ def deserialize(params)
3140
+ @TotalCount = params['TotalCount']
3141
+ unless params['RepairTaskInfoSet'].nil?
3142
+ @RepairTaskInfoSet = []
3143
+ params['RepairTaskInfoSet'].each do |i|
3144
+ repairtaskinfo_tmp = RepairTaskInfo.new
3145
+ repairtaskinfo_tmp.deserialize(i)
3146
+ @RepairTaskInfoSet << repairtaskinfo_tmp
3147
+ end
3148
+ end
3149
+ @RequestId = params['RequestId']
3150
+ end
3151
+ end
3152
+
3022
3153
  # DescribeZoneInstanceConfigInfos请求参数结构体
3023
3154
  class DescribeZoneInstanceConfigInfosRequest < TencentCloud::Common::AbstractModel
3024
3155
  # @param Filters: <li><strong>zone</strong></li>
@@ -3814,10 +3945,12 @@ module TencentCloud
3814
3945
  # TencentCloud: 腾讯云官方许可
3815
3946
  # BYOL: 自带许可(Bring Your Own License)
3816
3947
  # @type LicenseType: String
3948
+ # @param BootMode: 启动模式
3949
+ # @type BootMode: String
3817
3950
 
3818
- attr_accessor :Architecture, :OsType, :OsVersion, :ImageUrl, :ImageName, :ImageDescription, :DryRun, :Force, :TagSpecification, :LicenseType
3951
+ attr_accessor :Architecture, :OsType, :OsVersion, :ImageUrl, :ImageName, :ImageDescription, :DryRun, :Force, :TagSpecification, :LicenseType, :BootMode
3819
3952
 
3820
- def initialize(architecture=nil, ostype=nil, osversion=nil, imageurl=nil, imagename=nil, imagedescription=nil, dryrun=nil, force=nil, tagspecification=nil, licensetype=nil)
3953
+ def initialize(architecture=nil, ostype=nil, osversion=nil, imageurl=nil, imagename=nil, imagedescription=nil, dryrun=nil, force=nil, tagspecification=nil, licensetype=nil, bootmode=nil)
3821
3954
  @Architecture = architecture
3822
3955
  @OsType = ostype
3823
3956
  @OsVersion = osversion
@@ -3828,6 +3961,7 @@ module TencentCloud
3828
3961
  @Force = force
3829
3962
  @TagSpecification = tagspecification
3830
3963
  @LicenseType = licensetype
3964
+ @BootMode = bootmode
3831
3965
  end
3832
3966
 
3833
3967
  def deserialize(params)
@@ -3848,6 +3982,7 @@ module TencentCloud
3848
3982
  end
3849
3983
  end
3850
3984
  @LicenseType = params['LicenseType']
3985
+ @BootMode = params['BootMode']
3851
3986
  end
3852
3987
  end
3853
3988
 
@@ -6724,6 +6859,170 @@ module TencentCloud
6724
6859
  end
6725
6860
  end
6726
6861
 
6862
+ # 描述维修任务的相关信息
6863
+ class RepairTaskInfo < TencentCloud::Common::AbstractModel
6864
+ # @param TaskId: 维修任务ID
6865
+ # @type TaskId: String
6866
+ # @param InstanceId: 实例ID
6867
+ # @type InstanceId: String
6868
+ # @param Alias: 实例名称
6869
+ # 注意:此字段可能返回 null,表示取不到有效值。
6870
+ # @type Alias: String
6871
+ # @param TaskTypeId: 任务类型ID,与任务类型中文名的对应关系如下:
6872
+
6873
+ # - `101`:实例运行隐患
6874
+ # - `102`:实例运行异常
6875
+ # - `103`:实例硬盘异常
6876
+ # - `104`:实例网络连接异常
6877
+ # - `105`:实例运行预警
6878
+ # - `106`:实例硬盘预警
6879
+ # - `107`:实例维护升级
6880
+
6881
+ # 各任务类型的具体含义,可参考 [维修任务分类](https://cloud.tencent.com/document/product/213/67789#.E7.BB.B4.E4.BF.AE.E4.BB.BB.E5.8A.A1.E5.88.86.E7.B1.BB)。
6882
+ # @type TaskTypeId: Integer
6883
+ # @param TaskTypeName: 任务类型中文名
6884
+ # @type TaskTypeName: String
6885
+ # @param TaskStatus: 任务状态ID,与任务状态中文名的对应关系如下:
6886
+
6887
+ # - `1`:待授权
6888
+ # - `2`:处理中
6889
+ # - `3`:已结束
6890
+ # - `4`:已预约
6891
+ # - `5`:已取消
6892
+ # - `6`:已避免
6893
+
6894
+ # 各任务状态的具体含义,可参考 [任务状态](https://cloud.tencent.com/document/product/213/67789#.E4.BB.BB.E5.8A.A1.E7.8A.B6.E6.80.81)。
6895
+ # @type TaskStatus: Integer
6896
+ # @param DeviceStatus: 设备状态ID,与设备状态中文名的对应关系如下:
6897
+
6898
+ # - `1`:故障中
6899
+ # - `2`:处理中
6900
+ # - `3`:正常
6901
+ # - `4`:已预约
6902
+ # - `5`:已取消
6903
+ # - `6`:已避免
6904
+ # @type DeviceStatus: Integer
6905
+ # @param OperateStatus: 操作状态ID,与操作状态中文名的对应关系如下:
6906
+
6907
+ # - `1`:未授权
6908
+ # - `2`:已授权
6909
+ # - `3`:已处理
6910
+ # - `4`:已预约
6911
+ # - `5`:已取消
6912
+ # - `6`:已避免
6913
+ # @type OperateStatus: Integer
6914
+ # @param CreateTime: 任务创建时间
6915
+ # @type CreateTime: String
6916
+ # @param AuthTime: 任务授权时间
6917
+ # 注意:此字段可能返回 null,表示取不到有效值。
6918
+ # @type AuthTime: String
6919
+ # @param EndTime: 任务结束时间
6920
+ # 注意:此字段可能返回 null,表示取不到有效值。
6921
+ # @type EndTime: String
6922
+ # @param TaskDetail: 任务详情
6923
+ # 注意:此字段可能返回 null,表示取不到有效值。
6924
+ # @type TaskDetail: String
6925
+ # @param Zone: 可用区
6926
+ # 注意:此字段可能返回 null,表示取不到有效值。
6927
+ # @type Zone: String
6928
+ # @param Region: 地域
6929
+ # 注意:此字段可能返回 null,表示取不到有效值。
6930
+ # @type Region: String
6931
+ # @param VpcId: 所在私有网络ID
6932
+ # 注意:此字段可能返回 null,表示取不到有效值。
6933
+ # @type VpcId: String
6934
+ # @param VpcName: 所在私有网络名称
6935
+ # 注意:此字段可能返回 null,表示取不到有效值。
6936
+ # @type VpcName: String
6937
+ # @param SubnetId: 所在子网ID
6938
+ # 注意:此字段可能返回 null,表示取不到有效值。
6939
+ # @type SubnetId: String
6940
+ # @param SubnetName: 所在子网名称
6941
+ # 注意:此字段可能返回 null,表示取不到有效值。
6942
+ # @type SubnetName: String
6943
+ # @param WanIp: 实例公网IP
6944
+ # 注意:此字段可能返回 null,表示取不到有效值。
6945
+ # @type WanIp: String
6946
+ # @param LanIp: 实例内网IP
6947
+ # 注意:此字段可能返回 null,表示取不到有效值。
6948
+ # @type LanIp: String
6949
+ # @param Product: 产品类型,支持取值:
6950
+
6951
+ # - `CVM`:云服务器
6952
+ # - `CDH`:专用宿主机
6953
+ # - `CPM2.0`:裸金属云服务器
6954
+ # 注意:此字段可能返回 null,表示取不到有效值。
6955
+ # @type Product: String
6956
+ # @param TaskSubType: 任务子类型
6957
+ # 注意:此字段可能返回 null,表示取不到有效值。
6958
+ # @type TaskSubType: String
6959
+ # @param AuthType: 任务授权类型
6960
+ # @type AuthType: Integer
6961
+ # @param AuthSource: 授权渠道,支持取值:
6962
+
6963
+ # - `Waiting_auth`:待授权
6964
+ # - `Customer_auth`:客户操作授权
6965
+ # - `System_mandatory_auth`:系统默认授权
6966
+ # - `Pre_policy_auth`:预置策略授权
6967
+ # @type AuthSource: String
6968
+
6969
+ attr_accessor :TaskId, :InstanceId, :Alias, :TaskTypeId, :TaskTypeName, :TaskStatus, :DeviceStatus, :OperateStatus, :CreateTime, :AuthTime, :EndTime, :TaskDetail, :Zone, :Region, :VpcId, :VpcName, :SubnetId, :SubnetName, :WanIp, :LanIp, :Product, :TaskSubType, :AuthType, :AuthSource
6970
+
6971
+ def initialize(taskid=nil, instanceid=nil, _alias=nil, tasktypeid=nil, tasktypename=nil, taskstatus=nil, devicestatus=nil, operatestatus=nil, createtime=nil, authtime=nil, endtime=nil, taskdetail=nil, zone=nil, region=nil, vpcid=nil, vpcname=nil, subnetid=nil, subnetname=nil, wanip=nil, lanip=nil, product=nil, tasksubtype=nil, authtype=nil, authsource=nil)
6972
+ @TaskId = taskid
6973
+ @InstanceId = instanceid
6974
+ @Alias = _alias
6975
+ @TaskTypeId = tasktypeid
6976
+ @TaskTypeName = tasktypename
6977
+ @TaskStatus = taskstatus
6978
+ @DeviceStatus = devicestatus
6979
+ @OperateStatus = operatestatus
6980
+ @CreateTime = createtime
6981
+ @AuthTime = authtime
6982
+ @EndTime = endtime
6983
+ @TaskDetail = taskdetail
6984
+ @Zone = zone
6985
+ @Region = region
6986
+ @VpcId = vpcid
6987
+ @VpcName = vpcname
6988
+ @SubnetId = subnetid
6989
+ @SubnetName = subnetname
6990
+ @WanIp = wanip
6991
+ @LanIp = lanip
6992
+ @Product = product
6993
+ @TaskSubType = tasksubtype
6994
+ @AuthType = authtype
6995
+ @AuthSource = authsource
6996
+ end
6997
+
6998
+ def deserialize(params)
6999
+ @TaskId = params['TaskId']
7000
+ @InstanceId = params['InstanceId']
7001
+ @Alias = params['Alias']
7002
+ @TaskTypeId = params['TaskTypeId']
7003
+ @TaskTypeName = params['TaskTypeName']
7004
+ @TaskStatus = params['TaskStatus']
7005
+ @DeviceStatus = params['DeviceStatus']
7006
+ @OperateStatus = params['OperateStatus']
7007
+ @CreateTime = params['CreateTime']
7008
+ @AuthTime = params['AuthTime']
7009
+ @EndTime = params['EndTime']
7010
+ @TaskDetail = params['TaskDetail']
7011
+ @Zone = params['Zone']
7012
+ @Region = params['Region']
7013
+ @VpcId = params['VpcId']
7014
+ @VpcName = params['VpcName']
7015
+ @SubnetId = params['SubnetId']
7016
+ @SubnetName = params['SubnetName']
7017
+ @WanIp = params['WanIp']
7018
+ @LanIp = params['LanIp']
7019
+ @Product = params['Product']
7020
+ @TaskSubType = params['TaskSubType']
7021
+ @AuthType = params['AuthType']
7022
+ @AuthSource = params['AuthSource']
7023
+ end
7024
+ end
7025
+
6727
7026
  # 预留实例静态配置信息。预留实例当前只针对国际站白名单用户开放。
6728
7027
  class ReservedInstanceConfigInfoItem < TencentCloud::Common::AbstractModel
6729
7028
  # @param Type: 实例规格。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.524
4
+ version: 3.0.525
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-08 00:00:00.000000000 Z
11
+ date: 2023-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common