Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -271111,9 +271111,12 @@ paths:

**`user_handle`**

- **Value:** The handle of a user, for example `jane@example.com`, or `"*"` for the default quota applied to
users without a specific quota. User handles are returned in the `data[].attributes.handle` field by the
[Users API](https://docs.datadoghq.com/api/latest/users/#list-all-users).
- **Value:** One of the following:
- A user's handle, such as `jane@example.com`. User handles are returned in the
`data[].attributes.handle` field by the
[Users API](https://docs.datadoghq.com/api/latest/users/#list-all-users).
- `"*"`, the default quota applied to users without a specific quota.
- `"*agents*"`, the quota shared by all autonomous agents.
- **Validation:** A specific handle must identify an existing user in the caller's organization when
`include_descendants` is false. When `include_descendants` is true, the handle must exist in the caller's
organization or in at least one targeted descendant organization. The quota is then applied only to the
Expand All @@ -271127,6 +271130,12 @@ paths:
- **Validation:** The role must exist in the caller's organization. Role UUIDs are unique, so
`include_descendants` has no effect on a `role_uuid` scope: the role is validated against the caller's
organization only.

**`team_id`** (private preview)

- **Value:** The ID of a team. Team IDs are returned in the `data[].id` field by the
[Teams API](https://docs.datadoghq.com/api/latest/teams/get-all-teams/).
- **Availability:** Quotas on `team_id` are in private preview. Contact your Datadog account team to request access.
operationId: CreateQuotas
parameters:
- description: The product-specific namespace whose usage quotas are being managed.
Expand Down
17 changes: 14 additions & 3 deletions src/datadog_api_client/v2/api/usage_metering_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,9 +959,14 @@ def create_quotas(

**user_handle**

* **Value:** The handle of a user, for example ``jane@example.com`` , or ``"*"`` for the default quota applied to
users without a specific quota. User handles are returned in the ``data[].attributes.handle`` field by the
`Users API <https://docs.datadoghq.com/api/latest/users/#list-all-users>`_.
* **Value:** One of the following:

* A user's handle, such as ``jane@example.com``. User handles are returned in the
``data[].attributes.handle`` field by the
`Users API <https://docs.datadoghq.com/api/latest/users/#list-all-users>`_.
* ``"*"`` , the default quota applied to users without a specific quota.
* ``"*agents*"`` , the quota shared by all autonomous agents.

* **Validation:** A specific handle must identify an existing user in the caller's organization when
``include_descendants`` is false. When ``include_descendants`` is true, the handle must exist in the caller's
organization or in at least one targeted descendant organization. The quota is then applied only to the
Expand All @@ -976,6 +981,12 @@ def create_quotas(
``include_descendants`` has no effect on a ``role_uuid`` scope: the role is validated against the caller's
organization only.

**team_id** (private preview)

* **Value:** The ID of a team. Team IDs are returned in the ``data[].id`` field by the
`Teams API <https://docs.datadoghq.com/api/latest/teams/get-all-teams/>`_.
* **Availability:** Quotas on ``team_id`` are in private preview. Contact your Datadog account team to request access.

:param quota_namespace: The product-specific namespace whose usage quotas are being managed.
:type quota_namespace: str
:param body: The usage quotas to create or update.
Expand Down
Loading