Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -791,11 +791,6 @@ components:
items:
$ref: "#/components/schemas/ResourceProviderConfig"
type: array
secretless_auth_enabled:
description: |-
(Preview) When enabled, Datadog authenticates with this app registration using federated workload identity credentials instead of a client secret.
example: true
type: boolean
tenant_name:
description: Your Azure Active Directory ID.
example: "testc44-1234-5678-9101-cc00736ftest"
Expand Down
154 changes: 154 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6369,6 +6369,62 @@ components:
type: string
x-enum-varnames:
- ARBITRARY_RULE
ArbitraryRuleStatusResponseArray:
description: The definition of `ArbitraryRuleStatusResponseArray` object.
example:
data:
- attributes:
processing_status: processing
id: "123"
type: arbitrary_rule_status
- attributes:
processing_status: done
id: "456"
type: arbitrary_rule_status
properties:
data:
description: The `ArbitraryRuleStatusResponseArray` `data`.
items:
$ref: "#/components/schemas/ArbitraryRuleStatusResponseData"
type: array
required:
- data
type: object
ArbitraryRuleStatusResponseData:
description: The definition of `ArbitraryRuleStatusResponseData` object.
properties:
attributes:
$ref: "#/components/schemas/ArbitraryRuleStatusResponseDataAttributes"
id:
description: The unique identifier of the custom allocation rule.
example: "123"
type: string
type:
$ref: "#/components/schemas/ArbitraryRuleStatusResponseDataType"
required:
- id
- type
- attributes
type: object
ArbitraryRuleStatusResponseDataAttributes:
description: The definition of `ArbitraryRuleStatusResponseDataAttributes` object.
properties:
processing_status:
description: The processing status of the custom allocation rule.
example: processing
type: string
required:
- processing_status
type: object
ArbitraryRuleStatusResponseDataType:
default: arbitrary_rule_status
description: Arbitrary rule status resource type.
enum:
- arbitrary_rule_status
example: arbitrary_rule_status
type: string
x-enum-varnames:
- ARBITRARY_RULE_STATUS
Argument:
description: A named argument for a custom static analysis rule.
properties:
Expand Down Expand Up @@ -60338,6 +60394,62 @@ components:
type: string
x-enum-varnames:
- RULESET
RulesetStatusRespArray:
description: The definition of `RulesetStatusRespArray` object.
example:
data:
- attributes:
processing_status: processing
id: 55ef2385-9ae1-4410-90c4-5ac1b60fec10
type: ruleset_status
- attributes:
processing_status: done
id: a7b8c9d0-1234-5678-9abc-def012345678
type: ruleset_status
properties:
data:
description: The `RulesetStatusRespArray` `data`.
items:
$ref: "#/components/schemas/RulesetStatusRespData"
type: array
required:
- data
type: object
RulesetStatusRespData:
description: The definition of `RulesetStatusRespData` object.
properties:
attributes:
$ref: "#/components/schemas/RulesetStatusRespDataAttributes"
id:
description: The unique identifier of the ruleset.
example: 55ef2385-9ae1-4410-90c4-5ac1b60fec10
type: string
type:
$ref: "#/components/schemas/RulesetStatusRespDataType"
required:
- id
- type
- attributes
type: object
RulesetStatusRespDataAttributes:
description: The definition of `RulesetStatusRespDataAttributes` object.
properties:
processing_status:
description: The processing status of the ruleset.
example: processing
type: string
required:
- processing_status
type: object
RulesetStatusRespDataType:
default: ruleset_status
description: Ruleset status resource type.
enum:
- ruleset_status
example: ruleset_status
type: string
x-enum-varnames:
- RULESET_STATUS
RumCrossProductSampling:
description: The configuration for cross-product retention filters.
properties:
Expand Down Expand Up @@ -92445,6 +92557,27 @@ paths:
summary: Reorder custom allocation rules
tags:
- Cloud Cost Management
/api/v2/cost/arbitrary_rule/status:
get:
description: List the processing status of all custom allocation rules. Returns only the ID and processing status for each rule.
operationId: ListCustomAllocationRulesStatus
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/ArbitraryRuleStatusResponseArray"
description: OK
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cloud_cost_management_read
summary: List custom allocation rules status
tags:
- Cloud Cost Management
/api/v2/cost/arbitrary_rule/{rule_id}:
delete:
description: Delete a custom allocation rule - Delete an existing custom allocation rule by its ID
Expand Down Expand Up @@ -131002,6 +131135,27 @@ paths:
summary: Reorder tag pipeline rulesets
tags:
- Cloud Cost Management
/api/v2/tags/enrichment/status:
get:
description: List the processing status of all tag pipeline rulesets. Returns only the ID and processing status for each ruleset.
operationId: ListTagPipelinesRulesetsStatus
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/RulesetStatusRespArray"
description: OK
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cloud_cost_management_read
summary: List tag pipeline rulesets status
tags:
- Cloud Cost Management
/api/v2/tags/enrichment/validate-query:
post:
description: Validate a tag pipeline query - Validate the syntax and structure of a tag pipeline query
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public static void main(String[] args) {
new ResourceProviderConfig()
.metricsEnabled(true)
.namespace("Microsoft.Compute")))
.secretlessAuthEnabled(true)
.tenantName("testc44-1234-5678-9101-cc00736ftest")
.usageMetricsEnabled(true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public static void main(String[] args) {
.newClientId("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d")
.newTenantName("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d")
.resourceCollectionEnabled(true)
.secretlessAuthEnabled(true)
.tenantName("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d");

try {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// List custom allocation rules status returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.CloudCostManagementApi;
import com.datadog.api.client.v2.model.ArbitraryRuleStatusResponseArray;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
CloudCostManagementApi apiInstance = new CloudCostManagementApi(defaultClient);

try {
ArbitraryRuleStatusResponseArray result = apiInstance.listCustomAllocationRulesStatus();
System.out.println(result);
} catch (ApiException e) {
System.err.println(
"Exception when calling CloudCostManagementApi#listCustomAllocationRulesStatus");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// List tag pipeline rulesets status returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.CloudCostManagementApi;
import com.datadog.api.client.v2.model.RulesetStatusRespArray;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
CloudCostManagementApi apiInstance = new CloudCostManagementApi(defaultClient);

try {
RulesetStatusRespArray result = apiInstance.listTagPipelinesRulesetsStatus();
System.out.println(result);
} catch (ApiException e) {
System.err.println(
"Exception when calling CloudCostManagementApi#listTagPipelinesRulesetsStatus");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
31 changes: 0 additions & 31 deletions src/main/java/com/datadog/api/client/v1/model/AzureAccount.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
AzureAccount.JSON_PROPERTY_NEW_TENANT_NAME,
AzureAccount.JSON_PROPERTY_RESOURCE_COLLECTION_ENABLED,
AzureAccount.JSON_PROPERTY_RESOURCE_PROVIDER_CONFIGS,
AzureAccount.JSON_PROPERTY_SECRETLESS_AUTH_ENABLED,
AzureAccount.JSON_PROPERTY_TENANT_NAME,
AzureAccount.JSON_PROPERTY_USAGE_METRICS_ENABLED
})
Expand Down Expand Up @@ -89,9 +88,6 @@ public class AzureAccount {
public static final String JSON_PROPERTY_RESOURCE_PROVIDER_CONFIGS = "resource_provider_configs";
private List<ResourceProviderConfig> resourceProviderConfigs = null;

public static final String JSON_PROPERTY_SECRETLESS_AUTH_ENABLED = "secretless_auth_enabled";
private Boolean secretlessAuthEnabled;

public static final String JSON_PROPERTY_TENANT_NAME = "tenant_name";
private String tenantName;

Expand Down Expand Up @@ -442,28 +438,6 @@ public void setResourceProviderConfigs(List<ResourceProviderConfig> resourceProv
this.resourceProviderConfigs = resourceProviderConfigs;
}

public AzureAccount secretlessAuthEnabled(Boolean secretlessAuthEnabled) {
this.secretlessAuthEnabled = secretlessAuthEnabled;
return this;
}

/**
* (Preview) When enabled, Datadog authenticates with this app registration using federated
* workload identity credentials instead of a client secret.
*
* @return secretlessAuthEnabled
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SECRETLESS_AUTH_ENABLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getSecretlessAuthEnabled() {
return secretlessAuthEnabled;
}

public void setSecretlessAuthEnabled(Boolean secretlessAuthEnabled) {
this.secretlessAuthEnabled = secretlessAuthEnabled;
}

public AzureAccount tenantName(String tenantName) {
this.tenantName = tenantName;
return this;
Expand Down Expand Up @@ -577,7 +551,6 @@ public boolean equals(Object o) {
&& Objects.equals(this.newTenantName, azureAccount.newTenantName)
&& Objects.equals(this.resourceCollectionEnabled, azureAccount.resourceCollectionEnabled)
&& Objects.equals(this.resourceProviderConfigs, azureAccount.resourceProviderConfigs)
&& Objects.equals(this.secretlessAuthEnabled, azureAccount.secretlessAuthEnabled)
&& Objects.equals(this.tenantName, azureAccount.tenantName)
&& Objects.equals(this.usageMetricsEnabled, azureAccount.usageMetricsEnabled)
&& Objects.equals(this.additionalProperties, azureAccount.additionalProperties);
Expand All @@ -601,7 +574,6 @@ public int hashCode() {
newTenantName,
resourceCollectionEnabled,
resourceProviderConfigs,
secretlessAuthEnabled,
tenantName,
usageMetricsEnabled,
additionalProperties);
Expand Down Expand Up @@ -638,9 +610,6 @@ public String toString() {
sb.append(" resourceProviderConfigs: ")
.append(toIndentedString(resourceProviderConfigs))
.append("\n");
sb.append(" secretlessAuthEnabled: ")
.append(toIndentedString(secretlessAuthEnabled))
.append("\n");
sb.append(" tenantName: ").append(toIndentedString(tenantName)).append("\n");
sb.append(" usageMetricsEnabled: ")
.append(toIndentedString(usageMetricsEnabled))
Expand Down
Loading
Loading