Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 76 additions & 4 deletions vantage_sdk/models/gen_models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@
from .update_virtual_tag_config_value_date_range import UpdateVirtualTagConfigValueDateRange
from .update_virtual_tag_config_value_cost_metric_aggregation import UpdateVirtualTagConfigValueCostMetricAggregation
from .update_virtual_tag_config_value_cost_metric import UpdateVirtualTagConfigValueCostMetric
from .update_virtual_tag_config_value import UpdateVirtualTagConfigValue
from .update_virtual_tag_config_value1_percentage import UpdateVirtualTagConfigValue1Percentage
from .update_virtual_tag_config_value1_label_transform_type import UpdateVirtualTagConfigValue1LabelTransformType
from .update_virtual_tag_config_value1_label_transform import UpdateVirtualTagConfigValue1LabelTransform
from .update_virtual_tag_config_value1_date_range import UpdateVirtualTagConfigValue1DateRange
from .update_virtual_tag_config_value1_cost_metric_aggregation import UpdateVirtualTagConfigValue1CostMetricAggregation
from .update_virtual_tag_config_value1_cost_metric import UpdateVirtualTagConfigValue1CostMetric
from .update_virtual_tag_config_collapsed_tag_key import UpdateVirtualTagConfigCollapsedTagKey
from .update_virtual_tag_config import UpdateVirtualTagConfig
from .update_user import UpdateUser
Expand All @@ -45,9 +50,13 @@
from .update_sso_connection_for_managed_account import UpdateSsoConnectionForManagedAccount
from .update_segment_report_settings import UpdateSegmentReportSettings
from .update_segment import UpdateSegment
from .update_scenario_model_period_amount_type import UpdateScenarioModelPeriodAmountType
from .update_scenario_model_period import UpdateScenarioModelPeriod
from .update_scenario_model import UpdateScenarioModel
from .update_saved_filter import UpdateSavedFilter
from .update_resource_report import UpdateResourceReport
from .update_report_notification import UpdateReportNotification
from .update_report_forecast import UpdateReportForecast
from .update_recommendation_view import UpdateRecommendationView
from .update_network_flow_report_grouping import UpdateNetworkFlowReportGrouping
from .update_network_flow_report_flow_weight import UpdateNetworkFlowReportFlowWeight
Expand Down Expand Up @@ -126,6 +135,7 @@
from .update_async_virtual_tag_config import UpdateAsyncVirtualTagConfig
from .update_anomaly_notification import UpdateAnomalyNotification
from .update_anomaly_alert import UpdateAnomalyAlert
from .update_annotation import UpdateAnnotation
from .update_access_grant_access import UpdateAccessGrantAccess
from .update_access_grant import UpdateAccessGrant
from .unit_costs_get_parameters_query_order import UnitCostsGetParametersQueryOrder
Expand Down Expand Up @@ -156,6 +166,11 @@
from .segments import Segments
from .segment_report_settings import SegmentReportSettings
from .segment import Segment
from .scenario_models_get_parameters_query import ScenarioModelsGetParametersQuery
from .scenario_models import ScenarioModels
from .scenario_model_period_amount_type import ScenarioModelPeriodAmountType
from .scenario_model_period import ScenarioModelPeriod
from .scenario_model import ScenarioModel
from .saved_filters_get_parameters_query import SavedFiltersGetParametersQuery
from .saved_filters import SavedFilters
from .saved_filter import SavedFilter
Expand All @@ -174,6 +189,9 @@
from .report_notification_frequency import ReportNotificationFrequency
from .report_notification_change import ReportNotificationChange
from .report_notification import ReportNotification
from .report_forecasts_get_parameters_query import ReportForecastsGetParametersQuery
from .report_forecasts import ReportForecasts
from .report_forecast import ReportForecast
from .recommendations_recommendation_token_resources_get_parameters_query import RecommendationsRecommendationTokenResourcesGetParametersQuery
from .recommendations_get_parameters_query_status import RecommendationsGetParametersQueryStatus
from .recommendations_get_parameters_query_provider_id import RecommendationsGetParametersQueryProviderId
Expand Down Expand Up @@ -262,7 +280,12 @@
from .create_virtual_tag_config_value_date_range import CreateVirtualTagConfigValueDateRange
from .create_virtual_tag_config_value_cost_metric_aggregation import CreateVirtualTagConfigValueCostMetricAggregation
from .create_virtual_tag_config_value_cost_metric import CreateVirtualTagConfigValueCostMetric
from .create_virtual_tag_config_value import CreateVirtualTagConfigValue
from .create_virtual_tag_config_value1_percentage import CreateVirtualTagConfigValue1Percentage
from .create_virtual_tag_config_value1_label_transform_type import CreateVirtualTagConfigValue1LabelTransformType
from .create_virtual_tag_config_value1_label_transform import CreateVirtualTagConfigValue1LabelTransform
from .create_virtual_tag_config_value1_date_range import CreateVirtualTagConfigValue1DateRange
from .create_virtual_tag_config_value1_cost_metric_aggregation import CreateVirtualTagConfigValue1CostMetricAggregation
from .create_virtual_tag_config_value1_cost_metric import CreateVirtualTagConfigValue1CostMetric
from .create_virtual_tag_config_collapsed_tag_key import CreateVirtualTagConfigCollapsedTagKey
from .create_virtual_tag_config import CreateVirtualTagConfig
from .create_user_feedback import CreateUserFeedback
Expand All @@ -274,9 +297,13 @@
from .create_sso_connection_for_managed_account import CreateSsoConnectionForManagedAccount
from .create_segment_report_settings import CreateSegmentReportSettings
from .create_segment import CreateSegment
from .create_scenario_model_period_amount_type import CreateScenarioModelPeriodAmountType
from .create_scenario_model_period import CreateScenarioModelPeriod
from .create_scenario_model import CreateScenarioModel
from .create_saved_filter import CreateSavedFilter
from .create_resource_report import CreateResourceReport
from .create_report_notification import CreateReportNotification
from .create_report_forecast import CreateReportForecast
from .create_recommendation_view import CreateRecommendationView
from .create_network_flow_report_grouping import CreateNetworkFlowReportGrouping
from .create_network_flow_report_flow_weight import CreateNetworkFlowReportFlowWeight
Expand Down Expand Up @@ -351,6 +378,7 @@
from .create_billing_profile import CreateBillingProfile
from .create_azure_integration import CreateAzureIntegration
from .create_anomaly_notification import CreateAnomalyNotification
from .create_annotation import CreateAnnotation
from .create_access_grant_access import CreateAccessGrantAccess
from .create_access_grant import CreateAccessGrant
from .costs_get_parameters_query_settings_aggregate_by import CostsGetParametersQuerySettingsAggregateBy
Expand Down Expand Up @@ -378,6 +406,7 @@
from .cost_provider import CostProvider, CostProviderModel
from .cost_partial import CostPartial
from .cost_count import CostCount
from .cost_alerts_get_parameters_query import CostAlertsGetParametersQuery
from .cost_alerts_cost_alert_token_events_get_parameters_query import CostAlertsCostAlertTokenEventsGetParametersQuery
from .cost_alerts import CostAlerts
from .cost_alert_events import CostAlertEvents
Expand Down Expand Up @@ -449,6 +478,9 @@
from .anomaly_alerts_get_parameters_query import AnomalyAlertsGetParametersQuery
from .anomaly_alerts import AnomalyAlerts
from .anomaly_alert import AnomalyAlert
from .annotations_get_parameters_query import AnnotationsGetParametersQuery
from .annotations import Annotations
from .annotation import Annotation
from .adjustment_item_calculation_type import AdjustmentItemCalculationType
from .adjustment_item_adjustment_type import AdjustmentItemAdjustmentType
from .adjustment_item import AdjustmentItem
Expand All @@ -459,12 +491,16 @@
from .access_grant import AccessGrant
from .business_metrics_business_metric_token_values_csv_put_request1 import BusinessMetricsBusinessMetricTokenValuesCsvPutRequest as BusinessMetricsBusinessMetricTokenValuesCsvPutRequest1BusinessMetricsBusinessMetricTokenValuesCsvPutRequest
from .business_metrics_business_metric_token_values_csv_put_request import BusinessMetricsBusinessMetricTokenValuesCsvPutRequest as BusinessMetricsBusinessMetricTokenValuesCsvPutRequestBusinessMetricsBusinessMetricTokenValuesCsvPutRequest
from .create_virtual_tag_config_value1 import CreateVirtualTagConfigValue as CreateVirtualTagConfigValue1CreateVirtualTagConfigValue
from .create_virtual_tag_config_value import CreateVirtualTagConfigValue as CreateVirtualTagConfigValueCreateVirtualTagConfigValue
from .download_invoice1 import DownloadInvoice as DownloadInvoice1DownloadInvoice
from .download_invoice import DownloadInvoice as DownloadInvoiceDownloadInvoice
from .exchange_rates_csv_post_request1 import ExchangeRatesCsvPostRequest as ExchangeRatesCsvPostRequest1ExchangeRatesCsvPostRequest
from .exchange_rates_csv_post_request import ExchangeRatesCsvPostRequest as ExchangeRatesCsvPostRequestExchangeRatesCsvPostRequest
from .integrations_integration_token_costs_csv_post_request1 import IntegrationsIntegrationTokenCostsCsvPostRequest as IntegrationsIntegrationTokenCostsCsvPostRequest1IntegrationsIntegrationTokenCostsCsvPostRequest
from .integrations_integration_token_costs_csv_post_request import IntegrationsIntegrationTokenCostsCsvPostRequest as IntegrationsIntegrationTokenCostsCsvPostRequestIntegrationsIntegrationTokenCostsCsvPostRequest
from .update_virtual_tag_config_value1 import UpdateVirtualTagConfigValue as UpdateVirtualTagConfigValue1UpdateVirtualTagConfigValue
from .update_virtual_tag_config_value import UpdateVirtualTagConfigValue as UpdateVirtualTagConfigValueUpdateVirtualTagConfigValue

