Code Monkey home page Code Monkey logo

jdcloud-sdk-python's People

Contributors

eeslook avatar hongdongjian avatar jdcloud-apigateway avatar lidaobing avatar lixuenan2333 avatar russellgao avatar shijunlee avatar tanc009 avatar wdwqw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jdcloud-sdk-python's Issues

billing 500 error

from jdcloud_sdk.core.credential import Credential
from jdcloud_sdk.services.billing.client.BillingClient import BillingClient
from jdcloud_sdk.services.billing.apis.QueryBillSummaryRequest
import QueryBillSummaryParameters,QueryBillSummaryRequest

access_key = ''
secret_key = '
'
credential = Credential(access_key, secret_key)
client = BillingClient(credential)
try:
parameters = QueryBillSummaryParameters('cn-north-1','2019-10-01','2019-10-31')
request = QueryBillSummaryRequest(parameters)
resp = client.send(request)
if resp.error is not None:
print("code:",resp.error.code, "message:",resp.error.message)
print(str(resp.error.message,encoding='utf-8'))
print(resp.result)
except Exception as e:
print(e)
# 错误处理


得到的结果是
code: 500 message: 内部错误
是参数填写错误吗?有具体的例子不?

支持云鼎么?

我用用DescribeInstanceTypesRequest方法正常返回, 用DescribeInstancesRequest 方法的时候报错, 返回结果如下,
b'{"error":{"message":"sign result is not same [gw]","status":"ACCESS_ERROR","code":401},"requestId":"bwvnrhmbv42j8f4ctwkedo0atdkgc35f"}\n'
我们的服务器是在云鼎,

python -c "import jdcloud_sdk.services.ipanti.models.CertInfo" failed

$ python -c "import jdcloud_sdk.services.ipanti.models.CertInfo"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "jdcloud_sdk/services/ipanti/models/CertInfo.py", line 22
    def __init__(self, domain=None, from=None, to=None, user=None, sigAlgName=None, issuer=None):
                                       ^
SyntaxError: invalid syntax

修改模块层级接口

现在的使用方式是:

from jdcloud_sdk.services.billing.models.ResourceOrderQueryCondition import ResourceOrderQueryCondition
from jdcloud_sdk.services.jdro.apis.DeleteStackRequest import DeleteStackRequest

希望改为

from jdcloud_sdk.services.billing.models import ResourceOrderQueryCondition
from jdcloud_sdk.services.jdro.apis import DeleteStackRequest

setup error

python setup.py install has a error

with open(path.join(here, 'README'), encoding='utf-8') as f:
    long_description = f.read()

it should be

with open(path.join(here, 'README.md'), encoding='utf-8') as f:
    long_description = f.read()

no such README file

check_hostname requires server_hostname

` access_key = 'E'
secret_key = '0'
credential = Credential(access_key, secret_key)
client = VmClient(credential)

    try:
        parameters = DescribeInstancesParameters('cn-north-1')
        request = DescribeInstancesRequest(parameters)
        resp = client.send(request)
        if resp.error is not None:
            print(resp.error.code, resp.error.message)
        print(resp.result)
    except Exception as e:
        print(e)

`

raise ValueError("check_hostname requires server_hostname") ValueError: check_hostname requires server_hostname

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.