Skip to content

Commit cd3d0f9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit cce07864 of spec repo
1 parent 9e98b6c commit cd3d0f9

File tree

29 files changed

+1959
-4
lines changed

29 files changed

+1959
-4
lines changed

.apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.4",
7-
"regenerated": "2023-02-15 14:54:20.667520",
8-
"spec_repo_commit": "3371aaa2"
7+
"regenerated": "2023-02-15 18:05:58.755211",
8+
"spec_repo_commit": "cce07864"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-02-15 14:54:20.679789",
13-
"spec_repo_commit": "3371aaa2"
12+
"regenerated": "2023-02-15 18:05:58.767399",
13+
"spec_repo_commit": "cce07864"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+192
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,15 @@ components:
347347
example: 10
348348
format: int64
349349
type: integer
350+
ResourceID:
351+
description: 'Identifier, formatted as `type:id`. Supported types: `connection`,
352+
`dashboard`, `notebook`, `security-rule`.'
353+
example: dashboard:abc-def-ghi
354+
in: path
355+
name: resource_id
356+
required: true
357+
schema:
358+
type: string
350359
RoleID:
351360
description: The unique identifier of the role.
352361
in: path
@@ -9010,6 +9019,91 @@ components:
90109019
page:
90119020
$ref: '#/components/schemas/Pagination'
90129021
type: object
9022+
RestrictionPolicy:
9023+
description: Restriction policy object.
9024+
properties:
9025+
attributes:
9026+
$ref: '#/components/schemas/RestrictionPolicyAttributes'
9027+
id:
9028+
description: The identifier, always equivalent to the value specified in
9029+
the `resource_id` path parameter.
9030+
example: dashboard:abc-def-ghi
9031+
type: string
9032+
type:
9033+
$ref: '#/components/schemas/RestrictionPolicyType'
9034+
required:
9035+
- type
9036+
- id
9037+
- attributes
9038+
type: object
9039+
RestrictionPolicyAttributes:
9040+
description: Restriction policy attributes.
9041+
example:
9042+
bindings: []
9043+
properties:
9044+
bindings:
9045+
description: An array of bindings.
9046+
items:
9047+
$ref: '#/components/schemas/RestrictionPolicyBinding'
9048+
type: array
9049+
required:
9050+
- bindings
9051+
type: object
9052+
RestrictionPolicyBinding:
9053+
description: Specifies which principals are associated with a relation.
9054+
properties:
9055+
principals:
9056+
description: 'An array of principals. A principal is a subject or group
9057+
of subjects.
9058+
9059+
Each principal is formatted as `type:id`. Supported types: `role`, `user`,
9060+
`org`.
9061+
9062+
The org ID can be obtained through the api/v2/current_user API.'
9063+
example:
9064+
- role:00000000-0000-1111-0000-000000000000
9065+
items:
9066+
description: 'Subject or group of subjects. Each principal is formatted
9067+
as `type:id`.
9068+
9069+
Supported types: `role`, `user`, `org`.
9070+
9071+
The org ID can be obtained through the api/v2/current_user API.'
9072+
type: string
9073+
type: array
9074+
relation:
9075+
description: The role/level of access.
9076+
example: editor
9077+
type: string
9078+
required:
9079+
- relation
9080+
- principals
9081+
type: object
9082+
RestrictionPolicyResponse:
9083+
description: Response containing information about a single restriction policy.
9084+
properties:
9085+
data:
9086+
$ref: '#/components/schemas/RestrictionPolicy'
9087+
required:
9088+
- data
9089+
type: object
9090+
RestrictionPolicyType:
9091+
default: restriction_policy
9092+
description: Restriction policy type.
9093+
enum:
9094+
- restriction_policy
9095+
example: restriction_policy
9096+
type: string
9097+
x-enum-varnames:
9098+
- RESTRICTION_POLICY
9099+
RestrictionPolicyUpdateRequest:
9100+
description: Update request for a restriction policy.
9101+
properties:
9102+
data:
9103+
$ref: '#/components/schemas/RestrictionPolicy'
9104+
required:
9105+
- data
9106+
type: object
90139107
Role:
90149108
description: Role object returned by the API.
90159109
properties:
@@ -16998,6 +17092,96 @@ paths:
1699817092
any
1699917093

