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_style_delimiter(self): client_factory = ClientFactory('mps') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.mps.apis.SetStyleDelimiterRequest import SetStyleDelimiterRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = SetStyleDelimiterRequest(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_version(self): client_factory = ClientFactory('function') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.function.apis.GetVersionRequest import GetVersionRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = GetVersionRequest(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 last_downsample(self): client_factory = ClientFactory('monitor') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.monitor.apis.LastDownsampleRequest import LastDownsampleRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = LastDownsampleRequest(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_consumer_group(self): client_factory = ClientFactory('streambus') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.streambus.apis.DeleteConsumerGroupRequest import DeleteConsumerGroupRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = DeleteConsumerGroupRequest(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_consume_offset(self): client_factory = ClientFactory('jcq') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.jcq.apis.ResetConsumeOffsetRequest import ResetConsumeOffsetRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = ResetConsumeOffsetRequest(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 om_enrollby_file(self): client_factory = ClientFactory('iothub') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.iothub.apis.OmEnrollbyFileRequest import OmEnrollbyFileRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = OmEnrollbyFileRequest(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 close_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.CloseIotFlowRequest import CloseIotFlowRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = CloseIotFlowRequest(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 operate_key(self): client_factory = ClientFactory('httpdns') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.httpdns.apis.OperateKeyRequest import OperateKeyRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = OperateKeyRequest(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_security_ips(self): client_factory = ClientFactory('mongodb') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.mongodb.apis.ModifySecurityIpsRequest import ModifySecurityIpsRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = ModifySecurityIpsRequest(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_order_sync(self): client_factory = ClientFactory('yundingdatapush') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.yundingdatapush.apis.CreateOrderSyncRequest import CreateOrderSyncRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = CreateOrderSyncRequest(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_cache_instance_class(self): client_factory = ClientFactory('redis') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.redis.apis.ModifyCacheInstanceClassRequest import ModifyCacheInstanceClassRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = ModifyCacheInstanceClassRequest(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 check_repository_name(self): client_factory = ClientFactory('cr') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.cr.apis.CheckRepositoryNameRequest import CheckRepositoryNameRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = CheckRepositoryNameRequest(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 disabled_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.DisabledUserAccessKeyRequest import DisabledUserAccessKeyRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = DisabledUserAccessKeyRequest(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 execute_change_set(self): client_factory = ClientFactory('jdro') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.jdro.apis.ExecuteChangeSetRequest import ExecuteChangeSetRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = ExecuteChangeSetRequest(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 query_device_online_infos(self): client_factory = ClientFactory('iothub') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.iothub.apis.QueryDeviceOnlineInfosRequest import QueryDeviceOnlineInfosRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = QueryDeviceOnlineInfosRequest(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 describe_metrics_for_create_alarm(self): client_factory = ClientFactory('monitor') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.monitor.apis.DescribeMetricsForCreateAlarmRequest import DescribeMetricsForCreateAlarmRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = DescribeMetricsForCreateAlarmRequest(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 delete_back_source_configuration(self): client_factory = ClientFactory('ossopenapi') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.ossopenapi.apis.DeleteBackSourceConfigurationRequest import DeleteBackSourceConfigurationRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = DeleteBackSourceConfigurationRequest(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 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 update_vqd_template(self): client_factory = ClientFactory('vqd') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.vqd.apis.UpdateVqdTemplateRequest import UpdateVqdTemplateRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = UpdateVqdTemplateRequest(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 create_thumbnail_task(self): client_factory = ClientFactory('mps') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.mps.apis.CreateThumbnailTaskRequest import CreateThumbnailTaskRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = CreateThumbnailTaskRequest(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_file_system_attribute(self): client_factory = ClientFactory('zfs') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.zfs.apis.ModifyFileSystemAttributeRequest import ModifyFileSystemAttributeRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = ModifyFileSystemAttributeRequest(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_snapshots(self): client_factory = ClientFactory('disk') client = client_factory.get(self.app) if client is None: return try: from jdcloud_sdk.services.disk.apis.DescribeSnapshotsRequest import DescribeSnapshotsRequest params_dict = collect_user_args(self.app) headers = collect_user_headers(self.app) req = DescribeSnapshotsRequest(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)