From ebcad43345b83068f44ce8d279ee7e84b9b6e92a Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 19 Nov 2025 21:46:08 +0000 Subject: [PATCH] Regenerate client from commit e2f3b21 of spec repo --- .generator/schemas/v2/openapi.yaml | 5 --- ...del_patch_table_request_data_attributes.go | 37 +------------------ .../reference-tables/UpdateReferenceTable.go | 1 - .../features/v2/reference_tables.feature | 4 +- 4 files changed, 3 insertions(+), 44 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index d2781f328c8..17fa274d522 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -38611,7 +38611,6 @@ components: type: STRING primary_keys: - id - sync_enabled: false tags: - test_tag type: reference_table @@ -38643,10 +38642,6 @@ components: $ref: '#/components/schemas/PatchTableRequestDataAttributesFileMetadata' schema: $ref: '#/components/schemas/PatchTableRequestDataAttributesSchema' - sync_enabled: - description: Whether this table is synced automatically. - example: false - type: boolean tags: description: Tags for organizing and filtering reference tables. example: diff --git a/api/datadogV2/model_patch_table_request_data_attributes.go b/api/datadogV2/model_patch_table_request_data_attributes.go index 67bf46c478e..c8f7073b44d 100644 --- a/api/datadogV2/model_patch_table_request_data_attributes.go +++ b/api/datadogV2/model_patch_table_request_data_attributes.go @@ -16,8 +16,6 @@ type PatchTableRequestDataAttributes struct { FileMetadata *PatchTableRequestDataAttributesFileMetadata `json:"file_metadata,omitempty"` // Schema defining the updates to the structure and columns of the reference table. Schema fields cannot be deleted or renamed. Schema *PatchTableRequestDataAttributesSchema `json:"schema,omitempty"` - // Whether this table is synced automatically. - SyncEnabled *bool `json:"sync_enabled,omitempty"` // Tags for organizing and filtering reference tables. Tags []string `json:"tags,omitempty"` // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct @@ -126,34 +124,6 @@ func (o *PatchTableRequestDataAttributes) SetSchema(v PatchTableRequestDataAttri o.Schema = &v } -// GetSyncEnabled returns the SyncEnabled field value if set, zero value otherwise. -func (o *PatchTableRequestDataAttributes) GetSyncEnabled() bool { - if o == nil || o.SyncEnabled == nil { - var ret bool - return ret - } - return *o.SyncEnabled -} - -// GetSyncEnabledOk returns a tuple with the SyncEnabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchTableRequestDataAttributes) GetSyncEnabledOk() (*bool, bool) { - if o == nil || o.SyncEnabled == nil { - return nil, false - } - return o.SyncEnabled, true -} - -// HasSyncEnabled returns a boolean if a field has been set. -func (o *PatchTableRequestDataAttributes) HasSyncEnabled() bool { - return o != nil && o.SyncEnabled != nil -} - -// SetSyncEnabled gets a reference to the given bool and assigns it to the SyncEnabled field. -func (o *PatchTableRequestDataAttributes) SetSyncEnabled(v bool) { - o.SyncEnabled = &v -} - // GetTags returns the Tags field value if set, zero value otherwise. func (o *PatchTableRequestDataAttributes) GetTags() []string { if o == nil || o.Tags == nil { @@ -197,9 +167,6 @@ func (o PatchTableRequestDataAttributes) MarshalJSON() ([]byte, error) { if o.Schema != nil { toSerialize["schema"] = o.Schema } - if o.SyncEnabled != nil { - toSerialize["sync_enabled"] = o.SyncEnabled - } if o.Tags != nil { toSerialize["tags"] = o.Tags } @@ -216,7 +183,6 @@ func (o *PatchTableRequestDataAttributes) UnmarshalJSON(bytes []byte) (err error Description *string `json:"description,omitempty"` FileMetadata *PatchTableRequestDataAttributesFileMetadata `json:"file_metadata,omitempty"` Schema *PatchTableRequestDataAttributesSchema `json:"schema,omitempty"` - SyncEnabled *bool `json:"sync_enabled,omitempty"` Tags []string `json:"tags,omitempty"` }{} if err = datadog.Unmarshal(bytes, &all); err != nil { @@ -224,7 +190,7 @@ func (o *PatchTableRequestDataAttributes) UnmarshalJSON(bytes []byte) (err error } additionalProperties := make(map[string]interface{}) if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil { - datadog.DeleteKeys(additionalProperties, &[]string{"description", "file_metadata", "schema", "sync_enabled", "tags"}) + datadog.DeleteKeys(additionalProperties, &[]string{"description", "file_metadata", "schema", "tags"}) } else { return err } @@ -236,7 +202,6 @@ func (o *PatchTableRequestDataAttributes) UnmarshalJSON(bytes []byte) (err error hasInvalidField = true } o.Schema = all.Schema - o.SyncEnabled = all.SyncEnabled o.Tags = all.Tags if len(additionalProperties) > 0 { diff --git a/examples/v2/reference-tables/UpdateReferenceTable.go b/examples/v2/reference-tables/UpdateReferenceTable.go index 6f05a36d583..bfe67ca3254 100644 --- a/examples/v2/reference-tables/UpdateReferenceTable.go +++ b/examples/v2/reference-tables/UpdateReferenceTable.go @@ -42,7 +42,6 @@ func main() { "id", }, }, - SyncEnabled: datadog.PtrBool(false), Tags: []string{ "test_tag", }, diff --git a/tests/scenarios/features/v2/reference_tables.feature b/tests/scenarios/features/v2/reference_tables.feature index fa3ea42360a..dee6c603418 100644 --- a/tests/scenarios/features/v2/reference_tables.feature +++ b/tests/scenarios/features/v2/reference_tables.feature @@ -108,7 +108,7 @@ Feature: Reference Tables Scenario: Update reference table returns "Bad Request" response Given new "UpdateReferenceTable" request And request contains "id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"description": "this is a cloud table generated via a cloud bucket sync", "file_metadata": {"access_details": {"aws_detail": {"aws_account_id": "test-account-id", "aws_bucket_name": "test-bucket", "file_path": "test_rt.csv"}}, "sync_enabled": true}, "schema": {"fields": [{"name": "id", "type": "INT32"}, {"name": "name", "type": "STRING"}], "primary_keys": ["id"]}, "sync_enabled": false, "tags": ["test_tag"]}, "type": "reference_table"}} + And body with value {"data": {"attributes": {"description": "this is a cloud table generated via a cloud bucket sync", "file_metadata": {"access_details": {"aws_detail": {"aws_account_id": "test-account-id", "aws_bucket_name": "test-bucket", "file_path": "test_rt.csv"}}, "sync_enabled": true}, "schema": {"fields": [{"name": "id", "type": "INT32"}, {"name": "name", "type": "STRING"}], "primary_keys": ["id"]}, "tags": ["test_tag"]}, "type": "reference_table"}} When the request is sent Then the response status is 400 Bad Request @@ -116,6 +116,6 @@ Feature: Reference Tables Scenario: Update reference table returns "OK" response Given new "UpdateReferenceTable" request And request contains "id" parameter from "REPLACE.ME" - And body with value {"data": {"attributes": {"description": "this is a cloud table generated via a cloud bucket sync", "file_metadata": {"access_details": {"aws_detail": {"aws_account_id": "test-account-id", "aws_bucket_name": "test-bucket", "file_path": "test_rt.csv"}}, "sync_enabled": true}, "schema": {"fields": [{"name": "id", "type": "INT32"}, {"name": "name", "type": "STRING"}], "primary_keys": ["id"]}, "sync_enabled": false, "tags": ["test_tag"]}, "type": "reference_table"}} + And body with value {"data": {"attributes": {"description": "this is a cloud table generated via a cloud bucket sync", "file_metadata": {"access_details": {"aws_detail": {"aws_account_id": "test-account-id", "aws_bucket_name": "test-bucket", "file_path": "test_rt.csv"}}, "sync_enabled": true}, "schema": {"fields": [{"name": "id", "type": "INT32"}, {"name": "name", "type": "STRING"}], "primary_keys": ["id"]}, "tags": ["test_tag"]}, "type": "reference_table"}} When the request is sent Then the response status is 200 OK