Skip to content

Commit c71f900

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 460691c of spec repo
1 parent 889eabc commit c71f900

21 files changed

Lines changed: 1051 additions & 0 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 271 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,14 @@ components:
435435
schema:
436436
example: "service:myservice"
437437
type: string
438+
EntityIntegrationConfigID:
439+
description: The identifier of the integration whose configuration is being managed. Supported values are `github`, `jira`, and `pagerduty`.
440+
in: path
441+
name: integration_id
442+
required: true
443+
schema:
444+
example: github
445+
type: string
438446
FastlyAccountID:
439447
description: Fastly Account id.
440448
in: path
@@ -26856,6 +26864,103 @@ components:
2685626864
description: Entity.
2685726865
type: string
2685826866
type: object
26867+
EntityIntegrationConfigAttributes:
26868+
description: Attributes of an entity integration configuration resource.
26869+
properties:
26870+
config:
26871+
$ref: "#/components/schemas/EntityIntegrationConfigPayload"
26872+
integration_id:
26873+
description: The identifier of the integration this configuration applies to (for example, `github`, `jira`, or `pagerduty`).
26874+
example: github
26875+
type: string
26876+
org_id:
26877+
description: The Datadog organization identifier that owns this configuration.
26878+
example: 1234
26879+
format: int64
26880+
type: integer
26881+
required:
26882+
- org_id
26883+
- integration_id
26884+
- config
26885+
type: object
26886+
EntityIntegrationConfigData:
26887+
description: JSON:API resource object for an entity integration configuration.
26888+
properties:
26889+
attributes:
26890+
$ref: "#/components/schemas/EntityIntegrationConfigAttributes"
26891+
id:
26892+
description: Unique identifier of the entity integration configuration.
26893+
example: 01HJABCD12345678ABCDEFGHIJ
26894+
type: string
26895+
type:
26896+
$ref: "#/components/schemas/EntityIntegrationConfigType"
26897+
required:
26898+
- id
26899+
- type
26900+
- attributes
26901+
type: object
26902+
EntityIntegrationConfigPayload:
26903+
additionalProperties: {}
26904+
description: Integration-specific configuration payload. The shape of this object depends on the integration identified by the path parameter. For `github`, the object must contain an `enabled_repos` array. For `jira`, it must contain an `enabled_projects` array. For `pagerduty`, it must contain the PagerDuty-specific configuration.
26905+
example:
26906+
enabled_repos:
26907+
- github_org_name: myorg
26908+
hostname: github.com
26909+
repo_name: myrepo
26910+
type: object
26911+
EntityIntegrationConfigRequest:
26912+
description: Request body used to create or replace the configuration for a given integration.
26913+
properties:
26914+
data:
26915+
$ref: "#/components/schemas/EntityIntegrationConfigRequestData"
26916+
required:
26917+
- data
26918+
type: object
26919+
EntityIntegrationConfigRequestAttributes:
26920+
description: Attributes used to create or update an entity integration configuration.
26921+
properties:
26922+
config:
26923+
$ref: "#/components/schemas/EntityIntegrationConfigPayload"
26924+
required:
26925+
- config
26926+
type: object
26927+
EntityIntegrationConfigRequestData:
26928+
description: JSON:API resource object used in a request to update an entity integration configuration.
26929+
properties:
26930+
attributes:
26931+
$ref: "#/components/schemas/EntityIntegrationConfigRequestAttributes"
26932+
type:
26933+
$ref: "#/components/schemas/EntityIntegrationConfigRequestType"
26934+
required:
26935+
- type
26936+
- attributes
26937+
type: object
26938+
EntityIntegrationConfigRequestType:
26939+
default: entity_integration_config_requests
26940+
description: JSON:API resource type for the entity integration configuration update request. Always `entity_integration_config_requests`.
26941+
enum:
26942+
- entity_integration_config_requests
26943+
example: entity_integration_config_requests
26944+
type: string
26945+
x-enum-varnames:
26946+
- ENTITY_INTEGRATION_CONFIG_REQUESTS
26947+
EntityIntegrationConfigResponse:
26948+
description: JSON:API document containing a single entity integration configuration resource.
26949+
properties:
26950+
data:
26951+
$ref: "#/components/schemas/EntityIntegrationConfigData"
26952+
required:
26953+
- data
26954+
type: object
26955+
EntityIntegrationConfigType:
26956+
default: entity_integration_configs
26957+
description: JSON:API resource type for an entity integration configuration. Always `entity_integration_configs`.
26958+
enum:
26959+
- entity_integration_configs
26960+
example: entity_integration_configs
26961+
type: string
26962+
x-enum-varnames:
26963+
- ENTITY_INTEGRATION_CONFIGS
2685926964
EntityMeta:
2686026965
description: Entity metadata.
2686126966
properties:
@@ -113005,6 +113110,170 @@ paths:
113005113110
x-unstable: |-
113006113111
**Note**: This endpoint is in public beta and is subject to change.
113007113112
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
113113+
/api/v2/idp/entity_integrations/{integration_id}:
113114+
delete:
113115+
description: Delete the configuration stored for a given integration in the caller's organization. The integration is identified by the `integration_id` path parameter.
113116+
operationId: DeleteEntityIntegrationConfig
113117+
parameters:
113118+
- $ref: "#/components/parameters/EntityIntegrationConfigID"
113119+
responses:
113120+
"204":
113121+
description: No Content
113122+
"400":
113123+
content:
113124+
application/json:
113125+
schema:
113126+
$ref: "#/components/schemas/JSONAPIErrorResponse"
113127+
description: Bad Request
113128+
"403":
113129+
$ref: "#/components/responses/NotAuthorizedResponse"
113130+
"404":
113131+
content:
113132+
application/json:
113133+
schema:
113134+
$ref: "#/components/schemas/JSONAPIErrorResponse"
113135+
description: Not Found
113136+
"429":
113137+
$ref: "#/components/responses/TooManyRequestsResponse"
113138+
summary: Delete an entity integration configuration
113139+
tags:
113140+
- Entity Integration Configs
113141+
x-permission:
113142+
operator: OR
113143+
permissions:
113144+
- manage_integrations
113145+
x-unstable: |-
113146+
**Note**: This endpoint is in preview and is subject to change.
113147+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
113148+
get:
113149+
description: Retrieve the configuration currently stored for a given integration in the caller's organization. The integration is identified by the `integration_id` path parameter.
113150+
operationId: GetEntityIntegrationConfig
113151+
parameters:
113152+
- $ref: "#/components/parameters/EntityIntegrationConfigID"
113153+
responses:
113154+
"200":
113155+
content:
113156+
application/json:
113157+
example:
113158+
data:
113159+
attributes:
113160+
config:
113161+
enabled_repos:
113162+
- github_org_name: myorg
113163+
hostname: github.com
113164+
repo_name: myrepo
113165+
integration_id: github
113166+
org_id: 1234
113167+
id: 01HJABCD12345678ABCDEFGHIJ
113168+
type: entity_integration_configs
113169+
schema:
113170+
$ref: "#/components/schemas/EntityIntegrationConfigResponse"
113171+
description: OK
113172+
"400":
113173+
content:
113174+
application/json:
113175+
schema:
113176+
$ref: "#/components/schemas/JSONAPIErrorResponse"
113177+
description: Bad Request
113178+
"403":
113179+
$ref: "#/components/responses/NotAuthorizedResponse"
113180+
"404":
113181+
content:
113182+
application/json:
113183+
schema:
113184+
$ref: "#/components/schemas/JSONAPIErrorResponse"
113185+
description: Not Found
113186+
"429":
113187+
$ref: "#/components/responses/TooManyRequestsResponse"
113188+
summary: Get an entity integration configuration
113189+
tags:
113190+
- Entity Integration Configs
113191+
x-permission:
113192+
operator: OR
113193+
permissions:
113194+
- integrations_read
113195+
x-unstable: |-
113196+
**Note**: This endpoint is in preview and is subject to change.
113197+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
113198+
put:
113199+
description: |-
113200+
Create or replace the configuration for a given integration in the caller's organization. The integration is identified by the `integration_id` path parameter. The shape of `data.attributes.config` depends on the integration:
113201+
113202+
- For `github`: `config` must contain an `enabled_repos` array of objects with `hostname`, `github_org_name`, and `repo_name`.
113203+
- For `jira`: `config` must contain an `enabled_projects` array of objects with `hostname`, `account_id`, and `project_key`.
113204+
- For `pagerduty`: `config` must follow the PagerDuty-specific schema.
113205+
operationId: UpdateEntityIntegrationConfig
113206+
parameters:
113207+
- $ref: "#/components/parameters/EntityIntegrationConfigID"
113208+
requestBody:
113209+
content:
113210+
application/json:
113211+
examples:
113212+
default:
113213+
summary: GitHub integration configuration
113214+
value:
113215+
data:
113216+
attributes:
113217+
config:
113218+
enabled_repos:
113219+
- github_org_name: myorg
113220+
hostname: github.com
113221+
repo_name: myrepo
113222+
type: entity_integration_config_requests
113223+
jira:
113224+
summary: Jira integration configuration
113225+
value:
113226+
data:
113227+
attributes:
113228+
config:
113229+
enabled_projects:
113230+
- account_id: "123456789"
113231+
hostname: mycompany.atlassian.net
113232+
project_key: AAA
113233+
type: entity_integration_config_requests
113234+
schema:
113235+
$ref: "#/components/schemas/EntityIntegrationConfigRequest"
113236+
required: true
113237+
responses:
113238+
"200":
113239+
content:
113240+
application/json:
113241+
example:
113242+
data:
113243+
attributes:
113244+
config:
113245+
enabled_repos:
113246+
- github_org_name: myorg
113247+
hostname: github.com
113248+
repo_name: myrepo
113249+
integration_id: github
113250+
org_id: 1234
113251+
id: 01HJABCD12345678ABCDEFGHIJ
113252+
type: entity_integration_configs
113253+
schema:
113254+
$ref: "#/components/schemas/EntityIntegrationConfigResponse"
113255+
description: OK
113256+
"400":
113257+
content:
113258+
application/json:
113259+
schema:
113260+
$ref: "#/components/schemas/JSONAPIErrorResponse"
113261+
description: Bad Request
113262+
"403":
113263+
$ref: "#/components/responses/NotAuthorizedResponse"
113264+
"429":
113265+
$ref: "#/components/responses/TooManyRequestsResponse"
113266+
summary: Update an entity integration configuration
113267+
tags:
113268+
- Entity Integration Configs
113269+
x-codegen-request-body-name: body
113270+
x-permission:
113271+
operator: OR
113272+
permissions:
113273+
- integrations_read
113274+
x-unstable: |-
113275+
**Note**: This endpoint is in preview and is subject to change.
113276+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
113008113277
/api/v2/incidents:
113009113278
get:
113010113279
description: >-
@@ -159452,6 +159721,8 @@ tags:
159452159721
scopes from alerting. Downtime settings, which can be scheduled with start and
159453159722
end times, prevent all alerting related to specified Datadog tags.
159454159723
name: Downtimes
159724+
- description: Manage per-integration configurations for the Internal Developer Portal (IDP). These configurations control which external resources (for example, GitHub repositories, Jira projects, or PagerDuty services) are synced as entities into the Software Catalog.
159725+
name: Entity Integration Configs
159455159726
- description: Retrieves security risk scores for entities in your organization.
159456159727
name: Entity Risk Scores
159457159728
- description: View and manage issues within Error Tracking. See the [Error Tracking page](https://docs.datadoghq.com/error_tracking/) for more information.

docs/datadog_api_client.v2.api.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,13 @@ datadog\_api\_client.v2.api.downtimes\_api module
284284
:members:
285285
:show-inheritance:
286286

287+
datadog\_api\_client.v2.api.entity\_integration\_configs\_api module
288+
--------------------------------------------------------------------
289+
290+
.. automodule:: datadog_api_client.v2.api.entity_integration_configs_api
291+
:members:
292+
:show-inheritance:
293+
287294
datadog\_api\_client.v2.api.entity\_risk\_scores\_api module
288295
------------------------------------------------------------
289296

docs/datadog_api_client.v2.model.rst

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11015,6 +11015,69 @@ datadog\_api\_client.v2.model.entity\_data module
1101511015
:members:
1101611016
:show-inheritance:
1101711017

11018+
datadog\_api\_client.v2.model.entity\_integration\_config\_attributes module
11019+
----------------------------------------------------------------------------
11020+
11021+
.. automodule:: datadog_api_client.v2.model.entity_integration_config_attributes
11022+
:members:
11023+
:show-inheritance:
11024+
11025+
datadog\_api\_client.v2.model.entity\_integration\_config\_data module
11026+
----------------------------------------------------------------------
11027+
11028+
.. automodule:: datadog_api_client.v2.model.entity_integration_config_data
11029+
:members:
11030+
:show-inheritance:
11031+
11032+
datadog\_api\_client.v2.model.entity\_integration\_config\_payload module
11033+
-------------------------------------------------------------------------
11034+
11035+
.. automodule:: datadog_api_client.v2.model.entity_integration_config_payload
11036+
:members:
11037+
:show-inheritance:
11038+
11039+
datadog\_api\_client.v2.model.entity\_integration\_config\_request module
11040+
-------------------------------------------------------------------------
11041+
11042+
.. automodule:: datadog_api_client.v2.model.entity_integration_config_request
11043+
:members:
11044+
:show-inheritance:
11045+
11046+
datadog\_api\_client.v2.model.entity\_integration\_config\_request\_attributes module
11047+
-------------------------------------------------------------------------------------
11048+
11049+
.. automodule:: datadog_api_client.v2.model.entity_integration_config_request_attributes
11050+
:members:
11051+
:show-inheritance:
11052+
11053+
datadog\_api\_client.v2.model.entity\_integration\_config\_request\_data module
11054+
-------------------------------------------------------------------------------
11055+
11056+
.. automodule:: datadog_api_client.v2.model.entity_integration_config_request_data
11057+
:members:
11058+
:show-inheritance:
11059+
11060+
datadog\_api\_client.v2.model.entity\_integration\_config\_request\_type module
11061+
-------------------------------------------------------------------------------
11062+
11063+
.. automodule:: datadog_api_client.v2.model.entity_integration_config_request_type
11064+
:members:
11065+
:show-inheritance:
11066+
11067+
datadog\_api\_client.v2.model.entity\_integration\_config\_response module
11068+
--------------------------------------------------------------------------
11069+
11070+
.. automodule:: datadog_api_client.v2.model.entity_integration_config_response
11071+
:members:
11072+
:show-inheritance:
11073+
11074+
datadog\_api\_client.v2.model.entity\_integration\_config\_type module
11075+
----------------------------------------------------------------------
11076+
11077+
.. automodule:: datadog_api_client.v2.model.entity_integration_config_type
11078+
:members:
11079+
:show-inheritance:
11080+
1101811081
datadog\_api\_client.v2.model.entity\_meta module
1101911082
-------------------------------------------------
1102011083

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""
2+
Delete an entity integration configuration returns "No Content" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.entity_integration_configs_api import EntityIntegrationConfigsApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["delete_entity_integration_config"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = EntityIntegrationConfigsApi(api_client)
12+
api_instance.delete_entity_integration_config(
13+
integration_id="github",
14+
)

0 commit comments

Comments
 (0)