code: public ServiceCall<Environment> updateEnvironment(UpdateEnvironmentOptions updateEnvironmentOptions) {
      Validator.notNull(updateEnvironmentOptions, "updateEnvironmentOptions cannot be null");
      String[] pathSegments = { "v1/environments" };
      String[] pathParameters = { updateEnvironmentOptions.environmentId() };
      RequestBuilder builder = RequestBuilder.put(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments,
          pathParameters));
      builder.query("version", versionDate);
      Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("discovery", "v1", "updateEnvironment");
      for (Entry<String, String> header : sdkHeaders.entrySet()) {
        builder.header(header.getKey(), header.getValue());
      }
      builder.header("Accept", "application/json");
      final JsonObject contentJson = new JsonObject();
      if (updateEnvironmentOptions.name() != null) {
        contentJson.addProperty("name", updateEnvironmentOptions.name());
      }
      if (updateEnvironmentOptions.description() != null) {
        contentJson.addProperty("description", updateEnvironmentOptions.description());
      }
      if (updateEnvironmentOptions.size() != null) {
        contentJson.addProperty("size", updateEnvironmentOptions.size());
      }
      builder.bodyJson(contentJson);
      return createServiceCall(builder.build(), ResponseConverterUtils.getObject(Environment.class));
    }
docs: Update an environment.
  
  Updates an environment. The environment's **name** and **description** parameters can be changed. You must specify
  a **name** for the environment.
  
  @param updateEnvironmentOptions the {@link UpdateEnvironmentOptions} containing the options for the call
  @return a {@link ServiceCall} with a response type of {@link Environment}