Пример #1
0
 def create_domain(
         self,
         cc_enable=None,
         instance_id=None,
         source_ips=None,
         domain=None,
         protocols=None,
         waf_enable=None):
     api_request = APIRequest('CreateDomain', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "CcEnable": cc_enable,
         "InstanceId": instance_id,
         "SourceIps": source_ips,
         "Domain": domain,
         "Protocols": protocols,
         "WafEnable": waf_enable}
     return self._handle_request(api_request).result
 def abort_db_cluster_migration(
         self,
         resource_owner_id=None,
         security_token=None,
         resource_owner_account=None,
         db_cluster_id=None,
         owner_account=None,
         owner_id=None):
     api_request = APIRequest('AbortDBClusterMigration', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "ResourceOwnerId": resource_owner_id,
         "SecurityToken": security_token,
         "ResourceOwnerAccount": resource_owner_account,
         "DBClusterId": db_cluster_id,
         "OwnerAccount": owner_account,
         "OwnerId": owner_id}
     return self._handle_request(api_request).result
 def modify_db_cluster_maintain_time(
         self,
         maintain_time=None,
         resource_owner_id=None,
         resource_owner_account=None,
         db_cluster_id=None,
         owner_account=None,
         owner_id=None):
     api_request = APIRequest('ModifyDBClusterMaintainTime', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "MaintainTime": maintain_time,
         "ResourceOwnerId": resource_owner_id,
         "ResourceOwnerAccount": resource_owner_account,
         "DBClusterId": db_cluster_id,
         "OwnerAccount": owner_account,
         "OwnerId": owner_id}
     return self._handle_request(api_request).result
Пример #4
0
 def get_op_log(
         self,
         module=None,
         page_size=None,
         end_time=None,
         start_time=None,
         tid=None,
         page_number=None):
     api_request = APIRequest('GetOpLog', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "Module": module,
         "PageSize": page_size,
         "EndTime": end_time,
         "StartTime": start_time,
         "Tid": tid,
         "PageNumber": page_number}
     return self._handle_request(api_request).result
Пример #5
0
 def describe_dcdn_domain_log(
         self,
         start_time=None,
         page_number=None,
         page_size=None,
         domain_name=None,
         end_time=None,
         owner_id=None):
     api_request = APIRequest('DescribeDcdnDomainLog', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "StartTime": start_time,
         "PageNumber": page_number,
         "PageSize": page_size,
         "DomainName": domain_name,
         "EndTime": end_time,
         "OwnerId": owner_id}
     return self._handle_request(api_request).result
 def delete_container_group(
         self,
         resource_owner_id=None,
         client_token=None,
         container_group_id=None,
         resource_owner_account=None,
         owner_account=None,
         owner_id=None):
     api_request = APIRequest('DeleteContainerGroup', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "ResourceOwnerId": resource_owner_id,
         "ClientToken": client_token,
         "ContainerGroupId": container_group_id,
         "ResourceOwnerAccount": resource_owner_account,
         "OwnerAccount": owner_account,
         "OwnerId": owner_id}
     return self._handle_request(api_request).result
 def delete_cdn_ip(self,
                   item_id=None,
                   resource_owner_id=None,
                   source_ip=None,
                   cdn_ip=None,
                   lang=None,
                   source_code=None):
     api_request = APIRequest('DeleteCdnIp', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "ItemId": item_id,
         "ResourceOwnerId": resource_owner_id,
         "SourceIp": source_ip,
         "CdnIp": cdn_ip,
         "Lang": lang,
         "SourceCode": source_code
     }
     return self._handle_request(api_request).result
 def list_albums(self,
                 cursor=None,
                 size=None,
                 library_id=None,
                 store_name=None,
                 state=None,
                 direction=None):
     api_request = APIRequest('ListAlbums', 'GET', 'https', 'RPC', 'query')
     api_request._params = {
         "Cursor": cursor,
         "Size": size,
         "LibraryId": library_id,
         "StoreName": store_name,
         "State": state,
         "Direction": direction
     }
     return self._handle_request(api_request).result
 def update_user(self,
                 new_user_name=None,
                 new_display_name=None,
                 new_mobile_phone=None,
                 new_comments=None,
                 new_email=None,
                 user_name=None):
     api_request = APIRequest('UpdateUser', 'GET', 'https', 'RPC', 'query')
     api_request._params = {
         "NewUserName": new_user_name,
         "NewDisplayName": new_display_name,
         "NewMobilePhone": new_mobile_phone,
         "NewComments": new_comments,
         "NewEmail": new_email,
         "UserName": user_name
     }
     return self._handle_request(api_request).result
 def toggle_features(self,
                     list_of_disabled_features=None,
                     store_name=None,
                     list_of_enabled_features=None):
     api_request = APIRequest('ToggleFeatures', 'GET', 'https', 'RPC',
                              'query')
     api_request._params = {
         "DisabledFeatures": list_of_disabled_features,
         "StoreName": store_name,
         "EnabledFeatures": list_of_enabled_features
     }
     repeat_info = {
         "DisabledFeatures": ('DisabledFeatures', 'list', 'str', None),
         "EnabledFeatures": ('EnabledFeatures', 'list', 'str', None),
     }
     verify_params(api_request._params, repeat_info)
     return self._handle_request(api_request).result
 def merge_faces(self,
                 library_id=None,
                 target_face_id=None,
                 store_name=None,
                 list_of_face_id=None):
     api_request = APIRequest('MergeFaces', 'GET', 'https', 'RPC', 'query')
     api_request._params = {
         "LibraryId": library_id,
         "TargetFaceId": target_face_id,
         "StoreName": store_name,
         "FaceId": list_of_face_id
     }
     repeat_info = {
         "FaceId": ('FaceId', 'list', 'str', None),
     }
     verify_params(api_request._params, repeat_info)
     return self._handle_request(api_request).result
