Skip to content

Commit 93e5b44

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e2f3b21 of spec repo
1 parent b7b6e35 commit 93e5b44

File tree

4 files changed

+2
-26
lines changed

4 files changed

+2
-26
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38611,7 +38611,6 @@ components:
3861138611
type: STRING
3861238612
primary_keys:
3861338613
- id
38614-
sync_enabled: false
3861538614
tags:
3861638615
- test_tag
3861738616
type: reference_table
@@ -38643,10 +38642,6 @@ components:
3864338642
$ref: '#/components/schemas/PatchTableRequestDataAttributesFileMetadata'
3864438643
schema:
3864538644
$ref: '#/components/schemas/PatchTableRequestDataAttributesSchema'
38646-
sync_enabled:
38647-
description: Whether this table is synced automatically.
38648-
example: false
38649-
type: boolean
3865038645
tags:
3865138646
description: Tags for organizing and filtering reference tables.
3865238647
example:

examples/v2_reference-tables_UpdateReferenceTable.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ async fn main() {
5757
vec!["id".to_string()],
5858
),
5959
)
60-
.sync_enabled(false)
6160
.tags(vec!["test_tag".to_string()]),
6261
),
6362
);

src/datadogV2/model/model_patch_table_request_data_attributes.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ pub struct PatchTableRequestDataAttributes {
2020
/// Schema defining the updates to the structure and columns of the reference table. Schema fields cannot be deleted or renamed.
2121
#[serde(rename = "schema")]
2222
pub schema: Option<crate::datadogV2::model::PatchTableRequestDataAttributesSchema>,
23-
/// Whether this table is synced automatically.
24-
#[serde(rename = "sync_enabled")]
25-
pub sync_enabled: Option<bool>,
2623
/// Tags for organizing and filtering reference tables.
2724
#[serde(rename = "tags")]
2825
pub tags: Option<Vec<String>>,
@@ -39,7 +36,6 @@ impl PatchTableRequestDataAttributes {
3936
description: None,
4037
file_metadata: None,
4138
schema: None,
42-
sync_enabled: None,
4339
tags: None,
4440
additional_properties: std::collections::BTreeMap::new(),
4541
_unparsed: false,
@@ -67,11 +63,6 @@ impl PatchTableRequestDataAttributes {
6763
self
6864
}
6965

70-
pub fn sync_enabled(mut self, value: bool) -> Self {
71-
self.sync_enabled = Some(value);
72-
self
73-
}
74-
7566
pub fn tags(mut self, value: Vec<String>) -> Self {
7667
self.tags = Some(value);
7768
self
@@ -116,7 +107,6 @@ impl<'de> Deserialize<'de> for PatchTableRequestDataAttributes {
116107
let mut schema: Option<
117108
crate::datadogV2::model::PatchTableRequestDataAttributesSchema,
118109
> = None;
119-
let mut sync_enabled: Option<bool> = None;
120110
let mut tags: Option<Vec<String>> = None;
121111
let mut additional_properties: std::collections::BTreeMap<
122112
String,
@@ -154,13 +144,6 @@ impl<'de> Deserialize<'de> for PatchTableRequestDataAttributes {
154144
}
155145
schema = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
156146
}
157-
"sync_enabled" => {
158-
if v.is_null() {
159-
continue;
160-
}
161-
sync_enabled =
162-
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
163-
}
164147
"tags" => {
165148
if v.is_null() {
166149
continue;
@@ -179,7 +162,6 @@ impl<'de> Deserialize<'de> for PatchTableRequestDataAttributes {
179162
description,
180163
file_metadata,
181164
schema,
182-
sync_enabled,
183165
tags,
184166
additional_properties,
185167
_unparsed,

tests/scenarios/features/v2/reference_tables.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ Feature: Reference Tables
108108
Scenario: Update reference table returns "Bad Request" response
109109
Given new "UpdateReferenceTable" request
110110
And request contains "id" parameter from "REPLACE.ME"
111-
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"}}
111+
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"}}
112112
When the request is sent
113113
Then the response status is 400 Bad Request
114114

115115
@generated @skip @team:DataDog/redapl-experiences
116116
Scenario: Update reference table returns "OK" response
117117
Given new "UpdateReferenceTable" request
118118
And request contains "id" parameter from "REPLACE.ME"
119-
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"}}
119+
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"}}
120120
When the request is sent
121121
Then the response status is 200 OK

0 commit comments

Comments
 (0)