Skip to content

Commit db40ae1

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 77bff33 of spec repo
1 parent 2163cba commit db40ae1

7 files changed

Lines changed: 211 additions & 18 deletions

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 76 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146152,6 +146152,12 @@ components:
146152146152
TenancyConfigDataAttributes:
146153146153
description: Attributes of an OCI tenancy integration configuration, including authentication details, region settings, and collection options.
146154146154
properties:
146155+
account_tags:
146156+
description: List of Datadog tags applied to data collected from the tenancy.
146157+
items:
146158+
description: A Datadog tag in key:value format (for example, env:prod).
146159+
type: string
146160+
type: array
146155146161
billing_plan_id:
146156146162
description: The identifier of the billing plan associated with the OCI tenancy.
146157146163
format: int32
@@ -146167,9 +146173,23 @@ components:
146167146173
dd_compartment_id:
146168146174
description: The OCID of the OCI compartment used by the Datadog integration stack.
146169146175
type: string
146176+
dd_iac_version:
146177+
description: The version of the Datadog infrastructure-as-code stack applied to the tenancy (for example, 1.2.0).
146178+
type: string
146170146179
dd_stack_id:
146171146180
description: The OCID of the OCI Resource Manager stack used by the Datadog integration.
146172146181
type: string
146182+
defined_tags:
146183+
description: List of OCI defined tags applied to the Datadog-managed connector hubs.
146184+
items:
146185+
description: An OCI defined tag in `Namespace.key:value` format (for example, `Operations.CostCenter:42`).
146186+
type: string
146187+
type: array
146188+
events_collection_enabled:
146189+
description: Whether resource change events collection from OCI is enabled for the tenancy.
146190+
type: boolean
146191+
grace_resource:
146192+
$ref: "#/components/schemas/TenancyConfigDataAttributesGraceResource"
146173146193
home_region:
146174146194
description: The home region of the OCI tenancy (for example, us-ashburn-1).
146175146195
type: string
@@ -146185,13 +146205,26 @@ components:
146185146205
resource_collection_enabled:
146186146206
description: Whether resource collection from OCI is enabled for the tenancy.
146187146207
type: boolean
146208+
service_quota_collection_enabled:
146209+
description: Whether service quota collection from OCI is enabled for the tenancy.
146210+
type: boolean
146188146211
tenancy_name:
146189146212
description: The human-readable name of the OCI tenancy.
146190146213
type: string
146191146214
user_ocid:
146192146215
description: The OCID of the OCI user used by the Datadog integration for authentication.
146193146216
type: string
146194146217
type: object
146218+
TenancyConfigDataAttributesGraceResource:
146219+
description: Access control details for the tenancy configuration, used to determine whether the requesting user can edit it.
146220+
properties:
146221+
resource_id:
146222+
description: The identifier of the access control resource for the tenancy configuration.
146223+
type: string
146224+
user_can_edit:
146225+
description: Whether the requesting user has permission to edit the tenancy configuration.
146226+
type: boolean
146227+
type: object
146195146228
TenancyConfigDataAttributesLogsConfig:
146196146229
description: Log collection configuration for an OCI tenancy, indicating which compartments and services have log collection enabled.
146197146230
properties:
@@ -146210,6 +146243,15 @@ components:
146210146243
description: An OCI service name for which log collection is enabled (for example, compute).
146211146244
type: string
146212146245
type: array
146246+
resource_tag_filters:
146247+
additionalProperties:
146248+
description: List of resource tag filters for the OCI service.
146249+
items:
146250+
description: A resource tag filter in key:value format (for example, env:prod).
146251+
type: string
146252+
type: array
146253+
description: Map of OCI service names to the resource tag filters that scope log collection for that service.
146254+
type: object
146213146255
type: object
146214146256
TenancyConfigDataAttributesMetricsConfig:
146215146257
description: Metrics collection configuration for an OCI tenancy, indicating which compartments and services are included or excluded.
@@ -146229,51 +146271,80 @@ components:
146229146271
description: An OCI service name excluded from metrics collection (for example, compute).
146230146272
type: string
146231146273
type: array
146274+
resource_tag_filters:
146275+
additionalProperties:
146276+
description: List of resource tag filters for the OCI service.
146277+
items:
146278+
description: A resource tag filter in key:value format (for example, env:prod).
146279+
type: string
146280+
type: array
146281+
description: Map of OCI service names to the resource tag filters that scope metrics collection for that service.
146282+
type: object
146232146283
type: object
146233146284
TenancyConfigDataAttributesRegionsConfig:
146234146285
description: Region configuration for an OCI tenancy, indicating which regions are available, enabled, or disabled for data collection.
146235146286
properties:
146236146287
available:
146237-
description: List of OCI regions available for data collection in the tenancy.
146288+
description: List of OCI regions available for data collection in the tenancy. Returns `null` when no regions are set.
146238146289
items:
146239146290
description: An OCI region identifier (for example, us-ashburn-1).
146240146291
type: string
146292+
nullable: true
146241146293
type: array
146242146294
disabled:
146243-
description: List of OCI regions explicitly disabled for data collection.
146295+
description: List of OCI regions explicitly disabled for data collection. Returns `null` when no regions are set.
146244146296
items:
146245146297
description: An OCI region identifier (for example, us-phoenix-1).
146246146298
type: string
146299+
nullable: true
146247146300
type: array
146248146301
enabled:
146249-
description: List of OCI regions enabled for data collection.
146302+
description: List of OCI regions enabled for data collection. Returns `null` when no regions are set.
146250146303
items:
146251146304
description: An OCI region identifier (for example, us-ashburn-1).
146252146305
type: string
146306+
nullable: true
146253146307
type: array
146254146308
type: object
146255146309
TenancyConfigList:
146256146310
description: Response containing a list of OCI tenancy integration configurations.
146257146311
example:
146258146312
data:
146259146313
- attributes:
146314+
account_tags:
146315+
- env:prod
146316+
billing_plan_id: 2
146260146317
config_version: 2
146261146318
cost_collection_enabled: true
146262146319
dd_compartment_id: ocid.compartment.test
146320+
dd_iac_version: "1.2.0"
146263146321
dd_stack_id: ocid.stack.test
146322+
defined_tags:
146323+
- Operations.CostCenter:42
146324+
events_collection_enabled: false
146325+
grace_resource:
146326+
resource_id: oci-integration-configuration:ocid.tenancy.test
146327+
user_can_edit: true
146264146328
home_region: us-ashburn-1
146265146329
logs_config:
146266146330
compartment_tag_filters:
146267146331
- compartment.test
146268146332
enabled: true
146269146333
enabled_services:
146270146334
- compute
146335+
resource_tag_filters:
146336+
compute:
146337+
- env:prod
146271146338
metrics_config:
146272146339
compartment_tag_filters:
146273146340
- compartment.test
146274146341
enabled: true
146275146342
excluded_services:
146276146343
- compute
146344+
resource_tag_filters:
146345+
compute:
146346+
- env:prod
146347+
parent_tenancy_name: parent-tenancy
146277146348
regions_config:
146278146349
available:
146279146350
- us-ashburn-1
@@ -146283,6 +146354,8 @@ components:
146283146354
enabled:
146284146355
- us-ashburn-1
146285146356
resource_collection_enabled: true
146357+
service_quota_collection_enabled: false
146358+
tenancy_name: test-tenancy
146286146359
user_ocid: ocid.user.test
146287146360
id: ocid.tenancy.test
146288146361
type: oci_tenancy

