Skip to content

Commit 615c8b3

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 3f4709b of spec repo
1 parent 9b3f2ec commit 615c8b3

15 files changed

+1632
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 269 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17289,6 +17289,92 @@ components:
1728917289
- score
1729017290
- severity
1729117291
type: object
17292+
Email:
17293+
description: On-Call User Email.
17294+
example:
17295+
data:
17296+
attributes:
17297+
active: true
17298+
17299+
alias: ''
17300+
formats:
17301+
- html
17302+
id: 45cd9fe5-dd96-42ad-83de-2242ea9f6efd
17303+
type: emails
17304+
properties:
17305+
data:
17306+
$ref: '#/components/schemas/EmailData'
17307+
type: object
17308+
EmailAttributes:
17309+
description: Attributes for an on-call email.
17310+
properties:
17311+
active:
17312+
description: Whether the email is currently active.
17313+
type: boolean
17314+
address:
17315+
description: Email address.
17316+
type: string
17317+
alias:
17318+
description: Optional display alias for the email.
17319+
type: string
17320+
formats:
17321+
description: Preferred content formats for notifications.
17322+
items:
17323+
type: string
17324+
type: array
17325+
type: object
17326+
EmailCreateRequest:
17327+
description: Request body for creating an On-Call email notification channel.
17328+
example:
17329+
data:
17330+
attributes:
17331+
active: true
17332+
17333+
alias: ''
17334+
formats:
17335+
- html
17336+
type: emails
17337+
properties:
17338+
data:
17339+
$ref: '#/components/schemas/EmailData'
17340+
type: object
17341+
EmailData:
17342+
description: Data for an on-call email resource.
17343+
properties:
17344+
attributes:
17345+
$ref: '#/components/schemas/EmailAttributes'
17346+
id:
17347+
description: The email's unique identifier.
17348+
type: string
17349+
type:
17350+
$ref: '#/components/schemas/EmailType'
17351+
required:
17352+
- type
17353+
type: object
17354+
EmailType:
17355+
default: emails
17356+
description: Indicates that the resource is of type 'emails'.
17357+
enum:
17358+
- emails
17359+
example: emails
17360+
type: string
17361+
x-enum-varnames:
17362+
- EMAILS
17363+
EmailUpdateRequest:
17364+
description: Request body for updating an On-Call email notification channel.
17365+
example:
17366+
data:
17367+
attributes:
17368+
active: true
17369+
17370+
alias: ''
17371+
formats:
17372+
- html
17373+
type: emails
17374+
properties:
17375+
data:
17376+
$ref: '#/components/schemas/EmailData'
17377+
type: object
1729217378
Enabled:
1729317379
description: Field used to enable or disable the rule.
1729417380
example: true
@@ -71866,6 +71952,189 @@ paths:
7186671952
operator: AND
7186771953
permissions:
7186871954
- on_call_write
71955+
/api/v2/on-call/users/{user_id}/notification-channels/emails:
71956+
post:
71957+
description: Create a new email notification channel for an on-call user
71958+
operationId: CreateUserEmailNotificationChannel
71959+
parameters:
71960+
- description: The user ID
71961+
in: path
71962+
name: user_id
71963+
required: true
71964+
schema:
71965+
example: 00000000-0000-0000-0000-000000000000
71966+
type: string
71967+
requestBody:
71968+
content:
71969+
application/json:
71970+
schema:
71971+
$ref: '#/components/schemas/EmailCreateRequest'
71972+
required: true
71973+
responses:
71974+
'201':
71975+
description: Created
71976+
'400':
71977+
$ref: '#/components/responses/BadRequestResponse'
71978+
'401':
71979+
$ref: '#/components/responses/UnauthorizedResponse'
71980+
'403':
71981+
$ref: '#/components/responses/ForbiddenResponse'
71982+
'404':
71983+
$ref: '#/components/responses/NotFoundResponse'
71984+
'429':
71985+
$ref: '#/components/responses/TooManyRequestsResponse'
71986+
security:
71987+
- apiKeyAuth: []
71988+
appKeyAuth: []
71989+
- AuthZ: []
71990+
summary: Create an On-Call email for a user
71991+
tags:
71992+
- On-Call
71993+
x-permission:
71994+
operator: AND
71995+
permissions:
71996+
- on_call_admin
71997+
/api/v2/on-call/users/{user_id}/notification-channels/emails/{email_id}:
71998+
delete:
71999+
description: Delete an email notification channel for an on-call user
72000+
operationId: DeleteUserEmailNotificationChannel
72001+
parameters:
72002+
- description: The user ID
72003+
in: path
72004+
name: user_id
72005+
required: true
72006+
schema:
72007+
example: 00000000-0000-0000-0000-000000000000
72008+
type: string
72009+
- description: The email ID
72010+
in: path
72011+
name: email_id
72012+
required: true
72013+
schema:
72014+
example: 45bb8fe5-dd96-42ad-83de-2241ea9f6ffc
72015+
type: string
72016+
responses:
72017+
'204':
72018+
description: No Content
72019+
'400':
72020+
$ref: '#/components/responses/BadRequestResponse'
72021+
'401':
72022+
$ref: '#/components/responses/UnauthorizedResponse'
72023+
'403':
72024+
$ref: '#/components/responses/ForbiddenResponse'
72025+
'404':
72026+
$ref: '#/components/responses/NotFoundResponse'
72027+
'429':
72028+
$ref: '#/components/responses/TooManyRequestsResponse'
72029+
security:
72030+
- apiKeyAuth: []
72031+
appKeyAuth: []
72032+
- AuthZ: []
72033+
summary: Delete an On-Call email for a user
72034+
tags:
72035+
- On-Call
72036+
x-permission:
72037+
operator: AND
72038+
permissions:
72039+
- on_call_admin
72040+
get:
72041+
description: Get an email notification channel for an on-call user
72042+
operationId: GetUserEmailNotificationChannel
72043+
parameters:
72044+
- description: The user ID
72045+
in: path
72046+
name: user_id
72047+
required: true
72048+
schema:
72049+
example: 00000000-0000-0000-0000-000000000000
72050+
type: string
72051+
- description: The email ID
72052+
in: path
72053+
name: email_id
72054+
required: true
72055+
schema:
72056+
example: 45bb8fe5-dd96-42ad-83de-2241ea9f6ffc
72057+
type: string
72058+
responses:
72059+
'200':
72060+
content:
72061+
application/json:
72062+
schema:
72063+
$ref: '#/components/schemas/Email'
72064+
description: OK
72065+
'400':
72066+
$ref: '#/components/responses/BadRequestResponse'
72067+
'401':
72068+
$ref: '#/components/responses/UnauthorizedResponse'
72069+
'403':
72070+
$ref: '#/components/responses/ForbiddenResponse'
72071+
'404':
72072+
$ref: '#/components/responses/NotFoundResponse'
72073+
'429':
72074+
$ref: '#/components/responses/TooManyRequestsResponse'
72075+
security:
72076+
- apiKeyAuth: []
72077+
appKeyAuth: []
72078+
- AuthZ: []
72079+
summary: Get an On-Call email for a user
72080+
tags:
72081+
- On-Call
72082+
x-permission:
72083+
operator: AND
72084+
permissions:
72085+
- on_call_admin
72086+
put:
72087+
description: Update an email notification channel for an on-call user
72088+
operationId: UpdateUserEmailNotificationChannel
72089+
parameters:
72090+
- description: The user ID
72091+
in: path
72092+
name: user_id
72093+
required: true
72094+
schema:
72095+
example: 00000000-0000-0000-0000-000000000000
72096+
type: string
72097+
- description: The email ID
72098+
in: path
72099+
name: email_id
72100+
required: true
72101+
schema:
72102+
example: 45bb8fe5-dd96-42ad-83de-2241ea9f6ffc
72103+
type: string
72104+
requestBody:
72105+
content:
72106+
application/json:
72107+
schema:
72108+
$ref: '#/components/schemas/EmailUpdateRequest'
72109+
required: true
72110+
responses:
72111+
'200':
72112+
content:
72113+
application/json:
72114+
schema:
72115+
$ref: '#/components/schemas/Email'
72116+
description: OK
72117+
'400':
72118+
$ref: '#/components/responses/BadRequestResponse'
72119+
'401':
72120+
$ref: '#/components/responses/UnauthorizedResponse'
72121+
'403':
72122+
$ref: '#/components/responses/ForbiddenResponse'
72123+
'404':
72124+
$ref: '#/components/responses/NotFoundResponse'
72125+
'429':
72126+
$ref: '#/components/responses/TooManyRequestsResponse'
72127+
security:
72128+
- apiKeyAuth: []
72129+
appKeyAuth: []
72130+
- AuthZ: []
72131+
summary: Update an On-Call email for a user
72132+
tags:
72133+
- On-Call
72134+
x-permission:
72135+
operator: AND
72136+
permissions:
72137+
- on_call_admin
7186972138
/api/v2/org_configs:
7187072139
get:
7187172140
description: Returns all Org Configs (name, description, and value).

0 commit comments

Comments
 (0)