Skip to content

Commit 3af2af1

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 8e38215 of spec repo
1 parent 6ecfec6 commit 3af2af1

17 files changed

Lines changed: 35 additions & 338 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 13 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,20 +1051,6 @@ components:
10511051
example: "a1b2c3d4-e5f6-7890-abcd-ef0123456789"
10521052
format: uuid
10531053
type: string
1054-
OrgGroupInclude:
1055-
description: >-
1056-
List of related resources to include.
1057-
explode: false
1058-
in: query
1059-
name: include
1060-
required: false
1061-
schema:
1062-
example:
1063-
- memberships
1064-
items:
1065-
$ref: "#/components/schemas/OrgGroupIncludeOption"
1066-
type: array
1067-
style: form
10681054
OrgGroupMembershipFilterOrgGroupId:
10691055
description: Filter memberships by org group ID. Required when `filter[org_uuid]` is not provided.
10701056
in: query
@@ -59225,22 +59211,13 @@ components:
5922559211
example: "a1b2c3d4-e5f6-7890-abcd-ef0123456789"
5922659212
format: uuid
5922759213
type: string
59228-
relationships:
59229-
$ref: "#/components/schemas/OrgGroupRelationships"
5923059214
type:
5923159215
$ref: "#/components/schemas/OrgGroupType"
5923259216
required:
5923359217
- id
5923459218
- type
5923559219
- attributes
5923659220
type: object
59237-
OrgGroupIncludeOption:
59238-
description: Allowed include options for org group endpoints.
59239-
enum:
59240-
- memberships
59241-
type: string
59242-
x-enum-varnames:
59243-
- MEMBERSHIPS
5924459221
OrgGroupListResponse:
5924559222
description: Response containing a list of org groups.
5924659223
properties:
@@ -59249,11 +59226,6 @@ components:
5924959226
items:
5925059227
$ref: "#/components/schemas/OrgGroupData"
5925159228
type: array
59252-
included:
59253-
description: Related resources included in the response when requested with the `include` parameter.
59254-
items:
59255-
$ref: "#/components/schemas/OrgGroupMembershipData"
59256-
type: array
5925759229
links:
5925859230
$ref: "#/components/schemas/OrgGroupPaginationLinks"
5925959231
meta:
@@ -59380,20 +59352,6 @@ components:
5938059352
required:
5938159353
- data
5938259354
type: object
59383-
OrgGroupMembershipRelationshipData:
59384-
description: A reference to an org group membership.
59385-
properties:
59386-
id:
59387-
description: The ID of the membership.
59388-
example: "f1e2d3c4-b5a6-7890-1234-567890abcdef"
59389-
format: uuid
59390-
type: string
59391-
type:
59392-
$ref: "#/components/schemas/OrgGroupMembershipType"
59393-
required:
59394-
- id
59395-
- type
59396-
type: object
5939759355
OrgGroupMembershipRelationships:
5939859356
description: Relationships of an org group membership.
5939959357
properties:
@@ -59464,17 +59422,6 @@ components:
5946459422
required:
5946559423
- data
5946659424
type: object
59467-
OrgGroupMembershipsRelationship:
59468-
description: Relationship to org group memberships.
59469-
properties:
59470-
data:
59471-
description: An array of membership relationship references.
59472-
items:
59473-
$ref: "#/components/schemas/OrgGroupMembershipRelationshipData"
59474-
type: array
59475-
required:
59476-
- data
59477-
type: object
5947859425
OrgGroupPaginationLinks:
5947959426
description: Pagination links for navigating between pages of an org group list response.
5948059427
properties:
@@ -59708,18 +59655,18 @@ components:
5970859655
- attributes
5970959656
type: object
5971059657
OrgGroupPolicyEnforcementTier:
59711-
default: DEFAULT
59658+
default: OVERRIDE_ALLOWED
5971259659
description: >-
59713-
The enforcement tier of the policy. `DEFAULT` means the policy is set but member orgs may mutate it. `ENFORCE` means the policy is strictly controlled and mutations are blocked for affected orgs. `DELEGATE` means each member org controls its own value.
59660+
The enforcement tier of the policy. `OVERRIDE_ALLOWED` means the policy is set but member orgs may mutate it. `GROUP_MANAGED` means the policy is strictly controlled and mutations are blocked for affected orgs. `DELEGATE` means each member org controls its own value.
5971459661
enum:
59715-
- DEFAULT
59716-
- ENFORCE
59662+
- OVERRIDE_ALLOWED
59663+
- GROUP_MANAGED
5971759664
- DELEGATE
59718-
example: DEFAULT
59665+
example: OVERRIDE_ALLOWED
5971959666
type: string
5972059667
x-enum-varnames:
59721-
- DEFAULT
59722-
- ENFORCE
59668+
- OVERRIDE_ALLOWED
59669+
- GROUP_MANAGED
5972359670
- DELEGATE
5972459671
OrgGroupPolicyListResponse:
5972559672
description: Response containing a list of org group policies.
@@ -60060,12 +60007,6 @@ components:
6006060007
- id
6006160008
- type
6006260009
type: object
60063-
OrgGroupRelationships:
60064-
description: Relationships of an org group.
60065-
properties:
60066-
memberships:
60067-
$ref: "#/components/schemas/OrgGroupMembershipsRelationship"
60068-
type: object
6006960010
OrgGroupResponse:
6007060011
description: Response containing a single org group.
6007160012
properties:
@@ -133887,7 +133828,7 @@ paths:
133887133828
- attributes:
133888133829
content:
133889133830
value: "UTC"
133890-
enforcement_tier: "DEFAULT"
133831+
enforcement_tier: "OVERRIDE_ALLOWED"
133891133832
modified_at: "2024-01-15T10:30:00Z"
133892133833
policy_name: "monitor_timezone"
133893133834
policy_type: "org_config"
@@ -133959,7 +133900,7 @@ paths:
133959133900
attributes:
133960133901
content:
133961133902
value: "UTC"
133962-
enforcement_tier: "DEFAULT"
133903+
enforcement_tier: "OVERRIDE_ALLOWED"
133963133904
policy_name: "monitor_timezone"
133964133905
policy_type: "org_config"
133965133906
relationships:
@@ -133982,7 +133923,7 @@ paths:
133982133923
attributes:
133983133924
content:
133984133925
value: "UTC"
133985-
enforcement_tier: "DEFAULT"
133926+
enforcement_tier: "OVERRIDE_ALLOWED"
133986133927
modified_at: "2024-01-15T10:30:00Z"
133987133928
policy_name: "monitor_timezone"
133988133929
policy_type: "org_config"
@@ -134091,7 +134032,7 @@ paths:
134091134032
attributes:
134092134033
content:
134093134034
value: "UTC"
134094-
enforcement_tier: "DEFAULT"
134035+
enforcement_tier: "OVERRIDE_ALLOWED"
134095134036
modified_at: "2024-01-15T10:30:00Z"
134096134037
policy_name: "monitor_timezone"
134097134038
policy_type: "org_config"
@@ -134155,7 +134096,7 @@ paths:
134155134096
attributes:
134156134097
content:
134157134098
value: "US/Eastern"
134158-
enforcement_tier: "ENFORCE"
134099+
enforcement_tier: "GROUP_MANAGED"
134159134100
id: "1a2b3c4d-5e6f-7890-abcd-ef0123456789"
134160134101
type: org_group_policies
134161134102
schema:
@@ -134172,7 +134113,7 @@ paths:
134172134113
attributes:
134173134114
content:
134174134115
value: "US/Eastern"
134175-
enforcement_tier: "ENFORCE"
134116+
enforcement_tier: "GROUP_MANAGED"
134176134117
modified_at: "2024-01-16T14:00:00Z"
134177134118
policy_name: "monitor_timezone"
134178134119
policy_type: "org_config"
@@ -134639,7 +134580,6 @@ paths:
134639134580
- $ref: "#/components/parameters/OrgGroupPageNumber"
134640134581
- $ref: "#/components/parameters/OrgGroupPageSize"
134641134582
- $ref: "#/components/parameters/OrgGroupSort"
134642-
- $ref: "#/components/parameters/OrgGroupInclude"
134643134583
responses:
134644134584
"200":
134645134585
content:

