Skip to content

Commit ee7fefe

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c0afef2 of spec repo
1 parent efebef5 commit ee7fefe

22 files changed

+3321
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5362,6 +5362,56 @@ components:
53625362
example: _latest
53635363
type: string
53645364
type: object
5365+
AssignSeatsUserRequest:
5366+
properties:
5367+
data:
5368+
$ref: '#/components/schemas/AssignSeatsUserRequestData'
5369+
type: object
5370+
AssignSeatsUserRequestData:
5371+
properties:
5372+
attributes:
5373+
$ref: '#/components/schemas/AssignSeatsUserRequestDataAttributes'
5374+
id:
5375+
type: string
5376+
type:
5377+
$ref: '#/components/schemas/SeatAssignmentsDataType'
5378+
required:
5379+
- type
5380+
type: object
5381+
AssignSeatsUserRequestDataAttributes:
5382+
properties:
5383+
product_code:
5384+
type: string
5385+
user_uuids:
5386+
items:
5387+
type: string
5388+
type: array
5389+
type: object
5390+
AssignSeatsUserResponse:
5391+
properties:
5392+
data:
5393+
$ref: '#/components/schemas/AssignSeatsUserResponseData'
5394+
type: object
5395+
AssignSeatsUserResponseData:
5396+
properties:
5397+
attributes:
5398+
$ref: '#/components/schemas/AssignSeatsUserResponseDataAttributes'
5399+
id:
5400+
type: string
5401+
type:
5402+
$ref: '#/components/schemas/SeatAssignmentsDataType'
5403+
required:
5404+
- type
5405+
type: object
5406+
AssignSeatsUserResponseDataAttributes:
5407+
properties:
5408+
assigned_ids:
5409+
items:
5410+
type: string
5411+
type: array
5412+
product_code:
5413+
type: string
5414+
type: object
53655415
AttachCaseRequest:
53665416
description: Request for attaching security findings to a case.
53675417
properties:
@@ -51879,6 +51929,65 @@ components:
5187951929
- ISSUE_ASSIGNEE
5188051930
- ISSUE_CASE
5188151931
- ISSUE_TEAM_OWNERS
51932+
SeatAssignmentsDataType:
51933+
default: seat-assignments
51934+
description: Seat assignments resource type.
51935+
enum:
51936+
- seat-assignments
51937+
example: seat-assignments
51938+
type: string
51939+
x-enum-varnames:
51940+
- SEAT_ASSIGNMENTS
51941+
SeatUserData:
51942+
properties:
51943+
attributes:
51944+
$ref: '#/components/schemas/SeatUserDataAttributes'
51945+
id:
51946+
type: string
51947+
type:
51948+
$ref: '#/components/schemas/SeatUserDataType'
51949+
required:
51950+
- type
51951+
type: object
51952+
SeatUserDataArray:
51953+
properties:
51954+
data:
51955+
items:
51956+
$ref: '#/components/schemas/SeatUserData'
51957+
type: array
51958+
meta:
51959+
$ref: '#/components/schemas/SeatUserMeta'
51960+
required:
51961+
- data
51962+
type: object
51963+
SeatUserDataAttributes:
51964+
properties:
51965+
assigned_at:
51966+
type: string
51967+
email:
51968+
type: string
51969+
name:
51970+
type: string
51971+
type: object
51972+
SeatUserDataType:
51973+
default: seat-users
51974+
description: Seat users resource type.
51975+
enum:
51976+
- seat-users
51977+
example: seat-users
51978+
type: string
51979+
x-enum-varnames:
51980+
- SEAT_USERS
51981+
SeatUserMeta:
51982+
properties:
51983+
cursor:
51984+
type: string
51985+
limit:
51986+
format: int64
51987+
type: integer
51988+
next_cursor:
51989+
type: string
51990+
type: object
5188251991
SecretRuleArray:
5188351992
properties:
5188451993
data:
@@ -63944,6 +64053,31 @@ components:
6394464053
type: string
6394564054
x-enum-varnames:
6394664055
- AZURE_UC_CONFIGS
64056+
UnassignSeatsUserRequest:
64057+
properties:
64058+
data:
64059+
$ref: '#/components/schemas/UnassignSeatsUserRequestData'
64060+
type: object
64061+
UnassignSeatsUserRequestData:
64062+
properties:
64063+
attributes:
64064+
$ref: '#/components/schemas/UnassignSeatsUserRequestDataAttributes'
64065+
id:
64066+
type: string
64067+
type:
64068+
$ref: '#/components/schemas/SeatAssignmentsDataType'
64069+
required:
64070+
- type
64071+
type: object
64072+
UnassignSeatsUserRequestDataAttributes:
64073+
properties:
64074+
product_code:
64075+
type: string
64076+
user_uuids:
64077+
items:
64078+
type: string
64079+
type: array
64080+
type: object
6394764081
Unit:
6394864082
description: Object containing the metric unit family, scale factor, name, and
6394964083
short name.
@@ -91707,6 +91841,95 @@ paths:
9170791841
x-unstable: '**Note**: This endpoint is in public beta.
9170891842

