diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index d2781f328..17fa274d5 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/examples/v2_reference-tables_UpdateReferenceTable.rs b/examples/v2_reference-tables_UpdateReferenceTable.rs index 7311210ee..4aa5f8a44 100644 --- a/examples/v2_reference-tables_UpdateReferenceTable.rs +++ b/examples/v2_reference-tables_UpdateReferenceTable.rs @@ -57,7 +57,6 @@ async fn main() { vec!["id".to_string()], ), ) - .sync_enabled(false) .tags(vec!["test_tag".to_string()]), ), ); diff --git a/src/datadogV2/model/model_patch_table_request_data_attributes.rs b/src/datadogV2/model/model_patch_table_request_data_attributes.rs index 1f18fdbe5..42e9f6d6a 100644 --- a/src/datadogV2/model/model_patch_table_request_data_attributes.rs +++ b/src/datadogV2/model/model_patch_table_request_data_attributes.rs @@ -20,9 +20,6 @@ pub struct PatchTableRequestDataAttributes { /// Schema defining the updates to the structure and columns of the reference table. Schema fields cannot be deleted or renamed. #[serde(rename = "schema")] pub schema: Option, - /// Whether this table is synced automatically. - #[serde(rename = "sync_enabled")] - pub sync_enabled: Option, /// Tags for organizing and filtering reference tables. #[serde(rename = "tags")] pub tags: Option>, @@ -39,7 +36,6 @@ impl PatchTableRequestDataAttributes { description: None, file_metadata: None, schema: None, - sync_enabled: None, tags: None, additional_properties: std::collections::BTreeMap::new(), _unparsed: false, @@ -67,11 +63,6 @@ impl PatchTableRequestDataAttributes { self } - pub fn sync_enabled(mut self, value: bool) -> Self { - self.sync_enabled = Some(value); - self - } - pub fn tags(mut self, value: Vec) -> Self { self.tags = Some(value); self @@ -116,7 +107,6 @@ impl<'de> Deserialize<'de> for PatchTableRequestDataAttributes { let mut schema: Option< crate::datadogV2::model::PatchTableRequestDataAttributesSchema, > = None; - let mut sync_enabled: Option = None; let mut tags: Option> = None; let mut additional_properties: std::collections::BTreeMap< String, @@ -154,13 +144,6 @@ impl<'de> Deserialize<'de> for PatchTableRequestDataAttributes { } schema = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } - "sync_enabled" => { - if v.is_null() { - continue; - } - sync_enabled = - Some(serde_json::from_value(v).map_err(M::Error::custom)?); - } "tags" => { if v.is_null() { continue; @@ -179,7 +162,6 @@ impl<'de> Deserialize<'de> for PatchTableRequestDataAttributes { description, file_metadata, schema, - sync_enabled, tags, additional_properties, _unparsed, diff --git a/tests/scenarios/features/v2/reference_tables.feature b/tests/scenarios/features/v2/reference_tables.feature index fa3ea4236..dee6c6034 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