code: public ServiceCall<Gateway> createGateway(CreateGatewayOptions createGatewayOptions) {
      Validator.notNull(createGatewayOptions, "createGatewayOptions cannot be null");
      String[] pathSegments = { "v1/environments", "gateways" };
      String[] pathParameters = { createGatewayOptions.environmentId() };
      RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments,
          pathParameters));
      builder.query("version", versionDate);
      Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("discovery", "v1", "createGateway");
      for (Entry<String, String> header : sdkHeaders.entrySet()) {
        builder.header(header.getKey(), header.getValue());
      }
      builder.header("Accept", "application/json");
      final JsonObject contentJson = new JsonObject();
      if (createGatewayOptions.name() != null) {
        contentJson.addProperty("name", createGatewayOptions.name());
      }
      builder.bodyJson(contentJson);
      return createServiceCall(builder.build(), ResponseConverterUtils.getObject(Gateway.class));
    }
docs: Create Gateway.
  
  Create a gateway configuration to use with a remotely installed gateway.
  
  @param createGatewayOptions the {@link CreateGatewayOptions} containing the options for the call
  @return a {@link ServiceCall} with a response type of {@link Gateway}