Skip to content

Commit 37c8e73

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1cf5295 of spec repo
1 parent 72a12d0 commit 37c8e73

11 files changed

Lines changed: 446 additions & 542 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 98 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -56750,19 +56750,35 @@ components:
5675056750
- client_email
5675156751
type: object
5675256752
LogsArchiveIntegrationS3:
56753-
description: The S3 Archive's integration destination.
56753+
anyOf:
56754+
- $ref: "#/components/schemas/LogsArchiveIntegrationS3AccessKey"
56755+
- $ref: "#/components/schemas/LogsArchiveIntegrationS3Role"
56756+
description: >-
56757+
The S3 Archive's integration destination. You must provide one of the following: `access_key_id` alone, or both `account_id` and `role_name` together.
56758+
LogsArchiveIntegrationS3AccessKey:
56759+
description: The S3 Archive's integration destination using an access key.
56760+
properties:
56761+
access_key_id:
56762+
description: The access key ID for the integration.
56763+
example: AKIAIOSFODNN7EXAMPLE
56764+
type: string
56765+
required:
56766+
- access_key_id
56767+
type: object
56768+
LogsArchiveIntegrationS3Role:
56769+
description: The S3 Archive's integration destination using an IAM role.
5675456770
properties:
5675556771
account_id:
5675656772
description: The account ID for the integration.
5675756773
example: "123456789012"
5675856774
type: string
5675956775
role_name:
56760-
description: The path of the integration.
56776+
description: The name of the role to assume for the integration.
5676156777
example: role-name
5676256778
type: string
5676356779
required:
56764-
- role_name
5676556780
- account_id
56781+
- role_name
5676656782
type: object
5676756783
LogsArchiveOrder:
5676856784
description: A ordered list of archive IDs.
@@ -102910,26 +102926,14 @@ components:
102910102926
description: Whether Auto Test Retries are enabled for this service.
102911102927
example: false
102912102928
type: boolean
102913-
auto_test_retries_enabled_is_overridden:
102914-
description: Whether the Auto Test Retries setting is overridden at the service level.
102915-
example: false
102916-
type: boolean
102917102929
code_coverage_enabled:
102918102930
description: Whether Code Coverage is enabled for this service.
102919102931
example: false
102920102932
type: boolean
102921-
code_coverage_enabled_is_overridden:
102922-
description: Whether the Code Coverage setting is overridden at the service level.
102923-
example: false
102924-
type: boolean
102925102933
early_flake_detection_enabled:
102926102934
description: Whether Early Flake Detection is enabled for this service.
102927102935
example: false
102928102936
type: boolean
102929-
early_flake_detection_enabled_is_overridden:
102930-
description: Whether the Early Flake Detection setting is overridden at the service level.
102931-
example: false
102932-
type: boolean
102933102937
env:
102934102938
description: The environment name.
102935102939
example: prod
@@ -102938,13 +102942,9 @@ components:
102938102942
description: Whether Failed Test Replay is enabled for this service.
102939102943
example: false
102940102944
type: boolean
102941-
failed_test_replay_enabled_is_overridden:
102942-
description: Whether the Failed Test Replay setting is overridden at the service level.
102943-
example: false
102944-
type: boolean
102945102945
pr_comments_enabled:
102946-
description: Whether PR Comments are enabled. This value reflects the repository-level setting and cannot be overridden at the service level.
102947-
example: false
102946+
description: Whether PR Comments are enabled for this service.
102947+
example: true
102948102948
type: boolean
102949102949
repository_id:
102950102950
description: The repository identifier.
@@ -102956,11 +102956,7 @@ components:
102956102956
type: string
102957102957
test_impact_analysis_enabled:
102958102958
description: Whether Test Impact Analysis is enabled for this service.
102959-
example: true
102960-
type: boolean
102961-
test_impact_analysis_enabled_is_overridden:
102962-
description: Whether the Test Impact Analysis setting is overridden at the service level.
102963-
example: true
102959+
example: false
102964102960
type: boolean
102965102961
type: object
102966102962
TestOptimizationServiceSettingsData:
@@ -102970,7 +102966,7 @@ components:
102970102966
$ref: "#/components/schemas/TestOptimizationServiceSettingsAttributes"
102971102967
id:
102972102968
description: Unique identifier for the service settings.
102973-
example: 9b8a7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
102969+
example: github.com/datadog/shopist::shopist::prod
102974102970
type: string
102975102971
type:
102976102972
$ref: "#/components/schemas/TestOptimizationServiceSettingsType"
@@ -103013,47 +103009,30 @@ components:
103013103009
description: |-
103014103010
Attributes for updating Test Optimization service settings.
103015103011
All non-required fields are optional; only provided fields will be updated.
103016-
Setting a field to `null` is a no-op. To reset a setting to inherit from the repository level, use the corresponding `<setting>_inherit` field.
103017103012
properties:
103018103013
auto_test_retries_enabled:
103019-
description: Whether Auto Test Retries are enabled for this service. Setting to `null` is a no-op; use `auto_test_retries_enabled_inherit` to reset to repository-level inheritance.
103020-
example: false
103021-
type: boolean
103022-
auto_test_retries_enabled_inherit:
103023-
description: When `true`, resets the Auto Test Retries setting to inherit from the repository level.
103014+
description: Whether Auto Test Retries are enabled for this service.
103024103015
example: false
103025103016
type: boolean
103026103017
code_coverage_enabled:
103027-
description: Whether Code Coverage is enabled for this service. Setting to `null` is a no-op; use `code_coverage_enabled_inherit` to reset to repository-level inheritance.
103028-
example: false
103029-
type: boolean
103030-
code_coverage_enabled_inherit:
103031-
description: When `true`, resets the Code Coverage setting to inherit from the repository level.
103018+
description: Whether Code Coverage is enabled for this service.
103032103019
example: false
103033103020
type: boolean
103034103021
early_flake_detection_enabled:
103035-
description: Whether Early Flake Detection is enabled for this service. Setting to `null` is a no-op; use `early_flake_detection_enabled_inherit` to reset to repository-level inheritance.
103036-
example: false
103037-
type: boolean
103038-
early_flake_detection_enabled_inherit:
103039-
description: When `true`, resets the Early Flake Detection setting to inherit from the repository level.
103022+
description: Whether Early Flake Detection is enabled for this service.
103040103023
example: false
103041103024
type: boolean
103042103025
env:
103043103026
description: The environment name. If omitted, defaults to `none`.
103044103027
example: prod
103045103028
type: string
103046103029
failed_test_replay_enabled:
103047-
description: Whether Failed Test Replay is enabled for this service. Setting to `null` is a no-op; use `failed_test_replay_enabled_inherit` to reset to repository-level inheritance.
103048-
example: false
103049-
type: boolean
103050-
failed_test_replay_enabled_inherit:
103051-
description: When `true`, resets the Failed Test Replay setting to inherit from the repository level.
103030+
description: Whether Failed Test Replay is enabled for this service.
103052103031
example: false
103053103032
type: boolean
103054103033
pr_comments_enabled:
103055-
description: This field is ignored. PR Comments cannot be overridden at the service level.
103056-
example: false
103034+
description: Whether PR Comments are enabled for this service.
103035+
example: true
103057103036
type: boolean
103058103037
repository_id:
103059103038
description: The repository identifier.
@@ -103066,12 +103045,8 @@ components:
103066103045
minLength: 1
103067103046
type: string
103068103047
test_impact_analysis_enabled:
103069-
description: Whether Test Impact Analysis is enabled for this service. Setting to `null` is a no-op; use `test_impact_analysis_enabled_inherit` to reset to repository-level inheritance.
103070-
example: true
103071-
type: boolean
103072-
test_impact_analysis_enabled_inherit:
103073-
description: When `true`, resets the Test Impact Analysis setting to inherit from the repository level.
103074-
example: true
103048+
description: Whether Test Impact Analysis is enabled for this service.
103049+
example: false
103075103050
type: boolean
103076103051
required:
103077103052
- repository_id
@@ -121153,9 +121128,7 @@ paths:
121153121128
patch:
121154121129
description: |-
121155121130
Partially update Test Optimization settings for a specific service identified by repository, service name, and environment.
121156-
Only provided fields are updated; setting a field to `null` is a no-op.
121157-
To reset a setting to inherit from the repository level, use the corresponding `<setting>_inherit` field.
121158-
The `pr_comments_enabled` field is ignored as it cannot be overridden at the service level.
121131+
Only provided fields are updated; null or omitted fields are left unchanged.
121159121132
operationId: UpdateTestOptimizationServiceSettings
121160121133
requestBody:
121161121134
content:
@@ -121165,10 +121138,15 @@ paths:
121165121138
value:
121166121139
data:
121167121140
attributes:
121141+
auto_test_retries_enabled: false
121142+
code_coverage_enabled: false
121143+
early_flake_detection_enabled: false
121168121144
env: prod
121145+
failed_test_replay_enabled: false
121146+
pr_comments_enabled: true
121169121147
repository_id: github.com/datadog/test-service
121170121148
service_name: test-service
121171-
test_impact_analysis_enabled_inherit: true
121149+
test_impact_analysis_enabled: false
121172121150
type: test_optimization_update_service_settings_request
121173121151
schema:
121174121152
$ref: "#/components/schemas/TestOptimizationUpdateServiceSettingsRequest"
@@ -121183,20 +121161,15 @@ paths:
121183121161
data:
121184121162
attributes:
121185121163
auto_test_retries_enabled: false
121186-
auto_test_retries_enabled_is_overridden: false
121187121164
code_coverage_enabled: false
121188-
code_coverage_enabled_is_overridden: false
121189121165
early_flake_detection_enabled: false
121190-
early_flake_detection_enabled_is_overridden: false
121191121166
env: prod
121192121167
failed_test_replay_enabled: false
121193-
failed_test_replay_enabled_is_overridden: false
121194-
pr_comments_enabled: false
121168+
pr_comments_enabled: true
121195121169
repository_id: github.com/datadog/test-service
121196121170
service_name: test-service
121197-
test_impact_analysis_enabled: true
121198-
test_impact_analysis_enabled_is_overridden: true
121199-
id: 9b8a7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
121171+
test_impact_analysis_enabled: false
121172+
id: github.com/datadog/test-service::test-service::prod
121200121173
type: test_optimization_service_settings
121201121174
schema:
121202121175
$ref: "#/components/schemas/TestOptimizationServiceSettingsResponse"
@@ -121250,20 +121223,15 @@ paths:
121250121223
data:
121251121224
attributes:
121252121225
auto_test_retries_enabled: false
121253-
auto_test_retries_enabled_is_overridden: false
121254121226
code_coverage_enabled: false
121255-
code_coverage_enabled_is_overridden: false
121256121227
early_flake_detection_enabled: false
121257-
early_flake_detection_enabled_is_overridden: false
121258121228
env: prod
121259121229
failed_test_replay_enabled: false
121260-
failed_test_replay_enabled_is_overridden: false
121261-
pr_comments_enabled: false
121230+
pr_comments_enabled: true
121262121231
repository_id: github.com/datadog/test-service
121263121232
service_name: test-service
121264-
test_impact_analysis_enabled: true
121265-
test_impact_analysis_enabled_is_overridden: true
121266-
id: 9b8a7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
121233+
test_impact_analysis_enabled: false
121234+
id: github.com/datadog/test-service::test-service::prod
121267121235
type: test_optimization_service_settings
121268121236
schema:
121269121237
$ref: "#/components/schemas/TestOptimizationServiceSettingsResponse"
@@ -148590,6 +148558,18 @@ paths:
148590148558
- team:intake
148591148559
- team:app
148592148560
type: archives
148561+
s3_access_key_id:
148562+
value:
148563+
data:
148564+
attributes:
148565+
destination:
148566+
bucket: my-bucket
148567+
integration:
148568+
access_key_id: AKIAIOSFODNN7EXAMPLE
148569+
type: s3
148570+
name: Nginx Archive
148571+
query: source:nginx
148572+
type: archives
148593148573
schema:
148594148574
$ref: "#/components/schemas/LogsArchiveCreateRequest"
148595148575
description: The definition of the new archive.
@@ -148615,6 +148595,21 @@ paths:
148615148595
state: WORKING
148616148596
id: 00000000-0000-0000-0000-000000000002
148617148597
type: archives
148598+
s3_access_key_id:
148599+
value:
148600+
data:
148601+
attributes:
148602+
destination:
148603+
bucket: my-bucket
148604+
integration:
148605+
access_key_id: AKIAIOSFODNN7EXAMPLE
148606+
type: s3
148607+
include_tags: false
148608+
name: Nginx Archive
148609+
query: source:nginx
148610+
state: WORKING
148611+
id: 00000000-0000-0000-0000-000000000002
148612+
type: archives
148618148613
schema:
148619148614
$ref: "#/components/schemas/LogsArchive"
148620148615
description: OK
@@ -148764,6 +148759,18 @@ paths:
148764148759
- team:intake
148765148760
- team:app
148766148761
type: archives
148762+
s3_access_key_id:
148763+
value:
148764+
data:
148765+
attributes:
148766+
destination:
148767+
bucket: my-bucket
148768+
integration:
148769+
access_key_id: AKIAIOSFODNN7EXAMPLE
148770+
type: s3
148771+
name: Nginx Archive
148772+
query: source:nginx
148773+
type: archives
148767148774
schema:
148768148775
$ref: "#/components/schemas/LogsArchiveCreateRequest"
148769148776
description: New definition of the archive.
@@ -148789,6 +148796,21 @@ paths:
148789148796
state: WORKING
148790148797
id: 00000000-0000-0000-0000-000000000004
148791148798
type: archives
148799+
s3_access_key_id:
148800+
value:
148801+
data:
148802+
attributes:
148803+
destination:
148804+
bucket: my-bucket
148805+
integration:
148806+
access_key_id: AKIAIOSFODNN7EXAMPLE
148807+
type: s3
148808+
include_tags: false
148809+
name: Nginx Archive
148810+
query: source:nginx
148811+
state: WORKING
148812+
id: 00000000-0000-0000-0000-000000000004
148813+
type: archives
148792148814
schema:
148793148815
$ref: "#/components/schemas/LogsArchive"
148794148816
description: OK

