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

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

            service.SetServiceUrl("{serviceUrl}");

            var result = service.DeleteGateway(
                environmentId: "{environmentId}",
                gatewayId: "{gatewayId}"
                );

            Console.WriteLine(result.Response);
        }
示例#2
0
        public void DeleteGateway()
        {
            IamConfig config = new IamConfig(
                apikey: apikey
                );

            DiscoveryService service = new DiscoveryService(versionDate, config);

            service.SetEndpoint(url);

            var result = service.DeleteGateway(
                environmentId: environmentId,
                gatewayId: gatewayId
                );

            Console.WriteLine(result.Response);
        }
        public void DeleteGateway()
        {
            TokenOptions tokenOptions = new TokenOptions()
            {
                IamApiKey  = apikey,
                ServiceUrl = url
            };

            DiscoveryService service = new DiscoveryService(tokenOptions, versionDate);

            var result = service.DeleteGateway(
                environmentId: environmentId,
                gatewayId: gatewayId
                );

            Console.WriteLine(result.Response);
        }