Skip to content

Commit

Permalink
Regenerate client from commit 84edcba9 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Feb 15, 2023
1 parent 5931ab6 commit a333a3a
Show file tree
Hide file tree
Showing 47 changed files with 1,122 additions and 430 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.4",
"regenerated": "2023-02-15 14:54:05.761282",
"spec_repo_commit": "3371aaa2"
"regenerated": "2023-02-15 16:02:52.194348",
"spec_repo_commit": "84edcba9"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-02-15 14:54:05.774859",
"spec_repo_commit": "3371aaa2"
"regenerated": "2023-02-15 16:02:52.208495",
"spec_repo_commit": "84edcba9"
}
}
}
73 changes: 3 additions & 70 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9668,11 +9668,6 @@ components:
description: Widget query.
example: env:prod AND service:my-app
type: string
sort:
description: Options for sorting results.
items:
$ref: '#/components/schemas/WidgetFieldSort'
type: array
required:
- query_string
type: object
Expand Down Expand Up @@ -9702,12 +9697,6 @@ components:
description: Error message if SLO status or error budget could not be calculated.
nullable: true
type: string
error_budget_remaining:
description: Remaining error budget of the SLO in percentage.
example: 100
format: double
nullable: true
type: number
indexed_at:
description: 'timestamp (UNIX time in seconds) of when the SLO status and
error budget
Expand All @@ -9722,10 +9711,7 @@ components:
description: The amount of decimal places the SLI value is accurate to.
example: 2
format: int64
nullable: true
type: integer
state:
$ref: '#/components/schemas/SLOState'
status:
description: The status of the SLO.
example: 100
Expand All @@ -9742,7 +9728,6 @@ components:
type: object
SLORawErrorBudgetRemaining:
description: Error budget remaining for an SLO.
nullable: true
properties:
unit:
description: Error budget remaining unit.
Expand Down Expand Up @@ -9932,59 +9917,6 @@ components:
format: double
type: number
type: object
SLOState:
description: State of the SLO.
enum:
- breached
- warning
- ok
- no_data
example: ok
type: string
x-enum-varnames:
- BREACHED
- WARNING
- OK
- NO_DATA
SLOStatus:
description: Status of the SLO's primary timeframe.
properties:
calculation_error:
description: Error message if SLO status or error budget could not be calculated.
nullable: true
type: string
error_budget_remaining:
description: Remaining error budget of the SLO in percentage.
example: 100
format: double
nullable: true
type: number
indexed_at:
description: 'timestamp (UNIX time in seconds) of when the SLO status and
error budget

were calculated.'
example: 1662496260
format: int64
type: integer
raw_error_budget_remaining:
$ref: '#/components/schemas/SLORawErrorBudgetRemaining'
sli:
description: The current service level indicator (SLI) of the SLO, also
known as 'status'. This is a percentage value from 0-100 (inclusive).
example: 100
format: double
nullable: true
type: number
span_precision:
description: The number of decimal places the SLI value is accurate to.
example: 2
format: int64
nullable: true
type: integer
state:
$ref: '#/components/schemas/SLOState'
type: object
SLOThreshold:
description: SLO thresholds (target and optionally warning) for a single time
window.
Expand Down Expand Up @@ -10617,8 +10549,6 @@ components:
type: array
slo_type:
$ref: '#/components/schemas/SLOType'
status:
$ref: '#/components/schemas/SLOStatus'
team_tags:
description: Tags with the `team` tag key.
items:
Expand Down Expand Up @@ -25944,6 +25874,9 @@ paths:
summary: Search for SLOs
tags:
- Service Level Objectives
x-unstable: '**Note**: This endpoint is in public beta.

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
/api/v1/slo/{slo_id}:
delete:
description: 'Permanently delete the specified service level objective object.
Expand Down
192 changes: 192 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,15 @@ components:
example: 10
format: int64
type: integer
ResourceID:
description: 'Identifier, formatted as `type:id`. Supported types: `connection`,
`dashboard`, `notebook`, `security-rule`.'
example: dashboard:abc-def-ghi
in: path
name: resource_id
required: true
schema:
type: string
RoleID:
description: The unique identifier of the role.
in: path
Expand Down Expand Up @@ -9010,6 +9019,91 @@ components:
page:
$ref: '#/components/schemas/Pagination'
type: object
RestrictionPolicy:
description: Restriction policy object.
properties:
attributes:
$ref: '#/components/schemas/RestrictionPolicyAttributes'
id:
description: The identifier, always equivalent to the value specified in
the `resource_id` path parameter.
example: dashboard:abc-def-ghi
type: string
type:
$ref: '#/components/schemas/RestrictionPolicyType'
required:
- type
- id
- attributes
type: object
RestrictionPolicyAttributes:
description: Restriction policy attributes.
example:
bindings: []
properties:
bindings:
description: An array of bindings.
items:
$ref: '#/components/schemas/RestrictionPolicyBinding'
type: array
required:
- bindings
type: object
RestrictionPolicyBinding:
description: Specifies which principals are associated with a relation.
properties:
principals:
description: 'An array of principals. A principal is a subject or group
of subjects.