__all__ = [
"AccessGrant",
Expand All @@ -475,6 +511,9 @@
"AdjustmentItem",
"AdjustmentItemAdjustmentType",
"AdjustmentItemCalculationType",
"Annotation",
"Annotations",
"AnnotationsGetParametersQuery",
"AnomalyAlert",
"AnomalyAlerts",
"AnomalyAlertsGetParametersQuery",
Expand Down Expand Up @@ -548,6 +587,7 @@
"CostAlertEvents",
"CostAlerts",
"CostAlertsCostAlertTokenEventsGetParametersQuery",
"CostAlertsGetParametersQuery",
"CostCount",
"CostPartial",
"CostProvider",
Expand Down Expand Up @@ -576,6 +616,7 @@
"CostsGetParametersQuerySettingsAggregateBy",
"CreateAccessGrant",
"CreateAccessGrantAccess",
"CreateAnnotation",
"CreateAnomalyNotification",
"CreateAzureIntegration",
"CreateBillingProfile",
Expand Down Expand Up @@ -650,9 +691,13 @@
"CreateNetworkFlowReportFlowWeight",
"CreateNetworkFlowReportGrouping",
"CreateRecommendationView",
"CreateReportForecast",
"CreateReportNotification",
"CreateResourceReport",
"CreateSavedFilter",
"CreateScenarioModel",
"CreateScenarioModelPeriod",
"CreateScenarioModelPeriodAmountType",
"CreateSegment",
"CreateSegmentReportSettings",
"CreateSsoConnectionForManagedAccount",
Expand All @@ -664,9 +709,16 @@
"CreateUserFeedback",
"CreateVirtualTagConfig",
"CreateVirtualTagConfigCollapsedTagKey",
"CreateVirtualTagConfigValue",
"CreateVirtualTagConfigValue1CostMetric",
"CreateVirtualTagConfigValue1CostMetricAggregation",
"CreateVirtualTagConfigValue1CreateVirtualTagConfigValue",
"CreateVirtualTagConfigValue1DateRange",
"CreateVirtualTagConfigValue1LabelTransform",
"CreateVirtualTagConfigValue1LabelTransformType",
"CreateVirtualTagConfigValue1Percentage",
"CreateVirtualTagConfigValueCostMetric",
"CreateVirtualTagConfigValueCostMetricAggregation",
"CreateVirtualTagConfigValueCreateVirtualTagConfigValue",
"CreateVirtualTagConfigValueDateRange",
"CreateVirtualTagConfigValueLabelTransform",
"CreateVirtualTagConfigValuePercentage",
Expand Down Expand Up @@ -759,6 +811,9 @@
"RecommendationsGetParametersQueryProviderId",
"RecommendationsGetParametersQueryStatus",
"RecommendationsRecommendationTokenResourcesGetParametersQuery",
"ReportForecast",
"ReportForecasts",
"ReportForecastsGetParametersQuery",
"ReportNotification",
"ReportNotificationChange",
"ReportNotificationFrequency",
Expand All @@ -777,6 +832,11 @@
"SavedFilter",
"SavedFilters",
"SavedFiltersGetParametersQuery",
"ScenarioModel",
"ScenarioModelPeriod",
"ScenarioModelPeriodAmountType",
"ScenarioModels",
"ScenarioModelsGetParametersQuery",
"Segment",
"SegmentReportSettings",
"Segments",
Expand Down Expand Up @@ -807,6 +867,7 @@
"UnitCostsGetParametersQueryOrder",
"UpdateAccessGrant",
"UpdateAccessGrantAccess",
"UpdateAnnotation",
"UpdateAnomalyAlert",
"UpdateAnomalyNotification",
"UpdateAsyncVirtualTagConfig",
Expand Down Expand Up @@ -885,9 +946,13 @@
"UpdateNetworkFlowReportFlowWeight",
"UpdateNetworkFlowReportGrouping",
"UpdateRecommendationView",
"UpdateReportForecast",
"UpdateReportNotification",
"UpdateResourceReport",
"UpdateSavedFilter",
"UpdateScenarioModel",
"UpdateScenarioModelPeriod",
"UpdateScenarioModelPeriodAmountType",
"UpdateSegment",
"UpdateSegmentReportSettings",
"UpdateSsoConnectionForManagedAccount",
Expand All @@ -897,12 +962,19 @@
"UpdateUser",
"UpdateVirtualTagConfig",
"UpdateVirtualTagConfigCollapsedTagKey",
"UpdateVirtualTagConfigValue",
"UpdateVirtualTagConfigValue1CostMetric",
"UpdateVirtualTagConfigValue1CostMetricAggregation",
"UpdateVirtualTagConfigValue1DateRange",
"UpdateVirtualTagConfigValue1LabelTransform",
"UpdateVirtualTagConfigValue1LabelTransformType",
"UpdateVirtualTagConfigValue1Percentage",
"UpdateVirtualTagConfigValue1UpdateVirtualTagConfigValue",
"UpdateVirtualTagConfigValueCostMetric",
"UpdateVirtualTagConfigValueCostMetricAggregation",
"UpdateVirtualTagConfigValueDateRange",
"UpdateVirtualTagConfigValueLabelTransform",
"UpdateVirtualTagConfigValuePercentage",
"UpdateVirtualTagConfigValueUpdateVirtualTagConfigValue",
"UpdateWorkspace",
"UpdateWorkspaceCurrency",
"UpdateWorkspaceExchangeRateDate",
Expand Down
21 changes: 21 additions & 0 deletions vantage_sdk/models/gen_models/annotation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# generated by datamodel-codegen:
# filename: openapi_spec.json

from __future__ import annotations
from typing import Annotated
from pydantic import BaseModel, ConfigDict, Field
from collections.abc import Sequence


class Annotation(BaseModel):
"""
Annotation model
"""
model_config = ConfigDict(
populate_by_name=True,
)
token: Annotated[str, Field(description='The unique token identifying the Annotation.')]
title: Annotated[str, Field(description='The title of the Annotation.')]
report_tokens: Annotated[Sequence[str], Field(description='The tokens of the Reports associated with the Annotation.')]
date: Annotated[str | None, Field(description='The date of the Annotation. ISO 8601 formatted.', examples=['2026-08-12'])]
message: Annotated[str | None, Field(description='The message of the Annotation.')]
18 changes: 18 additions & 0 deletions vantage_sdk/models/gen_models/annotations.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# generated by datamodel-codegen:
# filename: openapi_spec.json

from __future__ import annotations
from collections.abc import Sequence
from pydantic import BaseModel, ConfigDict
from . import annotation, links as links_1


class Annotations(BaseModel):
"""
Annotations model
"""
model_config = ConfigDict(
populate_by_name=True,
)
links: links_1.Links | None = None
annotations: Sequence[annotation.Annotation]
14 changes: 14 additions & 0 deletions vantage_sdk/models/gen_models/annotations_get_parameters_query.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# generated by datamodel-codegen:
# filename: openapi_spec.json

from __future__ import annotations
from pydantic import BaseModel, ConfigDict


class AnnotationsGetParametersQuery(BaseModel):
model_config = ConfigDict(
populate_by_name=True,
)
page: int | None = None
limit: int | None = None
report_token: str | None = None
3 changes: 2 additions & 1 deletion vantage_sdk/models/gen_models/anomaly_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ class AnomalyNotification(BaseModel):
created_at: Annotated[str, Field(description='The date and time, in UTC, the AnomalyNotification was created. ISO 8601 Formatted.', examples=['2023-08-04T00:00:00Z'])]
updated_at: Annotated[str, Field(description='The date and time, in UTC, the AnomalyNotification was last updated at. ISO 8601 Formatted.', examples=['2023-08-04T00:00:00Z'])]
threshold: Annotated[int, Field(description='The threshold amount that must be met for the notification to fire.')]
user_tokens: Annotated[Sequence[str], Field(description='The tokens of the users that receive the notification.')]
user_tokens: Annotated[Sequence[str], Field(description='The tokens of organization users that receive the notification. Freeform verified-domain emails are not included; see recipient_emails.')]
recipient_emails: Annotated[Sequence[str], Field(description='The email addresses that receive the notification, including organization users and verified-domain addresses.')]
recipient_channels: Annotated[Sequence[str], Field(description='The channels that the notification is sent to.')]
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ class AnomalyNotificationsGetParametersQuery(BaseModel):
)
page: int | None = None
limit: int | None = None
workspace_token: str | None = None
cost_report_token: str | None = None
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# filename: openapi_spec.json