examples/v2/test-optimization/UpdateTestOptimizationServiceSettings.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,14 @@ public static void main(String[] args) {
2121
.attributes(
2222
new TestOptimizationUpdateServiceSettingsRequestAttributes()
2323
.autoTestRetriesEnabled(false)
24-
.autoTestRetriesEnabledInherit(false)
2524
.codeCoverageEnabled(false)
26-
.codeCoverageEnabledInherit(false)
2725
.earlyFlakeDetectionEnabled(false)
28-
.earlyFlakeDetectionEnabledInherit(false)
2926
.env("prod")
3027
.failedTestReplayEnabled(false)
31-
.failedTestReplayEnabledInherit(false)
32-
.prCommentsEnabled(false)
28+
.prCommentsEnabled(true)
3329
.repositoryId("github.com/datadog/shopist")
3430
.serviceName("shopist")
35-
.testImpactAnalysisEnabled(true)
36-
.testImpactAnalysisEnabledInherit(true))
31+
.testImpactAnalysisEnabled(false))
3732
.type(
3833
TestOptimizationUpdateServiceSettingsRequestDataType
3934
.TEST_OPTIMIZATION_UPDATE_SERVICE_SETTINGS_REQUEST));

src/main/java/com/datadog/api/client/v2/api/TestOptimizationApi.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,10 +1037,8 @@ public TestOptimizationServiceSettingsResponse updateTestOptimizationServiceSett
10371037

