JCLOUDS-1581: Make CORS maxAgeSeconds optional

This field is not required:

https://cloud.google.com/storage/docs/cross-origin#cors-elements
This commit is contained in:
Andrew Gaul 2021-06-30 08:09:06 +09:00 committed by Andrew Gaul
parent 261f9d1fd5
commit fda1824620
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public abstract class Bucket {
public abstract List<String> responseHeader(); public abstract List<String> responseHeader();
public abstract Integer maxAgeSeconds(); @Nullable public abstract Integer maxAgeSeconds();
@SerializedNames({ "origin", "method", "responseHeader", "maxAgeSeconds" }) @SerializedNames({ "origin", "method", "responseHeader", "maxAgeSeconds" })
public static Cors create(List<String> origin, List<String> method, List<String> responseHeader, public static Cors create(List<String> origin, List<String> method, List<String> responseHeader,