Each principal is formatted as `type:id`. Supported types: `role`, `user`,
`org`.

The org ID can be obtained through the api/v2/current_user API.'
example:
- role:00000000-0000-1111-0000-000000000000
items:
description: 'Subject or group of subjects. Each principal is formatted
as `type:id`.

Supported types: `role`, `user`, `org`.

The org ID can be obtained through the api/v2/current_user API.'
type: string
type: array
relation:
description: The role/level of access.
example: editor
type: string
required:
- relation
- principals
type: object
RestrictionPolicyResponse:
description: Response containing information about a single restriction policy.
properties:
data:
$ref: '#/components/schemas/RestrictionPolicy'
required:
- data
type: object
RestrictionPolicyType:
default: restriction_policy
description: Restriction policy type.
enum:
- restriction_policy
example: restriction_policy
type: string
x-enum-varnames:
- RESTRICTION_POLICY
RestrictionPolicyUpdateRequest:
description: Update request for a restriction policy.
properties:
data:
$ref: '#/components/schemas/RestrictionPolicy'
required:
- data
type: object
Role:
description: Role object returned by the API.
properties:
Expand Down Expand Up @@ -16998,6 +17092,96 @@ paths:
any

feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
/api/v2/restriction_policy/{resource_id}:
delete:
description: Deletes the restriction policy associated with a specified resource.
operationId: DeleteRestrictionPolicy
parameters:
- $ref: '#/components/parameters/ResourceID'
responses:
'204':
description: No Content
'400':
$ref: '#/components/responses/BadRequestResponse'
'403':
$ref: '#/components/responses/NotAuthorizedResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
summary: Delete a restriction policy
tags:
- Restriction Policies
get:
description: Retrieves the restriction policy associated with a specified resource.
operationId: GetRestrictionPolicy
parameters:
- $ref: '#/components/parameters/ResourceID'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/RestrictionPolicyResponse'
description: OK
'400':
$ref: '#/components/responses/BadRequestResponse'
'403':
$ref: '#/components/responses/NotAuthorizedResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
summary: Get a restriction policy
tags:
- Restriction Policies
post:
description: 'Updates the restriction policy associated with a resource.


#### Supported resources

Restriction policies can be applied to the following resources:

- Connections: `connection`

- Dashboards: `dashboard`

- Notebooks: `notebook`

- Security Rules: `security-rule`'
operationId: UpdateRestrictionPolicy
parameters:
- $ref: '#/components/parameters/ResourceID'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RestrictionPolicyUpdateRequest'
description: Restriction policy payload
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/RestrictionPolicyResponse'
description: OK
'400':
$ref: '#/components/responses/BadRequestResponse'
'403':
$ref: '#/components/responses/NotAuthorizedResponse'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
summary: Update a restriction policy
tags:
- Restriction Policies
x-codegen-request-body-name: body
/api/v2/roles:
get:
description: Returns all roles, including their names and their unique identifiers.
Expand Down Expand Up @@ -20733,6 +20917,14 @@ tags:
name: Processes
- description: Search or aggregate your RUM events over HTTP.
name: RUM
- description: 'A restriction policy defines the access control rules for a resource,
mapping a set of relations

(such as editor and viewer) to a set of allowed principals (such as roles). The
restriction policy

determines who is authorized to perform what actions on the resource.'
name: Restriction Policies
- description: 'The Roles API is used to create and manage Datadog roles, what

[global permissions](https://docs.datadoghq.com/account_management/rbac/)
Expand Down
14 changes: 0 additions & 14 deletions docs/datadog_api_client.v1.model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3186,20 +3186,6 @@ slo\_response\_data
:members:
:show-inheritance:

slo\_state
----------

.. automodule:: datadog_api_client.v1.model.slo_state
:members:
:show-inheritance:

slo\_status
-----------

.. automodule:: datadog_api_client.v1.model.slo_status
:members:
:show-inheritance:

slo\_threshold
--------------

Expand Down
7 changes: 7 additions & 0 deletions docs/datadog_api_client.v2.api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,13 @@ processes\_api
:members:
:show-inheritance:

restriction\_policies\_api
--------------------------

.. automodule:: datadog_api_client.v2.api.restriction_policies_api
:members:
:show-inheritance:

roles\_api
----------

Expand Down
Loading

0 comments on commit a333a3a

Please sign in to comment.