Skip to content

Commit

Permalink
Merge pull request #56 from jdcloud-apigateway/master
Browse files Browse the repository at this point in the history
update cli to new version and fix some bugs
  • Loading branch information
shijunLee authored Aug 18, 2022
2 parents 22e8809 + e25b0a0 commit 1c5931e
Show file tree
Hide file tree
Showing 167 changed files with 41,272 additions and 22,277 deletions.
112 changes: 56 additions & 56 deletions jdcloud_cli/client_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,66 +18,66 @@

from jdcloud_sdk.core.config import Config
from jdcloud_sdk.core.credential import Credential
from jdcloud_sdk.services.rds.client.RdsClient import RdsClient
from jdcloud_sdk.services.kubernetes.client.KubernetesClient import KubernetesClient
from jdcloud_sdk.services.vqd.client.VqdClient import VqdClient
from jdcloud_sdk.services.streamcomputer.client.StreamcomputerClient import StreamcomputerClient
from jdcloud_sdk.services.ipanti.client.IpantiClient import IpantiClient
from jdcloud_sdk.services.ssl.client.SslClient import SslClient
from jdcloud_sdk.services.domainservice.client.DomainserviceClient import DomainserviceClient
from jdcloud_sdk.services.jmr.client.JmrClient import JmrClient
from jdcloud_sdk.services.oss.client.OssClient import OssClient
from jdcloud_sdk.services.redis.client.RedisClient import RedisClient
from jdcloud_sdk.services.billing.client.BillingClient import BillingClient
from jdcloud_sdk.services.deploy.client.DeployClient import DeployClient
from jdcloud_sdk.services.sop.client.SopClient import SopClient
from jdcloud_sdk.services.function.client.FunctionClient import FunctionClient
from jdcloud_sdk.services.portal.client.PortalClient import PortalClient
from jdcloud_sdk.services.jdccs.client.JdccsClient import JdccsClient
from jdcloud_sdk.services.logs.client.LogsClient import LogsClient
from jdcloud_sdk.services.clouddnsservice.client.ClouddnsserviceClient import ClouddnsserviceClient
from jdcloud_sdk.services.cps.client.CpsClient import CpsClient
from jdcloud_sdk.services.cdn.client.CdnClient import CdnClient
from jdcloud_sdk.services.streambus.client.StreambusClient import StreambusClient
from jdcloud_sdk.services.apigateway.client.ApigatewayClient import ApigatewayClient
from jdcloud_sdk.services.httpdns.client.HttpdnsClient import HttpdnsClient
from jdcloud_sdk.services.disk.client.DiskClient import DiskClient
from jdcloud_sdk.services.sts.client.StsClient import StsClient
from jdcloud_sdk.services.nc.client.NcClient import NcClient
from jdcloud_sdk.services.vm.client.VmClient import VmClient
from jdcloud_sdk.services.nativecontainer.client.NativecontainerClient import NativecontainerClient
from jdcloud_sdk.services.iotcore.client.IotcoreClient import IotcoreClient
from jdcloud_sdk.services.pod.client.PodClient import PodClient
from jdcloud_sdk.services.ams.client.AmsClient import AmsClient
from jdcloud_sdk.services.jdro.client.JdroClient import JdroClient
from jdcloud_sdk.services.zfs.client.ZfsClient import ZfsClient
from jdcloud_sdk.services.vod.client.VodClient import VodClient
from jdcloud_sdk.services.yundingdatapush.client.YundingdatapushClient import YundingdatapushClient
from jdcloud_sdk.services.datastar.client.DatastarClient import DatastarClient
from jdcloud_sdk.services.kms.client.KmsClient import KmsClient
from jdcloud_sdk.services.elite.client.EliteClient import EliteClient
from jdcloud_sdk.services.ossopenapi.client.OssopenapiClient import OssopenapiClient
from jdcloud_sdk.services.iam.client.IamClient import IamClient
from jdcloud_sdk.services.iothub.client.IothubClient import IothubClient
from jdcloud_sdk.services.sms.client.SmsClient import SmsClient
from jdcloud_sdk.services.jcq.client.JcqClient import JcqClient
from jdcloud_sdk.services.resourcetag.client.ResourcetagClient import ResourcetagClient
from jdcloud_sdk.services.baseanti.client.BaseantiClient import BaseantiClient
from jdcloud_sdk.services.jcq.client.JcqClient import JcqClient
from jdcloud_sdk.services.ias.client.IasClient import IasClient
from jdcloud_sdk.services.mongodb.client.MongodbClient import MongodbClient
from jdcloud_sdk.services.jdfusion.client.JdfusionClient import JdfusionClient
from jdcloud_sdk.services.live.client.LiveClient import LiveClient
from jdcloud_sdk.services.detection.client.DetectionClient import DetectionClient
from jdcloud_sdk.services.iotlink.client.IotlinkClient import IotlinkClient
from jdcloud_sdk.services.renewal.client.RenewalClient import RenewalClient
from jdcloud_sdk.services.yunding.client.YundingClient import YundingClient
from jdcloud_sdk.services.vpc.client.VpcClient import VpcClient
from jdcloud_sdk.services.monitor.client.MonitorClient import MonitorClient
from jdcloud_sdk.services.xdata.client.XdataClient import XdataClient
from jdcloud_sdk.services.containerregistry.client.ContainerregistryClient import ContainerregistryClient
from jdcloud_sdk.services.partner.client.PartnerClient import PartnerClient
from jdcloud_sdk.services.lb.client.LbClient import LbClient
from jdcloud_sdk.services.industrydata.client.IndustrydataClient import IndustrydataClient
from jdcloud_sdk.services.rds.client.RdsClient import RdsClient
from jdcloud_sdk.services.kubernetes.client.KubernetesClient import KubernetesClient
from jdcloud_sdk.services.ipanti.client.IpantiClient import IpantiClient
from jdcloud_sdk.services.jmr.client.JmrClient import JmrClient
from jdcloud_sdk.services.deploy.client.DeployClient import DeployClient
from jdcloud_sdk.services.sop.client.SopClient import SopClient
from jdcloud_sdk.services.function.client.FunctionClient import FunctionClient
from jdcloud_sdk.services.jdccs.client.JdccsClient import JdccsClient
from jdcloud_sdk.services.logs.client.LogsClient import LogsClient
from jdcloud_sdk.services.cps.client.CpsClient import CpsClient
from jdcloud_sdk.services.httpdns.client.HttpdnsClient import HttpdnsClient
from jdcloud_sdk.services.disk.client.DiskClient import DiskClient
from jdcloud_sdk.services.nc.client.NcClient import NcClient
from jdcloud_sdk.services.vm.client.VmClient import VmClient
from jdcloud_sdk.services.iotcore.client.IotcoreClient import IotcoreClient
from jdcloud_sdk.services.zfs.client.ZfsClient import ZfsClient
from jdcloud_sdk.services.ams.client.AmsClient import AmsClient
from jdcloud_sdk.services.jdro.client.JdroClient import JdroClient
from jdcloud_sdk.services.vod.client.VodClient import VodClient
from jdcloud_sdk.services.yundingdatapush.client.YundingdatapushClient import YundingdatapushClient
from jdcloud_sdk.services.ossopenapi.client.OssopenapiClient import OssopenapiClient
from jdcloud_sdk.services.baseanti.client.BaseantiClient import BaseantiClient
from jdcloud_sdk.services.mongodb.client.MongodbClient import MongodbClient
from jdcloud_sdk.services.live.client.LiveClient import LiveClient
from jdcloud_sdk.services.vpc.client.VpcClient import VpcClient
from jdcloud_sdk.services.monitor.client.MonitorClient import MonitorClient
from jdcloud_sdk.services.xdata.client.XdataClient import XdataClient
from jdcloud_cli.config import ProfileManager
from jdcloud_cli.logger import get_logger

