Skip to content

Commit 829507f

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit dcd9b7c of spec repo (#4455)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 49d30b9 commit 829507f

141 files changed

Lines changed: 11439 additions & 81 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.generator/schemas/v2/openapi.yaml

Lines changed: 1702 additions & 81 deletions
Large diffs are not rendered by default.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
@endpoint(identity-providers) @endpoint(identity-providers-v2)
2+
Feature: Identity Providers
3+
Manage identity providers and user authentication method overrides.
4+
5+
Background:
6+
Given a valid "apiKeyAuth" key in the system
7+
And a valid "appKeyAuth" key in the system
8+
And an instance of "IdentityProviders" API
9+
10+
@generated @skip @team:DataDog/delegated-auth-login
11+
Scenario: List identity providers returns "OK" response
12+
Given new "ListIdentityProviders" request
13+
When the request is sent
14+
Then the response status is 200 OK
15+
16+
@generated @skip @team:DataDog/delegated-auth-login
17+
Scenario: List users with an identity provider override returns "Bad Request" response
18+
Given new "ListIdentityProviderUsers" request
19+
And request contains "idp_id" parameter from "REPLACE.ME"
20+
When the request is sent
21+
Then the response status is 400 Bad Request
22+
23+
@generated @skip @team:DataDog/delegated-auth-login
24+
Scenario: List users with an identity provider override returns "Not found" response
25+
Given new "ListIdentityProviderUsers" request
26+
And request contains "idp_id" parameter from "REPLACE.ME"
27+
When the request is sent
28+
Then the response status is 404 Not found
29+
30+
@generated @skip @team:DataDog/delegated-auth-login
31+
Scenario: List users with an identity provider override returns "OK" response
32+
Given new "ListIdentityProviderUsers" request
33+
And request contains "idp_id" parameter from "REPLACE.ME"
34+
When the request is sent
35+
Then the response status is 200 OK
36+
37+
@generated @skip @team:DataDog/delegated-auth-login @with-pagination
38+
Scenario: List users with an identity provider override returns "OK" response with pagination
39+
Given new "ListIdentityProviderUsers" request
40+
And request contains "idp_id" parameter from "REPLACE.ME"
41+
When the request with pagination is sent
42+
Then the response status is 200 OK
43+
44+
@generated @skip @team:DataDog/delegated-auth-login
45+
Scenario: Update an identity provider returns "Bad Request" response
46+
Given new "UpdateIdentityProvider" request
47+
And request contains "idp_id" parameter from "REPLACE.ME"
48+
And body with value {"data": {"attributes": {"enabled": true}, "id": "00000000-0000-0000-0000-000000000001", "type": "identity_providers"}}
49+
When the request is sent
50+
Then the response status is 400 Bad Request
51+
52+
@generated @skip @team:DataDog/delegated-auth-login
53+
Scenario: Update an identity provider returns "Not found" response
54+
Given new "UpdateIdentityProvider" request
55+
And request contains "idp_id" parameter from "REPLACE.ME"
56+
And body with value {"data": {"attributes": {"enabled": true}, "id": "00000000-0000-0000-0000-000000000001", "type": "identity_providers"}}
57+
When the request is sent
58+
Then the response status is 404 Not found
59+
60+
@generated @skip @team:DataDog/delegated-auth-login
61+
Scenario: Update an identity provider returns "OK" response
62+
Given new "UpdateIdentityProvider" request
63+
And request contains "idp_id" parameter from "REPLACE.ME"
64+
And body with value {"data": {"attributes": {"enabled": true}, "id": "00000000-0000-0000-0000-000000000001", "type": "identity_providers"}}
65+
When the request is sent
66+
Then the response status is 200 OK
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
@endpoint(org-authorized-clients) @endpoint(org-authorized-clients-v2)
2+
Feature: Org Authorized Clients
3+
Manage OAuth2 client authorizations at the organization level.
4+
5+
Background:
6+
Given a valid "apiKeyAuth" key in the system
7+
And a valid "appKeyAuth" key in the system
8+
And an instance of "OrgAuthorizedClients" API
9+
10+
@generated @skip @team:DataDog/delegated-auth-login
11+
Scenario: Delete a user authorization for a client returns "No Content" response
12+
Given new "DeleteOrgAuthorizedClientUserAuthorization" request
13+
And request contains "org_authorized_client_id" parameter from "REPLACE.ME"
14+
And request contains "user_authorized_client_id" parameter from "REPLACE.ME"
15+
When the request is sent
16+
Then the response status is 204 No Content
17+
18+
@generated @skip @team:DataDog/delegated-auth-login
19+
Scenario: Delete a user authorization for a client returns "Not Found" response
20+
Given new "DeleteOrgAuthorizedClientUserAuthorization" request
21+
And request contains "org_authorized_client_id" parameter from "REPLACE.ME"
22+
And request contains "user_authorized_client_id" parameter from "REPLACE.ME"
23+
When the request is sent
24+
Then the response status is 404 Not Found
25+
26+
@generated @skip @team:DataDog/delegated-auth-login
27+
Scenario: Delete a user's authorizations for a client returns "No Content" response
28+
Given new "DeleteOrgAuthorizedClientAllUserAuthorizations" request
29+
And request contains "org_authorized_client_id" parameter from "REPLACE.ME"
30+
And request contains "user_id" parameter from "REPLACE.ME"
31+
When the request is sent
32+
Then the response status is 204 No Content
33+
34+
@generated @skip @team:DataDog/delegated-auth-login
35+
Scenario: Delete a user's authorizations for a client returns "Not Found" response
36+
Given new "DeleteOrgAuthorizedClientAllUserAuthorizations" request
37+
And request contains "org_authorized_client_id" parameter from "REPLACE.ME"
38+
And request contains "user_id" parameter from "REPLACE.ME"
39+
When the request is sent
40+
Then the response status is 404 Not Found
41+
42+
@generated @skip @team:DataDog/delegated-auth-login
43+
Scenario: Delete an org authorized client returns "No Content" response
44+
Given new "DeleteOrgAuthorizedClient" request
45+
And request contains "org_authorized_client_id" parameter from "REPLACE.ME"
46+
When the request is sent
47+
Then the response status is 204 No Content
48+
49+
@generated @skip @team:DataDog/delegated-auth-login
50+
Scenario: Delete an org authorized client returns "Not Found" response
51+
Given new "DeleteOrgAuthorizedClient" request
52+
And request contains "org_authorized_client_id" parameter from "REPLACE.ME"
53+
When the request is sent
54+
Then the response status is 404 Not Found
55+
56+
@generated @skip @team:DataDog/delegated-auth-login
57+
Scenario: Get an org authorized client returns "Not Found" response
58+
Given new "GetOrgAuthorizedClient" request
59+
And request contains "org_authorized_client_id" parameter from "REPLACE.ME"
60+
When the request is sent
61+
Then the response status is 404 Not Found
62+
63+
@generated @skip @team:DataDog/delegated-auth-login
64+
Scenario: Get an org authorized client returns "OK" response
65+
Given new "GetOrgAuthorizedClient" request
66+
And request contains "org_authorized_client_id" parameter from "REPLACE.ME"
67+
When the request is sent
68+
Then the response status is 200 OK
69+
70+
@generated @skip @team:DataDog/delegated-auth-login
71+
Scenario: List org authorized clients returns "OK" response
72+
Given new "ListOrgAuthorizedClients" request
73+
When the request is sent
74+
Then the response status is 200 OK
75+
76+
@generated @skip @team:DataDog/delegated-auth-login @with-pagination
77+
Scenario: List org authorized clients returns "OK" response with pagination
78+
Given new "ListOrgAuthorizedClients" request
79+
When the request with pagination is sent
80+
Then the response status is 200 OK
81+
82+
@generated @skip @team:DataDog/delegated-auth-login
83+
Scenario: List user authorizations for a client returns "Not Found" response
84+
Given new "ListOrgAuthorizedClientUserAuthorizations" request
85+
And request contains "org_authorized_client_id" parameter from "REPLACE.ME"
86+
When the request is sent
87+
Then the response status is 404 Not Found
88+
89+
@generated @skip @team:DataDog/delegated-auth-login
90+
Scenario: List user authorizations for a client returns "OK" response
91+
Given new "ListOrgAuthorizedClientUserAuthorizations" request
92+
And request contains "org_authorized_client_id" parameter from "REPLACE.ME"
93+
When the request is sent
94+
Then the response status is 200 OK
95+
96+
@generated @skip @team:DataDog/delegated-auth-login @with-pagination
97+
Scenario: List user authorizations for a client returns "OK" response with pagination
98+
Given new "ListOrgAuthorizedClientUserAuthorizations" request
99+
And request contains "org_authorized_client_id" parameter from "REPLACE.ME"
100+
When the request with pagination is sent
101+
Then the response status is 200 OK
102+
103+
@generated @skip @team:DataDog/delegated-auth-login
104+
Scenario: Update an org authorized client returns "Bad Request" response
105+
Given new "UpdateOrgAuthorizedClient" request
106+
And request contains "org_authorized_client_id" parameter from "REPLACE.ME"
107+
And body with value {"data": {"attributes": {"disabled": true}, "id": "00000000-0000-0000-0000-000000000001", "type": "org_authorized_clients"}}
108+
When the request is sent
109+
Then the response status is 400 Bad Request
110+
111+
@generated @skip @team:DataDog/delegated-auth-login
112+
Scenario: Update an org authorized client returns "Not Found" response
113+
Given new "UpdateOrgAuthorizedClient" request
114+
And request contains "org_authorized_client_id" parameter from "REPLACE.ME"
115+
And body with value {"data": {"attributes": {"disabled": true}, "id": "00000000-0000-0000-0000-000000000001", "type": "org_authorized_clients"}}
116+
When the request is sent
117+
Then the response status is 404 Not Found
118+
119+
@generated @skip @team:DataDog/delegated-auth-login
120+
Scenario: Update an org authorized client returns "OK" response
121+
Given new "UpdateOrgAuthorizedClient" request
122+
And request contains "org_authorized_client_id" parameter from "REPLACE.ME"
123+
And body with value {"data": {"attributes": {"disabled": true}, "id": "00000000-0000-0000-0000-000000000001", "type": "org_authorized_clients"}}
124+
When the request is sent
125+
Then the response status is 200 OK
126+
127+
@generated @skip @team:DataDog/delegated-auth-login
128+
Scenario: Update an org authorized client returns "Unprocessable Entity" response
129+
Given new "UpdateOrgAuthorizedClient" request
130+
And request contains "org_authorized_client_id" parameter from "REPLACE.ME"
131+
And body with value {"data": {"attributes": {"disabled": true}, "id": "00000000-0000-0000-0000-000000000001", "type": "org_authorized_clients"}}
132+
When the request is sent
133+
Then the response status is 422 Unprocessable Entity

features/v2/undo.json

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2830,6 +2830,25 @@
28302830
"type": "unsafe"
28312831
}
28322832
},
2833+
"ListIdentityProviders": {
2834+
"tag": "Identity Providers",
2835+
"undo": {
2836+
"type": "safe"
2837+
}
2838+
},
2839+
"UpdateIdentityProvider": {
2840+
"tag": "Identity Providers",
2841+
"undo": {
2842+
"operationId": "ListIdentityProviders",
2843+
"type": "idempotent"
2844+
}
2845+
},
2846+
"ListIdentityProviderUsers": {
2847+
"tag": "Identity Providers",
2848+
"undo": {
2849+
"type": "safe"
2850+
}
2851+
},
28332852
"DeleteEntityIntegrationConfig": {
28342853
"tag": "Entity Integration Configs",
28352854
"undo": {
@@ -5682,6 +5701,52 @@
56825701
"type": "idempotent"
56835702
}
56845703
},
5704+
"ListOrgAuthorizedClients": {
5705+
"tag": "Org Authorized Clients",
5706+
"undo": {
5707+
"type": "safe"
5708+
}
5709+
},
5710+
"DeleteOrgAuthorizedClient": {
5711+
"tag": "Org Authorized Clients",
5712+
"undo": {
5713+
"operationId": "ListOrgAuthorizedClients",
5714+
"type": "idempotent"
5715+
}
5716+
},
5717+
"GetOrgAuthorizedClient": {
5718+
"tag": "Org Authorized Clients",
5719+
"undo": {
5720+
"type": "safe"
5721+
}
5722+
},
5723+
"UpdateOrgAuthorizedClient": {
5724+
"tag": "Org Authorized Clients",
5725+
"undo": {
5726+
"operationId": "ListOrgAuthorizedClients",
5727+
"type": "idempotent"
5728+
}
5729+
},
5730+
"DeleteOrgAuthorizedClientAllUserAuthorizations": {
5731+
"tag": "Org Authorized Clients",
5732+
"undo": {
5733+
"operationId": "ListOrgAuthorizedClientUserAuthorizations",
5734+
"type": "idempotent"
5735+
}
5736+
},
5737+
"ListOrgAuthorizedClientUserAuthorizations": {
5738+
"tag": "Org Authorized Clients",
5739+
"undo": {
5740+
"type": "safe"
5741+
}
5742+
},
5743+
"DeleteOrgAuthorizedClientUserAuthorization": {
5744+
"tag": "Org Authorized Clients",
5745+
"undo": {
5746+
"operationId": "ListOrgAuthorizedClientUserAuthorizations",
5747+
"type": "idempotent"
5748+
}
5749+
},
56855750
"ListOrgConfigs": {
56865751
"tag": "Organizations",
56875752
"undo": {
@@ -9349,6 +9414,32 @@
93499414
"type": "safe"
93509415
}
93519416
},
9417+
"ListUserAuthorizedClients": {
9418+
"tag": "User Authorized Clients",
9419+
"undo": {
9420+
"type": "safe"
9421+
}
9422+
},
9423+
"DeleteUserAuthorizedClientsByClient": {
9424+
"tag": "User Authorized Clients",
9425+
"undo": {
9426+
"operationId": "ListUserAuthorizedClients",
9427+
"type": "idempotent"
9428+
}
9429+
},
9430+
"DeleteUserAuthorizedClient": {
9431+
"tag": "User Authorized Clients",
9432+
"undo": {
9433+
"operationId": "ListUserAuthorizedClients",
9434+
"type": "idempotent"
9435+
}
9436+
},
9437+
"GetUserAuthorizedClient": {
9438+
"tag": "User Authorized Clients",
9439+
"undo": {
9440+
"type": "safe"
9441+
}
9442+
},
93529443
"SendInvitations": {
93539444
"tag": "Users",
93549445
"undo": {
@@ -9398,6 +9489,12 @@
93989489
"type": "idempotent"
93999490
}
94009491
},
9492+
"GetUserIdentityProviders": {
9493+
"tag": "Users",
9494+
"undo": {
9495+
"type": "safe"
9496+
}
9497+
},
94019498
"DeleteUserInvitations": {
94029499
"tag": "Users",
94039500
"undo": {
@@ -9416,6 +9513,13 @@
94169513
"type": "safe"
94179514
}
94189515
},
9516+
"UpdateUserIdentityProviders": {
9517+
"tag": "Users",
9518+
"undo": {
9519+
"operationId": "GetUserIdentityProviders",
9520+
"type": "idempotent"
9521+
}
9522+
},
94199523
"GetUserMemberships": {
94209524
"tag": "Teams",
94219525
"undo": {

0 commit comments

Comments
 (0)