Skip to content

Commit

Permalink
Regenerate client from commit 563aad27 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Dec 20, 2024
1 parent 19ead28 commit 13309c6
Show file tree
Hide file tree
Showing 63 changed files with 490 additions and 888 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-12-19 07:26:20.419256",
"spec_repo_commit": "5dd2cbe4"
"regenerated": "2024-12-20 21:52:20.267003",
"spec_repo_commit": "563aad27"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-12-19 07:26:20.435562",
"spec_repo_commit": "5dd2cbe4"
"regenerated": "2024-12-20 21:52:20.281787",
"spec_repo_commit": "563aad27"
}
}
}
114 changes: 46 additions & 68 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1615,34 +1615,6 @@ components:
type: string
x-enum-varnames:
- apm_retention_filter
AppBuilderError:
description: The definition of `AppBuilderError` object.
properties:
errors:
description: The `AppBuilderError` `errors`.
items:
$ref: '#/components/schemas/AppBuilderErrorErrorsItems'
type: array
type: object
AppBuilderErrorErrorsItems:
description: The definition of `AppBuilderErrorErrorsItems` object.
properties:
detail:
description: The `items` `detail`.
type: string
source:
$ref: '#/components/schemas/AppBuilderErrorErrorsItemsSource'
type: object
AppBuilderErrorErrorsItemsSource:
description: The definition of `AppBuilderErrorErrorsItemsSource` object.
properties:
parameter:
description: The `source` `parameter`.
type: string
pointer:
description: The `source` `pointer`.
type: string
type: object
AppBuilderEvent:
additionalProperties: {}
description: The definition of `AppBuilderEvent` object.
Expand Down Expand Up @@ -30153,19 +30125,19 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
description: Forbidden, e.g. missing permissions to delete one or more apps
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Not Found
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
Expand Down Expand Up @@ -30196,19 +30168,19 @@ paths:
schema:
format: int64
type: integer
- description: The `AppsFilter` `user_name`.
- description: Filter apps by the app creator. Usually the user's email
in: query
name: filter[user_name]
required: false
schema:
type: string
- description: The `AppsFilter` `user_uuid`.
- description: Filter apps by the app creator's UUID
in: query
name: filter[user_uuid]
required: false
schema:
type: string
- description: The `AppsFilter` `name`.
- description: Filter by app name
in: query
name: filter[name]
required: false
Expand All @@ -30220,25 +30192,32 @@ paths:
required: false
schema:
type: string
- description: The `AppsFilter` `deployed`.
- description: Filter apps by whether they are published
in: query
name: filter[deployed]
required: false
schema:
type: boolean
- description: The `AppsFilter` `tags`.
- description: Filter apps by tags
in: query
name: filter[tags]
required: false
schema:
type: string
- description: The `AppsFilter` `favorite`.
- description: Filter apps by whether you have added them to your favorites
in: query
name: filter[favorite]
required: false
schema:
type: boolean
- explode: false
- description: Filter apps by whether they are enabled for self-service
in: query
name: filter[self_service]
required: false
schema:
type: boolean
- description: The fields and direction to sort apps by
explode: false
in: query
name: sort
required: false
Expand All @@ -30258,13 +30237,13 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
description: Bad Request, e.g. invalid sort parameter
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Forbidden
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
Expand Down Expand Up @@ -30297,15 +30276,14 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
description: Forbidden, e.g. missing required permissions to a connection
or workflow used in the app
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Forbidden
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Create App
Expand Down Expand Up @@ -30340,25 +30318,25 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Not Found
'410':
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Gone
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
Expand Down Expand Up @@ -30391,19 +30369,19 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Not Found
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
Expand Down Expand Up @@ -30443,15 +30421,14 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
description: Forbidden, e.g. missing required permissions to a connection
or workflow used in the app
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Forbidden
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Update App
Expand Down Expand Up @@ -30486,25 +30463,25 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Not Found
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Disable App
tags:
- App Deployment
- Apps
x-permission:
operator: OR
permissions:
Expand All @@ -30531,25 +30508,25 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/AppBuilderError'
$ref: '#/components/schemas/JSONAPIErrorResponse'
description: Not Found
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Deploy App
tags:
- App Deployment
- Apps
x-permission:
operator: OR
permissions:
Expand Down Expand Up @@ -46584,9 +46561,10 @@ tags:
externalDocs:
url: https://docs.datadoghq.com/integrations/amazon_web_services/#log-collection
name: AWS Logs Integration
- description: Deploy and disable apps in App Builder.
name: App Deployment
- description: Create, read, update, and delete apps in App Builder.
- description: Datadog App Builder provides a low-code solution to rapidly develop
and integrate secure, customized applications into your monitoring stack that
are built to accelerate remediation at scale. These API endpoints allow you to
create, read, update, delete, and publish apps.
name: Apps
- description: Search your Audit Logs events over HTTP.
name: Audit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Deploy App returns "Created" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_app_deployment::AppDeploymentAPI;
use datadog_api_client::datadogV2::api_apps::AppsAPI;

#[tokio::main]
async fn main() {
// there is a valid "app" in the system
let app_data_id = std::env::var("APP_DATA_ID").unwrap();
let mut configuration = datadog::Configuration::new();
configuration.set_unstable_operation_enabled("v2.DeployApp", true);
let api = AppDeploymentAPI::with_config(configuration);
let api = AppsAPI::with_config(configuration);
let resp = api.deploy_app(app_data_id.clone()).await;
if let Ok(value) = resp {
println!("{:#?}", value);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Disable App returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_app_deployment::AppDeploymentAPI;
use datadog_api_client::datadogV2::api_apps::AppsAPI;

#[tokio::main]
async fn main() {
// there is a valid "app" in the system
let app_data_id = std::env::var("APP_DATA_ID").unwrap();
let mut configuration = datadog::Configuration::new();
configuration.set_unstable_operation_enabled("v2.DisableApp", true);
let api = AppDeploymentAPI::with_config(configuration);
let api = AppsAPI::with_config(configuration);
let resp = api.disable_app(app_data_id.clone()).await;
if let Ok(value) = resp {
println!("{:#?}", value);
Expand Down
4 changes: 2 additions & 2 deletions src/datadog/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ impl Default for Configuration {
("v2.create_app".to_owned(), false),
("v2.delete_app".to_owned(), false),
("v2.delete_apps".to_owned(), false),
("v2.deploy_app".to_owned(), false),
("v2.disable_app".to_owned(), false),
("v2.get_app".to_owned(), false),
("v2.list_apps".to_owned(), false),
("v2.update_app".to_owned(), false),
("v2.deploy_app".to_owned(), false),
("v2.disable_app".to_owned(), false),
("v2.get_active_billing_dimensions".to_owned(), false),
("v2.get_billing_dimension_mapping".to_owned(), false),
("v2.get_monthly_cost_attribution".to_owned(), false),
Expand Down
Loading

0 comments on commit 13309c6

Please sign in to comment.