Пример #12
0
 def update_room_name(
         self,
         clientappid=None,
         region_id=None,
         drname=None,
         sysfrom=None,
         operator=None,
         screencode=None):
     api_request = APIRequest('UpdateRoomName', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "Clientappid": clientappid,
         "RegionId": region_id,
         "Drname": drname,
         "Sysfrom": sysfrom,
         "Operator": operator,
         "Screencode": screencode}
     return self._handle_request(api_request).result
Пример #13
0
 def add_ip_segment(
         self,
         clientappid=None,
         region_id=None,
         ipsegment=None,
         memo=None,
         sysfrom=None,
         operator=None):
     api_request = APIRequest('AddIPSegment', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "Clientappid": clientappid,
         "RegionId": region_id,
         "Ipsegment": ipsegment,
         "Memo": memo,
         "Sysfrom": sysfrom,
         "Operator": operator}
     return self._handle_request(api_request).result
Пример #14
0
 def create_enterprise(
         self,
         clientappid=None,
         region_id=None,
         service_flag=None,
         sysfrom=None,
         box_number=None,
         operator=None):
     api_request = APIRequest('CreateEnterprise', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "Clientappid": clientappid,
         "RegionId": region_id,
         "ServiceFlag": service_flag,
         "Sysfrom": sysfrom,
         "BoxNumber": box_number,
         "Operator": operator}
     return self._handle_request(api_request).result
 def describe_container_group_price(
         self,
         resource_owner_id=None,
         memory=None,
         resource_owner_account=None,
         owner_account=None,
         cpu=None,
         owner_id=None):
     api_request = APIRequest('DescribeContainerGroupPrice', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "ResourceOwnerId": resource_owner_id,
         "Memory": memory,
         "ResourceOwnerAccount": resource_owner_account,
         "OwnerAccount": owner_account,
         "Cpu": cpu,
         "OwnerId": owner_id}
     return self._handle_request(api_request).result
Пример #16
0
 def describe_uise_node_status(
         self,
         resource_owner_id=None,
         uis_node_id=None,
         resource_owner_account=None,
         owner_account=None,
         ip=None,
         owner_id=None):
     api_request = APIRequest('DescribeUiseNodeStatus', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "ResourceOwnerId": resource_owner_id,
         "UisNodeId": uis_node_id,
         "ResourceOwnerAccount": resource_owner_account,
         "OwnerAccount": owner_account,
         "Ip": ip,
         "OwnerId": owner_id}
     return self._handle_request(api_request).result
 def describe_multi_container_group_metric(
         self,
         resource_owner_id=None,
         container_group_ids=None,
         resource_group_id=None,
         resource_owner_account=None,
         owner_account=None,
         owner_id=None):
     api_request = APIRequest('DescribeMultiContainerGroupMetric', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "ResourceOwnerId": resource_owner_id,
         "ContainerGroupIds": container_group_ids,
         "ResourceGroupId": resource_group_id,
         "ResourceOwnerAccount": resource_owner_account,
         "OwnerAccount": owner_account,
         "OwnerId": owner_id}
     return self._handle_request(api_request).result
