Skip to content

Commit 4105f2d

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5d4dec2 of spec repo
1 parent d717f6d commit 4105f2d

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
@@ -59113,22 +59099,13 @@ components:
5911359099
example: "a1b2c3d4-e5f6-7890-abcd-ef0123456789"
5911459100
format: uuid
5911559101
type: string
59116-
relationships:
59117-
$ref: "#/components/schemas/OrgGroupRelationships"
5911859102
type:
5911959103
$ref: "#/components/schemas/OrgGroupType"
5912059104
required:
5912159105
- id
5912259106
- type
5912359107
- attributes
5912459108
type: object
59125-
OrgGroupIncludeOption:
59126-
description: Allowed include options for org group endpoints.
59127-
enum:
59128-
- memberships
59129-
type: string
59130-
x-enum-varnames:
59131-
- MEMBERSHIPS
5913259109
OrgGroupListResponse:
5913359110
description: Response containing a list of org groups.
5913459111
properties:
@@ -59137,11 +59114,6 @@ components:
5913759114
items:
5913859115
$ref: "#/components/schemas/OrgGroupData"
5913959116
type: array
59140-
included:
59141-
description: Related resources included in the response when requested with the `include` parameter.
59142-
items:
59143-
$ref: "#/components/schemas/OrgGroupMembershipData"
59144-
type: array
5914559117
links:
5914659118
$ref: "#/components/schemas/OrgGroupPaginationLinks"
5914759119
meta:
@@ -59268,20 +59240,6 @@ components:
5926859240
required:
5926959241
- data
5927059242
type: object
59271-
OrgGroupMembershipRelationshipData:
59272-
description: A reference to an org group membership.
59273-
properties:
59274-
id:
59275-
description: The ID of the membership.
59276-
example: "f1e2d3c4-b5a6-7890-1234-567890abcdef"
59277-
format: uuid
59278-
type: string
59279-
type:
59280-
$ref: "#/components/schemas/OrgGroupMembershipType"
59281-
required:
59282-
- id
59283-
- type
59284-
type: object
5928559243
OrgGroupMembershipRelationships:
5928659244
description: Relationships of an org group membership.
5928759245
properties:
@@ -59352,17 +59310,6 @@ components:
5935259310
required:
5935359311
- data
5935459312
type: object
59355-
OrgGroupMembershipsRelationship:
59356-
description: Relationship to org group memberships.
59357-
properties:
59358-
data:
59359-
description: An array of membership relationship references.
59360-
items:
59361-
$ref: "#/components/schemas/OrgGroupMembershipRelationshipData"
59362-
type: array
59363-
required:
59364-
- data
59365-
type: object
5936659313
OrgGroupPaginationLinks:
5936759314
description: Pagination links for navigating between pages of an org group list response.
5936859315
properties:
@@ -59596,18 +59543,18 @@ components:
5959659543
- attributes
5959759544
type: object
5959859545
OrgGroupPolicyEnforcementTier:
59599-
default: DEFAULT
59546+
default: OVERRIDE_ALLOWED
5960059547
description: >-
59601-
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.
59548+
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.
5960259549
enum:
59603-
- DEFAULT
59604-
- ENFORCE
59550+
- OVERRIDE_ALLOWED
59551+
- GROUP_MANAGED
5960559552
- DELEGATE
59606-
example: DEFAULT
59553+
example: OVERRIDE_ALLOWED
5960759554
type: string
5960859555
x-enum-varnames:
59609-
- DEFAULT
59610-
- ENFORCE
59556+
- OVERRIDE_ALLOWED
59557+
- GROUP_MANAGED
5961159558
- DELEGATE
5961259559
OrgGroupPolicyListResponse:
5961359560
description: Response containing a list of org group policies.
@@ -59948,12 +59895,6 @@ components:
5994859895
- id
5994959896
- type
5995059897
type: object
59951-
OrgGroupRelationships:
59952-
description: Relationships of an org group.
59953-
properties:
59954-
memberships:
59955-
$ref: "#/components/schemas/OrgGroupMembershipsRelationship"
59956-
type: object
5995759898
OrgGroupResponse:
5995859899
description: Response containing a single org group.
5995959900
properties:
@@ -133677,7 +133618,7 @@ paths:
133677133618
- attributes:
133678133619
content:
133679133620
value: "UTC"
133680-
enforcement_tier: "DEFAULT"
133621+
enforcement_tier: "OVERRIDE_ALLOWED"
133681133622
modified_at: "2024-01-15T10:30:00Z"
133682133623
policy_name: "monitor_timezone"
133683133624
policy_type: "org_config"
@@ -133749,7 +133690,7 @@ paths:
133749133690
attributes:
133750133691
content:
133751133692
value: "UTC"
133752-
enforcement_tier: "DEFAULT"
133693+
enforcement_tier: "OVERRIDE_ALLOWED"
133753133694
policy_name: "monitor_timezone"
133754133695
policy_type: "org_config"
133755133696
relationships:
@@ -133772,7 +133713,7 @@ paths:
133772133713
attributes:
133773133714
content:
133774133715
value: "UTC"
133775-
enforcement_tier: "DEFAULT"
133716+
enforcement_tier: "OVERRIDE_ALLOWED"
133776133717
modified_at: "2024-01-15T10:30:00Z"
133777133718
policy_name: "monitor_timezone"
133778133719
policy_type: "org_config"
@@ -133881,7 +133822,7 @@ paths:
133881133822
attributes:
133882133823
content:
133883133824
value: "UTC"
133884-
enforcement_tier: "DEFAULT"
133825+
enforcement_tier: "OVERRIDE_ALLOWED"
133885133826
modified_at: "2024-01-15T10:30:00Z"
133886133827
policy_name: "monitor_timezone"
133887133828
policy_type: "org_config"
@@ -133945,7 +133886,7 @@ paths:
133945133886
attributes:
133946133887
content:
133947133888
value: "US/Eastern"
133948-
enforcement_tier: "ENFORCE"
133889+
enforcement_tier: "GROUP_MANAGED"
133949133890
id: "1a2b3c4d-5e6f-7890-abcd-ef0123456789"
133950133891
type: org_group_policies
133951133892
schema:
@@ -133962,7 +133903,7 @@ paths:
133962133903
attributes:
133963133904
content:
133964133905
value: "US/Eastern"
133965-
enforcement_tier: "ENFORCE"
133906+
enforcement_tier: "GROUP_MANAGED"
133966133907
modified_at: "2024-01-16T14:00:00Z"
133967133908
policy_name: "monitor_timezone"
133968133909
policy_type: "org_config"
@@ -134429,7 +134370,6 @@ paths:
134429134370
- $ref: "#/components/parameters/OrgGroupPageNumber"
134430134371
- $ref: "#/components/parameters/OrgGroupPageSize"
134431134372
- $ref: "#/components/parameters/OrgGroupSort"
134432-
- $ref: "#/components/parameters/OrgGroupInclude"
134433134373
responses:
134434134374
"200":
134435134375
content:

