Beispiel #1
0
    def verified_tag_config(self, cloud_config):
        # Verify that we can successfully use the tags API with this config
        client = HttpClient(cloud_config)
        tags = client.at_uri("/nitag/v2")
        tags.get("/tags", params={"path": ""})

        return cloud_config
Beispiel #2
0
    def __init__(self, configuration: Optional[core.HttpConfiguration] = None) -> None:
        """Initialize an instance.

        Args:
            configuration: Defines the web server to connect to and information about
                how to connect.

        Raises:
            ApiException: if the current system cannot communicate with a SystemLink
                Server, or if the configuration provided by SystemLink Client cannot be
                found.
        """
        if configuration is None:
            configuration = core.HttpConfigurationManager.get_configuration()

        self._http_client = HttpClient(configuration)
        self._api = self._http_client.at_uri("/nitag/v2")