networkapi.api_aws package¶
Submodules¶
networkapi.api_aws.exceptions module¶
-
exception
networkapi.api_aws.exceptions.VPCError(msg=None)[source]¶ Bases:
rest_framework.exceptions.APIException-
default_detail= 'Error Internal.'¶
-
status_code= 500¶
-
networkapi.api_aws.facade module¶
-
networkapi.api_aws.facade.get_aws_vpc_by_search(search={})[source]¶ Return a list of vpcs by dict
Parameters: search – dict
-
networkapi.api_aws.facade.get_vpc_by_id(vpc_id)[source]¶ Return a vpc by id
Parameters: vpc_id – id of vpc
networkapi.api_aws.models module¶
-
class
networkapi.api_aws.models.VPC(id, vpc)[source]¶ Bases:
networkapi.models.BaseModel.BaseModel-
exception
DoesNotExist¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
ambiente_set¶
-
create(authenticated_user)[source]¶ Include new VPC.
@return: Id new VPC
@raise FilterNotFoundError: Dont’ exist filter for pk searched
-
classmethod
get_by_pk(id_vpc)[source]¶ Get VPC by id.
@return: VPC.
@raise VPCNotFoundError: VPC is not registered. @raise VPCError: Failed to search for the VPC. @raise OperationalError: Lock wait timeout exceed
-
log= <celery.utils.log.ProcessAwareLogger object>¶
-
objects= <networkapi.models.BaseManager.BaseManager object>¶
-
exception