docs/datadog_api_client.v2.model.rst

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

25466-
datadog\_api\_client.v2.model.org\_group\_include\_option module
25467-
----------------------------------------------------------------
25468-
25469-
.. automodule:: datadog_api_client.v2.model.org_group_include_option
25470-
:members:
25471-
:show-inheritance:
25472-
2547325466
datadog\_api\_client.v2.model.org\_group\_list\_response module
2547425467
---------------------------------------------------------------
2547525468

@@ -25533,13 +25526,6 @@ datadog\_api\_client.v2.model.org\_group\_membership\_list\_response module
2553325526
:members:
2553425527
:show-inheritance:
2553525528

25536-
datadog\_api\_client.v2.model.org\_group\_membership\_relationship\_data module
25537-
-------------------------------------------------------------------------------
25538-
25539-
.. automodule:: datadog_api_client.v2.model.org_group_membership_relationship_data
25540-
:members:
25541-
:show-inheritance:
25542-
2554325529
datadog\_api\_client.v2.model.org\_group\_membership\_relationships module
2554425530
--------------------------------------------------------------------------
2554525531

@@ -25589,13 +25575,6 @@ datadog\_api\_client.v2.model.org\_group\_membership\_update\_request module
2558925575
:members:
2559025576
:show-inheritance:
2559125577

25592-
datadog\_api\_client.v2.model.org\_group\_memberships\_relationship module
25593-
--------------------------------------------------------------------------
25594-
25595-
.. automodule:: datadog_api_client.v2.model.org_group_memberships_relationship
25596-
:members:
25597-
:show-inheritance:
25598-
2559925578
datadog\_api\_client.v2.model.org\_group\_pagination\_links module
2560025579
------------------------------------------------------------------
2560125580

@@ -25883,13 +25862,6 @@ datadog\_api\_client.v2.model.org\_group\_relationship\_to\_one\_data module
2588325862
:members:
2588425863
:show-inheritance:
2588525864

25886-
datadog\_api\_client.v2.model.org\_group\_relationships module
25887-
--------------------------------------------------------------
25888-
25889-
.. automodule:: datadog_api_client.v2.model.org_group_relationships
25890-
:members:
25891-
:show-inheritance:
25892-
2589325865
datadog\_api\_client.v2.model.org\_group\_response module
2589425866
---------------------------------------------------------
2589525867

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)