docs/datadog_api_client.v2.model.rst

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25505,13 +25505,6 @@ datadog\_api\_client.v2.model.org\_group\_data module
2550525505
:members:
2550625506
:show-inheritance:
2550725507

25508-
datadog\_api\_client.v2.model.org\_group\_include\_option module
25509-
----------------------------------------------------------------
25510-
25511-
.. automodule:: datadog_api_client.v2.model.org_group_include_option
25512-
:members:
25513-
:show-inheritance:
25514-
2551525508
datadog\_api\_client.v2.model.org\_group\_list\_response module
2551625509
---------------------------------------------------------------
2551725510

@@ -25575,13 +25568,6 @@ datadog\_api\_client.v2.model.org\_group\_membership\_list\_response module
2557525568
:members:
2557625569
:show-inheritance:
2557725570

25578-
datadog\_api\_client.v2.model.org\_group\_membership\_relationship\_data module
25579-
-------------------------------------------------------------------------------
25580-
25581-
.. automodule:: datadog_api_client.v2.model.org_group_membership_relationship_data
25582-
:members:
25583-
:show-inheritance:
25584-
2558525571
datadog\_api\_client.v2.model.org\_group\_membership\_relationships module
2558625572
--------------------------------------------------------------------------
2558725573

@@ -25631,13 +25617,6 @@ datadog\_api\_client.v2.model.org\_group\_membership\_update\_request module
2563125617
:members:
2563225618
:show-inheritance:
2563325619