Expand All @@ -89,66 +89,66 @@ def __init__(self, service):

def get(self, app):
client_map = {
'rds': RdsClient,
'kubernetes': KubernetesClient,
'vqd': VqdClient,
'streamcomputer': StreamcomputerClient,
'ipanti': IpantiClient,
'ssl': SslClient,
'domainservice': DomainserviceClient,
'jmr': JmrClient,
'oss': OssClient,
'redis': RedisClient,
'billing': BillingClient,
'deploy': DeployClient,
'sop': SopClient,
'function': FunctionClient,
'portal': PortalClient,
'jdccs': JdccsClient,
'logs': LogsClient,
'clouddnsservice': ClouddnsserviceClient,
'cps': CpsClient,
'cdn': CdnClient,
'streambus': StreambusClient,
'apigateway': ApigatewayClient,
'httpdns': HttpdnsClient,
'disk': DiskClient,
'sts': StsClient,
'nc': NcClient,
'vm': VmClient,
'nativecontainer': NativecontainerClient,
'iotcore': IotcoreClient,
'pod': PodClient,
'ams': AmsClient,
'jdro': JdroClient,
'zfs': ZfsClient,
'vod': VodClient,
'yundingdatapush': YundingdatapushClient,
'datastar': DatastarClient,
'kms': KmsClient,
'elite': EliteClient,
'ossopenapi': OssopenapiClient,
'iam': IamClient,
'iothub': IothubClient,
'sms': SmsClient,
'jcq': JcqClient,
'resourcetag': ResourcetagClient,
'baseanti': BaseantiClient,
'jcq': JcqClient,
'ias': IasClient,
'mongodb': MongodbClient,
'jdfusion': JdfusionClient,
'live': LiveClient,
'detection': DetectionClient,
'iotlink': IotlinkClient,
'renewal': RenewalClient,
'yunding': YundingClient,
'vpc': VpcClient,
'monitor': MonitorClient,
'xdata': XdataClient,
'containerregistry': ContainerregistryClient,
'partner': PartnerClient,
'lb': LbClient,
'industrydata': IndustrydataClient,
'rds': RdsClient,
'kubernetes': KubernetesClient,
'ipanti': IpantiClient,
'jmr': JmrClient,
'deploy': DeployClient,
'sop': SopClient,
'function': FunctionClient,
'jdccs': JdccsClient,
'logs': LogsClient,
'cps': CpsClient,
'httpdns': HttpdnsClient,
'disk': DiskClient,
'nc': NcClient,
'vm': VmClient,
'iotcore': IotcoreClient,
'zfs': ZfsClient,
'ams': AmsClient,
'jdro': JdroClient,
'vod': VodClient,
'yundingdatapush': YundingdatapushClient,
'ossopenapi': OssopenapiClient,
'baseanti': BaseantiClient,
'mongodb': MongodbClient,
'live': LiveClient,
'vpc': VpcClient,
'monitor': MonitorClient,
'xdata': XdataClient,
}

