Skip to content

Commit a6d4552

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 69ff1ff of spec repo
1 parent 31510a0 commit a6d4552

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
@@ -58973,22 +58959,13 @@ components:
5897358959
example: "a1b2c3d4-e5f6-7890-abcd-ef0123456789"
5897458960
format: uuid
5897558961
type: string
58976-
relationships:
58977-
$ref: "#/components/schemas/OrgGroupRelationships"
5897858962
type:
5897958963
$ref: "#/components/schemas/OrgGroupType"
5898058964
required:
5898158965
- id
5898258966
- type
5898358967
- attributes
5898458968
type: object
58985-
OrgGroupIncludeOption:
58986-
description: Allowed include options for org group endpoints.
58987-
enum:
58988-
- memberships
58989-
type: string
58990-
x-enum-varnames:
58991-
- MEMBERSHIPS
5899258969
OrgGroupListResponse:
5899358970
description: Response containing a list of org groups.
5899458971
properties:
@@ -58997,11 +58974,6 @@ components:
5899758974
items:
5899858975
$ref: "#/components/schemas/OrgGroupData"
5899958976
type: array
59000-
included:
59001-
description: Related resources included in the response when requested with the `include` parameter.
59002-
items:
59003-
$ref: "#/components/schemas/OrgGroupMembershipData"
59004-
type: array
5900558977
links:
5900658978
$ref: "#/components/schemas/OrgGroupPaginationLinks"
5900758979
meta:
@@ -59128,20 +59100,6 @@ components:
5912859100
required:
5912959101
- data
5913059102
type: object
59131-
OrgGroupMembershipRelationshipData:
59132-
description: A reference to an org group membership.
59133-
properties:
59134-
id:
59135-
description: The ID of the membership.
59136-
example: "f1e2d3c4-b5a6-7890-1234-567890abcdef"
59137-
format: uuid
59138-
type: string
59139-
type:
59140-
$ref: "#/components/schemas/OrgGroupMembershipType"
59141-
required:
59142-
- id
59143-
- type
59144-
type: object
5914559103
OrgGroupMembershipRelationships:
5914659104
description: Relationships of an org group membership.
5914759105
properties:
@@ -59212,17 +59170,6 @@ components:
5921259170
required:
5921359171
- data
5921459172
type: object
59215-
OrgGroupMembershipsRelationship:
59216-
description: Relationship to org group memberships.
59217-
properties:
59218-
data:
59219-
description: An array of membership relationship references.
59220-
items:
59221-
$ref: "#/components/schemas/OrgGroupMembershipRelationshipData"
59222-
type: array
59223-
required:
59224-
- data
59225-
type: object
5922659173
OrgGroupPaginationLinks:
5922759174
description: Pagination links for navigating between pages of an org group list response.
5922859175
properties:
@@ -59456,18 +59403,18 @@ components:
5945659403
- attributes
5945759404
type: object
5945859405
OrgGroupPolicyEnforcementTier:
59459-
default: DEFAULT
59406+
default: OVERRIDE_ALLOWED
5946059407
description: >-
59461-
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.
59408+
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.
5946259409
enum:
59463-
- DEFAULT
59464-
- ENFORCE
59410+
- OVERRIDE_ALLOWED
59411+
- GROUP_MANAGED
5946559412
- DELEGATE
59466-
example: DEFAULT
59413+
example: OVERRIDE_ALLOWED
5946759414
type: string
5946859415
x-enum-varnames:
59469-
- DEFAULT
59470-
- ENFORCE
59416+
- OVERRIDE_ALLOWED
59417+
- GROUP_MANAGED
5947159418
- DELEGATE
5947259419
OrgGroupPolicyListResponse:
5947359420
description: Response containing a list of org group policies.
@@ -59808,12 +59755,6 @@ components:
5980859755
- id
5980959756
- type
5981059757
type: object
59811-
OrgGroupRelationships:
59812-
description: Relationships of an org group.
59813-
properties:
59814-
memberships:
59815-
$ref: "#/components/schemas/OrgGroupMembershipsRelationship"
59816-
type: object
5981759758
OrgGroupResponse:
5981859759
description: Response containing a single org group.
5981959760
properties:
@@ -132865,7 +132806,7 @@ paths:
132865132806
- attributes:
132866132807
content:
132867132808
value: "UTC"
132868-
enforcement_tier: "DEFAULT"
132809+
enforcement_tier: "OVERRIDE_ALLOWED"
132869132810
modified_at: "2024-01-15T10:30:00Z"
132870132811
policy_name: "monitor_timezone"
132871132812
policy_type: "org_config"
@@ -132937,7 +132878,7 @@ paths:
132937132878
attributes:
132938132879
content:
132939132880
value: "UTC"
132940-
enforcement_tier: "DEFAULT"
132881+
enforcement_tier: "OVERRIDE_ALLOWED"
132941132882
policy_name: "monitor_timezone"
132942132883
policy_type: "org_config"
132943132884
relationships:
@@ -132960,7 +132901,7 @@ paths:
132960132901
attributes:
132961132902
content:
132962132903
value: "UTC"
132963-
enforcement_tier: "DEFAULT"
132904+
enforcement_tier: "OVERRIDE_ALLOWED"
132964132905
modified_at: "2024-01-15T10:30:00Z"
132965132906
policy_name: "monitor_timezone"
132966132907
policy_type: "org_config"
@@ -133069,7 +133010,7 @@ paths:
133069133010
attributes:
133070133011
content:
133071133012
value: "UTC"
133072-
enforcement_tier: "DEFAULT"
133013+
enforcement_tier: "OVERRIDE_ALLOWED"
133073133014
modified_at: "2024-01-15T10:30:00Z"
133074133015
policy_name: "monitor_timezone"
133075133016
policy_type: "org_config"
@@ -133133,7 +133074,7 @@ paths:
133133133074
attributes:
133134133075
content:
133135133076
value: "US/Eastern"
133136-
enforcement_tier: "ENFORCE"
133077+
enforcement_tier: "GROUP_MANAGED"
133137133078
id: "1a2b3c4d-5e6f-7890-abcd-ef0123456789"
133138133079
type: org_group_policies
133139133080
schema:
@@ -133150,7 +133091,7 @@ paths:
133150133091
attributes:
133151133092
content:
133152133093
value: "US/Eastern"
133153-
enforcement_tier: "ENFORCE"
133094+
enforcement_tier: "GROUP_MANAGED"
133154133095
modified_at: "2024-01-16T14:00:00Z"
133155133096
policy_name: "monitor_timezone"
133156133097
policy_type: "org_config"
@@ -133617,7 +133558,6 @@ paths:
133617133558
- $ref: "#/components/parameters/OrgGroupPageNumber"
133618133559
- $ref: "#/components/parameters/OrgGroupPageSize"
133619133560
- $ref: "#/components/parameters/OrgGroupSort"
133620-
- $ref: "#/components/parameters/OrgGroupInclude"
133621133561
responses:
133622133562
"200":
133623133563
content:

