Skip to content

Commit 894329d

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 (#3468)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent e46805a commit 894329d

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

.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.

services/observability_pipelines/src/v2/models/ObservabilityPipelineDiskBufferOptions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class ObservabilityPipelineDiskBufferOptions {
1010
/**
1111
* Maximum size of the disk buffer.
1212
*/
13-
"maxSize"?: number;
13+
"maxSize": number;
1414
/**
1515
* The type of the buffer that will be configured, a disk buffer.
1616
*/
@@ -37,6 +37,7 @@ export class ObservabilityPipelineDiskBufferOptions {
3737
maxSize: {
3838
baseName: "max_size",
3939
type: "number",
40+
required: true,
4041
format: "int64",
4142
},
4243
type: {

services/observability_pipelines/src/v2/models/ObservabilityPipelineMemoryBufferOptions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class ObservabilityPipelineMemoryBufferOptions {
1010
/**
1111
* Maximum size of the memory buffer.
1212
*/
13-
"maxSize"?: number;
13+
"maxSize": number;
1414
/**
1515
* The type of the buffer that will be configured, a memory buffer.
1616
*/
@@ -37,6 +37,7 @@ export class ObservabilityPipelineMemoryBufferOptions {
3737
maxSize: {
3838
baseName: "max_size",
3939
type: "number",
40+
required: true,
4041
format: "int64",
4142
},
4243
type: {

services/observability_pipelines/src/v2/models/ObservabilityPipelineMemoryBufferSizeOptions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class ObservabilityPipelineMemoryBufferSizeOptions {
1010
/**
1111
* Maximum events for the memory buffer.
1212
*/
13-
"maxEvents"?: number;
13+
"maxEvents": number;
1414
/**
1515
* The type of the buffer that will be configured, a memory buffer.
1616
*/
@@ -37,6 +37,7 @@ export class ObservabilityPipelineMemoryBufferSizeOptions {
3737
maxEvents: {
3838
baseName: "max_events",
3939
type: "number",
40+
required: true,
4041
format: "int64",
4142
},
4243
type: {

0 commit comments

Comments
 (0)