1700017094
feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
17095+
/api/v2/restriction_policy/{resource_id}:
17096+
delete:
17097+
description: Deletes the restriction policy associated with a specified resource.
17098+
operationId: DeleteRestrictionPolicy
17099+
parameters:
17100+
- $ref: '#/components/parameters/ResourceID'
17101+
responses:
17102+
'204':
17103+
description: No Content
17104+
'400':
17105+
$ref: '#/components/responses/BadRequestResponse'
17106+
'403':
17107+
$ref: '#/components/responses/NotAuthorizedResponse'
17108+
'429':
17109+
$ref: '#/components/responses/TooManyRequestsResponse'
17110+
security:
17111+
- apiKeyAuth: []
17112+
appKeyAuth: []
17113+
summary: Delete a restriction policy
17114+
tags:
17115+
- Restriction Policies
17116+
get:
17117+
description: Retrieves the restriction policy associated with a specified resource.
17118+
operationId: GetRestrictionPolicy
17119+
parameters:
17120+
- $ref: '#/components/parameters/ResourceID'
17121+
responses:
17122+
'200':
17123+
content:
17124+
application/json:
17125+
schema:
17126+
$ref: '#/components/schemas/RestrictionPolicyResponse'
17127+
description: OK
17128+
'400':
17129+
$ref: '#/components/responses/BadRequestResponse'
17130+
'403':
17131+
$ref: '#/components/responses/NotAuthorizedResponse'
17132+
'429':
17133+
$ref: '#/components/responses/TooManyRequestsResponse'
17134+
security:
17135+
- apiKeyAuth: []
17136+
appKeyAuth: []
17137+
summary: Get a restriction policy
17138+
tags:
17139+
- Restriction Policies
17140+
post:
17141+
description: 'Updates the restriction policy associated with a resource.
17142+
17143+
17144+
#### Supported resources
17145+
17146+
Restriction policies can be applied to the following resources:
17147+
17148+
- Connections: `connection`
17149+
17150+
- Dashboards: `dashboard`
17151+
17152+
- Notebooks: `notebook`
17153+
17154+
- Security Rules: `security-rule`'
17155+
operationId: UpdateRestrictionPolicy
17156+
parameters:
17157+
- $ref: '#/components/parameters/ResourceID'
17158+
requestBody:
17159+
content:
17160+
application/json:
17161+
schema:
17162+
$ref: '#/components/schemas/RestrictionPolicyUpdateRequest'
17163+
description: Restriction policy payload
17164+
required: true
17165+
responses:
17166+
'200':
17167+
content:
17168+
application/json:
17169+
schema:
17170+
$ref: '#/components/schemas/RestrictionPolicyResponse'
17171+
description: OK
17172+
'400':
17173+
$ref: '#/components/responses/BadRequestResponse'
17174+
'403':
17175+
$ref: '#/components/responses/NotAuthorizedResponse'
17176+
'429':
17177+
$ref: '#/components/responses/TooManyRequestsResponse'
17178+
security:
17179+
- apiKeyAuth: []
17180+
appKeyAuth: []
17181+
summary: Update a restriction policy
17182+
tags:
17183+
- Restriction Policies
17184+
x-codegen-request-body-name: body
1700117185
/api/v2/roles:
1700217186
get:
1700317187
description: Returns all roles, including their names and their unique identifiers.
@@ -20733,6 +20917,14 @@ tags:
2073320917
name: Processes
2073420918
- description: Search or aggregate your RUM events over HTTP.
2073520919
name: RUM
20920+
- description: 'A restriction policy defines the access control rules for a resource,
20921+
mapping a set of relations
20922+
20923+
(such as editor and viewer) to a set of allowed principals (such as roles). The
20924+
restriction policy
20925+
20926+
determines who is authorized to perform what actions on the resource.'
20927+
name: Restriction Policies
2073620928
- description: 'The Roles API is used to create and manage Datadog roles, what
2073720929

2073820930
[global permissions](https://docs.datadoghq.com/account_management/rbac/)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2023-02-14T03:05:45.303Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"log": {
3+
"_recordingName": "Restriction Policies/Delete a restriction policy returns \"Bad Request\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "4ddab8f7ae87af5cac8c08861a72fc22",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 0,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "*/*"
22+
}
23+
],
24+
"headersSize": 521,
25+
"httpVersion": "HTTP/1.1",
26+
"method": "DELETE",
27+
"queryString": [],
28+
"url": "https://api.datadoghq.com/api/v2/restriction_policy/malformed"
29+
},
30+
"response": {
31+
"bodySize": 69,
32+
"content": {
33+
"mimeType": "application/json",
34+
"size": 69,
35+
"text": "{\"errors\":[\"Invalid resource: 'malformed' is not in a valid format\"]}"
36+
},
37+
"cookies": [],
38+
"headers": [
39+
{
40+
"name": "content-type",
41+
"value": "application/json"
42+
}
43+
],
44+
"headersSize": 673,
45+
"httpVersion": "HTTP/1.1",
46+
"redirectURL": "",
47+
"status": 400,
48+
"statusText": "Bad Request"
49+
},
50+
"startedDateTime": "2023-02-14T03:05:45.319Z",
51+
"time": 596
52+
}
53+
],
54+
"pages": [],
55+
"version": "1.2"
56+
}
57+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2023-02-14T03:05:45.924Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"log": {
3+
"_recordingName": "Restriction Policies/Delete a restriction policy returns \"No Content\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "33483023f65befaa604cec3dec861c4f",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 0,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "*/*"
22+
}
23+
],
24+
"headersSize": 536,
25+
"httpVersion": "HTTP/1.1",
26+
"method": "DELETE",
27+
"queryString": [],
28+
"url": "https://api.datadoghq.com/api/v2/restriction_policy/dashboard%3Aabc-def-ghi"
29+
},
30+
"response": {
31+
"bodySize": 0,
32+
"content": {
33+
"mimeType": "application/json",
34+
"size": 0
35+
},
36+
"cookies": [],
37+
"headers": [
38+
{
39+
"name": "content-type",
40+
"value": "application/json"
41+
}
42+
],
43+
"headersSize": 610,
44+
"httpVersion": "HTTP/1.1",
45+
"redirectURL": "",
46+
"status": 204,
47+
"statusText": "No Content"
48+
},
49+
"startedDateTime": "2023-02-14T03:05:45.929Z",
50+
"time": 381
51+
}
52+
],
53+
"pages": [],
54+
"version": "1.2"
55+
}
56+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2023-02-08T21:43:23.653Z"

0 commit comments

Comments
 (0)