‎src/datadog_api_client/v2/model/tenancy_config_data_attributes.py‎

Lines changed: 55 additions & 1 deletion
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 Union, TYPE_CHECKING
6+
from typing import List, Union, TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
@@ -14,6 +14,9 @@
1414

1515

1616
if 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:
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Union
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
class TenancyConfigDataAttributesGraceResource(ModelNormal):
17+
@cached_property
18+
def openapi_types(_):
19+
return {
20+
"resource_id": (str,),
21+
"user_can_edit": (bool,),
22+
}
23+
24+
attribute_map = {
25+
"resource_id": "resource_id",
26+
"user_can_edit": "user_can_edit",
27+
}
28+
29+
def __init__(
30+
self_, resource_id: Union[str, UnsetType] = unset, user_can_edit: Union[bool, UnsetType] = unset, **kwargs
31+
):
32+
"""
33+
Access control details for the tenancy configuration, used to determine whether the requesting user can edit it.
34+
35+
:param resource_id: The identifier of the access control resource for the tenancy configuration.
36+
:type resource_id: str, optional
37+
38+
:param user_can_edit: Whether the requesting user has permission to edit the tenancy configuration.
39+
:type user_can_edit: bool, optional
40+
"""
41+
if resource_id is not unset:
42+
kwargs["resource_id"] = resource_id
43+
if user_can_edit is not unset:
44+
kwargs["user_can_edit"] = user_can_edit
45+
super().__init__(kwargs)

0 commit comments

Comments
 (0)