Skip to content

Commit

Permalink
Regenerate client from commit fdce6690 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Mar 8, 2023
1 parent 3a701d6 commit 15f7d6d
Show file tree
Hide file tree
Showing 12 changed files with 63 additions and 27 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.4",
"regenerated": "2023-03-07 22:36:00.834683",
"spec_repo_commit": "73e66c9a"
"regenerated": "2023-03-08 22:56:46.605339",
"spec_repo_commit": "fdce6690"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-03-07 22:36:00.847119",
"spec_repo_commit": "73e66c9a"
"regenerated": "2023-03-08 22:56:46.623502",
"spec_repo_commit": "fdce6690"
}
}
}
28 changes: 20 additions & 8 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,7 @@ components:
description: Cancel downtimes according to scope.
properties:
scope:
description: 'The scope(s) to which the downtime applies and must be in
`key:value` format. For example, `host:app2`.
description: 'The scope(s) to which the downtime applies. For example, `host:app2`.

Provide multiple scopes as a comma-separated list like `env:dev,env:prod`.

Expand Down Expand Up @@ -1679,8 +1678,7 @@ components:
recurrence:
$ref: '#/components/schemas/DowntimeRecurrence'
scope:
description: 'The scope(s) to which the downtime applies and must be in
`key:value` format. For example, `host:app2`.
description: 'The scope(s) to which the downtime applies. For example, `host:app2`.

Provide multiple scopes as a comma-separated list like `env:dev,env:prod`.

Expand Down Expand Up @@ -1814,8 +1812,7 @@ components:
recurrence:
$ref: '#/components/schemas/DowntimeRecurrence'
scope:
description: 'The scope(s) to which the downtime applies and must be in
`key:value` format. For example, `host:app2`.
description: 'The scope(s) to which the downtime applies. For example, `host:app2`.

Provide multiple scopes as a comma-separated list like `env:dev,env:prod`.

Expand Down Expand Up @@ -16714,6 +16711,11 @@ components:
the current date for all organizations.
format: int64
type: integer
audit_trail_enabled_hwm:
description: Shows the number of organizations that had Audit Trail enabled
in the current date.
format: int64
type: integer
avg_profiled_fargate_tasks:
description: The average profiled task count for Fargate Profiling.
format: int64
Expand Down Expand Up @@ -17100,6 +17102,11 @@ components:
in the current date for the given org.
format: int64
type: integer
audit_trail_enabled_hwm:
description: Shows whether Audit Trail is enabled for the current date for
the given org.
format: int64
type: integer
avg_profiled_fargate_tasks:
description: The average profiled task count for Fargate Profiling.
format: int64
Expand Down Expand Up @@ -17489,6 +17496,11 @@ components:
in the current months for all organizations.
format: int64
type: integer
audit_trail_enabled_hwm_sum:
description: Shows the total number of organizations that had Audit Trail
enabled over a specific number of months.
format: int64
type: integer
avg_profiled_fargate_tasks_sum:
description: Shows the average of all profiled Fargate tasks over all hours
in the current months for all organizations.
Expand Down Expand Up @@ -20764,14 +20776,14 @@ paths:
name: metric_query
schema:
type: string
- description: The POSIX timestamp of the start of the query in seconds.
- description: The POSIX timestamp of the start of the query.
in: query
name: start
required: true
schema:
format: int64
type: integer
- description: The POSIX timestamp of the end of the query in seconds.
- description: The POSIX timestamp of the end of the query.
in: query
name: end
required: true
Expand Down
10 changes: 5 additions & 5 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ components:
type: integer
ResourceID:
description: 'Identifier, formatted as `type:id`. Supported types: `connection`,
`dashboard`, `notebook`, `security-rule`, `slo`.'
`dashboard`, `notebook`, `security-rule`.'
example: dashboard:abc-def-ghi
in: path
name: resource_id
Expand Down Expand Up @@ -17738,9 +17738,7 @@ paths:

- Notebooks: `notebook`

- Security Rules: `security-rule`

- Service Level Objectives: `slo`'
- Security Rules: `security-rule`'
operationId: UpdateRestrictionPolicy
parameters:
- $ref: '#/components/parameters/ResourceID'
Expand Down Expand Up @@ -20790,7 +20788,9 @@ paths:
- description: 'Comma separated list of product families to retrieve. Available
families are `all`, `analyzed_logs`,

`application_security`, `audit_logs`, `serverless`, `ci_app`, `cloud_cost_management`,
`application_security`, `audit_logs`, `audit_trail`, `serverless`, `ci_app`,
`cloud_cost_management`,