docs/datadog_api_client.v2.model.rst

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

25410-
datadog\_api\_client.v2.model.org\_group\_include\_option module
25411-
----------------------------------------------------------------
25412-
25413-
.. automodule:: datadog_api_client.v2.model.org_group_include_option
25414-
:members:
25415-
:show-inheritance:
25416-
2541725410
datadog\_api\_client.v2.model.org\_group\_list\_response module
2541825411
---------------------------------------------------------------
2541925412

@@ -25477,13 +25470,6 @@ datadog\_api\_client.v2.model.org\_group\_membership\_list\_response module
2547725470
:members:
2547825471
:show-inheritance:
2547925472

25480-
datadog\_api\_client.v2.model.org\_group\_membership\_relationship\_data module
25481-
-------------------------------------------------------------------------------
25482-
25483-
.. automodule:: datadog_api_client.v2.model.org_group_membership_relationship_data
25484-
:members:
25485-
:show-inheritance:
25486-
2548725473
datadog\_api\_client.v2.model.org\_group\_membership\_relationships module
2548825474
--------------------------------------------------------------------------
2548925475

@@ -25533,13 +25519,6 @@ datadog\_api\_client.v2.model.org\_group\_membership\_update\_request module
2553325519
:members:
2553425520
:show-inheritance:
2553525521

25536-
datadog\_api\_client.v2.model.org\_group\_memberships\_relationship module
25537-
--------------------------------------------------------------------------
25538-
25539-
.. automodule:: datadog_api_client.v2.model.org_group_memberships_relationship
25540-
:members:
25541-
:show-inheritance:
25542-
2554325522
datadog\_api\_client.v2.model.org\_group\_pagination\_links module
2554425523
------------------------------------------------------------------
2554525524

@@ -25827,13 +25806,6 @@ datadog\_api\_client.v2.model.org\_group\_relationship\_to\_one\_data module
2582725806
:members:
2582825807
:show-inheritance:
2582925808

25830-
datadog\_api\_client.v2.model.org\_group\_relationships module
25831-
--------------------------------------------------------------
25832-
25833-
.. automodule:: datadog_api_client.v2.model.org_group_relationships
25834-
:members:
25835-
:show-inheritance:
25836-
2583725809
datadog\_api\_client.v2.model.org\_group\_response module
2583825810
---------------------------------------------------------
2583925811

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)