code: @BetaApi
    public final Operation insertRegionCommitment(
        ProjectRegionName region, Commitment commitmentResource) {
  
      InsertRegionCommitmentHttpRequest request =
          InsertRegionCommitmentHttpRequest.newBuilder()
              .setRegion(region == null ? null : region.toString())
              .setCommitmentResource(commitmentResource)
              .build();
      return insertRegionCommitment(request);
    }
docs: Creates a commitment in the specified project using the data included in the request.
  
  <p>Sample code:
  
  <pre><code>
  try (RegionCommitmentClient regionCommitmentClient = RegionCommitmentClient.create()) {
  ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
  Commitment commitmentResource = Commitment.newBuilder().build();
  Operation response = regionCommitmentClient.insertRegionCommitment(region, commitmentResource);
  }
  </code></pre>
  
  @param region Name of the region for this request.
  @param commitmentResource Represents a Commitment resource. Creating a Commitment resource
  means that you are purchasing a committed use contract with an explicit start and end time.
  You can create commitments based on vCPUs and memory usage and receive discounted rates.
  For full details, read Signing Up for Committed Use Discounts.
  <p>Committed use discounts are subject to Google Cloud Platform's Service Specific Terms.
  By purchasing a committed use discount, you agree to these terms. Committed use discounts
  will not renew, so you must purchase a new commitment to continue receiving discounts. (==
  resource_for beta.commitments ==) (== resource_for v1.commitments ==)
  @throws com.google.api.gax.rpc.ApiException if the remote call fails