Skip to content

Commit fa1d976

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e2f3b21 of spec repo
1 parent fe43c62 commit fa1d976

File tree

4 files changed

+3
-19
lines changed

4 files changed

+3
-19
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.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"id",
3333
],
3434
}),
35-
sync_enabled: false,
3635
tags: [
3736
"test_tag",
3837
],

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

lib/datadog_api_client/v2/models/patch_table_request_data_attributes.rb

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ class PatchTableRequestDataAttributes
3030
# Schema defining the updates to the structure and columns of the reference table. Schema fields cannot be deleted or renamed.
3131
attr_accessor :schema
3232

33-
# Whether this table is synced automatically.
34-
attr_accessor :sync_enabled
35-
3633
# Tags for organizing and filtering reference tables.
3734
attr_accessor :tags
3835

@@ -45,7 +42,6 @@ def self.attribute_map
4542
:'description' => :'description',
4643
:'file_metadata' => :'file_metadata',
4744
:'schema' => :'schema',
48-
:'sync_enabled' => :'sync_enabled',
4945
:'tags' => :'tags'
5046
}
5147
end
@@ -57,7 +53,6 @@ def self.openapi_types
5753
:'description' => :'String',
5854
:'file_metadata' => :'PatchTableRequestDataAttributesFileMetadata',
5955
:'schema' => :'PatchTableRequestDataAttributesSchema',
60-
:'sync_enabled' => :'Boolean',
6156
:'tags' => :'Array<String>'
6257
}
6358
end
@@ -92,10 +87,6 @@ def initialize(attributes = {})
9287
self.schema = attributes[:'schema']
9388
end
9489

95-
if attributes.key?(:'sync_enabled')
96-
self.sync_enabled = attributes[:'sync_enabled']
97-
end
98-
9990
if attributes.key?(:'tags')
10091
if (value = attributes[:'tags']).is_a?(Array)
10192
self.tags = value
@@ -132,7 +123,6 @@ def ==(o)
132123
description == o.description &&
133124
file_metadata == o.file_metadata &&
134125
schema == o.schema &&
135-
sync_enabled == o.sync_enabled &&
136126
tags == o.tags &&
137127
additional_properties == o.additional_properties
138128
end
@@ -141,7 +131,7 @@ def ==(o)
141131
# @return [Integer] Hash code
142132
# @!visibility private
143133
def hash
144-
[description, file_metadata, schema, sync_enabled, tags, additional_properties].hash
134+
[description, file_metadata, schema, tags, additional_properties].hash
145135
end
146136
end
147137
end

0 commit comments

Comments
 (0)