Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="StatusApi"/> class
        /// using Configuration object
        /// </summary>
        /// <param name="configuration">An instance of Configuration</param>
        /// <returns></returns>
        public StatusApi(SonaTypeNexusRepoApi.Client.Configuration configuration = null)
        {
            if (configuration == null) // use the default one in Configuration
            {
                this.Configuration = SonaTypeNexusRepoApi.Client.Configuration.Default;
            }
            else
            {
                this.Configuration = configuration;
            }

            ExceptionFactory = SonaTypeNexusRepoApi.Client.Configuration.DefaultExceptionFactory;
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SecurityManagementAnonymousAccessApi"/> class
        /// using Configuration object
        /// </summary>
        /// <param name="configuration">An instance of Configuration</param>
        /// <returns></returns>
        public SecurityManagementAnonymousAccessApi(SonaTypeNexusRepoApi.Client.Configuration configuration = null)
        {
            if (configuration == null) // use the default one in Configuration
            {
                this.Configuration = SonaTypeNexusRepoApi.Client.Configuration.Default;
            }
            else
            {
                this.Configuration = configuration;
            }

            ExceptionFactory = SonaTypeNexusRepoApi.Client.Configuration.DefaultExceptionFactory;
        }