The following code:
storage.writer(BlobInfo.builder("bucket", "name").generation(42L).build(),
Storage.BlobTargetOption.generationMatch());
issues a POST request to the URL:
https://www.googleapis.com/upload/storage/v1/b/bucket/o?uploadType=resumable&name=name&ifGenerationNotMatch=42
where ifGenerationNotMatch instead of ifGenerationMatch is set.
The following code:
issues a POST request to the URL:
where
ifGenerationNotMatchinstead ofifGenerationMatchis set.