How to use the paconn.settings.settingsserializer.SettingsSerializer.from_json function in paconn

To help you get started, we’ve selected a few paconn examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / PowerPlatformConnectors / tools / paconn-cli / paconn / settings / settingsbuilder.py View on Github external
powerapps_url,
            powerapps_version,
            api_properties,
            api_definition,
            icon,
            client_id=None,
            tenant=None,
            authority_url=None,
            resource=None):
        """
        Loads settings into a settings object.
        """

        # Load from settings file if it is available
        if settings_file:
            settings = SettingsSerializer.from_json(settings_file)
        else:
            settings = Settings(
                connector_id=connector_id,
                environment=environment,
                powerapps_url=powerapps_url,
                powerapps_api_version=powerapps_version,
                api_properties=api_properties,
                api_definition=api_definition,
                icon=icon,
                client_id=client_id,
                tenant=tenant,
                authority_url=authority_url,
                resource=resource
            )
        return settings
github microsoft / PowerPlatformConnectors / tools / paconn-cli / paconn / settings / settingsbuilder.py View on Github external
def get_authentication_settings(
            settings_file,
            client_id,
            tenant,
            authority_url,
            resource):
        """
        Loads settings into a settings object.
        """

        # Load from settings file if it is available
        if settings_file:
            settings = SettingsSerializer.from_json(settings_file)
        else:
            settings = Settings(
                connector_id=None,
                environment=None,
                powerapps_url=None,
                powerapps_api_version=None,
                api_properties=None,
                api_definition=None,
                icon=None,
                client_id=client_id,
                tenant=tenant,
                authority_url=authority_url,
                resource=resource
            )
        return settings