9170991843
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
91844+
/api/v2/seats/users:
91845+
delete:
91846+
description: Unassign seats from users for a product code.
91847+
operationId: UnassignSeatsUserV2
91848+
requestBody:
91849+
content:
91850+
application/json:
91851+
schema:
91852+
$ref: '#/components/schemas/UnassignSeatsUserRequest'
91853+
required: true
91854+
responses:
91855+
'204':
91856+
description: No Content
91857+
'429':
91858+
$ref: '#/components/responses/TooManyRequestsResponse'
91859+
summary: Unassign seats from users for a product code
91860+
tags:
91861+
- Seats
91862+
x-permission:
91863+
operator: OR
91864+
permissions:
91865+
- billing_edit
91866+
- incident_write
91867+
- on_call_write
91868+
get:
91869+
description: Get the list of seats users assigned to a product code.
91870+
operationId: GetSeatsUsersV2
91871+
parameters:
91872+
- description: The product code for which to retrieve seat users.
91873+
in: query
91874+
name: product_code
91875+
required: true
91876+
schema:
91877+
type: string
91878+
- description: Maximum number of results to return.
91879+
in: query
91880+
name: page[limit]
91881+
schema:
91882+
type: integer
91883+
- description: Cursor for pagination.
91884+
in: query
91885+
name: page[cursor]
91886+
schema:
91887+
type: string
91888+
responses:
91889+
'200':
91890+
content:
91891+
application/json:
91892+
schema:
91893+
$ref: '#/components/schemas/SeatUserDataArray'
91894+
description: OK
91895+
'429':
91896+
$ref: '#/components/responses/TooManyRequestsResponse'
91897+
summary: Get seats users for a product code
91898+
tags:
91899+
- Seats
91900+
x-permission:
91901+
operator: OR
91902+
permissions:
91903+
- billing_read
91904+
- incident_read
91905+
- on_call_read
91906+
post:
91907+
description: Assign seats to users for a product code.
91908+
operationId: AssignSeatsUserV2
91909+
requestBody:
91910+
content:
91911+
application/json:
91912+
schema:
91913+
$ref: '#/components/schemas/AssignSeatsUserRequest'
91914+
required: true
91915+
responses:
91916+
'201':
91917+
content:
91918+
application/json:
91919+
schema:
91920+
$ref: '#/components/schemas/AssignSeatsUserResponse'
91921+
description: Created
91922+
'429':
91923+
$ref: '#/components/responses/TooManyRequestsResponse'
91924+
summary: Assign seats to users for a product code
91925+
tags:
91926+
- Seats
91927+
x-permission:
91928+
operator: OR
91929+
permissions:
91930+
- billing_edit
91931+
- incident_write
91932+
- on_call_write
9171091933
/api/v2/security-entities/risk-scores:
9171191934
get:
9171291935
description: Get a list of entity risk scores for your organization. Entity
@@ -102815,6 +103038,9 @@ tags:
102815103038
- description: Manage retention filters through [Manage Applications](https://app.datadoghq.com/rum/list)
102816103039
of RUM for your organization.
102817103040
name: Rum Retention Filters
103041+
- description: The seats API allows you to view, assign, and unassign seats for your
103042+
organization.
103043+
name: Seats
102818103044
- description: Create and manage your security rules, signals, filters, and more.
102819103045
See the [Datadog Security page](https://docs.datadoghq.com/security/) for more
102820103046
information.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Assign seats to users for a product code returns "Created" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.SeatsApi;
6+
import com.datadog.api.client.v2.model.AssignSeatsUserRequest;
7+
import com.datadog.api.client.v2.model.AssignSeatsUserRequestData;
8+
import com.datadog.api.client.v2.model.AssignSeatsUserRequestDataAttributes;
9+
import com.datadog.api.client.v2.model.AssignSeatsUserResponse;
10+
import com.datadog.api.client.v2.model.SeatAssignmentsDataType;
11+
12+
public class Example {
13+
public static void main(String[] args) {
14+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
15+
SeatsApi apiInstance = new SeatsApi(defaultClient);
16+
17+
AssignSeatsUserRequest body =
18+
new AssignSeatsUserRequest()
19+
.data(
20+
new AssignSeatsUserRequestData()
21+
.attributes(new AssignSeatsUserRequestDataAttributes())
22+
.type(SeatAssignmentsDataType.SEAT_ASSIGNMENTS));
23+
24+
try {
25+
AssignSeatsUserResponse result = apiInstance.assignSeatsUserV2(body);
26+
System.out.println(result);
27+
} catch (ApiException e) {
28+
System.err.println("Exception when calling SeatsApi#assignSeatsUserV2");
29+
System.err.println("Status code: " + e.getCode());
30+
System.err.println("Reason: " + e.getResponseBody());
31+
System.err.println("Response headers: " + e.getResponseHeaders());
32+
e.printStackTrace();
33+
}
34+
}
35+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Get seats users for a product code returns "OK" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.SeatsApi;
6+
import com.datadog.api.client.v2.model.SeatUserDataArray;
7+
8+
public class Example {
9+
public static void main(String[] args) {
10+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11+
SeatsApi apiInstance = new SeatsApi(defaultClient);
12+
13+
try {
14+
SeatUserDataArray result = apiInstance.getSeatsUsersV2("product_code");
15+
System.out.println(result);
16+
} catch (ApiException e) {
17+
System.err.println("Exception when calling SeatsApi#getSeatsUsersV2");
18+
System.err.println("Status code: " + e.getCode());
19+
System.err.println("Reason: " + e.getResponseBody());
20+
System.err.println("Response headers: " + e.getResponseHeaders());
21+
e.printStackTrace();
22+
}
23+
}
24+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Unassign seats from users for a product code returns "No Content" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.SeatsApi;
6+
import com.datadog.api.client.v2.model.SeatAssignmentsDataType;
7+
import com.datadog.api.client.v2.model.UnassignSeatsUserRequest;
8+
import com.datadog.api.client.v2.model.UnassignSeatsUserRequestData;
9+
import com.datadog.api.client.v2.model.UnassignSeatsUserRequestDataAttributes;
10+
11+
public class Example {
12+
public static void main(String[] args) {
13+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
14+
SeatsApi apiInstance = new SeatsApi(defaultClient);
15+
16+
UnassignSeatsUserRequest body =
17+
new UnassignSeatsUserRequest()
18+
.data(
19+
new UnassignSeatsUserRequestData()
20+
.attributes(new UnassignSeatsUserRequestDataAttributes())
21+
.type(SeatAssignmentsDataType.SEAT_ASSIGNMENTS));
22+
23+
try {
24+
apiInstance.unassignSeatsUserV2(body);
25+
} catch (ApiException e) {
26+
System.err.println("Exception when calling SeatsApi#unassignSeatsUserV2");
27+
System.err.println("Status code: " + e.getCode());
28+
System.err.println("Reason: " + e.getResponseBody());
29+
System.err.println("Response headers: " + e.getResponseHeaders());
30+
e.printStackTrace();
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)