diff --git a/s3.go b/s3.go index 278fec121..ed20bf9ad 100644 --- a/s3.go +++ b/s3.go @@ -27,6 +27,7 @@ type S3 struct { Period uint `mapstructure:"period"` GzipLevel uint `mapstructure:"gzip_level"` Format string `mapstructure:"format"` + FormatVersion uint `mapstructure:"format_version"` ResponseCondition string `mapstructure:"response_condition"` TimestampFormat string `mapstructure:"timestamp_format"` Redundancy S3Redundancy `mapstructure:"redundancy"` @@ -94,6 +95,7 @@ type CreateS3Input struct { Period uint `form:"period,omitempty"` GzipLevel uint `form:"gzip_level,omitempty"` Format string `form:"format,omitempty"` + FormatVersion uint `form:"format_version,omitempty"` ResponseCondition string `form:"response_condition,omitempty"` TimestampFormat string `form:"timestamp_format,omitempty"` Redundancy S3Redundancy `form:"redundancy,omitempty"` @@ -179,6 +181,7 @@ type UpdateS3Input struct { Period uint `form:"period,omitempty"` GzipLevel uint `form:"gzip_level,omitempty"` Format string `form:"format,omitempty"` + FormatVersion uint `form:"format_version,omitempty"` ResponseCondition string `form:"response_condition,omitempty"` TimestampFormat string `form:"timestamp_format,omitempty"` Redundancy S3Redundancy `form:"redundancy,omitempty"` diff --git a/s3_test.go b/s3_test.go index babd9023c..072e6c07a 100644 --- a/s3_test.go +++ b/s3_test.go @@ -26,6 +26,7 @@ func TestClient_S3s(t *testing.T) { Period: 12, GzipLevel: 9, Format: "format", + FormatVersion: 2, TimestampFormat: "%Y", Redundancy: S3RedundancyReduced, }) @@ -78,6 +79,9 @@ func TestClient_S3s(t *testing.T) { if s3.Format != "format" { t.Errorf("bad format: %q", s3.Format) } + if s3.FormatVersion != 2 { + t.Errorf("bad format_version: %q", s3.FormatVersion) + } if s3.TimestampFormat != "%Y" { t.Errorf("bad timestamp_format: %q", s3.TimestampFormat) } @@ -139,6 +143,9 @@ func TestClient_S3s(t *testing.T) { if s3.Format != ns3.Format { t.Errorf("bad format: %q", s3.Format) } + if s3.FormatVersion != ns3.FormatVersion { + t.Errorf("bad format_version: %q", s3.FormatVersion) + } if s3.TimestampFormat != ns3.TimestampFormat { t.Errorf("bad timestamp_format: %q", s3.TimestampFormat) }