Skip to content

Commit 56524f3

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Resolve issue where the go client cannot resolve between memoryBuffer and memoryBufferSize options (#3469)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent a2c7c6c commit 56524f3

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39639,6 +39639,8 @@ components:
3963939639
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsDiskType'
3964039640
when_full:
3964139641
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
39642+
required:
39643+
- max_size
3964239644
type: object
3964339645
ObservabilityPipelineElasticsearchDestination:
3964439646
description: 'The `elasticsearch` destination writes logs to an Elasticsearch
@@ -40892,6 +40894,8 @@ components:
4089240894
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
4089340895
when_full:
4089440896
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
40897+
required:
40898+
- max_size
4089540899
type: object
4089640900
ObservabilityPipelineMemoryBufferSizeOptions:
4089740901
description: Options for configuring a memory buffer by queue length.
@@ -40905,6 +40909,8 @@ components:
4090540909
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
4090640910
when_full:
4090740911
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
40912+
required:
40913+
- max_events
4090840914
type: object
4090940915
ObservabilityPipelineMetadataEntry:
4091040916
description: A custom metadata entry.

packages/datadog-api-client-v2/models/ObservabilityPipelineDiskBufferOptions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class ObservabilityPipelineDiskBufferOptions {
1515
/**
1616
* Maximum size of the disk buffer.
1717
*/
18-
"maxSize"?: number;
18+
"maxSize": number;
1919
/**
2020
* The type of the buffer that will be configured, a disk buffer.
2121
*/
@@ -44,6 +44,7 @@ export class ObservabilityPipelineDiskBufferOptions {
4444
maxSize: {
4545
baseName: "max_size",
4646
type: "number",
47+
required: true,
4748
format: "int64",
4849
},
4950
type: {

packages/datadog-api-client-v2/models/ObservabilityPipelineMemoryBufferOptions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class ObservabilityPipelineMemoryBufferOptions {
1515
/**
1616
* Maximum size of the memory buffer.
1717
*/
18-
"maxSize"?: number;
18+
"maxSize": number;
1919
/**
2020
* The type of the buffer that will be configured, a memory buffer.
2121
*/
@@ -44,6 +44,7 @@ export class ObservabilityPipelineMemoryBufferOptions {
4444
maxSize: {
4545
baseName: "max_size",
4646
type: "number",
47+
required: true,
4748
format: "int64",
4849
},
4950
type: {

packages/datadog-api-client-v2/models/ObservabilityPipelineMemoryBufferSizeOptions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class ObservabilityPipelineMemoryBufferSizeOptions {
1515
/**
1616
* Maximum events for the memory buffer.
1717
*/
18-
"maxEvents"?: number;
18+
"maxEvents": number;
1919
/**
2020
* The type of the buffer that will be configured, a memory buffer.
2121
*/
@@ -44,6 +44,7 @@ export class ObservabilityPipelineMemoryBufferSizeOptions {
4444
maxEvents: {
4545
baseName: "max_events",
4646
type: "number",
47+
required: true,
4748
format: "int64",
4849
},
4950
type: {

0 commit comments

Comments
 (0)