def __init__(self, OwnerId = None, ResourceOwnerAccount = None,
              ResourceOwnerId = None, OwnerAccount = None):
     RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'DescribeRegions', 'oss')
     self.add_query_param('OwnerId',OwnerId)
     self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
     self.add_query_param('ResourceOwnerId',ResourceOwnerId)
     self.add_query_param('OwnerAccount',OwnerAccount)
Esempio n. 2
0
def update_record(record_id, record_value):
    req = RpcRequest(PROD, VERSION, 'UpdateDomainRecord', 'JSON')
    req.add_query_param('RecordId', record_id)
    req.add_query_param('RR', DOMAIN_RECORD)
    req.add_query_param('Type', RECORD_TYPE)
    req.add_query_param('Value', record_value)
    req.add_query_param('TTL', TTL)

    resp = json.loads(client.do_action(req))
    return resp['RecordId']
Esempio n. 3
0
def get_record():
    req = RpcRequest(PROD, VERSION, 'DescribeDomainRecords', 'JSON')
    req.add_query_param('DomainName', DOMAIN_NAME)
    resp = json.loads(client.do_action(req))

    record_id = None
    record_value = None
    for record in resp['DomainRecords']['Record']:
        if record['RR'] == DOMAIN_RECORD:
            record_id = record['RecordId']
            if record['Type'] != RECORD_TYPE:
                raise Exception('The record is already exsits and the type not same.')
            record_value = record['Value']
    return record_id, record_value
	def __init__(self):
		RpcRequest.__init__(self, 'Emr', '2016-04-08', 'ListExecutionPlanInstanceTrend','emr')
		if hasattr(self, "endpoint_map"):
			setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
		if hasattr(self, "endpoint_regional"):
			setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
Esempio n. 5
0
 def __init__(self):
     RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'DescribeFleetHistory',
                         'ecs')
	def __init__(self):
		RpcRequest.__init__(self, 'Yundun', '2015-04-16', 'OpenCCProtect')
	def __init__(self):
		RpcRequest.__init__(self, 'Ocs', '2015-04-07', 'DescribeInputOption')
 def __init__(self):
     RpcRequest.__init__(self, "Rds", "2014-08-15", "DescribeOptimizeAdviceOnStorage")
 def __init__(self):
     RpcRequest.__init__(self, "Ecs", "2014-05-26", "CheckAutoSnapshotPolicy")
	def __init__(self):
		RpcRequest.__init__(self, 'Ens', '2017-11-10', 'DescribeEnsRegions','ens')
		self.set_method('POST')
Esempio n. 11
0
	def __init__(self):
		RpcRequest.__init__(self, 'Alidns', '2015-01-09', 'SetDNSSLBStatus')
Esempio n. 12
0
 def __init__(self):
     RpcRequest.__init__(self, 'Cdn', '2014-11-11',
                         'DescribeLiveRecordConfig')
 def __init__(self):
     RpcRequest.__init__(self, 'Dysmsapi', '2017-05-25', 'QuerySendDetails')
	def __init__(self):
		RpcRequest.__init__(self, 'Sas', '2018-12-03', 'DescribeSnapshots','sas')
		self.set_method('POST')
 def __init__(self):
     RpcRequest.__init__(self, 'live', '2016-11-01',
                         'AddLiveStreamTranscode')
Esempio n. 16
0
 def __init__(self):
     RpcRequest.__init__(self, 'polardb', '2017-08-01',
                         'ModifyAutoRenewAttribute', 'polardb')
 def __init__(self):
     RpcRequest.__init__(self, "R-kvstore", "2015-01-01", "ModifyInstanceAttribute")
