Skip to content

Commit 2096d4d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 8cd544c of spec repo (#3906)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent cacdea3 commit 2096d4d

182 files changed

Lines changed: 1206 additions & 202 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.generator/schemas/v2/openapi.yaml

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,14 @@ components:
296296
schema:
297297
format: int64
298298
type: integer
299+
CloudInventorySyncConfigID:
300+
description: Unique identifier of the Storage Management configuration.
301+
example: abc123
302+
in: path
303+
name: id
304+
required: true
305+
schema:
306+
type: string
299307
CloudWorkloadSecurityAgentRuleID:
300308
description: "The ID of the Agent rule"
301309
example: 3b5-v82-ns6
@@ -55624,6 +55632,7 @@ components:
5562455632
- $ref: "#/components/schemas/ObservabilityPipelineSyslogNgDestination"
5562555633
- $ref: "#/components/schemas/ObservabilityPipelineDatabricksZerobusDestination"
5562655634
- $ref: "#/components/schemas/ObservabilityPipelineDatadogMetricsDestination"
55635+
- $ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestination"
5562755636
ObservabilityPipelineConfigPipelineType:
5562855637
default: logs
5562955638
description: The type of data being ingested. Defaults to `logs` if not specified.
@@ -59745,6 +59754,81 @@ components:
5974559754
type: string
5974659755
x-enum-varnames:
5974759756
- SPLUNK_HEC
59757+
ObservabilityPipelineSplunkHecMetricsDestination:
59758+
description: |-
59759+
The `splunk_hec_metrics` destination forwards metrics to Splunk using the HTTP Event Collector (HEC).
59760+
59761+
**Supported pipeline types:** metrics
59762+
properties:
59763+
buffer:
59764+
$ref: "#/components/schemas/ObservabilityPipelineBufferOptions"
59765+
compression:
59766+
$ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestinationCompression"
59767+
default_namespace:
59768+
description: Optional default namespace for metrics sent to Splunk HEC.
59769+
example: "custom_namespace"
59770+
type: string
59771+
endpoint_url_key:
59772+
description: Name of the environment variable or secret that holds the Splunk HEC endpoint URL.
59773+
example: SPLUNK_HEC_ENDPOINT_URL
59774+
type: string
59775+
id:
59776+
description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
59777+
example: splunk-hec-metrics-destination
59778+
type: string
59779+
index:
59780+
description: Optional name of the Splunk index where metrics are written.
59781+
example: "metrics"
59782+
type: string
59783+
inputs:
59784+
description: A list of component IDs whose output is used as the `input` for this component.
59785+
example: ["metrics-filter-processor"]
59786+
items:
59787+
description: The ID of a component whose output is used as input for this destination.
59788+
type: string
59789+
type: array
59790+
source:
59791+
description: The Splunk source field value for metric events.
59792+
example: "observability_pipelines"
59793+
type: string
59794+
sourcetype:
59795+
description: The Splunk sourcetype to assign to metric events.
59796+
example: "custom_sourcetype"
59797+
type: string
59798+
tls:
59799+
$ref: "#/components/schemas/ObservabilityPipelineTls"
59800+
token_key:
59801+
description: Name of the environment variable or secret that holds the Splunk HEC token.
59802+
example: SPLUNK_HEC_TOKEN
59803+
type: string
59804+
type:
59805+
$ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestinationType"
59806+
required:
59807+
- id
59808+
- type
59809+
- inputs
59810+
type: object
59811+
x-pipeline-types: [metrics]
59812+
ObservabilityPipelineSplunkHecMetricsDestinationCompression:
59813+
default: none
59814+
description: Compression algorithm applied when sending metrics to Splunk HEC.
59815+
enum:
59816+
- none
59817+
- gzip
59818+
example: none
59819+
type: string
59820+
x-enum-varnames:
59821+
- NONE
59822+
- GZIP
59823+
ObservabilityPipelineSplunkHecMetricsDestinationType:
59824+
default: splunk_hec_metrics
59825+
description: The destination type. Always `splunk_hec_metrics`.
59826+
enum:
59827+
- splunk_hec_metrics
59828+
example: splunk_hec_metrics
59829+
type: string
59830+
x-enum-varnames:
59831+
- SPLUNK_HEC_METRICS
5974859832
ObservabilityPipelineSplunkHecSource:
5974959833
description: |-
5975059834
The `splunk_hec` source implements the Splunk HTTP Event Collector (HEC) API.
@@ -107705,6 +107789,33 @@ paths:
107705107789
operator: OR
107706107790
permissions:
107707107791
- aws_configurations_manage
107792+
/api/v2/cloudinventoryservice/syncconfigs/{id}:
107793+
delete:
107794+
description: |-
107795+
Delete a Storage Management configuration by its unique identifier. Deleting a configuration stops inventory file synchronization for the associated cloud account.
107796+
operationId: DeleteSyncConfig
107797+
parameters:
107798+
- $ref: "#/components/parameters/CloudInventorySyncConfigID"
107799+
responses:
107800+
"204":
107801+
description: No Content
107802+
"403":
107803+
$ref: "#/components/responses/ForbiddenResponse"
107804+
"404":
107805+
content:
107806+
application/json:
107807+
schema:
107808+
$ref: "#/components/schemas/JSONAPIErrorResponse"
107809+
description: Not Found
107810+
"429":
107811+
$ref: "#/components/responses/TooManyRequestsResponse"
107812+
summary: Delete a Storage Management configuration
107813+
tags:
107814+
- Storage Management
107815+
"x-permission":
107816+
operator: OR
107817+
permissions:
107818+
- aws_configurations_manage
107708107819
/api/v2/code-coverage/branch/summary:
107709107820
post:
107710107821
description: |-
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Delete a Storage Management configuration returns "No Content" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.StorageManagementApi;
6+
7+
public class Example {
8+
public static void main(String[] args) {
9+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
10+
StorageManagementApi apiInstance = new StorageManagementApi(defaultClient);
11+
12+
try {
13+
apiInstance.deleteSyncConfig("abc123");
14+
} catch (ApiException e) {
15+
System.err.println("Exception when calling StorageManagementApi#deleteSyncConfig");
16+
System.err.println("Status code: " + e.getCode());
17+
System.err.println("Reason: " + e.getResponseBody());
18+
System.err.println("Response headers: " + e.getResponseHeaders());
19+
e.printStackTrace();
20+
}
21+
}
22+
}

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

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,139 @@ public void setApiClient(ApiClient apiClient) {
4444
this.apiClient = apiClient;
4545
}
4646

47+
/**
48+
* Delete a Storage Management configuration.
49+
*
50+
* <p>See {@link #deleteSyncConfigWithHttpInfo}.
51+
*
52+
* @param id Unique identifier of the Storage Management configuration. (required)
53+
* @throws ApiException if fails to make API call
54+
*/
55+
public void deleteSyncConfig(String id) throws ApiException {
56+
deleteSyncConfigWithHttpInfo(id);
57+
}
58+
59+
/**
60+
* Delete a Storage Management configuration.
61+
*
62+
* <p>See {@link #deleteSyncConfigWithHttpInfoAsync}.
63+
*
64+
* @param id Unique identifier of the Storage Management configuration. (required)
65+
* @return CompletableFuture
66+
*/
67+
public CompletableFuture<Void> deleteSyncConfigAsync(String id) {
68+
return deleteSyncConfigWithHttpInfoAsync(id)
69+
.thenApply(
70+
response -> {
71+
return response.getData();
72+
});
73+
}
74+
75+
/**
76+
* Delete a Storage Management configuration by its unique identifier. Deleting a configuration
77+
* stops inventory file synchronization for the associated cloud account.
78+
*
79+
* @param id Unique identifier of the Storage Management configuration. (required)
80+
* @return ApiResponse&lt;Void&gt;
81+
* @throws ApiException if fails to make API call
82+
* @http.response.details
83+
* <table border="1">
84+
* <caption>Response details</caption>
85+
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
86+
* <tr><td> 204 </td><td> No Content </td><td> - </td></tr>
87+
* <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
88+
* <tr><td> 404 </td><td> Not Found </td><td> - </td></tr>
89+
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
90+
* </table>
91+
*/
92+
public ApiResponse<Void> deleteSyncConfigWithHttpInfo(String id) throws ApiException {
93+
Object localVarPostBody = null;
94+
95+
// verify the required parameter 'id' is set
96+
if (id == null) {
97+
throw new ApiException(
98+
400, "Missing the required parameter 'id' when calling deleteSyncConfig");
99+
}
100+
// create path and map variables
101+
String localVarPath =
102+
"/api/v2/cloudinventoryservice/syncconfigs/{id}"
103+
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
104+
105+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
106+
107+
Invocation.Builder builder =
108+
apiClient.createBuilder(
109+
"v2.StorageManagementApi.deleteSyncConfig",
110+
localVarPath,
111+
new ArrayList<Pair>(),
112+
localVarHeaderParams,
113+
new HashMap<String, String>(),
114+
new String[] {"*/*"},
115+
new String[] {"apiKeyAuth", "appKeyAuth"});
116+
return apiClient.invokeAPI(
117+
"DELETE",
118+
builder,
119+
localVarHeaderParams,
120+
new String[] {},
121+
localVarPostBody,
122+
new HashMap<String, Object>(),
123+
false,
124+
null);
125+
}
126+
127+
/**
128+
* Delete a Storage Management configuration.
129+
*
130+
* <p>See {@link #deleteSyncConfigWithHttpInfo}.
131+
*
132+
* @param id Unique identifier of the Storage Management configuration. (required)
133+
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
134+
*/
135+
public CompletableFuture<ApiResponse<Void>> deleteSyncConfigWithHttpInfoAsync(String id) {
136+
Object localVarPostBody = null;
137+
138+
// verify the required parameter 'id' is set
139+
if (id == null) {
140+
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
141+
result.completeExceptionally(
142+
new ApiException(
143+
400, "Missing the required parameter 'id' when calling deleteSyncConfig"));
144+
return result;
145+
}
146+
// create path and map variables
147+
String localVarPath =
148+
"/api/v2/cloudinventoryservice/syncconfigs/{id}"
149+
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
150+
151+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
152+
153+
Invocation.Builder builder;
154+
try {
155+
builder =
156+
apiClient.createBuilder(
157+
"v2.StorageManagementApi.deleteSyncConfig",
158+
localVarPath,
159+
new ArrayList<Pair>(),
160+
localVarHeaderParams,
161+
new HashMap<String, String>(),
162+
new String[] {"*/*"},
163+
new String[] {"apiKeyAuth", "appKeyAuth"});
164+
} catch (ApiException ex) {
165+
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
166+
result.completeExceptionally(ex);
167+
return result;
168+
}
169+
return apiClient.invokeAPIAsync(
170+
"DELETE",
171+
builder,
172+
localVarHeaderParams,
173+
new String[] {},
174+
localVarPostBody,
175+
new HashMap<String, Object>(),
176+
false,
177+
null);
178+
}
179+
47180
/**
48181
* Enable Storage Management for a bucket.
49182
*

0 commit comments

Comments
 (0)