10381038
/**
10391039
* Partially update Test Optimization settings for a specific service identified by repository,
1040-
* service name, and environment. Only provided fields are updated; setting a field to <code>null
1041-
* </code> is a no-op. To reset a setting to inherit from the repository level, use the
1042-
* corresponding <code>&lt;setting&gt;_inherit</code> field. The <code>pr_comments_enabled</code>
1043-
* field is ignored as it cannot be overridden at the service level.
1040+
* service name, and environment. Only provided fields are updated; null or omitted fields are
1041+
* left unchanged.
10441042
*
10451043
* @param body (required)
10461044
* @return ApiResponse&lt;TestOptimizationServiceSettingsResponse&gt;

src/main/java/com/datadog/api/client/v2/model/LogsArchiveDestinationS3.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class LogsArchiveDestinationS3 {
3737
private LogsArchiveEncryptionS3 encryption;
3838

3939
public static final String JSON_PROPERTY_INTEGRATION = "integration";
40-
private LogsArchiveIntegrationS3 integration;
40+
private LogsArchiveIntegrationS3 integration = new LogsArchiveIntegrationS3();
4141

4242
public static final String JSON_PROPERTY_PATH = "path";
4343
private String path;
@@ -59,7 +59,6 @@ public LogsArchiveDestinationS3(
5959
LogsArchiveDestinationS3Type type) {
6060
this.bucket = bucket;
6161
this.integration = integration;
62-
this.unparsed |= integration.unparsed;
6362
this.type = type;
6463
this.unparsed |= !type.isValid();
6564
}
@@ -108,12 +107,13 @@ public void setEncryption(LogsArchiveEncryptionS3 encryption) {
108107

109108
public LogsArchiveDestinationS3 integration(LogsArchiveIntegrationS3 integration) {
110109
this.integration = integration;
111-
this.unparsed |= integration.unparsed;
112110
return this;
113111
}
114112

115113
/**
116-
* The S3 Archive's integration destination.
114+
* The S3 Archive's integration destination. You must provide one of the following: <code>
115+
* access_key_id</code> alone, or both <code>account_id</code> and <code>role_name</code>
116+
* together.
117117
*
118118
* @return integration
119119
*/

0 commit comments

Comments
 (0)