def list_product_abilities(self): client_factory = ClientFactory('iotcore') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.iotcore.apis.ListProductAbilitiesRequest import ListProductAbilitiesRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = ListProductAbilitiesRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def disassociate_elastic_ip(self): client_factory = ClientFactory('pod') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.pod.apis.DisassociateElasticIpRequest import DisassociateElasticIpRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = DisassociateElasticIpRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def update_thing_shadow(self): client_factory = ClientFactory('iotcore') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.iotcore.apis.UpdateThingShadowRequest import UpdateThingShadowRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = UpdateThingShadowRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def add_or_update_storage(self): client_factory = ClientFactory('streamcomputer') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.streamcomputer.apis.AddOrUpdateStorageRequest import AddOrUpdateStorageRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = AddOrUpdateStorageRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def jdx_query_delivery_info(self): client_factory = ClientFactory('elite') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.elite.apis.JdxQueryDeliveryInfoRequest import JdxQueryDeliveryInfoRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = JdxQueryDeliveryInfoRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def describe_file_systems(self): client_factory = ClientFactory('zfs') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.zfs.apis.DescribeFileSystemsRequest import DescribeFileSystemsRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = DescribeFileSystemsRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def query_my_customer_list(self): client_factory = ClientFactory('partner') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.partner.apis.QueryMyCustomerListRequest import QueryMyCustomerListRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = QueryMyCustomerListRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def open_iot_flow(self): client_factory = ClientFactory('iotlink') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.iotlink.apis.OpenIotFlowRequest import OpenIotFlowRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = OpenIotFlowRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def remove_permission_of_sub_user(self): client_factory = ClientFactory('iam') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.iam.apis.RemovePermissionOfSubUserRequest import RemovePermissionOfSubUserRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = RemovePermissionOfSubUserRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def add_domains(self): client_factory = ClientFactory('httpdns') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.httpdns.apis.AddDomainsRequest import AddDomainsRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = AddDomainsRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def backup_download_url(self): client_factory = ClientFactory('mongodb') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.mongodb.apis.BackupDownloadURLRequest import BackupDownloadURLRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = BackupDownloadURLRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def get_large_screen_data(self): client_factory = ClientFactory('datastar') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.datastar.apis.GetLargeScreenDataRequest import GetLargeScreenDataRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = GetLargeScreenDataRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def reset_cache_instance_password(self): client_factory = ClientFactory('redis') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.redis.apis.ResetCacheInstancePasswordRequest import ResetCacheInstancePasswordRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = ResetCacheInstancePasswordRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def release_authorization_token(self): client_factory = ClientFactory('cr') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.cr.apis.ReleaseAuthorizationTokenRequest import ReleaseAuthorizationTokenRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = ReleaseAuthorizationTokenRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def set_ip_clean_threshold(self): client_factory = ClientFactory('baseanti') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.baseanti.apis.SetIpCleanThresholdRequest import SetIpCleanThresholdRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = SetIpCleanThresholdRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def delete_user_access_key(self): client_factory = ClientFactory('iam') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.iam.apis.DeleteUserAccessKeyRequest import DeleteUserAccessKeyRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = DeleteUserAccessKeyRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def describe_ip_resource_protect_info(self): client_factory = ClientFactory('baseanti') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.baseanti.apis.DescribeIpResourceProtectInfoRequest import DescribeIpResourceProtectInfoRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = DescribeIpResourceProtectInfoRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def query_namespace_detail(self): client_factory = ClientFactory('streamcomputer') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.streamcomputer.apis.QueryNamespaceDetailRequest import QueryNamespaceDetailRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = QueryNamespaceDetailRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def get_total_consumption(self): client_factory = ClientFactory('partner') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.partner.apis.GetTotalConsumptionRequest import GetTotalConsumptionRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = GetTotalConsumptionRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def modify_pod_attribute(self): client_factory = ClientFactory('pod') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.pod.apis.ModifyPodAttributeRequest import ModifyPodAttributeRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = ModifyPodAttributeRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def get_sale_service_by_deliver_number(self): client_factory = ClientFactory('elite') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.elite.apis.GetSaleServiceByDeliverNumberRequest import GetSaleServiceByDeliverNumberRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = GetSaleServiceByDeliverNumberRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def create_stack(self): client_factory = ClientFactory('jdro') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.jdro.apis.CreateStackRequest import CreateStackRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = CreateStackRequest(params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def describe_dead_letter_numbers_with_topic(self): client_factory = ClientFactory('jcq') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.jcq.apis.DescribeDeadLetterNumbersWithTopicRequest import DescribeDeadLetterNumbersWithTopicRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = DescribeDeadLetterNumbersWithTopicRequest( params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)
def describe_resource_type_specification(self): client_factory = ClientFactory('jdro') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.jdro.apis.DescribeResourceTypeSpecificationRequest import DescribeResourceTypeSpecificationRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = DescribeResourceTypeSpecificationRequest( params_dict, headers) resp = client.send(req) Printer.print_result(resp) except ImportError: print( '{"error":"This api is not supported, please use the newer version"}' ) except Exception as e: print(e)