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
2 changes: 0 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167286,7 +167286,6 @@ paths:
summary: Get tenancy configs
tags:
- OCI Integration
x-unstable: "**Note**: This endpoint may be subject to changes."
post:
description: >-
Create a new tenancy config to establish monitoring and data collection from your OCI environment. Requires OCI authentication credentials and tenancy details. Warning: Datadog recommends interacting with this endpoint only through the Datadog web UI to ensure all necessary OCI resources have been created and configured properly.
Expand Down Expand Up @@ -167363,7 +167362,6 @@ paths:
summary: Create tenancy config
tags:
- OCI Integration
x-unstable: "**Note**: This endpoint may be subject to changes."
/api/v2/integration/oci/tenancies/{tenancy_ocid}:
delete:
description: >-
Expand Down
1 change: 0 additions & 1 deletion examples/v2/oci-integration/CreateTenancyConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.createTenancyConfig", true);
OciIntegrationApi apiInstance = new OciIntegrationApi(defaultClient);

CreateTenancyConfigRequest body =
Expand Down
1 change: 0 additions & 1 deletion examples/v2/oci-integration/GetTenancyConfigs.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.getTenancyConfigs", true);
OciIntegrationApi apiInstance = new OciIntegrationApi(defaultClient);

try {
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/datadog/api/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -1260,8 +1260,6 @@ public class ApiClient {
put("v2.listJiraAccounts", false);
put("v2.listJiraIssueTemplates", false);
put("v2.updateJiraIssueTemplate", false);
put("v2.createTenancyConfig", false);
put("v2.getTenancyConfigs", false);
put("v2.addRoleToRestrictionQuery", false);
put("v2.createRestrictionQuery", false);
put("v2.deleteRestrictionQuery", false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,6 @@ public CompletableFuture<TenancyConfig> createTenancyConfigAsync(
*/
public ApiResponse<TenancyConfig> createTenancyConfigWithHttpInfo(CreateTenancyConfigRequest body)
throws ApiException {
// Check if unstable operation is enabled
String operationId = "createTenancyConfig";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = body;

// verify the required parameter 'body' is set
Expand Down Expand Up @@ -146,16 +139,6 @@ public ApiResponse<TenancyConfig> createTenancyConfigWithHttpInfo(CreateTenancyC
*/
public CompletableFuture<ApiResponse<TenancyConfig>> createTenancyConfigWithHttpInfoAsync(
CreateTenancyConfigRequest body) {
// Check if unstable operation is enabled
String operationId = "createTenancyConfig";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<TenancyConfig>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = body;

// verify the required parameter 'body' is set
Expand Down Expand Up @@ -512,13 +495,6 @@ public CompletableFuture<TenancyConfigList> getTenancyConfigsAsync() {
* </table>
*/
public ApiResponse<TenancyConfigList> getTenancyConfigsWithHttpInfo() throws ApiException {
// Check if unstable operation is enabled
String operationId = "getTenancyConfigs";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/api/v2/integration/oci/tenancies";
Expand Down Expand Up @@ -553,16 +529,6 @@ public ApiResponse<TenancyConfigList> getTenancyConfigsWithHttpInfo() throws Api
* @return CompletableFuture&lt;ApiResponse&lt;TenancyConfigList&gt;&gt;
*/
public CompletableFuture<ApiResponse<TenancyConfigList>> getTenancyConfigsWithHttpInfoAsync() {
// Check if unstable operation is enabled
String operationId = "getTenancyConfigs";
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
} else {
CompletableFuture<ApiResponse<TenancyConfigList>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
return result;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/api/v2/integration/oci/tenancies";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ Feature: OCI Integration

@generated @skip @team:DataDog/emerging-cloud-integrations
Scenario: Create tenancy config returns "Created" response
Given operation "CreateTenancyConfig" enabled
And new "CreateTenancyConfig" request
Given new "CreateTenancyConfig" request
And body with value {"data": {"attributes": {"auth_credentials": {"fingerprint": "", "private_key": "----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCdvSMmlfLyeD4M\nQsA3WlrWBqKdWa5eVV3/uODyqT3wWMEMIJHcG3/quNs8nh9xrK1/JkQT2qoKEHqR\nC5k59jN6Vp8em8ARJthMgam9K37ELt+IQ/G8ySTSuqZG8T4cHp/cs3fAclNqttOl\nYnGr4RbVAgMBAAECggEAGZNLGbyCUbIRTW6Kh4d8ZVC+eZtJMqGmGJ3KfVaW8Pjn\nQGWfSuJCEe2o2Y8G3phlidFauICnZ44enXA17Rhi+I/whnr7FIyQk2bR7rv+1Uhc\nmOJygWX5eFFMsledgVAdIAl9Luk2nykx7Un3g6rtbl/Vs+5k4m7ITLFMpCHzsJLU\nnm8kBzDOqY2JUkMd08nL88KL6QywWtal05UESzQpNFXd0e5kxYfexeMCsLsWP0mc\nquMLRbn7NuBjCbe9VU2kmIvcfDDaWjurT7d5m1OXx1cc8p6P4PFZTVyCjdhiWOr3\nLQXZ4/vdZNR3zgEHypRoM6D9Yq99LWUOUEMrdiSLQQKBgQDQkh7C1OtAXnpy7F6R\nW+/I3zBHici2p7A57UT7VECQ1IVGg37/uus83DkuOtdZ33JmHLAVrwLFJvUlbyjx\nl6dc/1ms40L5HFdLgaVtd4k0rSPFeOSDr6evz0lX4yBuzlP0fEh+o3XHW7mwe2G+\nrWCULF/Uqza66fjbCSKMNgLIXQKBgQDBm9nZg/s4S0THWCFNWcB1tXBG0p/sH5eY\nPC1H/VmTEINIixStrS4ufczf31X8rcoSjSbO7+vZDTTATdk7OLn1I2uGFVYl8M59\n86BYT2Hi7cwp7YVzOc/cJigVeBAqSRW/iYYyWBEUTiW1gbkV0sRWwhPp67m+c0sP\nXpY/iEZA2QKBgB1w8tynt4l/jKNaUEMOijt9ndALWATIiOy0XG9pxi9rgGCiwTOS\nDBCsOXoYHjv2eayGUijNaoOv6xzcoxfvQ1WySdNIxTRq1ru20kYwgHKqGgmO9hrM\nmcwMY5r/WZ2qjFlPjeAqbL62aPDLidGjoaVo2iIoBPK/gjxQ/5f0MS4N/YQ0zWoYBueSQ0DGs\n-----END PRIVATE KEY-----"}, "config_version": null, "cost_collection_enabled": true, "dd_compartment_id": "ocid.compartment.test", "dd_stack_id": "ocid.stack.test", "home_region": "us-ashburn-1", "logs_config": {"compartment_tag_filters": ["datadog:true", "env:prod"], "enabled": true, "enabled_services": ["service_1", "service_2"]}, "metrics_config": {"compartment_tag_filters": ["datadog:true", "env:prod"], "enabled": true, "excluded_services": ["service_1", "service_2"]}, "regions_config": {"available": ["us-ashburn-1", "us-phoenix-1"], "disabled": ["us-phoenix-1"], "enabled": ["us-ashburn-1"]}, "resource_collection_enabled": true, "user_ocid": "ocid.user.test"}, "id": "ocid.tenancy.test", "type": "oci_tenancy"}}
When the request is sent
Then the response status is 201 Created
Expand All @@ -31,8 +30,7 @@ Feature: OCI Integration

@generated @skip @team:DataDog/emerging-cloud-integrations
Scenario: Get tenancy configs returns "OK" response
Given operation "GetTenancyConfigs" enabled
And new "GetTenancyConfigs" request
Given new "GetTenancyConfigs" request
When the request is sent
Then the response status is 200 OK

Expand Down
Loading