from __future__ import annotations
from datetime import date
from datetime import date as date_aliased
from pydantic import BaseModel, ConfigDict
from . import audit_logs_get_parameters_query_action, audit_logs_get_parameters_query_object_type, audit_logs_get_parameters_query_source

Expand All @@ -21,5 +21,5 @@ class AuditLogsGetParametersQuery(BaseModel):
object_type: audit_logs_get_parameters_query_object_type.AuditLogsGetParametersQueryObjectType | None = None
token: str | None = None
object_token: str | None = None
start_date: date | None = None
end_date: date | None = None
start_date: date_aliased | None = None
end_date: date_aliased | None = None
3 changes: 2 additions & 1 deletion vantage_sdk/models/gen_models/budget_alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class BudgetAlert(BaseModel):
created_at: Annotated[str, Field(description='The date and time, in UTC, the Budget Alert was created. ISO 8601 Formatted.', examples=['2024-03-19T00:00:00Z'])]
workspace_token: Annotated[str | None, Field(description='The token for the Workspace the ResourceReport is a part of.')]
user_token: Annotated[str | None, Field(description='The token for the User who created this BudgetAlert.')] = None
user_tokens: Annotated[Sequence[str], Field(description='The Users that receive the alert.')]
user_tokens: Annotated[Sequence[str], Field(description='The tokens of organization users that receive the alert. Freeform verified-domain emails are not included; see recipient_emails.')]
recipient_emails: Annotated[Sequence[str], Field(description='The email addresses that receive the alert, including organization users and verified-domain addresses.')]
duration_in_days: Annotated[int | None, Field(description='The number of days from the start or end of the month to trigger the alert if the threshold is reached.')]
threshold: Annotated[int, Field(description='Alerts only send if they reach this number (as a percentage). When threshold is 100, that means alerts are triggered once costs reach 100% of the budget.', examples=[75])]
period_to_track: Annotated[str | None, Field(description='The period tracked on the alert. Used with duration_in_days to determine the time window of the alert. Possible values: start_of_the_month, end_of_the_month.', examples=['start_of_the_month'])]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ class BudgetAlertsGetParametersQuery(BaseModel):
)
page: int | None = None
limit: int | None = None
workspace_token: str | None = None
budget_token: str | None = None
2 changes: 2 additions & 0 deletions vantage_sdk/models/gen_models/budgets_get_parameters_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ class BudgetsGetParametersQuery(BaseModel):
)
page: int | None = None
limit: int | None = None
q: str | None = None
workspace_token: str | None = None
Loading