33# Copyright 2019-Present Datadog, Inc.
44from __future__ import annotations
55
6- from typing import Union , TYPE_CHECKING
6+ from typing import List , Union , TYPE_CHECKING
77
88from datadog_api_client .model_utils import (
99 ModelNormal ,
1414
1515
1616if TYPE_CHECKING :
17+ from datadog_api_client .v2 .model .tenancy_config_data_attributes_grace_resource import (
18+ TenancyConfigDataAttributesGraceResource ,
19+ )
1720 from datadog_api_client .v2 .model .tenancy_config_data_attributes_logs_config import (
1821 TenancyConfigDataAttributesLogsConfig ,
1922 )
@@ -34,6 +37,9 @@ class TenancyConfigDataAttributes(ModelNormal):
3437
3538 @cached_property
3639 def openapi_types (_ ):
40+ from datadog_api_client .v2 .model .tenancy_config_data_attributes_grace_resource import (
41+ TenancyConfigDataAttributesGraceResource ,
42+ )
3743 from datadog_api_client .v2 .model .tenancy_config_data_attributes_logs_config import (
3844 TenancyConfigDataAttributesLogsConfig ,
3945 )
@@ -45,57 +51,78 @@ def openapi_types(_):
4551 )
4652
4753 return {
54+ "account_tags" : ([str ],),
4855 "billing_plan_id" : (int ,),
4956 "config_version" : (int ,),
5057 "cost_collection_enabled" : (bool ,),
5158 "dd_compartment_id" : (str ,),
59+ "dd_iac_version" : (str ,),
5260 "dd_stack_id" : (str ,),
61+ "defined_tags" : ([str ],),
62+ "events_collection_enabled" : (bool ,),
63+ "grace_resource" : (TenancyConfigDataAttributesGraceResource ,),
5364 "home_region" : (str ,),
5465 "logs_config" : (TenancyConfigDataAttributesLogsConfig ,),
5566 "metrics_config" : (TenancyConfigDataAttributesMetricsConfig ,),
5667 "parent_tenancy_name" : (str ,),
5768 "regions_config" : (TenancyConfigDataAttributesRegionsConfig ,),
5869 "resource_collection_enabled" : (bool ,),
70+ "service_quota_collection_enabled" : (bool ,),
5971 "tenancy_name" : (str ,),
6072 "user_ocid" : (str ,),
6173 }
6274
6375 attribute_map = {
76+ "account_tags" : "account_tags" ,
6477 "billing_plan_id" : "billing_plan_id" ,
6578 "config_version" : "config_version" ,
6679 "cost_collection_enabled" : "cost_collection_enabled" ,
6780 "dd_compartment_id" : "dd_compartment_id" ,
81+ "dd_iac_version" : "dd_iac_version" ,
6882 "dd_stack_id" : "dd_stack_id" ,
83+ "defined_tags" : "defined_tags" ,
84+ "events_collection_enabled" : "events_collection_enabled" ,
85+ "grace_resource" : "grace_resource" ,
6986 "home_region" : "home_region" ,
7087 "logs_config" : "logs_config" ,
7188 "metrics_config" : "metrics_config" ,
7289 "parent_tenancy_name" : "parent_tenancy_name" ,
7390 "regions_config" : "regions_config" ,
7491 "resource_collection_enabled" : "resource_collection_enabled" ,
92+ "service_quota_collection_enabled" : "service_quota_collection_enabled" ,
7593 "tenancy_name" : "tenancy_name" ,
7694 "user_ocid" : "user_ocid" ,
7795 }
7896
7997 def __init__ (
8098 self_ ,
99+ account_tags : Union [List [str ], UnsetType ] = unset ,
81100 billing_plan_id : Union [int , UnsetType ] = unset ,
82101 config_version : Union [int , UnsetType ] = unset ,
83102 cost_collection_enabled : Union [bool , UnsetType ] = unset ,
84103 dd_compartment_id : Union [str , UnsetType ] = unset ,
104+ dd_iac_version : Union [str , UnsetType ] = unset ,
85105 dd_stack_id : Union [str , UnsetType ] = unset ,
106+ defined_tags : Union [List [str ], UnsetType ] = unset ,
107+ events_collection_enabled : Union [bool , UnsetType ] = unset ,
108+ grace_resource : Union [TenancyConfigDataAttributesGraceResource , UnsetType ] = unset ,
86109 home_region : Union [str , UnsetType ] = unset ,
87110 logs_config : Union [TenancyConfigDataAttributesLogsConfig , UnsetType ] = unset ,
88111 metrics_config : Union [TenancyConfigDataAttributesMetricsConfig , UnsetType ] = unset ,
89112 parent_tenancy_name : Union [str , UnsetType ] = unset ,
90113 regions_config : Union [TenancyConfigDataAttributesRegionsConfig , UnsetType ] = unset ,
91114 resource_collection_enabled : Union [bool , UnsetType ] = unset ,
115+ service_quota_collection_enabled : Union [bool , UnsetType ] = unset ,
92116 tenancy_name : Union [str , UnsetType ] = unset ,
93117 user_ocid : Union [str , UnsetType ] = unset ,
94118 ** kwargs ,
95119 ):
96120 """
97121 Attributes of an OCI tenancy integration configuration, including authentication details, region settings, and collection options.
98122
123+ :param account_tags: List of Datadog tags applied to data collected from the tenancy.
124+ :type account_tags: [str], optional
125+
99126 :param billing_plan_id: The identifier of the billing plan associated with the OCI tenancy.
100127 :type billing_plan_id: int, optional
101128
@@ -108,9 +135,21 @@ def __init__(
108135 :param dd_compartment_id: The OCID of the OCI compartment used by the Datadog integration stack.
109136 :type dd_compartment_id: str, optional
110137
138+ :param dd_iac_version: The version of the Datadog infrastructure-as-code stack applied to the tenancy (for example, 1.2.0).
139+ :type dd_iac_version: str, optional
140+
111141 :param dd_stack_id: The OCID of the OCI Resource Manager stack used by the Datadog integration.
112142 :type dd_stack_id: str, optional
113143
144+ :param defined_tags: List of OCI defined tags applied to the Datadog-managed connector hubs.
145+ :type defined_tags: [str], optional
146+
147+ :param events_collection_enabled: Whether resource change events collection from OCI is enabled for the tenancy.
148+ :type events_collection_enabled: bool, optional
149+
150+ :param grace_resource: Access control details for the tenancy configuration, used to determine whether the requesting user can edit it.
151+ :type grace_resource: TenancyConfigDataAttributesGraceResource, optional
152+
114153 :param home_region: The home region of the OCI tenancy (for example, us-ashburn-1).
115154 :type home_region: str, optional
116155
@@ -129,12 +168,17 @@ def __init__(
129168 :param resource_collection_enabled: Whether resource collection from OCI is enabled for the tenancy.
130169 :type resource_collection_enabled: bool, optional
131170
171+ :param service_quota_collection_enabled: Whether service quota collection from OCI is enabled for the tenancy.
172+ :type service_quota_collection_enabled: bool, optional
173+
132174 :param tenancy_name: The human-readable name of the OCI tenancy.
133175 :type tenancy_name: str, optional
134176
135177 :param user_ocid: The OCID of the OCI user used by the Datadog integration for authentication.
136178 :type user_ocid: str, optional
137179 """
180+ if account_tags is not unset :
181+ kwargs ["account_tags" ] = account_tags
138182 if billing_plan_id is not unset :
139183 kwargs ["billing_plan_id" ] = billing_plan_id
140184 if config_version is not unset :
@@ -143,8 +187,16 @@ def __init__(
143187 kwargs ["cost_collection_enabled" ] = cost_collection_enabled
144188 if dd_compartment_id is not unset :
145189 kwargs ["dd_compartment_id" ] = dd_compartment_id
190+ if dd_iac_version is not unset :
191+ kwargs ["dd_iac_version" ] = dd_iac_version
146192 if dd_stack_id is not unset :
147193 kwargs ["dd_stack_id" ] = dd_stack_id
194+ if defined_tags is not unset :
195+ kwargs ["defined_tags" ] = defined_tags
196+ if events_collection_enabled is not unset :
197+ kwargs ["events_collection_enabled" ] = events_collection_enabled
198+ if grace_resource is not unset :
199+ kwargs ["grace_resource" ] = grace_resource
148200 if home_region is not unset :
149201 kwargs ["home_region" ] = home_region
150202 if logs_config is not unset :
@@ -157,6 +209,8 @@ def __init__(
157209 kwargs ["regions_config" ] = regions_config
158210 if resource_collection_enabled is not unset :
159211 kwargs ["resource_collection_enabled" ] = resource_collection_enabled
212+ if service_quota_collection_enabled is not unset :
213+ kwargs ["service_quota_collection_enabled" ] = service_quota_collection_enabled
160214 if tenancy_name is not unset :
161215 kwargs ["tenancy_name" ] = tenancy_name
162216 if user_ocid is not unset :
0 commit comments