Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make gzip level consistent everywhere #368

Merged
merged 1 commit into from
Oct 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions fastly/blobstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type BlobStorage struct {
Period uint `mapstructure:"period"`
TimestampFormat string `mapstructure:"timestamp_format"`
CompressionCodec string `mapstructure:"compression_codec"`
GzipLevel uint `mapstructure:"gzip_level"`
GzipLevel uint8 `mapstructure:"gzip_level"`
PublicKey string `mapstructure:"public_key"`
Format string `mapstructure:"format"`
FormatVersion uint `mapstructure:"format_version"`
Expand Down Expand Up @@ -93,7 +93,7 @@ type CreateBlobStorageInput struct {
Period uint `url:"period,omitempty"`
TimestampFormat string `url:"timestamp_format,omitempty"`
CompressionCodec string `url:"compression_codec,omitempty"`
GzipLevel uint `url:"gzip_level,omitempty"`
GzipLevel uint8 `url:"gzip_level,omitempty"`
PublicKey string `url:"public_key,omitempty"`
Format string `url:"format,omitempty"`
FormatVersion uint `url:"format_version,omitempty"`
Expand Down Expand Up @@ -186,7 +186,7 @@ type UpdateBlobStorageInput struct {
Period *uint `url:"period,omitempty"`
TimestampFormat *string `url:"timestamp_format,omitempty"`
CompressionCodec *string `url:"compression_codec,omitempty"`
GzipLevel *uint `url:"gzip_level,omitempty"`
GzipLevel *uint8 `url:"gzip_level,omitempty"`
PublicKey *string `url:"public_key,omitempty"`
Format *string `url:"format,omitempty"`
FormatVersion *uint `url:"format_version,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion fastly/blobstorage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func TestClient_BlobStorages(t *testing.T) {
ServiceID: testServiceID,
ServiceVersion: tv.Number,
Name: "test-blobstorage-3",
GzipLevel: Uint(9),
GzipLevel: Uint8(9),
})
})
if err != nil {
Expand Down
6 changes: 3 additions & 3 deletions fastly/cloudfiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Cloudfiles struct {
Region string `mapstructure:"region"`
Placement string `mapstructure:"placement"`
Period uint `mapstructure:"period"`
GzipLevel uint `mapstructure:"gzip_level"`
GzipLevel uint8 `mapstructure:"gzip_level"`
Format string `mapstructure:"format"`
FormatVersion uint `mapstructure:"format_version"`
ResponseCondition string `mapstructure:"response_condition"`
Expand Down Expand Up @@ -93,7 +93,7 @@ type CreateCloudfilesInput struct {
Region string `url:"region,omitempty"`
Placement string `url:"placement,omitempty"`
Period uint `url:"period,omitempty"`
GzipLevel uint `url:"gzip_level,omitempty"`
GzipLevel uint8 `url:"gzip_level,omitempty"`
Format string `url:"format,omitempty"`
FormatVersion uint `url:"format_version,omitempty"`
ResponseCondition string `url:"response_condition,omitempty"`
Expand Down Expand Up @@ -186,7 +186,7 @@ type UpdateCloudfilesInput struct {
Region *string `url:"region,omitempty"`
Placement *string `url:"placement,omitempty"`
Period *uint `url:"period,omitempty"`
GzipLevel *uint `url:"gzip_level,omitempty"`
GzipLevel *uint8 `url:"gzip_level,omitempty"`
Format *string `url:"format,omitempty"`
FormatVersion *uint `url:"format_version,omitempty"`
ResponseCondition *string `url:"response_condition,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion fastly/cloudfiles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ func TestClient_Cloudfiles(t *testing.T) {
ServiceID: testServiceID,
ServiceVersion: tv.Number,
Name: "test-cloudfiles-3",
GzipLevel: Uint(9),
GzipLevel: Uint8(9),
})
})
if err != nil {
Expand Down
6 changes: 3 additions & 3 deletions fastly/digitalocean.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type DigitalOcean struct {
SecretKey string `mapstructure:"secret_key"`
Path string `mapstructure:"path"`
Period uint `mapstructure:"period"`
GzipLevel uint `mapstructure:"gzip_level"`
GzipLevel uint8 `mapstructure:"gzip_level"`
Format string `mapstructure:"format"`
FormatVersion uint `mapstructure:"format_version"`
ResponseCondition string `mapstructure:"response_condition"`
Expand Down Expand Up @@ -92,7 +92,7 @@ type CreateDigitalOceanInput struct {
SecretKey string `url:"secret_key,omitempty"`
Path string `url:"path,omitempty"`
Period uint `url:"period,omitempty"`
GzipLevel uint `url:"gzip_level,omitempty"`
GzipLevel uint8 `url:"gzip_level,omitempty"`
Format string `url:"format,omitempty"`
MessageType string `url:"message_type,omitempty"`
FormatVersion uint `url:"format_version,omitempty"`
Expand Down Expand Up @@ -185,7 +185,7 @@ type UpdateDigitalOceanInput struct {
SecretKey *string `url:"secret_key,omitempty"`
Path *string `url:"path,omitempty"`
Period *uint `url:"period,omitempty"`
GzipLevel *uint `url:"gzip_level,omitempty"`
GzipLevel *uint8 `url:"gzip_level,omitempty"`
Format *string `url:"format,omitempty"`
FormatVersion *uint `url:"format_version,omitempty"`
ResponseCondition *string `url:"response_condition,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion fastly/digitalocean_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func TestClient_DigitalOceans(t *testing.T) {
ServiceID: testServiceID,
ServiceVersion: tv.Number,
Name: "test-digitalocean-3",
GzipLevel: Uint(9),
GzipLevel: Uint8(9),
})
})
if err != nil {
Expand Down
6 changes: 3 additions & 3 deletions fastly/openstack.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type Openstack struct {
Placement string `mapstructure:"placement"`
Period uint `mapstructure:"period"`
CompressionCodec string `mapstructure:"compression_codec"`
GzipLevel uint `mapstructure:"gzip_level"`
GzipLevel uint8 `mapstructure:"gzip_level"`
Format string `mapstructure:"format"`
FormatVersion uint `mapstructure:"format_version"`
ResponseCondition string `mapstructure:"response_condition"`
Expand Down Expand Up @@ -94,7 +94,7 @@ type CreateOpenstackInput struct {
Placement string `url:"placement,omitempty"`
Period uint `url:"period,omitempty"`
CompressionCodec string `url:"compression_codec,omitempty"`
GzipLevel uint `url:"gzip_level,omitempty"`
GzipLevel uint8 `url:"gzip_level,omitempty"`
Format string `url:"format,omitempty"`
FormatVersion uint `url:"format_version,omitempty"`
ResponseCondition string `url:"response_condition,omitempty"`
Expand Down Expand Up @@ -187,7 +187,7 @@ type UpdateOpenstackInput struct {
Placement *string `url:"placement,omitempty"`
Period *uint `url:"period,omitempty"`
CompressionCodec *string `url:"compression_codec,omitempty"`
GzipLevel *uint `url:"gzip_level,omitempty"`
GzipLevel *uint8 `url:"gzip_level,omitempty"`
Format *string `url:"format,omitempty"`
FormatVersion *uint `url:"format_version,omitempty"`
ResponseCondition *string `url:"response_condition,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion fastly/openstack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func TestClient_Openstack(t *testing.T) {
ServiceID: testServiceID,
ServiceVersion: tv.Number,
Name: "test-openstack-3",
GzipLevel: Uint(9),
GzipLevel: Uint8(9),
})
})
if err != nil {
Expand Down
6 changes: 3 additions & 3 deletions fastly/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type S3 struct {
Path string `mapstructure:"path"`
Period uint `mapstructure:"period"`
CompressionCodec string `mapstructure:"compression_codec"`
GzipLevel uint `mapstructure:"gzip_level"`
GzipLevel uint8 `mapstructure:"gzip_level"`
Format string `mapstructure:"format"`
FormatVersion uint `mapstructure:"format_version"`
ResponseCondition string `mapstructure:"response_condition"`
Expand Down Expand Up @@ -133,7 +133,7 @@ type CreateS3Input struct {
Path string `url:"path,omitempty"`
Period uint `url:"period,omitempty"`
CompressionCodec string `url:"compression_codec,omitempty"`
GzipLevel uint `url:"gzip_level,omitempty"`
GzipLevel uint8 `url:"gzip_level,omitempty"`
Format string `url:"format,omitempty"`
MessageType string `url:"message_type,omitempty"`
FormatVersion uint `url:"format_version,omitempty"`
Expand Down Expand Up @@ -235,7 +235,7 @@ type UpdateS3Input struct {
Path *string `url:"path,omitempty"`
Period *uint `url:"period,omitempty"`
CompressionCodec *string `url:"compression_codec,omitempty"`
GzipLevel *uint `url:"gzip_level,omitempty"`
GzipLevel *uint8 `url:"gzip_level,omitempty"`
Format *string `url:"format,omitempty"`
FormatVersion *uint `url:"format_version,omitempty"`
ResponseCondition *string `url:"response_condition,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion fastly/s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ func TestClient_S3s(t *testing.T) {
ServiceID: testServiceID,
ServiceVersion: tv.Number,
Name: "test-s3-3",
GzipLevel: Uint(9),
GzipLevel: Uint8(9),
})
})
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions fastly/sftp.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ type CreateSFTPInput struct {
Period uint `url:"period,omitempty"`
FormatVersion uint `url:"format_version,omitempty"`
CompressionCodec string `url:"compression_codec,omitempty"`
GzipLevel uint `url:"gzip_level,omitempty"`
GzipLevel uint8 `url:"gzip_level,omitempty"`
Format string `url:"format,omitempty"`
ResponseCondition string `url:"response_condition,omitempty"`
TimestampFormat string `url:"timestamp_format,omitempty"`
Expand Down Expand Up @@ -194,7 +194,7 @@ type UpdateSFTPInput struct {
Period *uint `url:"period,omitempty"`
FormatVersion *uint `url:"format_version,omitempty"`
CompressionCodec *string `url:"compression_codec,omitempty"`
GzipLevel *uint `url:"gzip_level,omitempty"`
GzipLevel *uint8 `url:"gzip_level,omitempty"`
Format *string `url:"format,omitempty"`
ResponseCondition *string `url:"response_condition,omitempty"`
TimestampFormat *string `url:"timestamp_format,omitempty"`
Expand Down
4 changes: 2 additions & 2 deletions fastly/sftp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func TestClient_SFTPs(t *testing.T) {
ServiceVersion: tv.Number,
Name: "test-sftp",
NewName: String("new-test-sftp"),
GzipLevel: Uint(8),
GzipLevel: Uint8(8),
MessageType: String("classic"),
})
})
Expand All @@ -331,7 +331,7 @@ func TestClient_SFTPs(t *testing.T) {
ServiceID: testServiceID,
ServiceVersion: tv.Number,
Name: "test-sftp-3",
GzipLevel: Uint(9),
GzipLevel: Uint8(9),
})
})
if err != nil {
Expand Down