profile_manager = ProfileManager()
Expand Down
2 changes: 2 additions & 0 deletions jdcloud_cli/controllers/services/ams.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class Meta:
(['--start-time'], dict(help="""(string) 起始时间 """, dest='startTime', required=False)),
(['--end-time'], dict(help="""(string) 结束时间 """, dest='endTime', required=False)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--jdcloud-header'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='jdcloudHeaders', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
Expand Down Expand Up @@ -75,6 +76,7 @@ def describe_streams_input(self):
(['--p-id'], dict(help="""(string) PinId """, dest='pId', required=True)),
(['--ver'], dict(help="""(int) 版本 """, dest='ver', type=int, required=False)),
(['--input-json'], dict(help='(json) 以json字符串或文件绝对路径形式作为输入参数。\n字符串方式举例:--input-json \'{"field":"value"}\';\n文件格式举例:--input-json file:///xxxx.json', dest='input_json', required=False)),
(['--jdcloud-header'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='jdcloudHeaders', required=False)),
(['--headers'], dict(help="""(json) 用户自定义Header,举例:'{"x-jdcloud-security-token":"abc","test":"123"}'""", dest='headers', required=False)),
],
formatter_class=RawTextHelpFormatter,
Expand Down
Loading

0 comments on commit 1c5931e

Please sign in to comment.