From 49fe9e7412a54aedef3a0418580c316ad458bff8 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 1 May 2026 14:52:06 +0000 Subject: [PATCH] Regenerate client from commit 0e6d1c2 of spec repo --- .generator/schemas/v2/openapi.yaml | 17 +++++ .../model_logs_archive_attributes.go | 59 ++++++++++++++--- ...s_archive_attributes_compression_method.go | 66 +++++++++++++++++++ ..._logs_archive_create_request_attributes.go | 63 ++++++++++++++++-- .../v2/logs-archives/CreateLogsArchive.go | 1 + .../v2/logs-archives/UpdateLogsArchive.go | 1 + .../features/v2/logs_archives.feature | 10 +-- 7 files changed, 197 insertions(+), 20 deletions(-) create mode 100644 api/datadogV2/model_logs_archive_attributes_compression_method.go diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 382c9233aa5..e1e1f1984db 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -41379,6 +41379,8 @@ components: LogsArchiveAttributes: description: The attributes associated with the archive. properties: + compression_method: + $ref: "#/components/schemas/LogsArchiveAttributesCompressionMethod" destination: $ref: "#/components/schemas/LogsArchiveDestination" include_tags: @@ -41416,6 +41418,17 @@ components: - query - destination type: object + LogsArchiveAttributesCompressionMethod: + default: GZIP + description: The type of compression for the archive. + enum: + - GZIP + - ZSTD + example: GZIP + type: string + x-enum-varnames: + - GZIP + - ZSTD LogsArchiveCreateRequest: description: The logs archive. properties: @@ -41425,6 +41438,8 @@ components: LogsArchiveCreateRequestAttributes: description: The attributes associated with the archive. properties: + compression_method: + $ref: "#/components/schemas/LogsArchiveAttributesCompressionMethod" destination: $ref: "#/components/schemas/LogsArchiveCreateRequestDestination" include_tags: @@ -106036,6 +106051,7 @@ paths: value: data: attributes: + compression_method: GZIP destination: container: container-name storage_account: account-name @@ -106175,6 +106191,7 @@ paths: value: data: attributes: + compression_method: GZIP destination: container: container-name storage_account: account-name diff --git a/api/datadogV2/model_logs_archive_attributes.go b/api/datadogV2/model_logs_archive_attributes.go index b6996019311..89238dca147 100644 --- a/api/datadogV2/model_logs_archive_attributes.go +++ b/api/datadogV2/model_logs_archive_attributes.go @@ -12,6 +12,8 @@ import ( // LogsArchiveAttributes The attributes associated with the archive. type LogsArchiveAttributes struct { + // The type of compression for the archive. + CompressionMethod *LogsArchiveAttributesCompressionMethod `json:"compression_method,omitempty"` // An archive's destination. Destination NullableLogsArchiveDestination `json:"destination"` // To store the tags in the archive, set the value "true". @@ -38,6 +40,8 @@ type LogsArchiveAttributes struct { // will change when the set of required properties is changed. func NewLogsArchiveAttributes(destination NullableLogsArchiveDestination, name string, query string) *LogsArchiveAttributes { this := LogsArchiveAttributes{} + var compressionMethod LogsArchiveAttributesCompressionMethod = LOGSARCHIVEATTRIBUTESCOMPRESSIONMETHOD_GZIP + this.CompressionMethod = &compressionMethod this.Destination = destination var includeTags bool = false this.IncludeTags = &includeTags @@ -51,11 +55,41 @@ func NewLogsArchiveAttributes(destination NullableLogsArchiveDestination, name s // but it doesn't guarantee that properties required by API are set. func NewLogsArchiveAttributesWithDefaults() *LogsArchiveAttributes { this := LogsArchiveAttributes{} + var compressionMethod LogsArchiveAttributesCompressionMethod = LOGSARCHIVEATTRIBUTESCOMPRESSIONMETHOD_GZIP + this.CompressionMethod = &compressionMethod var includeTags bool = false this.IncludeTags = &includeTags return &this } +// GetCompressionMethod returns the CompressionMethod field value if set, zero value otherwise. +func (o *LogsArchiveAttributes) GetCompressionMethod() LogsArchiveAttributesCompressionMethod { + if o == nil || o.CompressionMethod == nil { + var ret LogsArchiveAttributesCompressionMethod + return ret + } + return *o.CompressionMethod +} + +// GetCompressionMethodOk returns a tuple with the CompressionMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LogsArchiveAttributes) GetCompressionMethodOk() (*LogsArchiveAttributesCompressionMethod, bool) { + if o == nil || o.CompressionMethod == nil { + return nil, false + } + return o.CompressionMethod, true +} + +// HasCompressionMethod returns a boolean if a field has been set. +func (o *LogsArchiveAttributes) HasCompressionMethod() bool { + return o != nil && o.CompressionMethod != nil +} + +// SetCompressionMethod gets a reference to the given LogsArchiveAttributesCompressionMethod and assigns it to the CompressionMethod field. +func (o *LogsArchiveAttributes) SetCompressionMethod(v LogsArchiveAttributesCompressionMethod) { + o.CompressionMethod = &v +} + // GetDestination returns the Destination field value. // If the value is explicit nil, the zero value for LogsArchiveDestination will be returned. func (o *LogsArchiveAttributes) GetDestination() LogsArchiveDestination { @@ -256,6 +290,9 @@ func (o LogsArchiveAttributes) MarshalJSON() ([]byte, error) { if o.UnparsedObject != nil { return datadog.Marshal(o.UnparsedObject) } + if o.CompressionMethod != nil { + toSerialize["compression_method"] = o.CompressionMethod + } toSerialize["destination"] = o.Destination.Get() if o.IncludeTags != nil { toSerialize["include_tags"] = o.IncludeTags @@ -281,13 +318,14 @@ func (o LogsArchiveAttributes) MarshalJSON() ([]byte, error) { // UnmarshalJSON deserializes the given payload. func (o *LogsArchiveAttributes) UnmarshalJSON(bytes []byte) (err error) { all := struct { - Destination NullableLogsArchiveDestination `json:"destination"` - IncludeTags *bool `json:"include_tags,omitempty"` - Name *string `json:"name"` - Query *string `json:"query"` - RehydrationMaxScanSizeInGb datadog.NullableInt64 `json:"rehydration_max_scan_size_in_gb,omitempty"` - RehydrationTags []string `json:"rehydration_tags,omitempty"` - State *LogsArchiveState `json:"state,omitempty"` + CompressionMethod *LogsArchiveAttributesCompressionMethod `json:"compression_method,omitempty"` + Destination NullableLogsArchiveDestination `json:"destination"` + IncludeTags *bool `json:"include_tags,omitempty"` + Name *string `json:"name"` + Query *string `json:"query"` + RehydrationMaxScanSizeInGb datadog.NullableInt64 `json:"rehydration_max_scan_size_in_gb,omitempty"` + RehydrationTags []string `json:"rehydration_tags,omitempty"` + State *LogsArchiveState `json:"state,omitempty"` }{} if err = datadog.Unmarshal(bytes, &all); err != nil { return datadog.Unmarshal(bytes, &o.UnparsedObject) @@ -303,12 +341,17 @@ func (o *LogsArchiveAttributes) UnmarshalJSON(bytes []byte) (err error) { } additionalProperties := make(map[string]interface{}) if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil { - datadog.DeleteKeys(additionalProperties, &[]string{"destination", "include_tags", "name", "query", "rehydration_max_scan_size_in_gb", "rehydration_tags", "state"}) + datadog.DeleteKeys(additionalProperties, &[]string{"compression_method", "destination", "include_tags", "name", "query", "rehydration_max_scan_size_in_gb", "rehydration_tags", "state"}) } else { return err } hasInvalidField := false + if all.CompressionMethod != nil && !all.CompressionMethod.IsValid() { + hasInvalidField = true + } else { + o.CompressionMethod = all.CompressionMethod + } o.Destination = all.Destination o.IncludeTags = all.IncludeTags o.Name = *all.Name diff --git a/api/datadogV2/model_logs_archive_attributes_compression_method.go b/api/datadogV2/model_logs_archive_attributes_compression_method.go new file mode 100644 index 00000000000..6f8d34681fb --- /dev/null +++ b/api/datadogV2/model_logs_archive_attributes_compression_method.go @@ -0,0 +1,66 @@ +// Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +// This product includes software developed at Datadog (https://www.datadoghq.com/). +// Copyright 2019-Present Datadog, Inc. + +package datadogV2 + +import ( + "fmt" + + "github.com/DataDog/datadog-api-client-go/v2/api/datadog" +) + +// LogsArchiveAttributesCompressionMethod The type of compression for the archive. +type LogsArchiveAttributesCompressionMethod string + +// List of LogsArchiveAttributesCompressionMethod. +const ( + LOGSARCHIVEATTRIBUTESCOMPRESSIONMETHOD_GZIP LogsArchiveAttributesCompressionMethod = "GZIP" + LOGSARCHIVEATTRIBUTESCOMPRESSIONMETHOD_ZSTD LogsArchiveAttributesCompressionMethod = "ZSTD" +) + +var allowedLogsArchiveAttributesCompressionMethodEnumValues = []LogsArchiveAttributesCompressionMethod{ + LOGSARCHIVEATTRIBUTESCOMPRESSIONMETHOD_GZIP, + LOGSARCHIVEATTRIBUTESCOMPRESSIONMETHOD_ZSTD, +} + +// GetAllowedValues reeturns the list of possible values. +func (v *LogsArchiveAttributesCompressionMethod) GetAllowedValues() []LogsArchiveAttributesCompressionMethod { + return allowedLogsArchiveAttributesCompressionMethodEnumValues +} + +// UnmarshalJSON deserializes the given payload. +func (v *LogsArchiveAttributesCompressionMethod) UnmarshalJSON(src []byte) error { + var value string + err := datadog.Unmarshal(src, &value) + if err != nil { + return err + } + *v = LogsArchiveAttributesCompressionMethod(value) + return nil +} + +// NewLogsArchiveAttributesCompressionMethodFromValue returns a pointer to a valid LogsArchiveAttributesCompressionMethod +// for the value passed as argument, or an error if the value passed is not allowed by the enum. +func NewLogsArchiveAttributesCompressionMethodFromValue(v string) (*LogsArchiveAttributesCompressionMethod, error) { + ev := LogsArchiveAttributesCompressionMethod(v) + if ev.IsValid() { + return &ev, nil + } + return nil, fmt.Errorf("invalid value '%v' for LogsArchiveAttributesCompressionMethod: valid values are %v", v, allowedLogsArchiveAttributesCompressionMethodEnumValues) +} + +// IsValid return true if the value is valid for the enum, false otherwise. +func (v LogsArchiveAttributesCompressionMethod) IsValid() bool { + for _, existing := range allowedLogsArchiveAttributesCompressionMethodEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to LogsArchiveAttributesCompressionMethod value. +func (v LogsArchiveAttributesCompressionMethod) Ptr() *LogsArchiveAttributesCompressionMethod { + return &v +} diff --git a/api/datadogV2/model_logs_archive_create_request_attributes.go b/api/datadogV2/model_logs_archive_create_request_attributes.go index b6cc4671b51..3206193ae23 100644 --- a/api/datadogV2/model_logs_archive_create_request_attributes.go +++ b/api/datadogV2/model_logs_archive_create_request_attributes.go @@ -12,6 +12,8 @@ import ( // LogsArchiveCreateRequestAttributes The attributes associated with the archive. type LogsArchiveCreateRequestAttributes struct { + // The type of compression for the archive. + CompressionMethod *LogsArchiveAttributesCompressionMethod `json:"compression_method,omitempty"` // An archive's destination. Destination LogsArchiveCreateRequestDestination `json:"destination"` // To store the tags in the archive, set the value "true". @@ -36,6 +38,8 @@ type LogsArchiveCreateRequestAttributes struct { // will change when the set of required properties is changed. func NewLogsArchiveCreateRequestAttributes(destination LogsArchiveCreateRequestDestination, name string, query string) *LogsArchiveCreateRequestAttributes { this := LogsArchiveCreateRequestAttributes{} + var compressionMethod LogsArchiveAttributesCompressionMethod = LOGSARCHIVEATTRIBUTESCOMPRESSIONMETHOD_GZIP + this.CompressionMethod = &compressionMethod this.Destination = destination var includeTags bool = false this.IncludeTags = &includeTags @@ -49,11 +53,41 @@ func NewLogsArchiveCreateRequestAttributes(destination LogsArchiveCreateRequestD // but it doesn't guarantee that properties required by API are set. func NewLogsArchiveCreateRequestAttributesWithDefaults() *LogsArchiveCreateRequestAttributes { this := LogsArchiveCreateRequestAttributes{} + var compressionMethod LogsArchiveAttributesCompressionMethod = LOGSARCHIVEATTRIBUTESCOMPRESSIONMETHOD_GZIP + this.CompressionMethod = &compressionMethod var includeTags bool = false this.IncludeTags = &includeTags return &this } +// GetCompressionMethod returns the CompressionMethod field value if set, zero value otherwise. +func (o *LogsArchiveCreateRequestAttributes) GetCompressionMethod() LogsArchiveAttributesCompressionMethod { + if o == nil || o.CompressionMethod == nil { + var ret LogsArchiveAttributesCompressionMethod + return ret + } + return *o.CompressionMethod +} + +// GetCompressionMethodOk returns a tuple with the CompressionMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LogsArchiveCreateRequestAttributes) GetCompressionMethodOk() (*LogsArchiveAttributesCompressionMethod, bool) { + if o == nil || o.CompressionMethod == nil { + return nil, false + } + return o.CompressionMethod, true +} + +// HasCompressionMethod returns a boolean if a field has been set. +func (o *LogsArchiveCreateRequestAttributes) HasCompressionMethod() bool { + return o != nil && o.CompressionMethod != nil +} + +// SetCompressionMethod gets a reference to the given LogsArchiveAttributesCompressionMethod and assigns it to the CompressionMethod field. +func (o *LogsArchiveCreateRequestAttributes) SetCompressionMethod(v LogsArchiveAttributesCompressionMethod) { + o.CompressionMethod = &v +} + // GetDestination returns the Destination field value. func (o *LogsArchiveCreateRequestAttributes) GetDestination() LogsArchiveCreateRequestDestination { if o == nil { @@ -224,6 +258,9 @@ func (o LogsArchiveCreateRequestAttributes) MarshalJSON() ([]byte, error) { if o.UnparsedObject != nil { return datadog.Marshal(o.UnparsedObject) } + if o.CompressionMethod != nil { + toSerialize["compression_method"] = o.CompressionMethod + } toSerialize["destination"] = o.Destination if o.IncludeTags != nil { toSerialize["include_tags"] = o.IncludeTags @@ -246,12 +283,13 @@ func (o LogsArchiveCreateRequestAttributes) MarshalJSON() ([]byte, error) { // UnmarshalJSON deserializes the given payload. func (o *LogsArchiveCreateRequestAttributes) UnmarshalJSON(bytes []byte) (err error) { all := struct { - Destination *LogsArchiveCreateRequestDestination `json:"destination"` - IncludeTags *bool `json:"include_tags,omitempty"` - Name *string `json:"name"` - Query *string `json:"query"` - RehydrationMaxScanSizeInGb datadog.NullableInt64 `json:"rehydration_max_scan_size_in_gb,omitempty"` - RehydrationTags []string `json:"rehydration_tags,omitempty"` + CompressionMethod *LogsArchiveAttributesCompressionMethod `json:"compression_method,omitempty"` + Destination *LogsArchiveCreateRequestDestination `json:"destination"` + IncludeTags *bool `json:"include_tags,omitempty"` + Name *string `json:"name"` + Query *string `json:"query"` + RehydrationMaxScanSizeInGb datadog.NullableInt64 `json:"rehydration_max_scan_size_in_gb,omitempty"` + RehydrationTags []string `json:"rehydration_tags,omitempty"` }{} if err = datadog.Unmarshal(bytes, &all); err != nil { return datadog.Unmarshal(bytes, &o.UnparsedObject) @@ -267,10 +305,17 @@ func (o *LogsArchiveCreateRequestAttributes) UnmarshalJSON(bytes []byte) (err er } additionalProperties := make(map[string]interface{}) if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil { - datadog.DeleteKeys(additionalProperties, &[]string{"destination", "include_tags", "name", "query", "rehydration_max_scan_size_in_gb", "rehydration_tags"}) + datadog.DeleteKeys(additionalProperties, &[]string{"compression_method", "destination", "include_tags", "name", "query", "rehydration_max_scan_size_in_gb", "rehydration_tags"}) } else { return err } + + hasInvalidField := false + if all.CompressionMethod != nil && !all.CompressionMethod.IsValid() { + hasInvalidField = true + } else { + o.CompressionMethod = all.CompressionMethod + } o.Destination = *all.Destination o.IncludeTags = all.IncludeTags o.Name = *all.Name @@ -282,5 +327,9 @@ func (o *LogsArchiveCreateRequestAttributes) UnmarshalJSON(bytes []byte) (err er o.AdditionalProperties = additionalProperties } + if hasInvalidField { + return datadog.Unmarshal(bytes, &o.UnparsedObject) + } + return nil } diff --git a/examples/v2/logs-archives/CreateLogsArchive.go b/examples/v2/logs-archives/CreateLogsArchive.go index aba93ef2db7..a8f37ab3813 100644 --- a/examples/v2/logs-archives/CreateLogsArchive.go +++ b/examples/v2/logs-archives/CreateLogsArchive.go @@ -16,6 +16,7 @@ func main() { body := datadogV2.LogsArchiveCreateRequest{ Data: &datadogV2.LogsArchiveCreateRequestDefinition{ Attributes: &datadogV2.LogsArchiveCreateRequestAttributes{ + CompressionMethod: datadogV2.LOGSARCHIVEATTRIBUTESCOMPRESSIONMETHOD_GZIP.Ptr(), Destination: datadogV2.LogsArchiveCreateRequestDestination{ LogsArchiveDestinationAzure: &datadogV2.LogsArchiveDestinationAzure{ Container: "container-name", diff --git a/examples/v2/logs-archives/UpdateLogsArchive.go b/examples/v2/logs-archives/UpdateLogsArchive.go index 8bd2e9d0973..6aa18b36a63 100644 --- a/examples/v2/logs-archives/UpdateLogsArchive.go +++ b/examples/v2/logs-archives/UpdateLogsArchive.go @@ -16,6 +16,7 @@ func main() { body := datadogV2.LogsArchiveCreateRequest{ Data: &datadogV2.LogsArchiveCreateRequestDefinition{ Attributes: &datadogV2.LogsArchiveCreateRequestAttributes{ + CompressionMethod: datadogV2.LOGSARCHIVEATTRIBUTESCOMPRESSIONMETHOD_GZIP.Ptr(), Destination: datadogV2.LogsArchiveCreateRequestDestination{ LogsArchiveDestinationAzure: &datadogV2.LogsArchiveDestinationAzure{ Container: "container-name", diff --git a/tests/scenarios/features/v2/logs_archives.feature b/tests/scenarios/features/v2/logs_archives.feature index a6de8c72d4b..4b58769df54 100644 --- a/tests/scenarios/features/v2/logs_archives.feature +++ b/tests/scenarios/features/v2/logs_archives.feature @@ -12,14 +12,14 @@ Feature: Logs Archives @generated @skip @team:DataDog/logs-backend @team:DataDog/logs-forwarding Scenario: Create an archive returns "Bad Request" response Given new "CreateLogsArchive" request - And body with value {"data": {"attributes": {"destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "name": "Nginx Archive", "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} + And body with value {"data": {"attributes": {"compression_method": "GZIP", "destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "name": "Nginx Archive", "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/logs-backend @team:DataDog/logs-forwarding Scenario: Create an archive returns "OK" response Given new "CreateLogsArchive" request - And body with value {"data": {"attributes": {"destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "name": "Nginx Archive", "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} + And body with value {"data": {"attributes": {"compression_method": "GZIP", "destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "name": "Nginx Archive", "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} When the request is sent Then the response status is 200 OK @@ -150,7 +150,7 @@ Feature: Logs Archives Scenario: Update an archive returns "Bad Request" response Given new "UpdateLogsArchive" request And request contains "archive_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "name": "Nginx Archive", "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} + And body with value {"data": {"attributes": {"compression_method": "GZIP", "destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "name": "Nginx Archive", "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} When the request is sent Then the response status is 400 Bad Request @@ -158,7 +158,7 @@ Feature: Logs Archives Scenario: Update an archive returns "Not found" response Given new "UpdateLogsArchive" request And request contains "archive_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "name": "Nginx Archive", "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} + And body with value {"data": {"attributes": {"compression_method": "GZIP", "destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "name": "Nginx Archive", "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} When the request is sent Then the response status is 404 Not found @@ -166,7 +166,7 @@ Feature: Logs Archives Scenario: Update an archive returns "OK" response Given new "UpdateLogsArchive" request And request contains "archive_id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "name": "Nginx Archive", "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} + And body with value {"data": {"attributes": {"compression_method": "GZIP", "destination": {"container": "container-name", "integration": {"client_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa", "tenant_id": "aaaaaaaa-1a1a-1a1a-1a1a-aaaaaaaaaaaa"}, "storage_account": "account-name", "type": "azure"}, "include_tags": false, "name": "Nginx Archive", "query": "source:nginx", "rehydration_max_scan_size_in_gb": 100, "rehydration_tags": ["team:intake", "team:app"]}, "type": "archives"}} When the request is sent Then the response status is 200 OK