public void DeleteCredentials()
        {
            IamAuthenticator authenticator = new IamAuthenticator(
                apikey: "{apikey}");

            DiscoveryService service = new DiscoveryService("2019-04-30", authenticator);

            service.SetServiceUrl("{serviceUrl}");

            var result = service.DeleteCredentials(
                environmentId: "{environmentId}",
                credentialId: "{credentialId}"
                );

            Console.WriteLine(result.Response);
        }
Пример #2
0
        public void DeleteCredentials()
        {
            IamConfig config = new IamConfig(
                apikey: apikey
                );

            DiscoveryService service = new DiscoveryService(versionDate, config);

            service.SetEndpoint(url);

            var result = service.DeleteCredentials(
                environmentId: environmentId,
                credentialId: credentialId
                );

            Console.WriteLine(result.Response);
        }
Пример #3
0
        public void DeleteCredentials()
        {
            TokenOptions tokenOptions = new TokenOptions()
            {
                IamApiKey  = apikey,
                ServiceUrl = url
            };

            DiscoveryService service = new DiscoveryService(tokenOptions, versionDate);

            var result = service.DeleteCredentials(
                environmentId: environmentId,
                credentialId: credentialId
                );

            Console.WriteLine(result.Response);
        }