Skip to content

Commit

Permalink
Remove cases_* scopes that are not public (#1879)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored May 1, 2024
1 parent 45ded98 commit d060f74
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 84 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-04-26 19:29:40.171069",
"spec_repo_commit": "0e208c14"
"regenerated": "2024-05-01 14:56:34.869653",
"spec_repo_commit": "769244ad"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-04-26 19:29:40.188640",
"spec_repo_commit": "0e208c14"
"regenerated": "2024-05-01 14:56:34.886205",
"spec_repo_commit": "769244ad"
}
}
}
67 changes: 0 additions & 67 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22725,8 +22725,6 @@ components:
apm_service_catalog_read: View service catalog and service definitions.
apm_service_catalog_write: Add, modify, and delete service catalog definitions
when those definitions are maintained by Datadog.
cases_read: Read all cases data.
cases_write: Create, update and delete cases data.
ci_visibility_pipelines_write: Create CI Visibility pipeline spans using
the API.
ci_visibility_read: View CI Visibility.
Expand Down Expand Up @@ -23966,11 +23964,6 @@ paths:
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cases_read
summary: Search cases
tags:
- Case Management
Expand Down Expand Up @@ -24005,11 +23998,6 @@ paths:
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cases_write
summary: Create a case
tags:
- Case Management
Expand All @@ -24034,11 +24022,6 @@ paths:
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cases_read
summary: Get all projects
tags:
- Case Management
Expand Down Expand Up @@ -24069,11 +24052,6 @@ paths:
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cases_write
summary: Create a project
tags:
- Case Management
Expand All @@ -24096,11 +24074,6 @@ paths:
description: API error response
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cases_write
summary: Remove a project
tags:
- Case Management
Expand All @@ -24126,11 +24099,6 @@ paths:
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cases_read
summary: Get the details of a project
tags:
- Case Management
Expand All @@ -24157,11 +24125,6 @@ paths:
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cases_read
summary: Get the details of a case
tags:
- Case Management
Expand Down Expand Up @@ -24195,11 +24158,6 @@ paths:
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cases_write
summary: Archive case
tags:
- Case Management
Expand Down Expand Up @@ -24233,11 +24191,6 @@ paths:
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cases_write
summary: Assign case
tags:
- Case Management
Expand Down Expand Up @@ -24271,11 +24224,6 @@ paths:
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cases_write
summary: Update case priority
tags:
- Case Management
Expand Down Expand Up @@ -24309,11 +24257,6 @@ paths:
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cases_write
summary: Update case status
tags:
- Case Management
Expand Down Expand Up @@ -24347,11 +24290,6 @@ paths:
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cases_write
summary: Unarchive case
tags:
- Case Management
Expand Down Expand Up @@ -24385,11 +24323,6 @@ paths:
$ref: '#/components/responses/NotFoundResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cases_write
summary: Unassign case
tags:
- Case Management
Expand Down
26 changes: 13 additions & 13 deletions src/datadog_api_client/v2/api/case_management_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, api_client=None):
self._archive_case_endpoint = _Endpoint(
settings={
"response_type": (CaseResponse,),
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/cases/{case_id}/archive",
"operation_id": "archive_case",
"http_method": "POST",
Expand All @@ -67,7 +67,7 @@ def __init__(self, api_client=None):
self._assign_case_endpoint = _Endpoint(
settings={
"response_type": (CaseResponse,),
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/cases/{case_id}/assign",
"operation_id": "assign_case",
"http_method": "POST",
Expand All @@ -93,7 +93,7 @@ def __init__(self, api_client=None):
self._create_case_endpoint = _Endpoint(
settings={
"response_type": (CaseResponse,),
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/cases",
"operation_id": "create_case",
"http_method": "POST",
Expand All @@ -113,7 +113,7 @@ def __init__(self, api_client=None):
self._create_project_endpoint = _Endpoint(
settings={
"response_type": (ProjectResponse,),
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/cases/projects",
"operation_id": "create_project",
"http_method": "POST",
Expand All @@ -133,7 +133,7 @@ def __init__(self, api_client=None):
self._delete_project_endpoint = _Endpoint(
settings={
"response_type": None,
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/cases/projects/{project_id}",
"operation_id": "delete_project",
"http_method": "DELETE",
Expand All @@ -156,7 +156,7 @@ def __init__(self, api_client=None):
self._get_case_endpoint = _Endpoint(
settings={
"response_type": (CaseResponse,),
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/cases/{case_id}",
"operation_id": "get_case",
"http_method": "GET",
Expand All @@ -179,7 +179,7 @@ def __init__(self, api_client=None):
self._get_project_endpoint = _Endpoint(
settings={
"response_type": (ProjectResponse,),
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/cases/projects/{project_id}",
"operation_id": "get_project",
"http_method": "GET",
Expand All @@ -202,7 +202,7 @@ def __init__(self, api_client=None):
self._get_projects_endpoint = _Endpoint(
settings={
"response_type": (ProjectsResponse,),
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/cases/projects",
"operation_id": "get_projects",
"http_method": "GET",
Expand All @@ -218,7 +218,7 @@ def __init__(self, api_client=None):
self._search_cases_endpoint = _Endpoint(
settings={
"response_type": (CasesResponse,),
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/cases",
"operation_id": "search_cases",
"http_method": "GET",
Expand Down Expand Up @@ -260,7 +260,7 @@ def __init__(self, api_client=None):
self._unarchive_case_endpoint = _Endpoint(
settings={
"response_type": (CaseResponse,),
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/cases/{case_id}/unarchive",
"operation_id": "unarchive_case",
"http_method": "POST",
Expand All @@ -286,7 +286,7 @@ def __init__(self, api_client=None):
self._unassign_case_endpoint = _Endpoint(
settings={
"response_type": (CaseResponse,),
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/cases/{case_id}/unassign",
"operation_id": "unassign_case",
"http_method": "POST",
Expand All @@ -312,7 +312,7 @@ def __init__(self, api_client=None):
self._update_priority_endpoint = _Endpoint(
settings={
"response_type": (CaseResponse,),
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/cases/{case_id}/priority",
"operation_id": "update_priority",
"http_method": "POST",
Expand All @@ -338,7 +338,7 @@ def __init__(self, api_client=None):
self._update_status_endpoint = _Endpoint(
settings={
"response_type": (CaseResponse,),
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/cases/{case_id}/status",
"operation_id": "update_status",
"http_method": "POST",
Expand Down

0 comments on commit d060f74

Please sign in to comment.