Skip to content

Commit bdf0578

Browse files
api-clients-generation-pipeline[bot]mrhwickjirikuncarci.datadog-api-spec
authored
Add API endpoints for teams and services (#79)
* Add tests and cassetes for teams and services * Regenerate client from commit f05e569 of spec repo Co-authored-by: MRHwick <[email protected]> Co-authored-by: Jiri Kuncar <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 348e930 commit bdf0578

File tree

128 files changed

+11447
-8
lines changed

Some content is hidden

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

128 files changed

+11447
-8
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.2.0",
7-
"regenerated": "2020-09-18 09:55:28.465472",
8-
"spec_repo_commit": "49af2c4"
7+
"regenerated": "2020-09-21 10:58:15.842017",
8+
"spec_repo_commit": "f05e569"
99
},
1010
"v2": {
1111
"apigentools_version": "1.2.0",
12-
"regenerated": "2020-09-18 09:55:38.653638",
13-
"spec_repo_commit": "49af2c4"
12+
"regenerated": "2020-09-21 10:58:26.934240",
13+
"spec_repo_commit": "f05e569"
1414
}
1515
}
1616
}

.openapi-generator/FILES

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ datadog_api_client/v2/api/logs_api.py
77
datadog_api_client/v2/api/logs_archives_api.py
88
datadog_api_client/v2/api/roles_api.py
99
datadog_api_client/v2/api/security_monitoring_api.py
10+
datadog_api_client/v2/api/services_api.py
11+
datadog_api_client/v2/api/teams_api.py
1012
datadog_api_client/v2/api/users_api.py
1113
datadog_api_client/v2/api_client.py
1214
datadog_api_client/v2/apis/__init__.py
@@ -142,6 +144,34 @@ datadog_api_client/v2/model/security_monitoring_signals_list_response_links.py
142144
datadog_api_client/v2/model/security_monitoring_signals_list_response_meta.py
143145
datadog_api_client/v2/model/security_monitoring_signals_list_response_meta_page.py
144146
datadog_api_client/v2/model/security_monitoring_signals_sort.py
147+
datadog_api_client/v2/model/service_create_attributes.py
148+
datadog_api_client/v2/model/service_create_data.py
149+
datadog_api_client/v2/model/service_create_request.py
150+
datadog_api_client/v2/model/service_included_items.py
151+
datadog_api_client/v2/model/service_relationships.py
152+
datadog_api_client/v2/model/service_response.py
153+
datadog_api_client/v2/model/service_response_attributes.py
154+
datadog_api_client/v2/model/service_response_data.py
155+
datadog_api_client/v2/model/service_type.py
156+
datadog_api_client/v2/model/service_update_attributes.py
157+
datadog_api_client/v2/model/service_update_data.py
158+
datadog_api_client/v2/model/service_update_request.py
159+
datadog_api_client/v2/model/services_response.py
160+
datadog_api_client/v2/model/services_response_meta.py
161+
datadog_api_client/v2/model/services_response_meta_pagination.py
162+
datadog_api_client/v2/model/team_create_attributes.py
163+
datadog_api_client/v2/model/team_create_data.py
164+
datadog_api_client/v2/model/team_create_request.py
165+
datadog_api_client/v2/model/team_included_items.py
166+
datadog_api_client/v2/model/team_relationships.py
167+
datadog_api_client/v2/model/team_response.py
168+
datadog_api_client/v2/model/team_response_attributes.py
169+
datadog_api_client/v2/model/team_response_data.py
170+
datadog_api_client/v2/model/team_type.py
171+
datadog_api_client/v2/model/team_update_attributes.py
172+
datadog_api_client/v2/model/team_update_data.py
173+
datadog_api_client/v2/model/team_update_request.py
174+
datadog_api_client/v2/model/teams_response.py
145175
datadog_api_client/v2/model/user.py
146176
datadog_api_client/v2/model/user_attributes.py
147177
datadog_api_client/v2/model/user_create_attributes.py
@@ -155,6 +185,8 @@ datadog_api_client/v2/model/user_invitation_response_data.py
155185
datadog_api_client/v2/model/user_invitations_request.py
156186
datadog_api_client/v2/model/user_invitations_response.py
157187
datadog_api_client/v2/model/user_invitations_type.py
188+
datadog_api_client/v2/model/user_relationship.py
189+
datadog_api_client/v2/model/user_relationship_data.py
158190
datadog_api_client/v2/model/user_relationships.py
159191
datadog_api_client/v2/model/user_response.py
160192
datadog_api_client/v2/model/user_response_included_item.py
@@ -301,6 +333,36 @@ docs/SecurityMonitoringSignalsListResponseLinks.md
301333
docs/SecurityMonitoringSignalsListResponseMeta.md
302334
docs/SecurityMonitoringSignalsListResponseMetaPage.md
303335
docs/SecurityMonitoringSignalsSort.md
336+
docs/ServiceCreateAttributes.md
337+
docs/ServiceCreateData.md
338+
docs/ServiceCreateRequest.md
339+
docs/ServiceIncludedItems.md
340+
docs/ServiceRelationships.md
341+
docs/ServiceResponse.md
342+
docs/ServiceResponseAttributes.md
343+
docs/ServiceResponseData.md
344+
docs/ServiceType.md
345+
docs/ServiceUpdateAttributes.md
346+
docs/ServiceUpdateData.md
347+
docs/ServiceUpdateRequest.md
348+
docs/ServicesApi.md
349+
docs/ServicesResponse.md
350+
docs/ServicesResponseMeta.md
351+
docs/ServicesResponseMetaPagination.md
352+
docs/TeamCreateAttributes.md
353+
docs/TeamCreateData.md
354+
docs/TeamCreateRequest.md
355+
docs/TeamIncludedItems.md
356+
docs/TeamRelationships.md
357+
docs/TeamResponse.md
358+
docs/TeamResponseAttributes.md
359+
docs/TeamResponseData.md
360+
docs/TeamType.md
361+
docs/TeamUpdateAttributes.md
362+
docs/TeamUpdateData.md
363+
docs/TeamUpdateRequest.md
364+
docs/TeamsApi.md
365+
docs/TeamsResponse.md
304366
docs/User.md
305367
docs/UserAttributes.md
306368
docs/UserCreateAttributes.md
@@ -314,6 +376,8 @@ docs/UserInvitationResponseData.md
314376
docs/UserInvitationsRequest.md
315377
docs/UserInvitationsResponse.md
316378
docs/UserInvitationsType.md
379+
docs/UserRelationship.md
380+
docs/UserRelationshipData.md
317381
docs/UserRelationships.md
318382
docs/UserResponse.md
319383
docs/UserResponseIncludedItem.md
@@ -459,6 +523,36 @@ test/test_security_monitoring_signals_list_response_links.py
459523
test/test_security_monitoring_signals_list_response_meta.py
460524
test/test_security_monitoring_signals_list_response_meta_page.py
461525
test/test_security_monitoring_signals_sort.py
526+
test/test_service_create_attributes.py
527+
test/test_service_create_data.py
528+
test/test_service_create_request.py
529+
test/test_service_included_items.py
530+
test/test_service_relationships.py
531+
test/test_service_response.py
532+
test/test_service_response_attributes.py
533+
test/test_service_response_data.py
534+
test/test_service_type.py
535+
test/test_service_update_attributes.py
536+
test/test_service_update_data.py
537+
test/test_service_update_request.py
538+
test/test_services_api.py
539+
test/test_services_response.py
540+
test/test_services_response_meta.py
541+
test/test_services_response_meta_pagination.py
542+
test/test_team_create_attributes.py
543+
test/test_team_create_data.py
544+
test/test_team_create_request.py
545+
test/test_team_included_items.py
546+
test/test_team_relationships.py
547+
test/test_team_response.py
548+
test/test_team_response_attributes.py
549+
test/test_team_response_data.py
550+
test/test_team_type.py
551+
test/test_team_update_attributes.py
552+
test/test_team_update_data.py
553+
test/test_team_update_request.py
554+
test/test_teams_api.py
555+
test/test_teams_response.py
462556
test/test_user.py
463557
test/test_user_attributes.py
464558
test/test_user_create_attributes.py
@@ -472,6 +566,8 @@ test/test_user_invitation_response_data.py
472566
test/test_user_invitations_request.py
473567
test/test_user_invitations_response.py
474568
test/test_user_invitations_type.py
569+
test/test_user_relationship.py
570+
test/test_user_relationship_data.py
475571
test/test_user_relationships.py
476572
test/test_user_response.py
477573
test/test_user_response_included_item.py

