Class: TencentCloud::Lighthouse::V20200324::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Lighthouse::V20200324::Client
- Defined in:
- lib/v20200324/client.rb
Instance Method Summary collapse
-
#ApplyDiskBackup(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ApplyDiskBackupResponse. -
#ApplyFirewallTemplate(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ApplyFirewallTemplateResponse. -
#ApplyInstanceSnapshot(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ApplyInstanceSnapshotResponse. -
#AssociateInstancesKeyPairs(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::AssociateInstancesKeyPairsResponse. -
#AttachCcn(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::AttachCcnResponse. -
#AttachDisks(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::AttachDisksResponse. -
#CancelShareBlueprintAcrossAccounts(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::CancelShareBlueprintAcrossAccountsResponse. -
#CreateBlueprint(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::CreateBlueprintResponse. -
#CreateDiskBackup(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::CreateDiskBackupResponse. -
#CreateDisks(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::CreateDisksResponse. -
#CreateFirewallRules(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::CreateFirewallRulesResponse. -
#CreateFirewallTemplate(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::CreateFirewallTemplateResponse. -
#CreateFirewallTemplateRules(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::CreateFirewallTemplateRulesResponse. -
#CreateInstances(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::CreateInstancesResponse. -
#CreateInstanceSnapshot(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::CreateInstanceSnapshotResponse. -
#CreateKeyPair(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::CreateKeyPairResponse. -
#CreateMcpServer(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::CreateMcpServerResponse. -
#DeleteBlueprints(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DeleteBlueprintsResponse. -
#DeleteDiskBackups(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DeleteDiskBackupsResponse. -
#DeleteFirewallRules(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DeleteFirewallRulesResponse. -
#DeleteFirewallTemplate(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DeleteFirewallTemplateResponse. -
#DeleteFirewallTemplateRules(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DeleteFirewallTemplateRulesResponse. -
#DeleteKeyPairs(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DeleteKeyPairsResponse. -
#DeleteSnapshots(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DeleteSnapshotsResponse. -
#DescribeAllScenes(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeAllScenesResponse. -
#DescribeBlueprintInstances(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeBlueprintInstancesResponse. -
#DescribeBlueprints(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeBlueprintsResponse. -
#DescribeBundleDiscount(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeBundleDiscountResponse. -
#DescribeBundles(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeBundlesResponse. -
#DescribeCcnAttachedInstances(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeCcnAttachedInstancesResponse. -
#DescribeDiskBackups(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeDiskBackupsResponse. -
#DescribeDiskBackupsDeniedActions(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeDiskBackupsDeniedActionsResponse. -
#DescribeDiskConfigs(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeDiskConfigsResponse. -
#DescribeDiskDiscount(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeDiskDiscountResponse. -
#DescribeDisks(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeDisksResponse. -
#DescribeDisksDeniedActions(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeDisksDeniedActionsResponse. -
#DescribeDisksReturnable(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeDisksReturnableResponse. -
#DescribeDockerActivities(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeDockerActivitiesResponse. -
#DescribeDockerContainerConfiguration(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeDockerContainerConfigurationResponse. -
#DescribeDockerContainerDetail(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeDockerContainerDetailResponse. -
#DescribeDockerContainers(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeDockerContainersResponse. -
#DescribeFirewallRules(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeFirewallRulesResponse. -
#DescribeFirewallRulesTemplate(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeFirewallRulesTemplateResponse. -
#DescribeFirewallTemplateApplyRecords(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeFirewallTemplateApplyRecordsResponse. -
#DescribeFirewallTemplateQuota(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeFirewallTemplateQuotaResponse. -
#DescribeFirewallTemplateRuleQuota(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeFirewallTemplateRuleQuotaResponse. -
#DescribeFirewallTemplateRules(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeFirewallTemplateRulesResponse. -
#DescribeFirewallTemplates(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeFirewallTemplatesResponse. -
#DescribeGeneralResourceQuotas(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeGeneralResourceQuotasResponse. -
#DescribeImagesToShare(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeImagesToShareResponse. -
#DescribeInstances(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeInstancesResponse. -
#DescribeInstancesDeniedActions(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeInstancesDeniedActionsResponse. -
#DescribeInstancesDiskNum(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeInstancesDiskNumResponse. -
#DescribeInstancesReturnable(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeInstancesReturnableResponse. -
#DescribeInstancesTrafficPackages(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeInstancesTrafficPackagesResponse. -
#DescribeInstanceVncUrl(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeInstanceVncUrlResponse. -
#DescribeKeyPairs(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeKeyPairsResponse. -
#DescribeMcpServers(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeMcpServersResponse. -
#DescribeMcpServerTemplates(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeMcpServerTemplatesResponse. -
#DescribeModifyInstanceBundles(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeModifyInstanceBundlesResponse. -
#DescribeRegions(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeRegionsResponse. -
#DescribeResetInstanceBlueprints(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeResetInstanceBlueprintsResponse. -
#DescribeScenes(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeScenesResponse. -
#DescribeSnapshots(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeSnapshotsResponse. -
#DescribeSnapshotsDeniedActions(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeSnapshotsDeniedActionsResponse. -
#DescribeZones(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DescribeZonesResponse. -
#DetachCcn(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DetachCcnResponse. -
#DetachDisks(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DetachDisksResponse. -
#DisassociateInstancesKeyPairs(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::DisassociateInstancesKeyPairsResponse. -
#ImportKeyPair(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ImportKeyPairResponse. -
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#InquirePriceCreateBlueprint(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::InquirePriceCreateBlueprintResponse. -
#InquirePriceCreateDisks(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::InquirePriceCreateDisksResponse. -
#InquirePriceCreateInstances(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::InquirePriceCreateInstancesResponse. -
#InquirePriceRenewDisks(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::InquirePriceRenewDisksResponse. -
#InquirePriceRenewInstances(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::InquirePriceRenewInstancesResponse. -
#IsolateDisks(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::IsolateDisksResponse. -
#IsolateInstances(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::IsolateInstancesResponse. -
#ModifyBlueprintAttribute(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ModifyBlueprintAttributeResponse. -
#ModifyDiskBackupsAttribute(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ModifyDiskBackupsAttributeResponse. -
#ModifyDisksAttribute(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ModifyDisksAttributeResponse. -
#ModifyDisksBackupQuota(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ModifyDisksBackupQuotaResponse. -
#ModifyDisksRenewFlag(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ModifyDisksRenewFlagResponse. -
#ModifyDockerContainer(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ModifyDockerContainerResponse. -
#ModifyFirewallRuleDescription(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ModifyFirewallRuleDescriptionResponse. -
#ModifyFirewallRules(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ModifyFirewallRulesResponse. -
#ModifyFirewallTemplate(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ModifyFirewallTemplateResponse. -
#ModifyImageSharePermission(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ModifyImageSharePermissionResponse. -
#ModifyInstancesAttribute(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ModifyInstancesAttributeResponse. -
#ModifyInstancesBundle(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ModifyInstancesBundleResponse. -
#ModifyInstancesRenewFlag(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ModifyInstancesRenewFlagResponse. -
#ModifyMcpServer(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ModifyMcpServerResponse. -
#ModifySnapshotAttribute(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ModifySnapshotAttributeResponse. -
#RebootInstances(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::RebootInstancesResponse. -
#RemoveDockerContainers(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::RemoveDockerContainersResponse. -
#RemoveMcpServers(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::RemoveMcpServersResponse. -
#RenameDockerContainer(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::RenameDockerContainerResponse. -
#RenewDisks(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::RenewDisksResponse. -
#RenewInstances(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::RenewInstancesResponse. -
#ReplaceFirewallTemplateRule(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ReplaceFirewallTemplateRuleResponse. -
#RerunDockerContainer(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::RerunDockerContainerResponse. -
#ResetAttachCcn(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ResetAttachCcnResponse. -
#ResetFirewallTemplateRules(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ResetFirewallTemplateRulesResponse. -
#ResetInstance(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ResetInstanceResponse. -
#ResetInstancesPassword(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ResetInstancesPasswordResponse. -
#ResizeDisks(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ResizeDisksResponse. -
#RestartDockerContainers(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::RestartDockerContainersResponse. -
#RestartMcpServers(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::RestartMcpServersResponse. -
#RunDockerContainers(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::RunDockerContainersResponse. -
#ShareBlueprintAcrossAccounts(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::ShareBlueprintAcrossAccountsResponse. -
#StartDockerContainers(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::StartDockerContainersResponse. -
#StartInstances(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::StartInstancesResponse. -
#StartMcpServers(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::StartMcpServersResponse. -
#StopDockerContainers(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::StopDockerContainersResponse. -
#StopInstances(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::StopInstancesResponse. -
#StopMcpServers(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::StopMcpServersResponse. -
#SyncBlueprint(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::SyncBlueprintResponse. -
#TerminateDisks(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::TerminateDisksResponse. -
#TerminateInstances(request) ⇒ Object
@rtype: :class:
Tencentcloud::lighthouse::V20200324::TerminateInstancesResponse.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20200324/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2020-03-24' api_endpoint = 'lighthouse.tencentcloudapi.com' sdk_version = 'LIGHTHOUSE_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#ApplyDiskBackup(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ApplyDiskBackupResponse
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/v20200324/client.rb', line 43 def ApplyDiskBackup(request) body = send_request('ApplyDiskBackup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ApplyDiskBackupResponse.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 |
#ApplyFirewallTemplate(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ApplyFirewallTemplateResponse
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/v20200324/client.rb', line 67 def ApplyFirewallTemplate(request) body = send_request('ApplyFirewallTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ApplyFirewallTemplateResponse.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 |
#ApplyInstanceSnapshot(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ApplyInstanceSnapshotResponse
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/v20200324/client.rb', line 94 def ApplyInstanceSnapshot(request) body = send_request('ApplyInstanceSnapshot', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ApplyInstanceSnapshotResponse.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::lighthouse::V20200324::AssociateInstancesKeyPairsResponse
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
# File 'lib/v20200324/client.rb', line 124 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 |
#AttachCcn(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::AttachCcnResponse
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
# File 'lib/v20200324/client.rb', line 148 def AttachCcn(request) body = send_request('AttachCcn', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AttachCcnResponse.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 |
#AttachDisks(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::AttachDisksResponse
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 |
# File 'lib/v20200324/client.rb', line 173 def AttachDisks(request) body = send_request('AttachDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AttachDisksResponse.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 |
#CancelShareBlueprintAcrossAccounts(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::CancelShareBlueprintAcrossAccountsResponse
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
# File 'lib/v20200324/client.rb', line 198 def CancelShareBlueprintAcrossAccounts(request) body = send_request('CancelShareBlueprintAcrossAccounts', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CancelShareBlueprintAcrossAccountsResponse.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 |
#CreateBlueprint(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::CreateBlueprintResponse
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 |
# File 'lib/v20200324/client.rb', line 222 def CreateBlueprint(request) body = send_request('CreateBlueprint', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateBlueprintResponse.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 |
#CreateDiskBackup(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::CreateDiskBackupResponse
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 |
# File 'lib/v20200324/client.rb', line 246 def CreateDiskBackup(request) body = send_request('CreateDiskBackup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateDiskBackupResponse.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 |
#CreateDisks(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::CreateDisksResponse
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 |
# File 'lib/v20200324/client.rb', line 270 def CreateDisks(request) body = send_request('CreateDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateDisksResponse.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 |
#CreateFirewallRules(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::CreateFirewallRulesResponse
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 |
# File 'lib/v20200324/client.rb', line 304 def CreateFirewallRules(request) body = send_request('CreateFirewallRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateFirewallRulesResponse.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 |
#CreateFirewallTemplate(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::CreateFirewallTemplateResponse
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 |
# File 'lib/v20200324/client.rb', line 328 def CreateFirewallTemplate(request) body = send_request('CreateFirewallTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateFirewallTemplateResponse.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 |
#CreateFirewallTemplateRules(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::CreateFirewallTemplateRulesResponse
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 |
# File 'lib/v20200324/client.rb', line 352 def CreateFirewallTemplateRules(request) body = send_request('CreateFirewallTemplateRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateFirewallTemplateRulesResponse.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 |
#CreateInstances(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::CreateInstancesResponse
401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 |
# File 'lib/v20200324/client.rb', line 401 def CreateInstances(request) body = send_request('CreateInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateInstancesResponse.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 |
#CreateInstanceSnapshot(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::CreateInstanceSnapshotResponse
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 |
# File 'lib/v20200324/client.rb', line 376 def CreateInstanceSnapshot(request) body = send_request('CreateInstanceSnapshot', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateInstanceSnapshotResponse.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::lighthouse::V20200324::CreateKeyPairResponse
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 |
# File 'lib/v20200324/client.rb', line 425 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 |
#CreateMcpServer(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::CreateMcpServerResponse
450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 |
# File 'lib/v20200324/client.rb', line 450 def CreateMcpServer(request) body = send_request('CreateMcpServer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateMcpServerResponse.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 |
#DeleteBlueprints(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DeleteBlueprintsResponse
476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 |
# File 'lib/v20200324/client.rb', line 476 def DeleteBlueprints(request) body = send_request('DeleteBlueprints', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteBlueprintsResponse.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 |
#DeleteDiskBackups(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DeleteDiskBackupsResponse
501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 |
# File 'lib/v20200324/client.rb', line 501 def DeleteDiskBackups(request) body = send_request('DeleteDiskBackups', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteDiskBackupsResponse.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 |
#DeleteFirewallRules(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DeleteFirewallRulesResponse
534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 |
# File 'lib/v20200324/client.rb', line 534 def DeleteFirewallRules(request) body = send_request('DeleteFirewallRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteFirewallRulesResponse.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 |
#DeleteFirewallTemplate(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DeleteFirewallTemplateResponse
558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 |
# File 'lib/v20200324/client.rb', line 558 def DeleteFirewallTemplate(request) body = send_request('DeleteFirewallTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteFirewallTemplateResponse.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 |
#DeleteFirewallTemplateRules(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DeleteFirewallTemplateRulesResponse
582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 |
# File 'lib/v20200324/client.rb', line 582 def DeleteFirewallTemplateRules(request) body = send_request('DeleteFirewallTemplateRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteFirewallTemplateRulesResponse.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::lighthouse::V20200324::DeleteKeyPairsResponse
607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 |
# File 'lib/v20200324/client.rb', line 607 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 |
#DeleteSnapshots(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DeleteSnapshotsResponse
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 |
# File 'lib/v20200324/client.rb', line 632 def DeleteSnapshots(request) body = send_request('DeleteSnapshots', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteSnapshotsResponse.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 |
#DescribeAllScenes(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeAllScenesResponse
656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 |
# File 'lib/v20200324/client.rb', line 656 def DescribeAllScenes(request) body = send_request('DescribeAllScenes', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAllScenesResponse.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 |
#DescribeBlueprintInstances(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeBlueprintInstancesResponse
680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 |
# File 'lib/v20200324/client.rb', line 680 def DescribeBlueprintInstances(request) body = send_request('DescribeBlueprintInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBlueprintInstancesResponse.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 |
#DescribeBlueprints(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeBlueprintsResponse
704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 |
# File 'lib/v20200324/client.rb', line 704 def DescribeBlueprints(request) body = send_request('DescribeBlueprints', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBlueprintsResponse.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 |
#DescribeBundleDiscount(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeBundleDiscountResponse
728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 |
# File 'lib/v20200324/client.rb', line 728 def DescribeBundleDiscount(request) body = send_request('DescribeBundleDiscount', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBundleDiscountResponse.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 |
#DescribeBundles(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeBundlesResponse
752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 |
# File 'lib/v20200324/client.rb', line 752 def DescribeBundles(request) body = send_request('DescribeBundles', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBundlesResponse.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 |
#DescribeCcnAttachedInstances(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeCcnAttachedInstancesResponse
776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 |
# File 'lib/v20200324/client.rb', line 776 def DescribeCcnAttachedInstances(request) body = send_request('DescribeCcnAttachedInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCcnAttachedInstancesResponse.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 |
#DescribeDiskBackups(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeDiskBackupsResponse
800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 |
# File 'lib/v20200324/client.rb', line 800 def DescribeDiskBackups(request) body = send_request('DescribeDiskBackups', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDiskBackupsResponse.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 |
#DescribeDiskBackupsDeniedActions(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeDiskBackupsDeniedActionsResponse
824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 |
# File 'lib/v20200324/client.rb', line 824 def DescribeDiskBackupsDeniedActions(request) body = send_request('DescribeDiskBackupsDeniedActions', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDiskBackupsDeniedActionsResponse.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 |
#DescribeDiskConfigs(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeDiskConfigsResponse
848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 |
# File 'lib/v20200324/client.rb', line 848 def DescribeDiskConfigs(request) body = send_request('DescribeDiskConfigs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDiskConfigsResponse.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 |
#DescribeDiskDiscount(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeDiskDiscountResponse
872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 |
# File 'lib/v20200324/client.rb', line 872 def DescribeDiskDiscount(request) body = send_request('DescribeDiskDiscount', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDiskDiscountResponse.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 |
#DescribeDisks(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeDisksResponse
896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 |
# File 'lib/v20200324/client.rb', line 896 def DescribeDisks(request) body = send_request('DescribeDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDisksResponse.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 |
#DescribeDisksDeniedActions(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeDisksDeniedActionsResponse
920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 |
# File 'lib/v20200324/client.rb', line 920 def DescribeDisksDeniedActions(request) body = send_request('DescribeDisksDeniedActions', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDisksDeniedActionsResponse.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 |
#DescribeDisksReturnable(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeDisksReturnableResponse
944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 |
# File 'lib/v20200324/client.rb', line 944 def DescribeDisksReturnable(request) body = send_request('DescribeDisksReturnable', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDisksReturnableResponse.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 |
#DescribeDockerActivities(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeDockerActivitiesResponse
968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 |
# File 'lib/v20200324/client.rb', line 968 def DescribeDockerActivities(request) body = send_request('DescribeDockerActivities', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDockerActivitiesResponse.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 |
#DescribeDockerContainerConfiguration(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeDockerContainerConfigurationResponse
992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 |
# File 'lib/v20200324/client.rb', line 992 def DescribeDockerContainerConfiguration(request) body = send_request('DescribeDockerContainerConfiguration', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDockerContainerConfigurationResponse.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 |
#DescribeDockerContainerDetail(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeDockerContainerDetailResponse
1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 |
# File 'lib/v20200324/client.rb', line 1016 def DescribeDockerContainerDetail(request) body = send_request('DescribeDockerContainerDetail', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDockerContainerDetailResponse.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 |
#DescribeDockerContainers(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeDockerContainersResponse
1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 |
# File 'lib/v20200324/client.rb', line 1040 def DescribeDockerContainers(request) body = send_request('DescribeDockerContainers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDockerContainersResponse.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 |
#DescribeFirewallRules(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeFirewallRulesResponse
1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 |
# File 'lib/v20200324/client.rb', line 1064 def DescribeFirewallRules(request) body = send_request('DescribeFirewallRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeFirewallRulesResponse.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 |
#DescribeFirewallRulesTemplate(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeFirewallRulesTemplateResponse
1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 |
# File 'lib/v20200324/client.rb', line 1088 def DescribeFirewallRulesTemplate(request) body = send_request('DescribeFirewallRulesTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeFirewallRulesTemplateResponse.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 |
#DescribeFirewallTemplateApplyRecords(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeFirewallTemplateApplyRecordsResponse
1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 |
# File 'lib/v20200324/client.rb', line 1112 def DescribeFirewallTemplateApplyRecords(request) body = send_request('DescribeFirewallTemplateApplyRecords', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeFirewallTemplateApplyRecordsResponse.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 |
#DescribeFirewallTemplateQuota(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeFirewallTemplateQuotaResponse
1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 |
# File 'lib/v20200324/client.rb', line 1136 def DescribeFirewallTemplateQuota(request) body = send_request('DescribeFirewallTemplateQuota', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeFirewallTemplateQuotaResponse.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 |
#DescribeFirewallTemplateRuleQuota(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeFirewallTemplateRuleQuotaResponse
1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 |
# File 'lib/v20200324/client.rb', line 1160 def DescribeFirewallTemplateRuleQuota(request) body = send_request('DescribeFirewallTemplateRuleQuota', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeFirewallTemplateRuleQuotaResponse.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 |
#DescribeFirewallTemplateRules(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeFirewallTemplateRulesResponse
1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 |
# File 'lib/v20200324/client.rb', line 1184 def DescribeFirewallTemplateRules(request) body = send_request('DescribeFirewallTemplateRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeFirewallTemplateRulesResponse.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 |
#DescribeFirewallTemplates(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeFirewallTemplatesResponse
1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 |
# File 'lib/v20200324/client.rb', line 1208 def DescribeFirewallTemplates(request) body = send_request('DescribeFirewallTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeFirewallTemplatesResponse.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 |
#DescribeGeneralResourceQuotas(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeGeneralResourceQuotasResponse
1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 |
# File 'lib/v20200324/client.rb', line 1232 def DescribeGeneralResourceQuotas(request) body = send_request('DescribeGeneralResourceQuotas', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeGeneralResourceQuotasResponse.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 |
#DescribeImagesToShare(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeImagesToShareResponse
1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 |
# File 'lib/v20200324/client.rb', line 1256 def DescribeImagesToShare(request) body = send_request('DescribeImagesToShare', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeImagesToShareResponse.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::lighthouse::V20200324::DescribeInstancesResponse
1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 |
# File 'lib/v20200324/client.rb', line 1321 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 |
#DescribeInstancesDeniedActions(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeInstancesDeniedActionsResponse
1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 |
# File 'lib/v20200324/client.rb', line 1345 def DescribeInstancesDeniedActions(request) body = send_request('DescribeInstancesDeniedActions', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInstancesDeniedActionsResponse.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 |
#DescribeInstancesDiskNum(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeInstancesDiskNumResponse
1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 |
# File 'lib/v20200324/client.rb', line 1369 def DescribeInstancesDiskNum(request) body = send_request('DescribeInstancesDiskNum', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInstancesDiskNumResponse.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 |
#DescribeInstancesReturnable(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeInstancesReturnableResponse
1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 |
# File 'lib/v20200324/client.rb', line 1393 def DescribeInstancesReturnable(request) body = send_request('DescribeInstancesReturnable', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInstancesReturnableResponse.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 |
#DescribeInstancesTrafficPackages(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeInstancesTrafficPackagesResponse
1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 |
# File 'lib/v20200324/client.rb', line 1417 def DescribeInstancesTrafficPackages(request) body = send_request('DescribeInstancesTrafficPackages', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInstancesTrafficPackagesResponse.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::lighthouse::V20200324::DescribeInstanceVncUrlResponse
1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 |
# File 'lib/v20200324/client.rb', line 1292 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 |
#DescribeKeyPairs(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeKeyPairsResponse
1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 |
# File 'lib/v20200324/client.rb', line 1441 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 |
#DescribeMcpServers(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeMcpServersResponse
1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 |
# File 'lib/v20200324/client.rb', line 1489 def DescribeMcpServers(request) body = send_request('DescribeMcpServers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMcpServersResponse.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 |
#DescribeMcpServerTemplates(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeMcpServerTemplatesResponse
1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 |
# File 'lib/v20200324/client.rb', line 1465 def DescribeMcpServerTemplates(request) body = send_request('DescribeMcpServerTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMcpServerTemplatesResponse.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 |
#DescribeModifyInstanceBundles(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeModifyInstanceBundlesResponse
1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 |
# File 'lib/v20200324/client.rb', line 1513 def DescribeModifyInstanceBundles(request) body = send_request('DescribeModifyInstanceBundles', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeModifyInstanceBundlesResponse.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::lighthouse::V20200324::DescribeRegionsResponse
1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 |
# File 'lib/v20200324/client.rb', line 1537 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 |
#DescribeResetInstanceBlueprints(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeResetInstanceBlueprintsResponse
1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 |
# File 'lib/v20200324/client.rb', line 1561 def DescribeResetInstanceBlueprints(request) body = send_request('DescribeResetInstanceBlueprints', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeResetInstanceBlueprintsResponse.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 |
#DescribeScenes(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeScenesResponse
1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 |
# File 'lib/v20200324/client.rb', line 1585 def DescribeScenes(request) body = send_request('DescribeScenes', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeScenesResponse.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 |
#DescribeSnapshots(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeSnapshotsResponse
1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 |
# File 'lib/v20200324/client.rb', line 1609 def DescribeSnapshots(request) body = send_request('DescribeSnapshots', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSnapshotsResponse.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 |
#DescribeSnapshotsDeniedActions(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DescribeSnapshotsDeniedActionsResponse
1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 |
# File 'lib/v20200324/client.rb', line 1633 def DescribeSnapshotsDeniedActions(request) body = send_request('DescribeSnapshotsDeniedActions', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSnapshotsDeniedActionsResponse.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::lighthouse::V20200324::DescribeZonesResponse
1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 |
# File 'lib/v20200324/client.rb', line 1657 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 |
#DetachCcn(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DetachCcnResponse
1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 |
# File 'lib/v20200324/client.rb', line 1681 def DetachCcn(request) body = send_request('DetachCcn', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DetachCcnResponse.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 |
#DetachDisks(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::DetachDisksResponse
1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 |
# File 'lib/v20200324/client.rb', line 1707 def DetachDisks(request) body = send_request('DetachDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DetachDisksResponse.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::lighthouse::V20200324::DisassociateInstancesKeyPairsResponse
1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 |
# File 'lib/v20200324/client.rb', line 1737 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 |
#ImportKeyPair(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ImportKeyPairResponse
1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 |
# File 'lib/v20200324/client.rb', line 1761 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 |
#InquirePriceCreateBlueprint(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::InquirePriceCreateBlueprintResponse
1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 |
# File 'lib/v20200324/client.rb', line 1785 def InquirePriceCreateBlueprint(request) body = send_request('InquirePriceCreateBlueprint', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquirePriceCreateBlueprintResponse.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 |
#InquirePriceCreateDisks(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::InquirePriceCreateDisksResponse
1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 |
# File 'lib/v20200324/client.rb', line 1809 def InquirePriceCreateDisks(request) body = send_request('InquirePriceCreateDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquirePriceCreateDisksResponse.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 |
#InquirePriceCreateInstances(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::InquirePriceCreateInstancesResponse
1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 |
# File 'lib/v20200324/client.rb', line 1833 def InquirePriceCreateInstances(request) body = send_request('InquirePriceCreateInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquirePriceCreateInstancesResponse.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 |
#InquirePriceRenewDisks(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::InquirePriceRenewDisksResponse
1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 |
# File 'lib/v20200324/client.rb', line 1857 def InquirePriceRenewDisks(request) body = send_request('InquirePriceRenewDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquirePriceRenewDisksResponse.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 |
#InquirePriceRenewInstances(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::InquirePriceRenewInstancesResponse
1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 |
# File 'lib/v20200324/client.rb', line 1881 def InquirePriceRenewInstances(request) body = send_request('InquirePriceRenewInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = InquirePriceRenewInstancesResponse.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 |
#IsolateDisks(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::IsolateDisksResponse
1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 |
# File 'lib/v20200324/client.rb', line 1910 def IsolateDisks(request) body = send_request('IsolateDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = IsolateDisksResponse.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 |
#IsolateInstances(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::IsolateInstancesResponse
1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 |
# File 'lib/v20200324/client.rb', line 1938 def IsolateInstances(request) body = send_request('IsolateInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = IsolateInstancesResponse.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 |
#ModifyBlueprintAttribute(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ModifyBlueprintAttributeResponse
1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 |
# File 'lib/v20200324/client.rb', line 1962 def ModifyBlueprintAttribute(request) body = send_request('ModifyBlueprintAttribute', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyBlueprintAttributeResponse.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 |
#ModifyDiskBackupsAttribute(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ModifyDiskBackupsAttributeResponse
1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 |
# File 'lib/v20200324/client.rb', line 1986 def ModifyDiskBackupsAttribute(request) body = send_request('ModifyDiskBackupsAttribute', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyDiskBackupsAttributeResponse.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 |
#ModifyDisksAttribute(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ModifyDisksAttributeResponse
2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 |
# File 'lib/v20200324/client.rb', line 2013 def ModifyDisksAttribute(request) body = send_request('ModifyDisksAttribute', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyDisksAttributeResponse.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 |
#ModifyDisksBackupQuota(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ModifyDisksBackupQuotaResponse
2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 |
# File 'lib/v20200324/client.rb', line 2039 def ModifyDisksBackupQuota(request) body = send_request('ModifyDisksBackupQuota', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyDisksBackupQuotaResponse.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 |
#ModifyDisksRenewFlag(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ModifyDisksRenewFlagResponse
2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 |
# File 'lib/v20200324/client.rb', line 2068 def ModifyDisksRenewFlag(request) body = send_request('ModifyDisksRenewFlag', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyDisksRenewFlagResponse.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 |
#ModifyDockerContainer(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ModifyDockerContainerResponse
2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 |
# File 'lib/v20200324/client.rb', line 2093 def ModifyDockerContainer(request) body = send_request('ModifyDockerContainer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyDockerContainerResponse.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 |
#ModifyFirewallRuleDescription(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ModifyFirewallRuleDescriptionResponse
2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 |
# File 'lib/v20200324/client.rb', line 2128 def ModifyFirewallRuleDescription(request) body = send_request('ModifyFirewallRuleDescription', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyFirewallRuleDescriptionResponse.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 |
#ModifyFirewallRules(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ModifyFirewallRulesResponse
2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 |
# File 'lib/v20200324/client.rb', line 2163 def ModifyFirewallRules(request) body = send_request('ModifyFirewallRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyFirewallRulesResponse.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 |
#ModifyFirewallTemplate(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ModifyFirewallTemplateResponse
2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 |
# File 'lib/v20200324/client.rb', line 2187 def ModifyFirewallTemplate(request) body = send_request('ModifyFirewallTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyFirewallTemplateResponse.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::lighthouse::V20200324::ModifyImageSharePermissionResponse
2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 |
# File 'lib/v20200324/client.rb', line 2218 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 |
#ModifyInstancesAttribute(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ModifyInstancesAttributeResponse
2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 |
# File 'lib/v20200324/client.rb', line 2244 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 |
#ModifyInstancesBundle(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ModifyInstancesBundleResponse
2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 |
# File 'lib/v20200324/client.rb', line 2271 def ModifyInstancesBundle(request) body = send_request('ModifyInstancesBundle', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyInstancesBundleResponse.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::lighthouse::V20200324::ModifyInstancesRenewFlagResponse
2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 |
# File 'lib/v20200324/client.rb', line 2298 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 |
#ModifyMcpServer(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ModifyMcpServerResponse
2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 |
# File 'lib/v20200324/client.rb', line 2323 def ModifyMcpServer(request) body = send_request('ModifyMcpServer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyMcpServerResponse.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 |
#ModifySnapshotAttribute(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ModifySnapshotAttributeResponse
2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 |
# File 'lib/v20200324/client.rb', line 2348 def ModifySnapshotAttribute(request) body = send_request('ModifySnapshotAttribute', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifySnapshotAttributeResponse.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::lighthouse::V20200324::RebootInstancesResponse
2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 |
# File 'lib/v20200324/client.rb', line 2377 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 |
#RemoveDockerContainers(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::RemoveDockerContainersResponse
2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 |
# File 'lib/v20200324/client.rb', line 2401 def RemoveDockerContainers(request) body = send_request('RemoveDockerContainers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RemoveDockerContainersResponse.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 |
#RemoveMcpServers(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::RemoveMcpServersResponse
2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 |
# File 'lib/v20200324/client.rb', line 2427 def RemoveMcpServers(request) body = send_request('RemoveMcpServers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RemoveMcpServersResponse.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 |
#RenameDockerContainer(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::RenameDockerContainerResponse
2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 |
# File 'lib/v20200324/client.rb', line 2451 def RenameDockerContainer(request) body = send_request('RenameDockerContainer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RenameDockerContainerResponse.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 |
#RenewDisks(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::RenewDisksResponse
2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 |
# File 'lib/v20200324/client.rb', line 2479 def RenewDisks(request) body = send_request('RenewDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RenewDisksResponse.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::lighthouse::V20200324::RenewInstancesResponse
2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 |
# File 'lib/v20200324/client.rb', line 2506 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 |
#ReplaceFirewallTemplateRule(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ReplaceFirewallTemplateRuleResponse
2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 |
# File 'lib/v20200324/client.rb', line 2530 def ReplaceFirewallTemplateRule(request) body = send_request('ReplaceFirewallTemplateRule', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ReplaceFirewallTemplateRuleResponse.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 |
#RerunDockerContainer(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::RerunDockerContainerResponse
2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 |
# File 'lib/v20200324/client.rb', line 2554 def RerunDockerContainer(request) body = send_request('RerunDockerContainer', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RerunDockerContainerResponse.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 |
#ResetAttachCcn(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ResetAttachCcnResponse
2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 |
# File 'lib/v20200324/client.rb', line 2578 def ResetAttachCcn(request) body = send_request('ResetAttachCcn', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ResetAttachCcnResponse.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 |
#ResetFirewallTemplateRules(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ResetFirewallTemplateRulesResponse
2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 |
# File 'lib/v20200324/client.rb', line 2602 def ResetFirewallTemplateRules(request) body = send_request('ResetFirewallTemplateRules', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ResetFirewallTemplateRulesResponse.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::lighthouse::V20200324::ResetInstanceResponse
2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 |
# File 'lib/v20200324/client.rb', line 2633 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 |
#ResetInstancesPassword(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ResetInstancesPasswordResponse
2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 |
# File 'lib/v20200324/client.rb', line 2662 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 |
#ResizeDisks(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ResizeDisksResponse
2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 |
# File 'lib/v20200324/client.rb', line 2686 def ResizeDisks(request) body = send_request('ResizeDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ResizeDisksResponse.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 |
#RestartDockerContainers(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::RestartDockerContainersResponse
2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 |
# File 'lib/v20200324/client.rb', line 2710 def RestartDockerContainers(request) body = send_request('RestartDockerContainers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RestartDockerContainersResponse.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 |
#RestartMcpServers(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::RestartMcpServersResponse
2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 |
# File 'lib/v20200324/client.rb', line 2736 def RestartMcpServers(request) body = send_request('RestartMcpServers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RestartMcpServersResponse.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 |
#RunDockerContainers(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::RunDockerContainersResponse
2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 |
# File 'lib/v20200324/client.rb', line 2760 def RunDockerContainers(request) body = send_request('RunDockerContainers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RunDockerContainersResponse.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 |
#ShareBlueprintAcrossAccounts(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::ShareBlueprintAcrossAccountsResponse
2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 |
# File 'lib/v20200324/client.rb', line 2786 def ShareBlueprintAcrossAccounts(request) body = send_request('ShareBlueprintAcrossAccounts', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ShareBlueprintAcrossAccountsResponse.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 |
#StartDockerContainers(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::StartDockerContainersResponse
2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 |
# File 'lib/v20200324/client.rb', line 2810 def StartDockerContainers(request) body = send_request('StartDockerContainers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StartDockerContainersResponse.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::lighthouse::V20200324::StartInstancesResponse
2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 |
# File 'lib/v20200324/client.rb', line 2839 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 |
#StartMcpServers(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::StartMcpServersResponse
2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 |
# File 'lib/v20200324/client.rb', line 2865 def StartMcpServers(request) body = send_request('StartMcpServers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StartMcpServersResponse.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 |
#StopDockerContainers(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::StopDockerContainersResponse
2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 |
# File 'lib/v20200324/client.rb', line 2889 def StopDockerContainers(request) body = send_request('StopDockerContainers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StopDockerContainersResponse.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::lighthouse::V20200324::StopInstancesResponse
2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 |
# File 'lib/v20200324/client.rb', line 2917 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 |
#StopMcpServers(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::StopMcpServersResponse
2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 |
# File 'lib/v20200324/client.rb', line 2943 def StopMcpServers(request) body = send_request('StopMcpServers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StopMcpServersResponse.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 |
#SyncBlueprint(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::SyncBlueprintResponse
2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 |
# File 'lib/v20200324/client.rb', line 2973 def SyncBlueprint(request) body = send_request('SyncBlueprint', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SyncBlueprintResponse.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 |
#TerminateDisks(request) ⇒ Object
@rtype: :class:Tencentcloud::lighthouse::V20200324::TerminateDisksResponse
2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 |
# File 'lib/v20200324/client.rb', line 2998 def TerminateDisks(request) body = send_request('TerminateDisks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TerminateDisksResponse.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::lighthouse::V20200324::TerminateInstancesResponse
3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 |
# File 'lib/v20200324/client.rb', line 3026 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 |