`cspm`, `custom_events`, `cws`, `dbm`, `fargate`,

`infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`,
Expand Down
4 changes: 2 additions & 2 deletions src/datadog_api_client/v1/api/snapshots_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ def get_graph_snapshot(
Take graph snapshots.
**Note** : When a snapshot is created, there is some delay before it is available.
:param start: The POSIX timestamp of the start of the query in seconds.
:param start: The POSIX timestamp of the start of the query.
:type start: int
:param end: The POSIX timestamp of the end of the query in seconds.
:param end: The POSIX timestamp of the end of the query.
:type end: int
:param metric_query: The metric query.
:type metric_query: str, optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self_, scope: str, **kwargs):
"""
Cancel downtimes according to scope.
:param scope: The scope(s) to which the downtime applies and must be in ``key:value`` format. For example, ``host:app2``.
:param scope: The scope(s) to which the downtime applies. For example, ``host:app2``.
Provide multiple scopes as a comma-separated list like ``env:dev,env:prod``.
The resulting downtime applies to sources that matches ALL provided scopes ( ``env:dev`` **AND** ``env:prod`` ).
:type scope: str
Expand Down
2 changes: 1 addition & 1 deletion src/datadog_api_client/v1/model/downtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def __init__(
:param recurrence: An object defining the recurrence of the downtime.
:type recurrence: DowntimeRecurrence, none_type, optional
:param scope: The scope(s) to which the downtime applies and must be in ``key:value`` format. For example, ``host:app2``.
:param scope: The scope(s) to which the downtime applies. For example, ``host:app2``.
Provide multiple scopes as a comma-separated list like ``env:dev,env:prod``.
The resulting downtime applies to sources that matches ALL provided scopes ( ``env:dev`` **AND** ``env:prod`` ).
:type scope: [str], optional
Expand Down
2 changes: 1 addition & 1 deletion src/datadog_api_client/v1/model/downtime_child.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def __init__(
:param recurrence: An object defining the recurrence of the downtime.
:type recurrence: DowntimeRecurrence, none_type, optional
:param scope: The scope(s) to which the downtime applies and must be in ``key:value`` format. For example, ``host:app2``.
:param scope: The scope(s) to which the downtime applies. For example, ``host:app2``.
Provide multiple scopes as a comma-separated list like ``env:dev,env:prod``.
The resulting downtime applies to sources that matches ALL provided scopes ( ``env:dev`` **AND** ``env:prod`` ).
:type scope: [str], optional
Expand Down
8 changes: 8 additions & 0 deletions src/datadog_api_client/v1/model/usage_summary_date.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def openapi_types(_):
"apm_host_top99p": (int,),
"appsec_fargate_count_avg": (int,),
"audit_logs_lines_indexed_sum": (int,),
"audit_trail_enabled_hwm": (int,),
"avg_profiled_fargate_tasks": (int,),
"aws_host_top99p": (int,),
"aws_lambda_func_count": (int,),
Expand Down Expand Up @@ -109,6 +110,7 @@ def openapi_types(_):
"apm_host_top99p": "apm_host_top99p",
"appsec_fargate_count_avg": "appsec_fargate_count_avg",
"audit_logs_lines_indexed_sum": "audit_logs_lines_indexed_sum",
"audit_trail_enabled_hwm": "audit_trail_enabled_hwm",
"avg_profiled_fargate_tasks": "avg_profiled_fargate_tasks",
"aws_host_top99p": "aws_host_top99p",
"aws_lambda_func_count": "aws_lambda_func_count",
Expand Down Expand Up @@ -189,6 +191,7 @@ def __init__(
apm_host_top99p: Union[int, UnsetType] = unset,
appsec_fargate_count_avg: Union[int, UnsetType] = unset,
audit_logs_lines_indexed_sum: Union[int, UnsetType] = unset,
audit_trail_enabled_hwm: Union[int, UnsetType] = unset,
avg_profiled_fargate_tasks: Union[int, UnsetType] = unset,
aws_host_top99p: Union[int, UnsetType] = unset,
aws_lambda_func_count: Union[int, UnsetType] = unset,
Expand Down Expand Up @@ -282,6 +285,9 @@ def __init__(
:param audit_logs_lines_indexed_sum: Shows the sum of audit logs lines indexed over all hours in the current date for all organizations.
:type audit_logs_lines_indexed_sum: int, optional
:param audit_trail_enabled_hwm: Shows the number of organizations that had Audit Trail enabled in the current date.
:type audit_trail_enabled_hwm: int, optional
:param avg_profiled_fargate_tasks: The average profiled task count for Fargate Profiling.
:type avg_profiled_fargate_tasks: int, optional
Expand Down Expand Up @@ -504,6 +510,8 @@ def __init__(
kwargs["appsec_fargate_count_avg"] = appsec_fargate_count_avg
if audit_logs_lines_indexed_sum is not unset:
kwargs["audit_logs_lines_indexed_sum"] = audit_logs_lines_indexed_sum
if audit_trail_enabled_hwm is not unset:
kwargs["audit_trail_enabled_hwm"] = audit_trail_enabled_hwm
if avg_profiled_fargate_tasks is not unset:
kwargs["avg_profiled_fargate_tasks"] = avg_profiled_fargate_tasks
if aws_host_top99p is not unset:
Expand Down
8 changes: 8 additions & 0 deletions src/datadog_api_client/v1/model/usage_summary_date_org.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def openapi_types(_):
"apm_host_top99p": (int,),
"appsec_fargate_count_avg": (int,),
"audit_logs_lines_indexed_sum": (int,),
"audit_trail_enabled_hwm": (int,),
"avg_profiled_fargate_tasks": (int,),
"aws_host_top99p": (int,),
"aws_lambda_func_count": (int,),
Expand Down Expand Up @@ -104,6 +105,7 @@ def openapi_types(_):
"apm_host_top99p": "apm_host_top99p",
"appsec_fargate_count_avg": "appsec_fargate_count_avg",
"audit_logs_lines_indexed_sum": "audit_logs_lines_indexed_sum",
"audit_trail_enabled_hwm": "audit_trail_enabled_hwm",
"avg_profiled_fargate_tasks": "avg_profiled_fargate_tasks",
"aws_host_top99p": "aws_host_top99p",
"aws_lambda_func_count": "aws_lambda_func_count",
Expand Down Expand Up @@ -186,6 +188,7 @@ def __init__(
apm_host_top99p: Union[int, UnsetType] = unset,
appsec_fargate_count_avg: Union[int, UnsetType] = unset,
audit_logs_lines_indexed_sum: Union[int, UnsetType] = unset,
audit_trail_enabled_hwm: Union[int, UnsetType] = unset,
avg_profiled_fargate_tasks: Union[int, UnsetType] = unset,
aws_host_top99p: Union[int, UnsetType] = unset,
aws_lambda_func_count: Union[int, UnsetType] = unset,
Expand Down Expand Up @@ -281,6 +284,9 @@ def __init__(
:param audit_logs_lines_indexed_sum: Shows the sum of all audit logs lines indexed over all hours in the current date for the given org.
:type audit_logs_lines_indexed_sum: int, optional
:param audit_trail_enabled_hwm: Shows whether Audit Trail is enabled for the current date for the given org.
:type audit_trail_enabled_hwm: int, optional
:param avg_profiled_fargate_tasks: The average profiled task count for Fargate Profiling.
:type avg_profiled_fargate_tasks: int, optional
Expand Down Expand Up @@ -509,6 +515,8 @@ def __init__(
kwargs["appsec_fargate_count_avg"] = appsec_fargate_count_avg
if audit_logs_lines_indexed_sum is not unset:
kwargs["audit_logs_lines_indexed_sum"] = audit_logs_lines_indexed_sum
if audit_trail_enabled_hwm is not unset:
kwargs["audit_trail_enabled_hwm"] = audit_trail_enabled_hwm
if avg_profiled_fargate_tasks is not unset:
kwargs["avg_profiled_fargate_tasks"] = avg_profiled_fargate_tasks
if aws_host_top99p is not unset:
Expand Down
8 changes: 8 additions & 0 deletions src/datadog_api_client/v1/model/usage_summary_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def openapi_types(_):
"apm_host_top99p_sum": (int,),
"appsec_fargate_count_avg_sum": (int,),
"audit_logs_lines_indexed_agg_sum": (int,),
"audit_trail_enabled_hwm_sum": (int,),
"avg_profiled_fargate_tasks_sum": (int,),
"aws_host_top99p_sum": (int,),
"aws_lambda_func_count": (int,),
Expand Down Expand Up @@ -120,6 +121,7 @@ def openapi_types(_):
"apm_host_top99p_sum": "apm_host_top99p_sum",
"appsec_fargate_count_avg_sum": "appsec_fargate_count_avg_sum",
"audit_logs_lines_indexed_agg_sum": "audit_logs_lines_indexed_agg_sum",
"audit_trail_enabled_hwm_sum": "audit_trail_enabled_hwm_sum",
"avg_profiled_fargate_tasks_sum": "avg_profiled_fargate_tasks_sum",
"aws_host_top99p_sum": "aws_host_top99p_sum",
"aws_lambda_func_count": "aws_lambda_func_count",
Expand Down Expand Up @@ -209,6 +211,7 @@ def __init__(
apm_host_top99p_sum: Union[int, UnsetType] = unset,
appsec_fargate_count_avg_sum: Union[int, UnsetType] = unset,
audit_logs_lines_indexed_agg_sum: Union[int, UnsetType] = unset,
audit_trail_enabled_hwm_sum: Union[int, UnsetType] = unset,
avg_profiled_fargate_tasks_sum: Union[int, UnsetType] = unset,
aws_host_top99p_sum: Union[int, UnsetType] = unset,
aws_lambda_func_count: Union[int, UnsetType] = unset,
Expand Down Expand Up @@ -311,6 +314,9 @@ def __init__(
:param audit_logs_lines_indexed_agg_sum: Shows the sum of all audit logs lines indexed over all hours in the current months for all organizations.
:type audit_logs_lines_indexed_agg_sum: int, optional
:param audit_trail_enabled_hwm_sum: Shows the total number of organizations that had Audit Trail enabled over a specific number of months.
:type audit_trail_enabled_hwm_sum: int, optional
:param avg_profiled_fargate_tasks_sum: Shows the average of all profiled Fargate tasks over all hours in the current months for all organizations.
:type avg_profiled_fargate_tasks_sum: int, optional
Expand Down Expand Up @@ -560,6 +566,8 @@ def __init__(
kwargs["appsec_fargate_count_avg_sum"] = appsec_fargate_count_avg_sum
if audit_logs_lines_indexed_agg_sum is not unset:
kwargs["audit_logs_lines_indexed_agg_sum"] = audit_logs_lines_indexed_agg_sum
if audit_trail_enabled_hwm_sum is not unset:
kwargs["audit_trail_enabled_hwm_sum"] = audit_trail_enabled_hwm_sum
if avg_profiled_fargate_tasks_sum is not unset:
kwargs["avg_profiled_fargate_tasks_sum"] = avg_profiled_fargate_tasks_sum
if aws_host_top99p_sum is not unset:
Expand Down
7 changes: 3 additions & 4 deletions src/datadog_api_client/v2/api/restriction_policies_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def delete_restriction_policy(
Deletes the restriction policy associated with a specified resource.
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``security-rule`` , ``slo``.
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``security-rule``.
:type resource_id: str
:rtype: None
"""
Expand All @@ -125,7 +125,7 @@ def get_restriction_policy(
Retrieves the restriction policy associated with a specified resource.
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``security-rule`` , ``slo``.
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``security-rule``.
:type resource_id: str
:rtype: RestrictionPolicyResponse
"""
Expand All @@ -151,9 +151,8 @@ def update_restriction_policy(
* Dashboards: ``dashboard``
* Notebooks: ``notebook``
* Security Rules: ``security-rule``
* Service Level Objectives: ``slo``
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``security-rule`` , ``slo``.
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``security-rule``.
:type resource_id: str
:param body: Restriction policy payload
:type body: RestrictionPolicyUpdateRequest
Expand Down
3 changes: 2 additions & 1 deletion src/datadog_api_client/v2/api/usage_metering_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ def get_hourly_usage(
:param filter_timestamp_start: Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
:type filter_timestamp_start: datetime
:param filter_product_families: Comma separated list of product families to retrieve. Available families are ``all`` , ``analyzed_logs`` ,
``application_security`` , ``audit_logs`` , ``serverless`` , ``ci_app`` , ``cloud_cost_management`` , ``cspm`` , ``custom_events`` , ``cws`` , ``dbm`` , ``fargate`` ,
``application_security`` , ``audit_logs`` , ``audit_trail`` , ``serverless`` , ``ci_app`` , ``cloud_cost_management`` ,
``cspm`` , ``custom_events`` , ``cws`` , ``dbm`` , ``fargate`` ,
``infra_hosts`` , ``incident_management`` , ``indexed_logs`` , ``indexed_spans`` , ``ingested_spans`` , ``iot`` ,
``lambda_traced_invocations`` , ``logs`` , ``network_flows`` , ``network_hosts`` , ``observability_pipelines`` ,
``online_archive`` , ``profiling`` , ``rum`` , ``rum_browser_sessions`` , ``rum_mobile_sessions`` , ``sds`` , ``snmp`` ,
Expand Down

0 comments on commit 15f7d6d

Please sign in to comment.