Пример #18
0
 def delete_dnat_entry(
         self,
         resource_owner_id=None,
         uis_node_id=None,
         resource_owner_account=None,
         owner_account=None,
         uis_dnat_id=None,
         owner_id=None):
     api_request = APIRequest('DeleteDnatEntry', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "ResourceOwnerId": resource_owner_id,
         "UisNodeId": uis_node_id,
         "ResourceOwnerAccount": resource_owner_account,
         "OwnerAccount": owner_account,
         "UisDnatId": uis_dnat_id,
         "OwnerId": owner_id}
     return self._handle_request(api_request).result
 def create_container_group_from_template(
         self,
         template=None,
         resource_owner_id=None,
         client_token=None,
         resource_owner_account=None,
         owner_account=None,
         owner_id=None):
     api_request = APIRequest('CreateContainerGroupFromTemplate', 'POST', 'http', 'RPC', 'body')
     api_request._params = {
         "Template": template,
         "ResourceOwnerId": resource_owner_id,
         "ClientToken": client_token,
         "ResourceOwnerAccount": resource_owner_account,
         "OwnerAccount": owner_account,
         "OwnerId": owner_id}
     return self._handle_request(api_request).result
Пример #20
0
 def delete_uis_network_interface(
         self,
         resource_owner_id=None,
         uis_node_id=None,
         resource_owner_account=None,
         owner_account=None,
         uis_eni_id=None,
         owner_id=None):
     api_request = APIRequest('DeleteUisNetworkInterface', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "ResourceOwnerId": resource_owner_id,
         "UisNodeId": uis_node_id,
         "ResourceOwnerAccount": resource_owner_account,
         "OwnerAccount": owner_account,
         "UisEniId": uis_eni_id,
         "OwnerId": owner_id}
     return self._handle_request(api_request).result
Пример #21
0
 def configure_subscription_instance(
         self,
         source_endpoint_instance_id=None,
         source_endpoint_port=None,
         source_endpoint_oracle_sid=None,
         source_endpoint_owner_id=None,
         source_endpoint_ip=None,
         subscription_instance_vpc_id=None,
         subscription_instance_network_type=None,
         subscription_data_type_dml=None,
         subscription_instance_id=None,
         source_endpoint_role=None,
         owner_id=None,
         source_endpoint_instance_type=None,
         subscription_data_type_ddl=None,
         source_endpoint_password=None,
         subscription_object=None,
         subscription_instance_vswitch_id=None,
         subscription_instance_name=None,
         source_endpoint_user_name=None,
         source_endpoint_database_name=None):
     api_request = APIRequest('ConfigureSubscriptionInstance', 'POST',
                              'http', 'RPC', 'query')
     api_request._params = {
         "SourceEndpoint.InstanceID": source_endpoint_instance_id,
         "SourceEndpoint.Port": source_endpoint_port,
         "SourceEndpoint.OracleSID": source_endpoint_oracle_sid,
         "SourceEndpoint.OwnerID": source_endpoint_owner_id,
         "SourceEndpoint.IP": source_endpoint_ip,
         "SubscriptionInstance.VPCId": subscription_instance_vpc_id,
         "SubscriptionInstanceNetworkType":
         subscription_instance_network_type,
         "SubscriptionDataType.DML": subscription_data_type_dml,
         "SubscriptionInstanceId": subscription_instance_id,
         "SourceEndpoint.Role": source_endpoint_role,
         "OwnerId": owner_id,
         "SourceEndpoint.InstanceType": source_endpoint_instance_type,
         "SubscriptionDataType.DDL": subscription_data_type_ddl,
         "SourceEndpoint.Password": source_endpoint_password,
         "SubscriptionObject": subscription_object,
         "SubscriptionInstance.VSwitchId": subscription_instance_vswitch_id,
         "SubscriptionInstanceName": subscription_instance_name,
         "SourceEndpoint.UserName": source_endpoint_user_name,
         "SourceEndpoint.DatabaseName": source_endpoint_database_name
     }
     return self._handle_request(api_request).result
Пример #22
0
 def get_dropped_ip_list(
         self,
         resource_owner_id=None,
         resource_owner_account=None,
         owner_account=None,
         uis_id=None,
         chart_date=None,
         owner_id=None):
     api_request = APIRequest('GetDroppedIpList', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "ResourceOwnerId": resource_owner_id,
         "ResourceOwnerAccount": resource_owner_account,
         "OwnerAccount": owner_account,
         "UisId": uis_id,
         "ChartDate": chart_date,
         "OwnerId": owner_id}
     return self._handle_request(api_request).result
