(self, tenant_id, region, endpoint_id, prefix=None,
                 external=False, complete_url=None, internal_url=None)
Create an endpoint for a service catalog entry.
Create an endpoint for a service catalog entry.
Create an endpoint for a service catalog entry .
def __init__(self, tenant_id, region, endpoint_id, prefix=None,
                 external=False, complete_url=None, internal_url=None):
        """
        Create an endpoint for a service catalog entry.
        """
        self.tenant_id = tenant_id
        self.region = region
        self.endpoint_id = endpoint_id
        self.prefix = prefix
        self.external = external
        self.complete_url = complete_url
        if internal_url is None:
            self.internal_url = complete_url
        else:
            self.internal_url = internal_url

        # Gate Check complete_url
        if self.external and self.complete_url is None:
            raise ValueError(
                'complete_url must be specified when API is external'
            )
def __init__ ( self , tenant_id , region , endpoint_id , prefix = None , external = False , complete_url = None , internal_url = None ) : self . tenant_id = tenant_id self . region = region self . endpoint_id = endpoint_id self . prefix = prefix self . external = external self . complete_url = complete_url if internal_url is None : self . internal_url = complete_url else : self . internal_url = internal_url # Gate Check complete_url if self . external and self . complete_url is None : raise ValueError ( 'complete_url must be specified when API is external' )