public ServiceCall < GatewayList > listGateways ( ListGatewaysOptions listGatewaysOptions ) { Validator . notNull ( listGatewaysOptions , "listGatewaysOptions cannot be null" ) ; String [ ] pathSegments = { "v1/environments" , "gateways" } ; String [ ] pathParameters = { listGatewaysOptions . environmentId ( ) } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments , pathParameters ) ) ; builder . query ( "version" , versionDate ) ; Map < String , String > sdkHeaders = SdkCommon . getSdkHeaders ( "discovery" , "v1" , "listGateways" ) ; for ( Entry < String , String > header : sdkHeaders . entrySet ( ) ) { builder . header ( header . getKey ( ) , header . getValue ( ) ) ; } builder . header ( "Accept" , "application/json" ) ; return createServiceCall ( builder . build ( ) , ResponseConverterUtils . getObject ( GatewayList . class ) ) ; }
List Gateways .