Пример #23
0
 def describe_dcdn_domain_real_time_qps_data(
         self,
         location_name_en=None,
         isp_name_en=None,
         start_time=None,
         domain_name=None,
         end_time=None,
         owner_id=None):
     api_request = APIRequest('DescribeDcdnDomainRealTimeQpsData', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "LocationNameEn": location_name_en,
         "IspNameEn": isp_name_en,
         "StartTime": start_time,
         "DomainName": domain_name,
         "EndTime": end_time,
         "OwnerId": owner_id}
     return self._handle_request(api_request).result
Пример #24
0
 def describe_config_templates(self,
                               template_search=None,
                               app_id=None,
                               page_size=None,
                               template_name=None,
                               page_number=None):
     api_request = APIRequest('DescribeConfigTemplates', 'GET', 'http',
                              'ROA', 'query')
     api_request.uri_pattern = '/pop/v1/wam/configTemplate'
     api_request._params = {
         "TemplateSearch": template_search,
         "AppId": app_id,
         "PageSize": page_size,
         "TemplateName": template_name,
         "PageNumber": page_number
     }
     return self._handle_request(api_request).result
Пример #25
0
 def update_dcdn_domain(
         self,
         top_level_domain=None,
         resource_group_id=None,
         sources=None,
         security_token=None,
         domain_name=None,
         owner_id=None):
     api_request = APIRequest('UpdateDcdnDomain', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "TopLevelDomain": top_level_domain,
         "ResourceGroupId": resource_group_id,
         "Sources": sources,
         "SecurityToken": security_token,
         "DomainName": domain_name,
         "OwnerId": owner_id}
     return self._handle_request(api_request).result
Пример #26
0
 def describe_pkg_versions(self,
                           pkg_version_label=None,
                           app_id=None,
                           page_size=None,
                           pkg_version_search=None,
                           page_number=None):
     api_request = APIRequest('DescribePkgVersions', 'GET', 'http', 'ROA',
                              'query')
     api_request.uri_pattern = '/pop/v1/wam/pkgVersion'
     api_request._params = {
         "PkgVersionLabel": pkg_version_label,
         "AppId": app_id,
         "PageSize": page_size,
         "PkgVersionSearch": pkg_version_search,
         "PageNumber": page_number
     }
     return self._handle_request(api_request).result
 def delete_db_cluster_endpoint(
         self,
         resource_owner_id=None,
         resource_owner_account=None,
         db_cluster_id=None,
         owner_account=None,
         db_endpoint_id=None,
         owner_id=None):
     api_request = APIRequest('DeleteDBClusterEndpoint', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "ResourceOwnerId": resource_owner_id,
         "ResourceOwnerAccount": resource_owner_account,
         "DBClusterId": db_cluster_id,
         "OwnerAccount": owner_account,
         "DBEndpointId": db_endpoint_id,
         "OwnerId": owner_id}
     return self._handle_request(api_request).result
Пример #28
0
 def dry_run_create_app_env(self,
                            option_settings=None,
                            stack_id=None,
                            profile_name=None,
                            source_env_id=None,
                            template_id=None):
     api_request = APIRequest('DryRunCreateAppEnv', 'POST', 'http', 'ROA',
                              'body')
     api_request.uri_pattern = '/pop/v1/wam/appEnv/dryRunCreate'
     api_request._params = {
         "OptionSettings": option_settings,
         "StackId": stack_id,
         "ProfileName": profile_name,
         "SourceEnvId": source_env_id,
         "TemplateId": template_id
     }
     return self._handle_request(api_request).result
 def delete_database(
         self,
         resource_owner_id=None,
         db_name=None,
         resource_owner_account=None,
         db_cluster_id=None,
         owner_account=None,
         owner_id=None):
     api_request = APIRequest('DeleteDatabase', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "ResourceOwnerId": resource_owner_id,
         "DBName": db_name,
         "ResourceOwnerAccount": resource_owner_account,
         "DBClusterId": db_cluster_id,
         "OwnerAccount": owner_account,
         "OwnerId": owner_id}
     return self._handle_request(api_request).result
Пример #30
0
 def upgrade_instance(
         self,
         instance_id=None,
         client_token=None,
         domain_count=None,
         package_code=None,
         business_bandwidth=None,
         owner_id=None):
     api_request = APIRequest('UpgradeInstance', 'GET', 'http', 'RPC', 'query')
     api_request._params = {
         "InstanceId": instance_id,
         "ClientToken": client_token,
         "DomainCount": domain_count,
         "PackageCode": package_code,
         "BusinessBandwidth": business_bandwidth,
         "OwnerId": owner_id}
     return self._handle_request(api_request).result