docs/v2/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,16 @@ Class | Method | HTTP request | Description
153153
*SecurityMonitoringApi* | [**list_security_monitoring_signals**](SecurityMonitoringApi.md#list_security_monitoring_signals) | **GET** /api/v2/security_monitoring/signals | Get a quick list of security signals
154154
*SecurityMonitoringApi* | [**search_security_monitoring_signals**](SecurityMonitoringApi.md#search_security_monitoring_signals) | **POST** /api/v2/security_monitoring/signals/search | Get a list of security signals
155155
*SecurityMonitoringApi* | [**update_security_monitoring_rule**](SecurityMonitoringApi.md#update_security_monitoring_rule) | **PUT** /api/v2/security_monitoring/rules/{rule_id} | Update an existing rule
156+
*ServicesApi* | [**create_service**](ServicesApi.md#create_service) | **POST** /api/v2/services | Create a new service
157+
*ServicesApi* | [**delete_service**](ServicesApi.md#delete_service) | **DELETE** /api/v2/services/{service_id} | Delete an existing service
158+
*ServicesApi* | [**get_service**](ServicesApi.md#get_service) | **GET** /api/v2/services/{service_id} | Get details of a service
159+
*ServicesApi* | [**get_services**](ServicesApi.md#get_services) | **GET** /api/v2/services | Get a list of all services
160+
*ServicesApi* | [**update_service**](ServicesApi.md#update_service) | **PATCH** /api/v2/services/{service_id} | Update an existing service
161+
*TeamsApi* | [**create_team**](TeamsApi.md#create_team) | **POST** /api/v2/teams | Create a new team
162+
*TeamsApi* | [**delete_team**](TeamsApi.md#delete_team) | **DELETE** /api/v2/teams/{team_id} | Delete an existing team
163+
*TeamsApi* | [**get_team**](TeamsApi.md#get_team) | **GET** /api/v2/teams/{team_id} | Get details of a team
164+
*TeamsApi* | [**get_teams**](TeamsApi.md#get_teams) | **GET** /api/v2/teams | Get a list of all teams
165+
*TeamsApi* | [**update_team**](TeamsApi.md#update_team) | **PATCH** /api/v2/teams/{team_id} | Update an existing team
156166
*UsersApi* | [**create_user**](UsersApi.md#create_user) | **POST** /api/v2/users | Create a user
157167
*UsersApi* | [**disable_user**](UsersApi.md#disable_user) | **DELETE** /api/v2/users/{user_id} | Disable a user
158168
*UsersApi* | [**get_invitation**](UsersApi.md#get_invitation) | **GET** /api/v2/user_invitations/{user_invitation_uuid} | Get a user invitation
@@ -300,6 +310,34 @@ This time is calculated from the first seen timestamp..md)
300310
- [SecurityMonitoringSignalsListResponseMeta](Meta attributes..md)
301311
- [SecurityMonitoringSignalsListResponseMetaPage](Paging attributes..md)
302312
- [SecurityMonitoringSignalsSort](The sort parameters used for querying security signals..md)
313+
- [ServiceCreateAttributes](The service's attributes for a create request..md)
314+
- [ServiceCreateData](Service payload for create requests..md)
315+
- [ServiceCreateRequest](Create request with a service payload..md)
316+
- [ServiceIncludedItems](An object related to a service which is present in the included payload..md)
317+
- [ServiceRelationships](The service's relationships..md)
318+
- [ServiceResponse](Response with a service payload..md)
319+
- [ServiceResponseAttributes](The service's attributes from a response..md)
320+
- [ServiceResponseData](Service data from responses..md)
321+
- [ServiceType](Service resource type..md)
322+
- [ServiceUpdateAttributes](The service's attributes for an update request..md)
323+
- [ServiceUpdateData](Service payload for update requests..md)
324+
- [ServiceUpdateRequest](Update request with a service payload..md)
325+
- [ServicesResponse](Response with a list of service payloads..md)
326+
- [ServicesResponseMeta](The metadata object containing pagination metadata..md)
327+
- [ServicesResponseMetaPagination](Pagination properties..md)
328+
- [TeamCreateAttributes](The team's attributes for a create request..md)
329+
- [TeamCreateData](Team data for a create request..md)
330+
- [TeamCreateRequest](Create request with a team payload..md)
331+
- [TeamIncludedItems](An object related to a team which is present in the included payload..md)
332+
- [TeamRelationships](The team's relationships..md)
333+
- [TeamResponse](Response with a team payload..md)
334+
- [TeamResponseAttributes](The team's attributes from a response..md)
335+
- [TeamResponseData](Team data from a response..md)
336+
- [TeamType](Team resource type..md)
337+
- [TeamUpdateAttributes](The team's attributes for an update request..md)
338+
- [TeamUpdateData](Team data for an update request..md)
339+
- [TeamUpdateRequest](Update request with a team payload..md)
340+
- [TeamsResponse](Response with a list of team payloads..md)
303341
- [User](User object returned by the API..md)
304342
- [UserAttributes](Attributes of user object returned by the API..md)
305343
- [UserCreateAttributes](Attributes of the created user..md)
@@ -313,6 +351,8 @@ This time is calculated from the first seen timestamp..md)
313351
- [UserInvitationsRequest](Object to invite users to join the organization..md)
314352
- [UserInvitationsResponse](User invitations as returned by the API..md)
315353
- [UserInvitationsType](User invitations type..md)
354+
- [UserRelationship](A relationship reference for users..md)
355+
- [UserRelationshipData](The User relationship data..md)
316356
- [UserRelationships](Relationships of the user object..md)
317357
- [UserResponse](Response containing information about a single user..md)
318358
- [UserResponseIncludedItem](An object related to a user..md)

docs/v2/ServiceCreateAttributes.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ServiceCreateAttributes
2+
3+
The service's attributes for a create request.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**name** | **str** | Name of the service. |
8+
9+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
10+
11+

docs/v2/ServiceCreateData.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# ServiceCreateData
2+
3+
Service payload for create requests.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**type** | [**ServiceType**](ServiceType.md) | |
8+
**attributes** | [**ServiceCreateAttributes**](ServiceCreateAttributes.md) | | [optional]
9+
**relationships** | [**ServiceRelationships**](ServiceRelationships.md) | | [optional]
10+
11+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
12+
13+

docs/v2/ServiceCreateRequest.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ServiceCreateRequest
2+
3+
Create request with a service payload.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**data** | [**ServiceCreateData**](ServiceCreateData.md) | |
8+
9+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
10+
11+

docs/v2/ServiceIncludedItems.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ServiceIncludedItems
2+
3+
An object related to a service which is present in the included payload.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**attributes** | [**UserAttributes**](UserAttributes.md) | | [optional]
8+
**id** | **str** | ID of the user. | [optional]
9+
**relationships** | [**UserResponseRelationships**](UserResponseRelationships.md) | | [optional]
10+
**type** | [**UsersType**](UsersType.md) | | [optional]
11+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
12+
13+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
14+
15+

docs/v2/ServiceRelationships.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# ServiceRelationships
2+
3+
The service's relationships.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**created_by** | [**UserRelationship**](UserRelationship.md) | | [optional]
8+
**last_modified_by** | [**UserRelationship**](UserRelationship.md) | | [optional]
9+
10+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
11+
12+

docs/v2/ServiceResponse.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# ServiceResponse
2+
3+
Response with a service payload.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**data** | [**ServiceResponseData**](ServiceResponseData.md) | |
8+
**included** | [**[ServiceIncludedItems]**](ServiceIncludedItems.md) | Included objects from relationships. | [optional] [readonly]
9+
10+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
11+
12+

docs/v2/ServiceResponseAttributes.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# ServiceResponseAttributes
2+
3+
The service's attributes from a response.
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**created** | **datetime** | Timestamp of when the service was created. | [optional] [readonly]
8+
**modified** | **datetime** | Timestamp of when the service was modified. | [optional] [readonly]
9+
**name** | **str** | Name of the service. | [optional]
10+
11+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
12+
13+

0 commit comments

Comments
 (0)