@@ -0,0 +1,3048 @@
+from .rest import RestClient%0A%0A%0Aclass Branding(object):%0A    %22%22%22Auth0 Branding endpoints%0A%0A    Args:%0A        domain (str): Your Auth0 domain, e.g: 'username.auth0.com'%0A%0A        token (str): Management API v2 Token%0A%0A        telemetry (bool, optional): Enable or disable Telemetry%0A            (defaults to True)%0A%0A        timeout (float or tuple, optional): Change the requests%0A            connect and read timeout. Pass a tuple to specify%0A            both values separately or a float to set both to it.%0A            (defaults to 5.0 for both)%0A%0A        rest_options (RestClientOptions): Pass an instance of%0A            RestClientOptions to configure additional RestClient%0A            options, such as rate-limit retries.%0A            (defaults to None)%0A    %22%22%22%0A%0A    def __init__(%0A        self,%0A        domain,%0A        token,%0A        telemetry=True,%0A        timeout=5.0,%0A        protocol=%22https%22,%0A        rest_options=None,%0A    ):%0A        self.domain = domain%0A        self.protocol = protocol%0A        self.client = RestClient(%0A            jwt=token, telemetry=telemetry, timeout=timeout, options=rest_options%0A        )%0A%0A    def _url(self, *args):%0A        url = %22%7B%7D://%7B%7D/api/v2/branding%22.format(self.protocol, self.domain)%0A        for p in args:%0A            if p is not None:%0A                url = %22%7B%7D/%7B%7D%22.format(url, p)%0A        return url%0A%0A    def get(self, aud=None):%0A        %22%22%22Retrieve branding settings. Requires %22read:branding%22 scope.%0A%0A        See: https://auth0.com/docs/api/management/v2#!/Branding/get_branding%0A        %22%22%22%0A%0A        return self.client.get(self._url())%0A%0A    def update(self, body):%0A        %22%22%22Update branding settings. Requires %22update:branding%22 scope.%0A%0A        Args:%0A            body (dict): Attributes for the updated trigger binding.%0A%0A        See: https://auth0.com/docs/api/management/v2#!/Branding/patch_branding%0A        %22%22%22%0A%0A        return self.client.patch(self._url(), data=body)%0A%0A    def get_template_universal_login(self):%0A        %22%22%22Get template for New Universal Login Experience. Requires %22read:branding%22 scope.%0A%0A        See: https://auth0.com/docs/api/management/v2#!/Branding/get_universal_login%0A        %22%22%22%0A%0A        return self.client.get(self._url(%22templates%22, %22universal-login%22))%0A%0A    def delete_template_universal_login(self):%0A        %22%22%22Delete template for New Universal Login Experience. Requires %22delete:branding%22 scope.%0A%0A        See: https://auth0.com/docs/api/management/v2#!/Branding/delete_universal_login%0A        %22%22%22%0A%0A        return self.client.delete(self._url(%22templates%22, %22universal-login%22))%0A%0A    def update_template_universal_login(self, body):%0A        %22%22%22Update template for New Universal Login Experience. Requires %22update:branding%22 scope.%0A%0A        Args:%0A            body (str): Complete HTML content to assign to the template. See linked API documentation for example.%0A%0A        See: https://auth0.com/docs/api/management/v2#!/Branding/put_universal_login%0A        %22%22%22%0A%0A        return self.client.put(self._url(%22templates%22, %22universal-login%22), type=%22put_universal-login_body%22, body=%7B%22template%22:body%7D)%0A

Add /api/v2/branding endpoints support