25634-
datadog\_api\_client.v2.model.org\_group\_memberships\_relationship module
25635-
--------------------------------------------------------------------------
25636-
25637-
.. automodule:: datadog_api_client.v2.model.org_group_memberships_relationship
25638-
:members:
25639-
:show-inheritance:
25640-
2564125620
datadog\_api\_client.v2.model.org\_group\_pagination\_links module
2564225621
------------------------------------------------------------------
2564325622

@@ -25925,13 +25904,6 @@ datadog\_api\_client.v2.model.org\_group\_relationship\_to\_one\_data module
2592525904
:members:
2592625905
:show-inheritance:
2592725906

25928-
datadog\_api\_client.v2.model.org\_group\_relationships module
25929-
--------------------------------------------------------------
25930-
25931-
.. automodule:: datadog_api_client.v2.model.org_group_relationships
25932-
:members:
25933-
:show-inheritance:
25934-
2593525907
datadog\_api\_client.v2.model.org\_group\_response module
2593625908
---------------------------------------------------------
2593725909

examples/v2/org-groups/CreateOrgGroupPolicy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
data=OrgGroupPolicyCreateData(
2121
attributes=OrgGroupPolicyCreateAttributes(
2222
content=dict([("value", "UTC")]),
23-
enforcement_tier=OrgGroupPolicyEnforcementTier.DEFAULT,
23+
enforcement_tier=OrgGroupPolicyEnforcementTier.OVERRIDE_ALLOWED,
2424
policy_name="monitor_timezone",
2525
policy_type=OrgGroupPolicyPolicyType.ORG_CONFIG,
2626
),

examples/v2/org-groups/UpdateOrgGroupPolicy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
data=OrgGroupPolicyUpdateData(
1616
attributes=OrgGroupPolicyUpdateAttributes(
1717
content=dict([("value", "UTC")]),
18-
enforcement_tier=OrgGroupPolicyEnforcementTier.DEFAULT,
18+
enforcement_tier=OrgGroupPolicyEnforcementTier.OVERRIDE_ALLOWED,
1919
),
2020
id=UUID("1a2b3c4d-5e6f-7890-abcd-ef0123456789"),
2121
type=OrgGroupPolicyType.ORG_GROUP_POLICIES,

src/datadog_api_client/v2/api/org_groups_api.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Any, Dict, List, Union
6+
from typing import Any, Dict, Union
77

88
from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
99
from datadog_api_client.configuration import Configuration
@@ -30,7 +30,6 @@
3030
from datadog_api_client.v2.model.org_group_policy_override_update_request import OrgGroupPolicyOverrideUpdateRequest
3131
from datadog_api_client.v2.model.org_group_list_response import OrgGroupListResponse
3232
from datadog_api_client.v2.model.org_group_sort_option import OrgGroupSortOption
33-
from datadog_api_client.v2.model.org_group_include_option import OrgGroupIncludeOption
3433
from datadog_api_client.v2.model.org_group_response import OrgGroupResponse
3534
from datadog_api_client.v2.model.org_group_create_request import OrgGroupCreateRequest
3635
from datadog_api_client.v2.model.org_group_update_request import OrgGroupUpdateRequest
@@ -484,12 +483,6 @@ def __init__(self, api_client=None):
484483
"attribute": "sort",
485484
"location": "query",
486485
},
487-
"include": {
488-
"openapi_types": ([OrgGroupIncludeOption],),
489-
"attribute": "include",
490-
"location": "query",
491-
"collection_format": "csv",
492-
},
493486
},
494487
headers_map={
495488
"accept": ["application/json"],
@@ -929,7 +922,6 @@ def list_org_groups(
929922
page_number: Union[int, UnsetType] = unset,
930923
page_size: Union[int, UnsetType] = unset,
931924
sort: Union[OrgGroupSortOption, UnsetType] = unset,
932-
include: Union[List[OrgGroupIncludeOption], UnsetType] = unset,
933925
) -> OrgGroupListResponse:
934926
"""List org groups.
935927
@@ -941,8 +933,6 @@ def list_org_groups(
941933
:type page_size: int, optional
942934
:param sort: Field to sort org groups by. Supported values: ``name`` , ``uuid`` , ``-name`` , ``-uuid``. Defaults to ``uuid``.
943935
:type sort: OrgGroupSortOption, optional
944-
:param include: List of related resources to include.
945-
:type include: [OrgGroupIncludeOption], optional
946936
:rtype: OrgGroupListResponse
947937
"""
948938
kwargs: Dict[str, Any] = {}
@@ -955,9 +945,6 @@ def list_org_groups(
955945
if sort is not unset:
956946
kwargs["sort"] = sort
957947

958-
if include is not unset:
959-
kwargs["include"] = include
960-
961948
return self._list_org_groups_endpoint.call_with_http_info(**kwargs)
962949

963950
def update_org_group(

src/datadog_api_client/v2/model/org_group_data.py

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,39 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union, TYPE_CHECKING
6+
from typing import TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11-
unset,
12-
UnsetType,
1311
UUID,
1412
)
1513

1614

1715
if TYPE_CHECKING:
1816
from datadog_api_client.v2.model.org_group_attributes import OrgGroupAttributes
19-
from datadog_api_client.v2.model.org_group_relationships import OrgGroupRelationships
2017
from datadog_api_client.v2.model.org_group_type import OrgGroupType
2118

2219

2320
class OrgGroupData(ModelNormal):
2421
@cached_property
2522
def openapi_types(_):
2623
from datadog_api_client.v2.model.org_group_attributes import OrgGroupAttributes
27-
from datadog_api_client.v2.model.org_group_relationships import OrgGroupRelationships
2824
from datadog_api_client.v2.model.org_group_type import OrgGroupType
2925

3026
return {
3127
"attributes": (OrgGroupAttributes,),
3228
"id": (UUID,),
33-
"relationships": (OrgGroupRelationships,),
3429
"type": (OrgGroupType,),
3530
}
3631

3732
attribute_map = {
3833
"attributes": "attributes",
3934
"id": "id",
40-
"relationships": "relationships",
4135
"type": "type",
4236
}
4337

44-
def __init__(
45-
self_,
46-
attributes: OrgGroupAttributes,
47-
id: UUID,
48-
type: OrgGroupType,
49-
relationships: Union[OrgGroupRelationships, UnsetType] = unset,
50-
**kwargs,
51-
):
38+
def __init__(self_, attributes: OrgGroupAttributes, id: UUID, type: OrgGroupType, **kwargs):
5239
"""
5340
An org group resource.
5441
@@ -58,14 +45,9 @@ def __init__(
5845
:param id: The ID of the org group.
5946
:type id: UUID
6047
61-
:param relationships: Relationships of an org group.
62-
:type relationships: OrgGroupRelationships, optional
63-
6448
:param type: Org groups resource type.
6549
:type type: OrgGroupType
6650
"""
67-
if relationships is not unset:
68-
kwargs["relationships"] = relationships
6951
super().__init__(kwargs)
7052

7153
self_.attributes = attributes

0 commit comments

Comments
 (0)