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. -
#ConvertOperatingSystems(request) ⇒ Object
@rtype: :class:
Tencentcloud::cvm::V20170312::ConvertOperatingSystemsResponse. -
#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. -
#DescribeImageFromFamily(request) ⇒ Object
@rtype: :class:
Tencentcloud::cvm::V20170312::DescribeImageFromFamilyResponse. -
#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. -
#DescribeInstancesAttributes(request) ⇒ Object
@rtype: :class:
Tencentcloud::cvm::V20170312::DescribeInstancesAttributesResponse. -
#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. -
#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.
-
#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. -
#ModifyInstancesDisasterRecoverGroup(request) ⇒ Object
@rtype: :class:
Tencentcloud::cvm::V20170312::ModifyInstancesDisasterRecoverGroupResponse. -
#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. -
#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
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/v20170312/client.rb', line 70 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
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/v20170312/client.rb', line 98 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
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/v20170312/client.rb', line 122 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
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/v20170312/client.rb', line 146 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 |
#ConvertOperatingSystems(request) ⇒ Object
@rtype: :class:Tencentcloud::cvm::V20170312::ConvertOperatingSystemsResponse
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/v20170312/client.rb', line 170 def ConvertOperatingSystems(request) body = send_request('ConvertOperatingSystems', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ConvertOperatingSystemsResponse.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
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 |
# File 'lib/v20170312/client.rb', line 194 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
218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 |
# File 'lib/v20170312/client.rb', line 218 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
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 |
# File 'lib/v20170312/client.rb', line 242 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
271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 |
# File 'lib/v20170312/client.rb', line 271 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
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 |
# File 'lib/v20170312/client.rb', line 299 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
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 |
# File 'lib/v20170312/client.rb', line 324 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
348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 |
# File 'lib/v20170312/client.rb', line 348 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
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 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
401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 |
# File 'lib/v20170312/client.rb', line 401 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
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 |
# File 'lib/v20170312/client.rb', line 425 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
452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 |
# File 'lib/v20170312/client.rb', line 452 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
476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 |
# File 'lib/v20170312/client.rb', line 476 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
500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 |
# File 'lib/v20170312/client.rb', line 500 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
524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 |
# File 'lib/v20170312/client.rb', line 524 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
548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 |
# File 'lib/v20170312/client.rb', line 548 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
575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 |
# File 'lib/v20170312/client.rb', line 575 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
599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 |
# File 'lib/v20170312/client.rb', line 599 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
623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 |
# File 'lib/v20170312/client.rb', line 623 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
647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 |
# File 'lib/v20170312/client.rb', line 647 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
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 |
# File 'lib/v20170312/client.rb', line 671 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 |
#DescribeImageFromFamily(request) ⇒ Object
@rtype: :class:Tencentcloud::cvm::V20170312::DescribeImageFromFamilyResponse
695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 |
# File 'lib/v20170312/client.rb', line 695 def DescribeImageFromFamily(request) body = send_request('DescribeImageFromFamily', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeImageFromFamilyResponse.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
719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 |
# File 'lib/v20170312/client.rb', line 719 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
770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 |
# File 'lib/v20170312/client.rb', line 770 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
743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 |
# File 'lib/v20170312/client.rb', line 743 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
794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 |
# File 'lib/v20170312/client.rb', line 794 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
818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 |
# File 'lib/v20170312/client.rb', line 818 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
845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 |
# File 'lib/v20170312/client.rb', line 845 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
938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 |
# File 'lib/v20170312/client.rb', line 938 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
962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 |
# File 'lib/v20170312/client.rb', line 962 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 |
#DescribeInstancesAttributes(request) ⇒ Object
@rtype: :class:Tencentcloud::cvm::V20170312::DescribeInstancesAttributesResponse
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 DescribeInstancesAttributes(request) body = send_request('DescribeInstancesAttributes', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInstancesAttributesResponse.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
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 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
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 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
1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 |
# File 'lib/v20170312/client.rb', line 1063 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
872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 |
# File 'lib/v20170312/client.rb', line 872 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
910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 |
# File 'lib/v20170312/client.rb', line 910 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
1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 |
# File 'lib/v20170312/client.rb', line 1087 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
1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 |
# File 'lib/v20170312/client.rb', line 1113 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
1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 |
# File 'lib/v20170312/client.rb', line 1163 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
1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 |
# File 'lib/v20170312/client.rb', line 1139 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
1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 |
# File 'lib/v20170312/client.rb', line 1187 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 |
#DescribeTaskInfo(request) ⇒ Object
@rtype: :class:Tencentcloud::cvm::V20170312::DescribeTaskInfoResponse
1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 |
# File 'lib/v20170312/client.rb', line 1214 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
1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 |
# File 'lib/v20170312/client.rb', line 1238 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
1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 |
# File 'lib/v20170312/client.rb', line 1262 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
1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 |
# File 'lib/v20170312/client.rb', line 1293 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
1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 |
# File 'lib/v20170312/client.rb', line 1318 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
1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 |
# File 'lib/v20170312/client.rb', line 1342 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
1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 |
# File 'lib/v20170312/client.rb', line 1366 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
1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 |
# File 'lib/v20170312/client.rb', line 1390 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
1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 |
# File 'lib/v20170312/client.rb', line 1414 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
1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 |
# File 'lib/v20170312/client.rb', line 1438 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
1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 |
# File 'lib/v20170312/client.rb', line 1466 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 |
#InquiryPriceModifyInstancesChargeType(request) ⇒ Object
@rtype: :class:Tencentcloud::cvm::V20170312::InquiryPriceModifyInstancesChargeTypeResponse
1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 |
# File 'lib/v20170312/client.rb', line 1493 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
1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 |
# File 'lib/v20170312/client.rb', line 1518 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
1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 |
# File 'lib/v20170312/client.rb', line 1544 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
1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 |
# File 'lib/v20170312/client.rb', line 1572 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
1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 |
# File 'lib/v20170312/client.rb', line 1603 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
1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 |
# File 'lib/v20170312/client.rb', line 1630 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
1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 |
# File 'lib/v20170312/client.rb', line 1658 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
1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 |
# File 'lib/v20170312/client.rb', line 1682 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
1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 |
# File 'lib/v20170312/client.rb', line 1710 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
1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 |
# File 'lib/v20170312/client.rb', line 1734 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
1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 |
# File 'lib/v20170312/client.rb', line 1758 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
1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 |
# File 'lib/v20170312/client.rb', line 1782 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
1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 |
# File 'lib/v20170312/client.rb', line 1806 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
1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 |
# File 'lib/v20170312/client.rb', line 1832 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
1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 |
# File 'lib/v20170312/client.rb', line 1861 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
1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 |
# File 'lib/v20170312/client.rb', line 1891 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
1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 |
# File 'lib/v20170312/client.rb', line 1922 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
1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 |
# File 'lib/v20170312/client.rb', line 1949 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 |
#ModifyInstancesDisasterRecoverGroup(request) ⇒ Object
@rtype: :class:Tencentcloud::cvm::V20170312::ModifyInstancesDisasterRecoverGroupResponse
1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 |
# File 'lib/v20170312/client.rb', line 1974 def ModifyInstancesDisasterRecoverGroup(request) body = send_request('ModifyInstancesDisasterRecoverGroup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyInstancesDisasterRecoverGroupResponse.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
2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 |
# File 'lib/v20170312/client.rb', line 2003 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
2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 |
# File 'lib/v20170312/client.rb', line 2031 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
2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 |
# File 'lib/v20170312/client.rb', line 2058 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
2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 |
# File 'lib/v20170312/client.rb', line 2087 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
2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 |
# File 'lib/v20170312/client.rb', line 2111 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
2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 |
# File 'lib/v20170312/client.rb', line 2137 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 |
#RebootInstances(request) ⇒ Object
@rtype: :class:Tencentcloud::cvm::V20170312::RebootInstancesResponse
2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 |
# File 'lib/v20170312/client.rb', line 2167 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
2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 |
# File 'lib/v20170312/client.rb', line 2191 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
2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 |
# File 'lib/v20170312/client.rb', line 2215 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
2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 |
# File 'lib/v20170312/client.rb', line 2242 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
2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'lib/v20170312/client.rb', line 2270 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
2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 |
# File 'lib/v20170312/client.rb', line 2299 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
2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 |
# File 'lib/v20170312/client.rb', line 2329 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
2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 |
# File 'lib/v20170312/client.rb', line 2361 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
2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 |
# File 'lib/v20170312/client.rb', line 2390 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
2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 |
# File 'lib/v20170312/client.rb', line 2418 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
2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 |
# File 'lib/v20170312/client.rb', line 2450 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
2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 |
# File 'lib/v20170312/client.rb', line 2480 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
2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 |
# File 'lib/v20170312/client.rb', line 2509 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
2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 |
# File 'lib/v20170312/client.rb', line 2539 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
2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 |
# File 'lib/v20170312/client.rb', line 2569 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
2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 |
# File 'lib/v20170312/client.rb', line 2600 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 |