Esempio n. 18
0
	def __init__(self):
		RpcRequest.__init__(self, 'Ens', '2017-11-10', 'DescribeCreatePrePaidInstanceResult','ens')
		self.set_method('POST')
	def __init__(self):
		RpcRequest.__init__(self, 'Ram', '2015-05-01', 'UpdateUser')
		self.set_protocol_type('https');
	def __init__(self):
		RpcRequest.__init__(self, 'cloudwf', '2017-03-28', 'ProfileTrade','cloudwf')
	def __init__(self):
		RpcRequest.__init__(self, 'Slb', '2014-05-15', 'DescribeHealthStatus')
	def __init__(self):
		RpcRequest.__init__(self, 'Cdn', '2014-11-11', 'AddLiveAppRecordConfig')
		if hasattr(self, "endpoint_map"):
			setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
		if hasattr(self, "endpoint_regional"):
			setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
 def __init__(self):
     RpcRequest.__init__(self, "Yundun", "2015-04-16", "DdosLog")
	def __init__(self):
		RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'DescribeMonitorItems','redisa')
		if hasattr(self, "endpoint_map"):
			setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
		if hasattr(self, "endpoint_regional"):
			setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
	def __init__(self):
		RpcRequest.__init__(self, 'Ram', '2015-05-01', 'GetPolicyVersion')
		self.set_protocol_type('https');
 def __init__(self):
     RpcRequest.__init__(self, 'Rds', '2014-08-15', 'DescribeBinlogFiles',
                         'rds')
	def __init__(self):
		RpcRequest.__init__(self, 'Green', '2016-11-15', 'TextWordCorrect','green')
		self.set_method('POST')
	def __init__(self):
		RpcRequest.__init__(self, 'Rds', '2014-08-15', 'DescribeCloudDbExpertService','Rds')
	def __init__(self):
		RpcRequest.__init__(self, 'Slb', '2014-05-15', 'CreateLoadBalancerHTTPListener')
	def __init__(self):
		RpcRequest.__init__(self, 'Yundun', '2015-04-16', 'CloseVulScan')
	def __init__(self):
		RpcRequest.__init__(self, 'imm', '2017-09-06', 'ListSetTags')
		self.set_method('POST')
	def __init__(self):
		RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'ModifyInstanceAutoRenewAttribute')
	def __init__(self):
		RpcRequest.__init__(self, 'CF', '2015-11-27', 'CfAccountFeedback')
		self.set_protocol_type('https');
	def __init__(self):
		RpcRequest.__init__(self, 'Cms', '2018-03-08', 'UpdateMyGroupAlert','cms')
	def __init__(self):
		RpcRequest.__init__(self, 'Rds', '2014-08-15', 'CreateAccount')
 def __init__(self):
     RpcRequest.__init__(self, 'Dbs', '2019-03-06', 'ModifyBackupObjects',
                         'cbs')
	def __init__(self):
		RpcRequest.__init__(self, 'Ram', '2015-05-01', 'DeleteAccessKey')
		self.set_protocol_type('https');
Esempio n. 38
0
 def __init__(self):
     RpcRequest.__init__(self, 'CSB', '2017-11-18', 'DeleteCasService',
                         'csb')
     self.set_protocol_type('https')
     self.set_method('POST')
	def __init__(self):
		RpcRequest.__init__(self, 'Ram', '2015-05-01', 'GetRole')
		self.set_protocol_type('https');
Esempio n. 40
0
 def __init__(self):
     RpcRequest.__init__(self, 'Ess', '2014-08-28', 'DescribeScalingGroups',
                         'ess')
	def __init__(self):
		RpcRequest.__init__(self, 'Bsn', '2015-05-12', 'ProductBindBsn')
	def __init__(self):
		RpcRequest.__init__(self, 'polardb', '2017-08-01', 'DescribeResourceUsage','polardb')
	def __init__(self):
		RpcRequest.__init__(self, 'Ram', '2015-05-01', 'DetachPolicyFromRole')
		self.set_protocol_type(self, 'https');
	def __init__(self):
		RpcRequest.__init__(self, 'address-purification', '2019-11-18', 'DescribeProduct')
	def __init__(self):
		RpcRequest.__init__(self, 'Push', '2015-08-27', 'UnbindTagsFromKey')
	def __init__(self):
		RpcRequest.__init__(self, 'Ess', '2014-08-28', 'DescribeNotificationTypes','ESS')
	def __init__(self):
		RpcRequest.__init__(self, 'Emr', '2016-04-08', 'RunExecutionPlan')
 def __init__(self):
     RpcRequest.__init__(self, 'PetaData', '2016-01-01',
                         'DescribeBackupPolicy', 'petadata')
     self.set_method('POST')
 def __init__(self):
     RpcRequest.__init__(self, "Slb", "2014-05-15", "DeleteServerCertificate")
Esempio n. 50
0
 def __init__(self):
     RpcRequest.__init__(self, 'Alidns', '2015-01-09',
                         'DescribeDNSSLBSubDomains', 'Alidns')
	def __init__(self):
		RpcRequest.__init__(self, 'Push', '2015-08-27', 'QueryPushDataByMessageId')
Esempio n. 52
0
 def __init__(self):
     RpcRequest.__init__(self, 'CSB', '2017-11-18', 'FindApprovalOrderList')
     self.set_protocol_type('https')
	def __init__(self):
		RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'DescribeAutoSnapshotPolicy')
Esempio n. 54
0
 def __init__(self):
     RpcRequest.__init__(self, 'IoTCC', '2021-05-13', 'CreateServiceEntry',
                         'IoTCC')
     self.set_method('POST')
	def __init__(self):
		RpcRequest.__init__(self, 'Rds', '2014-08-15', 'CreateUploadPathForSQLServer')
	def __init__(self):
		RpcRequest.__init__(self, 'Mts', '2014-06-18', 'ReportMediaDetailJobResult')
Esempio n. 57
0
	def __init__(self):
		RpcRequest.__init__(self, 'Alidns', '2015-01-09', 'CheckDomainRecord')
 def __init__(self):
     RpcRequest.__init__(self, 'EHPC', '2018-04-12',
                         'ListAvailableFileSystemTypes', 'ehs')
	def __init__(self):
		RpcRequest.__init__(self, 'Green', '2016-11-15', 'TextAntispamDetection','green')
		self.set_method('POST')
 def __init__(self):
     RpcRequest.__init__(self, 'Cms', '2019-01-01',
                         'DescribeMonitorGroupInstanceAttribute', 'cms')