Class: TencentCloud::Cvm::V20170312::Client
- Inherits:
-
TencentCloud::Common::AbstractClient
- Object
- TencentCloud::Common::AbstractClient
- TencentCloud::Cvm::V20170312::Client
- Defined in:
- lib/v20170312/client.rb
Instance Method Summary collapse
-
#AllocateHosts(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::AllocateHostsResponse`.
-
#AssociateInstancesKeyPairs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::AssociateInstancesKeyPairsResponse`.
-
#AssociateSecurityGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::AssociateSecurityGroupsResponse`.
-
#ConfigureChcAssistVpc(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ConfigureChcAssistVpcResponse`.
-
#ConfigureChcDeployVpc(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ConfigureChcDeployVpcResponse`.
-
#CreateDisasterRecoverGroup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::CreateDisasterRecoverGroupResponse`.
-
#CreateHpcCluster(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::CreateHpcClusterResponse`.
-
#CreateImage(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::CreateImageResponse`.
-
#CreateKeyPair(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::CreateKeyPairResponse`.
-
#CreateLaunchTemplate(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::CreateLaunchTemplateResponse`.
-
#CreateLaunchTemplateVersion(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::CreateLaunchTemplateVersionResponse`.
-
#DeleteDisasterRecoverGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DeleteDisasterRecoverGroupsResponse`.
-
#DeleteHpcClusters(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DeleteHpcClustersResponse`.
-
#DeleteImages(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DeleteImagesResponse`.
-
#DeleteInstancesActionTimer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DeleteInstancesActionTimerResponse`.
-
#DeleteKeyPairs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DeleteKeyPairsResponse`.
-
#DeleteLaunchTemplate(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DeleteLaunchTemplateResponse`.
-
#DeleteLaunchTemplateVersions(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DeleteLaunchTemplateVersionsResponse`.
-
#DescribeAccountQuota(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeAccountQuotaResponse`.
-
#DescribeChcDeniedActions(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeChcDeniedActionsResponse`.
-
#DescribeChcHosts(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeChcHostsResponse`.
-
#DescribeDisasterRecoverGroupQuota(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeDisasterRecoverGroupQuotaResponse`.
-
#DescribeDisasterRecoverGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeDisasterRecoverGroupsResponse`.
-
#DescribeHosts(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeHostsResponse`.
-
#DescribeHpcClusters(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeHpcClustersResponse`.
-
#DescribeImageQuota(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeImageQuotaResponse`.
-
#DescribeImages(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeImagesResponse`.
-
#DescribeImageSharePermission(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeImageSharePermissionResponse`.
-
#DescribeImportImageOs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeImportImageOsResponse`.
-
#DescribeInstanceFamilyConfigs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInstanceFamilyConfigsResponse`.
-
#DescribeInstanceInternetBandwidthConfigs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInstanceInternetBandwidthConfigsResponse`.
-
#DescribeInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInstancesResponse`.
-
#DescribeInstancesActionTimer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInstancesActionTimerResponse`.
-
#DescribeInstancesModification(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInstancesModificationResponse`.
-
#DescribeInstancesOperationLimit(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInstancesOperationLimitResponse`.
-
#DescribeInstancesStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInstancesStatusResponse`.
-
#DescribeInstanceTypeConfigs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInstanceTypeConfigsResponse`.
-
#DescribeInstanceVncUrl(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInstanceVncUrlResponse`.
-
#DescribeInternetChargeTypeConfigs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInternetChargeTypeConfigsResponse`.
-
#DescribeKeyPairs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeKeyPairsResponse`.
-
#DescribeLaunchTemplates(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeLaunchTemplatesResponse`.
-
#DescribeLaunchTemplateVersions(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeLaunchTemplateVersionsResponse`.
-
#DescribeRegions(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeRegionsResponse`.
-
#DescribeReservedInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeReservedInstancesResponse`.
-
#DescribeReservedInstancesConfigInfos(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeReservedInstancesConfigInfosResponse`.
-
#DescribeReservedInstancesOfferings(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeReservedInstancesOfferingsResponse`.
-
#DescribeTaskInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeTaskInfoResponse`.
-
#DescribeZoneInstanceConfigInfos(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeZoneInstanceConfigInfosResponse`.
-
#DescribeZones(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeZonesResponse`.
-
#DisassociateInstancesKeyPairs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DisassociateInstancesKeyPairsResponse`.
-
#DisassociateSecurityGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DisassociateSecurityGroupsResponse`.
-
#EnterRescueMode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::EnterRescueModeResponse`.
-
#ExitRescueMode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ExitRescueModeResponse`.
-
#ExportImages(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ExportImagesResponse`.
-
#ImportImage(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ImportImageResponse`.
-
#ImportInstancesActionTimer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ImportInstancesActionTimerResponse`.
-
#ImportKeyPair(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ImportKeyPairResponse`.
-
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#InquirePricePurchaseReservedInstancesOffering(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquirePricePurchaseReservedInstancesOfferingResponse`.
-
#InquiryPriceModifyInstancesChargeType(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquiryPriceModifyInstancesChargeTypeResponse`.
-
#InquiryPriceRenewHosts(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquiryPriceRenewHostsResponse`.
-
#InquiryPriceRenewInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquiryPriceRenewInstancesResponse`.
-
#InquiryPriceResetInstance(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquiryPriceResetInstanceResponse`.
-
#InquiryPriceResetInstancesInternetMaxBandwidth(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquiryPriceResetInstancesInternetMaxBandwidthResponse`.
-
#InquiryPriceResetInstancesType(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquiryPriceResetInstancesTypeResponse`.
-
#InquiryPriceResizeInstanceDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquiryPriceResizeInstanceDisksResponse`.
-
#InquiryPriceRunInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquiryPriceRunInstancesResponse`.
-
#InquiryPriceTerminateInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquiryPriceTerminateInstancesResponse`.
-
#ModifyChcAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyChcAttributeResponse`.
-
#ModifyDisasterRecoverGroupAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyDisasterRecoverGroupAttributeResponse`.
-
#ModifyHostsAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyHostsAttributeResponse`.
-
#ModifyHpcClusterAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyHpcClusterAttributeResponse`.
-
#ModifyImageAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyImageAttributeResponse`.
-
#ModifyImageSharePermission(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyImageSharePermissionResponse`.
-
#ModifyInstanceDiskType(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyInstanceDiskTypeResponse`.
-
#ModifyInstancesAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyInstancesAttributeResponse`.
-
#ModifyInstancesChargeType(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyInstancesChargeTypeResponse`.
-
#ModifyInstancesProject(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyInstancesProjectResponse`.
-
#ModifyInstancesRenewFlag(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyInstancesRenewFlagResponse`.
-
#ModifyInstancesVpcAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyInstancesVpcAttributeResponse`.
-
#ModifyKeyPairAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyKeyPairAttributeResponse`.
-
#ModifyLaunchTemplateDefaultVersion(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyLaunchTemplateDefaultVersionResponse`.
-
#ProgramFpgaImage(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ProgramFpgaImageResponse`.
-
#PurchaseReservedInstancesOffering(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::PurchaseReservedInstancesOfferingResponse`.
-
#RebootInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::RebootInstancesResponse`.
-
#RemoveChcAssistVpc(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::RemoveChcAssistVpcResponse`.
-
#RemoveChcDeployVpc(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::RemoveChcDeployVpcResponse`.
-
#RenewHosts(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::RenewHostsResponse`.
-
#RenewInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::RenewInstancesResponse`.
-
#RepairTaskControl(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::RepairTaskControlResponse`.
-
#ResetInstance(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ResetInstanceResponse`.
-
#ResetInstancesInternetMaxBandwidth(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ResetInstancesInternetMaxBandwidthResponse`.
-
#ResetInstancesPassword(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ResetInstancesPasswordResponse`.
-
#ResetInstancesType(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ResetInstancesTypeResponse`.
-
#ResizeInstanceDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ResizeInstanceDisksResponse`.
-
#RunInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::RunInstancesResponse`.
-
#StartInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::StartInstancesResponse`.
-
#StopInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::StopInstancesResponse`.
-
#SyncImages(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::SyncImagesResponse`.
-
#TerminateInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::TerminateInstancesResponse`.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20170312/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2017-03-12' api_endpoint = 'cvm.tencentcloudapi.com' sdk_version = 'CVM_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#AllocateHosts(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::AllocateHostsResponse`
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/v20170312/client.rb', line 38 def AllocateHosts(request) body = send_request('AllocateHosts', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AllocateHostsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#AssociateInstancesKeyPairs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::AssociateInstancesKeyPairsResponse`
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/v20170312/client.rb', line 67 def AssociateInstancesKeyPairs(request) body = send_request('AssociateInstancesKeyPairs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AssociateInstancesKeyPairsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#AssociateSecurityGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::AssociateSecurityGroupsResponse`
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/v20170312/client.rb', line 95 def AssociateSecurityGroups(request) body = send_request('AssociateSecurityGroups', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AssociateSecurityGroupsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ConfigureChcAssistVpc(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ConfigureChcAssistVpcResponse`
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/v20170312/client.rb', line 119 def ConfigureChcAssistVpc(request) body = send_request('ConfigureChcAssistVpc', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ConfigureChcAssistVpcResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ConfigureChcDeployVpc(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ConfigureChcDeployVpcResponse`
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
# File 'lib/v20170312/client.rb', line 143 def ConfigureChcDeployVpc(request) body = send_request('ConfigureChcDeployVpc', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ConfigureChcDeployVpcResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateDisasterRecoverGroup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::CreateDisasterRecoverGroupResponse`
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 |
# File 'lib/v20170312/client.rb', line 167 def CreateDisasterRecoverGroup(request) body = send_request('CreateDisasterRecoverGroup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateDisasterRecoverGroupResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateHpcCluster(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::CreateHpcClusterResponse`
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 |
# File 'lib/v20170312/client.rb', line 191 def CreateHpcCluster(request) body = send_request('CreateHpcCluster', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateHpcClusterResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateImage(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::CreateImageResponse`
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 |
# File 'lib/v20170312/client.rb', line 215 def CreateImage(request) body = send_request('CreateImage', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateImageResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateKeyPair(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::CreateKeyPairResponse`
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 |
# File 'lib/v20170312/client.rb', line 244 def CreateKeyPair(request) body = send_request('CreateKeyPair', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateKeyPairResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateLaunchTemplate(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::CreateLaunchTemplateResponse`
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 |
# File 'lib/v20170312/client.rb', line 272 def CreateLaunchTemplate(request) body = send_request('CreateLaunchTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateLaunchTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateLaunchTemplateVersion(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::CreateLaunchTemplateVersionResponse`
296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 |
# File 'lib/v20170312/client.rb', line 296 def CreateLaunchTemplateVersion(request) body = send_request('CreateLaunchTemplateVersion', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateLaunchTemplateVersionResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteDisasterRecoverGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DeleteDisasterRecoverGroupsResponse`
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 |
# File 'lib/v20170312/client.rb', line 320 def DeleteDisasterRecoverGroups(request) body = send_request('DeleteDisasterRecoverGroups', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteDisasterRecoverGroupsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteHpcClusters(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DeleteHpcClustersResponse`
344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 |
# File 'lib/v20170312/client.rb', line 344 def DeleteHpcClusters(request) body = send_request('DeleteHpcClusters', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteHpcClustersResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteImages(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DeleteImagesResponse`
372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 |
# File 'lib/v20170312/client.rb', line 372 def DeleteImages(request) body = send_request('DeleteImages', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteImagesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteInstancesActionTimer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DeleteInstancesActionTimerResponse`
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 |
# File 'lib/v20170312/client.rb', line 396 def DeleteInstancesActionTimer(request) body = send_request('DeleteInstancesActionTimer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteInstancesActionTimerResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteKeyPairs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DeleteKeyPairsResponse`
423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 |
# File 'lib/v20170312/client.rb', line 423 def DeleteKeyPairs(request) body = send_request('DeleteKeyPairs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteKeyPairsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteLaunchTemplate(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DeleteLaunchTemplateResponse`
447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 |
# File 'lib/v20170312/client.rb', line 447 def DeleteLaunchTemplate(request) body = send_request('DeleteLaunchTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteLaunchTemplateResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteLaunchTemplateVersions(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DeleteLaunchTemplateVersionsResponse`
471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'lib/v20170312/client.rb', line 471 def DeleteLaunchTemplateVersions(request) body = send_request('DeleteLaunchTemplateVersions', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteLaunchTemplateVersionsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeAccountQuota(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeAccountQuotaResponse`
495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 |
# File 'lib/v20170312/client.rb', line 495 def DescribeAccountQuota(request) body = send_request('DescribeAccountQuota', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAccountQuotaResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeChcDeniedActions(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeChcDeniedActionsResponse`
519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File 'lib/v20170312/client.rb', line 519 def DescribeChcDeniedActions(request) body = send_request('DescribeChcDeniedActions', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeChcDeniedActionsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeChcHosts(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeChcHostsResponse`
546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 |
# File 'lib/v20170312/client.rb', line 546 def DescribeChcHosts(request) body = send_request('DescribeChcHosts', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeChcHostsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeDisasterRecoverGroupQuota(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeDisasterRecoverGroupQuotaResponse`
570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 |
# File 'lib/v20170312/client.rb', line 570 def DescribeDisasterRecoverGroupQuota(request) body = send_request('DescribeDisasterRecoverGroupQuota', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDisasterRecoverGroupQuotaResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeDisasterRecoverGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeDisasterRecoverGroupsResponse`
594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 |
# File 'lib/v20170312/client.rb', line 594 def DescribeDisasterRecoverGroups(request) body = send_request('DescribeDisasterRecoverGroups', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDisasterRecoverGroupsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeHosts(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeHostsResponse`
618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 |
# File 'lib/v20170312/client.rb', line 618 def DescribeHosts(request) body = send_request('DescribeHosts', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeHostsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeHpcClusters(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeHpcClustersResponse`
642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 |
# File 'lib/v20170312/client.rb', line 642 def DescribeHpcClusters(request) body = send_request('DescribeHpcClusters', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeHpcClustersResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeImageQuota(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeImageQuotaResponse`
666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 |
# File 'lib/v20170312/client.rb', line 666 def DescribeImageQuota(request) body = send_request('DescribeImageQuota', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeImageQuotaResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeImages(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeImagesResponse`
717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 |
# File 'lib/v20170312/client.rb', line 717 def DescribeImages(request) body = send_request('DescribeImages', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeImagesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeImageSharePermission(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeImageSharePermissionResponse`
690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 |
# File 'lib/v20170312/client.rb', line 690 def DescribeImageSharePermission(request) body = send_request('DescribeImageSharePermission', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeImageSharePermissionResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeImportImageOs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeImportImageOsResponse`
741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 |
# File 'lib/v20170312/client.rb', line 741 def DescribeImportImageOs(request) body = send_request('DescribeImportImageOs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeImportImageOsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeInstanceFamilyConfigs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInstanceFamilyConfigsResponse`
765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 |
# File 'lib/v20170312/client.rb', line 765 def DescribeInstanceFamilyConfigs(request) body = send_request('DescribeInstanceFamilyConfigs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInstanceFamilyConfigsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeInstanceInternetBandwidthConfigs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInstanceInternetBandwidthConfigsResponse`
792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 |
# File 'lib/v20170312/client.rb', line 792 def DescribeInstanceInternetBandwidthConfigs(request) body = send_request('DescribeInstanceInternetBandwidthConfigs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInstanceInternetBandwidthConfigsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInstancesResponse`
885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 |
# File 'lib/v20170312/client.rb', line 885 def DescribeInstances(request) body = send_request('DescribeInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInstancesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeInstancesActionTimer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInstancesActionTimerResponse`
909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 |
# File 'lib/v20170312/client.rb', line 909 def DescribeInstancesActionTimer(request) body = send_request('DescribeInstancesActionTimer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInstancesActionTimerResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeInstancesModification(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInstancesModificationResponse`
933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 |
# File 'lib/v20170312/client.rb', line 933 def DescribeInstancesModification(request) body = send_request('DescribeInstancesModification', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInstancesModificationResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeInstancesOperationLimit(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInstancesOperationLimitResponse`
959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 |
# File 'lib/v20170312/client.rb', line 959 def DescribeInstancesOperationLimit(request) body = send_request('DescribeInstancesOperationLimit', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInstancesOperationLimitResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeInstancesStatus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInstancesStatusResponse`
986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 |
# File 'lib/v20170312/client.rb', line 986 def DescribeInstancesStatus(request) body = send_request('DescribeInstancesStatus', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInstancesStatusResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeInstanceTypeConfigs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInstanceTypeConfigsResponse`
819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 |
# File 'lib/v20170312/client.rb', line 819 def DescribeInstanceTypeConfigs(request) body = send_request('DescribeInstanceTypeConfigs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInstanceTypeConfigsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeInstanceVncUrl(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInstanceVncUrlResponse`
857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 |
# File 'lib/v20170312/client.rb', line 857 def DescribeInstanceVncUrl(request) body = send_request('DescribeInstanceVncUrl', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInstanceVncUrlResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeInternetChargeTypeConfigs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeInternetChargeTypeConfigsResponse`
1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 |
# File 'lib/v20170312/client.rb', line 1010 def DescribeInternetChargeTypeConfigs(request) body = send_request('DescribeInternetChargeTypeConfigs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInternetChargeTypeConfigsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeKeyPairs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeKeyPairsResponse`
1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 |
# File 'lib/v20170312/client.rb', line 1036 def DescribeKeyPairs(request) body = send_request('DescribeKeyPairs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeKeyPairsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeLaunchTemplates(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeLaunchTemplatesResponse`
1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 |
# File 'lib/v20170312/client.rb', line 1084 def DescribeLaunchTemplates(request) body = send_request('DescribeLaunchTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLaunchTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeLaunchTemplateVersions(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeLaunchTemplateVersionsResponse`
1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 |
# File 'lib/v20170312/client.rb', line 1060 def DescribeLaunchTemplateVersions(request) body = send_request('DescribeLaunchTemplateVersions', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLaunchTemplateVersionsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeRegions(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeRegionsResponse`
1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 |
# File 'lib/v20170312/client.rb', line 1108 def DescribeRegions(request) body = send_request('DescribeRegions', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeRegionsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeReservedInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeReservedInstancesResponse`
1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 |
# File 'lib/v20170312/client.rb', line 1132 def DescribeReservedInstances(request) body = send_request('DescribeReservedInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeReservedInstancesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeReservedInstancesConfigInfos(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeReservedInstancesConfigInfosResponse`
1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 |
# File 'lib/v20170312/client.rb', line 1156 def DescribeReservedInstancesConfigInfos(request) body = send_request('DescribeReservedInstancesConfigInfos', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeReservedInstancesConfigInfosResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeReservedInstancesOfferings(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeReservedInstancesOfferingsResponse`
1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 |
# File 'lib/v20170312/client.rb', line 1180 def DescribeReservedInstancesOfferings(request) body = send_request('DescribeReservedInstancesOfferings', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeReservedInstancesOfferingsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeTaskInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeTaskInfoResponse`
1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 |
# File 'lib/v20170312/client.rb', line 1207 def DescribeTaskInfo(request) body = send_request('DescribeTaskInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTaskInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeZoneInstanceConfigInfos(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeZoneInstanceConfigInfosResponse`
1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 |
# File 'lib/v20170312/client.rb', line 1231 def DescribeZoneInstanceConfigInfos(request) body = send_request('DescribeZoneInstanceConfigInfos', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeZoneInstanceConfigInfosResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeZones(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DescribeZonesResponse`
1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 |
# File 'lib/v20170312/client.rb', line 1255 def DescribeZones(request) body = send_request('DescribeZones', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeZonesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DisassociateInstancesKeyPairs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DisassociateInstancesKeyPairsResponse`
1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 |
# File 'lib/v20170312/client.rb', line 1284 def DisassociateInstancesKeyPairs(request) body = send_request('DisassociateInstancesKeyPairs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DisassociateInstancesKeyPairsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DisassociateSecurityGroups(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::DisassociateSecurityGroupsResponse`
1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 |
# File 'lib/v20170312/client.rb', line 1309 def DisassociateSecurityGroups(request) body = send_request('DisassociateSecurityGroups', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DisassociateSecurityGroupsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#EnterRescueMode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::EnterRescueModeResponse`
1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 |
# File 'lib/v20170312/client.rb', line 1333 def EnterRescueMode(request) body = send_request('EnterRescueMode', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = EnterRescueModeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ExitRescueMode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ExitRescueModeResponse`
1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 |
# File 'lib/v20170312/client.rb', line 1357 def ExitRescueMode(request) body = send_request('ExitRescueMode', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExitRescueModeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ExportImages(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ExportImagesResponse`
1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 |
# File 'lib/v20170312/client.rb', line 1381 def ExportImages(request) body = send_request('ExportImages', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ExportImagesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ImportImage(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ImportImageResponse`
1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 |
# File 'lib/v20170312/client.rb', line 1405 def ImportImage(request) body = send_request('ImportImage', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ImportImageResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ImportInstancesActionTimer(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ImportInstancesActionTimerResponse`
1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 |
# File 'lib/v20170312/client.rb', line 1429 def ImportInstancesActionTimer(request) body = send_request('ImportInstancesActionTimer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ImportInstancesActionTimerResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ImportKeyPair(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ImportKeyPairResponse`
1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 |
# File 'lib/v20170312/client.rb', line 1457 def ImportKeyPair(request) body = send_request('ImportKeyPair', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ImportKeyPairResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InquirePricePurchaseReservedInstancesOffering(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquirePricePurchaseReservedInstancesOfferingResponse`
1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 |
# File 'lib/v20170312/client.rb', line 1481 def InquirePricePurchaseReservedInstancesOffering(request) body = send_request('InquirePricePurchaseReservedInstancesOffering', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquirePricePurchaseReservedInstancesOfferingResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InquiryPriceModifyInstancesChargeType(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquiryPriceModifyInstancesChargeTypeResponse`
1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 |
# File 'lib/v20170312/client.rb', line 1508 def InquiryPriceModifyInstancesChargeType(request) body = send_request('InquiryPriceModifyInstancesChargeType', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquiryPriceModifyInstancesChargeTypeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InquiryPriceRenewHosts(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquiryPriceRenewHostsResponse`
1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 |
# File 'lib/v20170312/client.rb', line 1533 def InquiryPriceRenewHosts(request) body = send_request('InquiryPriceRenewHosts', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquiryPriceRenewHostsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InquiryPriceRenewInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquiryPriceRenewInstancesResponse`
1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 |
# File 'lib/v20170312/client.rb', line 1559 def InquiryPriceRenewInstances(request) body = send_request('InquiryPriceRenewInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquiryPriceRenewInstancesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InquiryPriceResetInstance(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquiryPriceResetInstanceResponse`
1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 |
# File 'lib/v20170312/client.rb', line 1587 def InquiryPriceResetInstance(request) body = send_request('InquiryPriceResetInstance', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquiryPriceResetInstanceResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InquiryPriceResetInstancesInternetMaxBandwidth(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquiryPriceResetInstancesInternetMaxBandwidthResponse`
1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 |
# File 'lib/v20170312/client.rb', line 1618 def InquiryPriceResetInstancesInternetMaxBandwidth(request) body = send_request('InquiryPriceResetInstancesInternetMaxBandwidth', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquiryPriceResetInstancesInternetMaxBandwidthResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InquiryPriceResetInstancesType(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquiryPriceResetInstancesTypeResponse`
1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 |
# File 'lib/v20170312/client.rb', line 1645 def InquiryPriceResetInstancesType(request) body = send_request('InquiryPriceResetInstancesType', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquiryPriceResetInstancesTypeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InquiryPriceResizeInstanceDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquiryPriceResizeInstanceDisksResponse`
1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 |
# File 'lib/v20170312/client.rb', line 1672 def InquiryPriceResizeInstanceDisks(request) body = send_request('InquiryPriceResizeInstanceDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquiryPriceResizeInstanceDisksResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InquiryPriceRunInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquiryPriceRunInstancesResponse`
1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 |
# File 'lib/v20170312/client.rb', line 1696 def InquiryPriceRunInstances(request) body = send_request('InquiryPriceRunInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquiryPriceRunInstancesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#InquiryPriceTerminateInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::InquiryPriceTerminateInstancesResponse`
1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 |
# File 'lib/v20170312/client.rb', line 1724 def InquiryPriceTerminateInstances(request) body = send_request('InquiryPriceTerminateInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquiryPriceTerminateInstancesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyChcAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyChcAttributeResponse`
1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 |
# File 'lib/v20170312/client.rb', line 1748 def ModifyChcAttribute(request) body = send_request('ModifyChcAttribute', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyChcAttributeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyDisasterRecoverGroupAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyDisasterRecoverGroupAttributeResponse`
1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 |
# File 'lib/v20170312/client.rb', line 1772 def ModifyDisasterRecoverGroupAttribute(request) body = send_request('ModifyDisasterRecoverGroupAttribute', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyDisasterRecoverGroupAttributeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyHostsAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyHostsAttributeResponse`
1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 |
# File 'lib/v20170312/client.rb', line 1796 def ModifyHostsAttribute(request) body = send_request('ModifyHostsAttribute', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyHostsAttributeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyHpcClusterAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyHpcClusterAttributeResponse`
1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 |
# File 'lib/v20170312/client.rb', line 1820 def ModifyHpcClusterAttribute(request) body = send_request('ModifyHpcClusterAttribute', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyHpcClusterAttributeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyImageAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyImageAttributeResponse`
1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 |
# File 'lib/v20170312/client.rb', line 1846 def ModifyImageAttribute(request) body = send_request('ModifyImageAttribute', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyImageAttributeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyImageSharePermission(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyImageSharePermissionResponse`
1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 |
# File 'lib/v20170312/client.rb', line 1875 def ModifyImageSharePermission(request) body = send_request('ModifyImageSharePermission', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyImageSharePermissionResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyInstanceDiskType(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyInstanceDiskTypeResponse`
1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 |
# File 'lib/v20170312/client.rb', line 1905 def ModifyInstanceDiskType(request) body = send_request('ModifyInstanceDiskType', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyInstanceDiskTypeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyInstancesAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyInstancesAttributeResponse`
1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 |
# File 'lib/v20170312/client.rb', line 1936 def ModifyInstancesAttribute(request) body = send_request('ModifyInstancesAttribute', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyInstancesAttributeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyInstancesChargeType(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyInstancesChargeTypeResponse`
1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 |
# File 'lib/v20170312/client.rb', line 1963 def ModifyInstancesChargeType(request) body = send_request('ModifyInstancesChargeType', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyInstancesChargeTypeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyInstancesProject(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyInstancesProjectResponse`
1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 |
# File 'lib/v20170312/client.rb', line 1992 def ModifyInstancesProject(request) body = send_request('ModifyInstancesProject', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyInstancesProjectResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyInstancesRenewFlag(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyInstancesRenewFlagResponse`
2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 |
# File 'lib/v20170312/client.rb', line 2020 def ModifyInstancesRenewFlag(request) body = send_request('ModifyInstancesRenewFlag', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyInstancesRenewFlagResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyInstancesVpcAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyInstancesVpcAttributeResponse`
2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 |
# File 'lib/v20170312/client.rb', line 2047 def ModifyInstancesVpcAttribute(request) body = send_request('ModifyInstancesVpcAttribute', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyInstancesVpcAttributeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyKeyPairAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyKeyPairAttributeResponse`
2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 |
# File 'lib/v20170312/client.rb', line 2076 def ModifyKeyPairAttribute(request) body = send_request('ModifyKeyPairAttribute', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyKeyPairAttributeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyLaunchTemplateDefaultVersion(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ModifyLaunchTemplateDefaultVersionResponse`
2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 |
# File 'lib/v20170312/client.rb', line 2100 def ModifyLaunchTemplateDefaultVersion(request) body = send_request('ModifyLaunchTemplateDefaultVersion', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyLaunchTemplateDefaultVersionResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ProgramFpgaImage(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ProgramFpgaImageResponse`
2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 |
# File 'lib/v20170312/client.rb', line 2126 def ProgramFpgaImage(request) body = send_request('ProgramFpgaImage', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ProgramFpgaImageResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#PurchaseReservedInstancesOffering(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::PurchaseReservedInstancesOfferingResponse`
2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 |
# File 'lib/v20170312/client.rb', line 2150 def PurchaseReservedInstancesOffering(request) body = send_request('PurchaseReservedInstancesOffering', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = PurchaseReservedInstancesOfferingResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RebootInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::RebootInstancesResponse`
2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 |
# File 'lib/v20170312/client.rb', line 2180 def RebootInstances(request) body = send_request('RebootInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RebootInstancesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RemoveChcAssistVpc(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::RemoveChcAssistVpcResponse`
2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 |
# File 'lib/v20170312/client.rb', line 2204 def RemoveChcAssistVpc(request) body = send_request('RemoveChcAssistVpc', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RemoveChcAssistVpcResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RemoveChcDeployVpc(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::RemoveChcDeployVpcResponse`
2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 |
# File 'lib/v20170312/client.rb', line 2228 def RemoveChcDeployVpc(request) body = send_request('RemoveChcDeployVpc', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RemoveChcDeployVpcResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RenewHosts(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::RenewHostsResponse`
2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 |
# File 'lib/v20170312/client.rb', line 2255 def RenewHosts(request) body = send_request('RenewHosts', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RenewHostsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RenewInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::RenewInstancesResponse`
2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 |
# File 'lib/v20170312/client.rb', line 2283 def RenewInstances(request) body = send_request('RenewInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RenewInstancesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RepairTaskControl(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::RepairTaskControlResponse`
2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 |
# File 'lib/v20170312/client.rb', line 2312 def RepairTaskControl(request) body = send_request('RepairTaskControl', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RepairTaskControlResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ResetInstance(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ResetInstanceResponse`
2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 |
# File 'lib/v20170312/client.rb', line 2342 def ResetInstance(request) body = send_request('ResetInstance', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ResetInstanceResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ResetInstancesInternetMaxBandwidth(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ResetInstancesInternetMaxBandwidthResponse`
2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 |
# File 'lib/v20170312/client.rb', line 2374 def ResetInstancesInternetMaxBandwidth(request) body = send_request('ResetInstancesInternetMaxBandwidth', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ResetInstancesInternetMaxBandwidthResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ResetInstancesPassword(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ResetInstancesPasswordResponse`
2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 |
# File 'lib/v20170312/client.rb', line 2403 def ResetInstancesPassword(request) body = send_request('ResetInstancesPassword', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ResetInstancesPasswordResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ResetInstancesType(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ResetInstancesTypeResponse`
2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 |
# File 'lib/v20170312/client.rb', line 2431 def ResetInstancesType(request) body = send_request('ResetInstancesType', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ResetInstancesTypeResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ResizeInstanceDisks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::ResizeInstanceDisksResponse`
2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 |
# File 'lib/v20170312/client.rb', line 2462 def ResizeInstanceDisks(request) body = send_request('ResizeInstanceDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ResizeInstanceDisksResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RunInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::RunInstancesResponse`
2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 |
# File 'lib/v20170312/client.rb', line 2492 def RunInstances(request) body = send_request('RunInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RunInstancesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#StartInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::StartInstancesResponse`
2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 |
# File 'lib/v20170312/client.rb', line 2521 def StartInstances(request) body = send_request('StartInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StartInstancesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#StopInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::StopInstancesResponse`
2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 |
# File 'lib/v20170312/client.rb', line 2551 def StopInstances(request) body = send_request('StopInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StopInstancesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#SyncImages(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::SyncImagesResponse`
2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 |
# File 'lib/v20170312/client.rb', line 2579 def SyncImages(request) body = send_request('SyncImages', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SyncImagesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#TerminateInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::cvm::V20170312::TerminateInstancesResponse`
2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 |
# File 'lib/v20170312/client.rb', line 2610 def TerminateInstances(request) body = send_request('TerminateInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TerminateInstancesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |