Skip to content

Commit

Permalink
CodeGen from PR 13029 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Hub Generated] Review request for Microsoft.CostManagement to add version stable/2019-11-01 (Azure#13029)

* Adding tagValue and tagKey to ReportConfigFilter

* remove the addition of tagValue

* Adding TagValue in the config filter
  • Loading branch information
SDKAuto committed Feb 20, 2021
1 parent aea802d commit 5329330
Show file tree
Hide file tree
Showing 14 changed files with 3,806 additions and 218 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@
from msrest import Serializer, Deserializer

from ._configuration import CostManagementClientConfiguration
from .operations import ViewsOperations
from .operations import AlertsOperations
from .operations import ForecastOperations
from .operations import DimensionsOperations
from .operations import QueryOperations
from .operations import ExportsOperations
from .operations import Operations
from .operations import ExportsOperations
from . import models


Expand All @@ -26,14 +29,20 @@ class CostManagementClient(SDKClient):
:ivar config: Configuration for client.
:vartype config: CostManagementClientConfiguration
:ivar views: Views operations
:vartype views: azure.mgmt.costmanagement.operations.ViewsOperations
:ivar alerts: Alerts operations
:vartype alerts: azure.mgmt.costmanagement.operations.AlertsOperations
:ivar forecast: Forecast operations
:vartype forecast: azure.mgmt.costmanagement.operations.ForecastOperations
:ivar dimensions: Dimensions operations
:vartype dimensions: azure.mgmt.costmanagement.operations.DimensionsOperations
:ivar query: Query operations
:vartype query: azure.mgmt.costmanagement.operations.QueryOperations
:ivar exports: Exports operations
:vartype exports: azure.mgmt.costmanagement.operations.ExportsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.costmanagement.operations.Operations
:ivar exports: Exports operations
:vartype exports: azure.mgmt.costmanagement.operations.ExportsOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -50,15 +59,21 @@ def __init__(
super(CostManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2019-11-01'
self.api_version = '2020-06-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.views = ViewsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.alerts = AlertsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.forecast = ForecastOperations(
self._client, self.config, self._serialize, self._deserialize)
self.dimensions = DimensionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.query = QueryOperations(
self._client, self.config, self._serialize, self._deserialize)
self.exports = ExportsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.exports = ExportsOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,34 @@
# --------------------------------------------------------------------------

try:
from ._models_py3 import Alert
from ._models_py3 import AlertPropertiesDefinition
from ._models_py3 import AlertPropertiesDetails
from ._models_py3 import AlertsResult
from ._models_py3 import CommonExportProperties
from ._models_py3 import Dimension
from ._models_py3 import DismissAlertPayload
from ._models_py3 import ErrorDetails
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import Export
from ._models_py3 import ExportDataset
from ._models_py3 import ExportDatasetConfiguration
from ._models_py3 import ExportDefinition
from ._models_py3 import ExportDeliveryDestination
from ._models_py3 import ExportDeliveryInfo
from ._models_py3 import ExportExecution
from ._models_py3 import ExportExecutionListResult
from ._models_py3 import ExportListResult
from ._models_py3 import ExportRecurrencePeriod
from ._models_py3 import ExportSchedule
from ._models_py3 import ExportTimePeriod
from ._models_py3 import ForecastDataset
from ._models_py3 import ForecastDefinition
from ._models_py3 import KpiProperties
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import PivotProperties
from ._models_py3 import ProxyResource
from ._models_py3 import QueryAggregation
from ._models_py3 import QueryColumn
from ._models_py3 import QueryComparisonExpression
Expand All @@ -34,22 +48,45 @@
from ._models_py3 import QueryGrouping
from ._models_py3 import QueryResult
from ._models_py3 import QueryTimePeriod
from ._models_py3 import ReportConfigAggregation
from ._models_py3 import ReportConfigComparisonExpression
from ._models_py3 import ReportConfigDataset
from ._models_py3 import ReportConfigDatasetConfiguration
from ._models_py3 import ReportConfigFilter
from ._models_py3 import ReportConfigGrouping
from ._models_py3 import ReportConfigSorting
from ._models_py3 import ReportConfigTimePeriod
from ._models_py3 import Resource
from ._models_py3 import View
except (SyntaxError, ImportError):
from ._models import Alert
from ._models import AlertPropertiesDefinition
from ._models import AlertPropertiesDetails
from ._models import AlertsResult
from ._models import CommonExportProperties
from ._models import Dimension
from ._models import DismissAlertPayload
from ._models import ErrorDetails
from ._models import ErrorResponse, ErrorResponseException
from ._models import Export
from ._models import ExportDataset
from ._models import ExportDatasetConfiguration
from ._models import ExportDefinition
from ._models import ExportDeliveryDestination
from ._models import ExportDeliveryInfo
from ._models import ExportExecution
from ._models import ExportExecutionListResult
from ._models import ExportListResult
from ._models import ExportRecurrencePeriod
from ._models import ExportSchedule
from ._models import ExportTimePeriod
from ._models import ForecastDataset
from ._models import ForecastDefinition
from ._models import KpiProperties
from ._models import Operation
from ._models import OperationDisplay
from ._models import PivotProperties
from ._models import ProxyResource
from ._models import QueryAggregation
from ._models import QueryColumn
from ._models import QueryComparisonExpression
Expand All @@ -60,36 +97,79 @@
from ._models import QueryGrouping
from ._models import QueryResult
from ._models import QueryTimePeriod
from ._models import ReportConfigAggregation
from ._models import ReportConfigComparisonExpression
from ._models import ReportConfigDataset
from ._models import ReportConfigDatasetConfiguration
from ._models import ReportConfigFilter
from ._models import ReportConfigGrouping
from ._models import ReportConfigSorting
from ._models import ReportConfigTimePeriod
from ._models import Resource
from ._models import View
from ._paged_models import DimensionPaged
from ._paged_models import OperationPaged
from ._paged_models import ViewPaged
from ._cost_management_client_enums import (
ReportTimeframeType,
ReportGranularityType,
ReportConfigColumnType,
OperatorType,
ChartType,
AccumulatedType,
MetricType,
KpiTypeType,
PivotTypeType,
AlertType,
AlertCategory,
AlertCriteria,
AlertSource,
AlertTimeGrainType,
AlertOperator,
AlertStatus,
ForecastType,
ForecastTimeframeType,
GranularityType,
ExportType,
TimeframeType,
GranularityType,
QueryColumnType,
StatusType,
RecurrenceType,
FormatType,
ExecutionType,
ExecutionStatus,
ExternalCloudProviderType,
)

__all__ = [
'Alert',
'AlertPropertiesDefinition',
'AlertPropertiesDetails',
'AlertsResult',
'CommonExportProperties',
'Dimension',
'DismissAlertPayload',
'ErrorDetails',
'ErrorResponse', 'ErrorResponseException',
'Export',
'ExportDataset',
'ExportDatasetConfiguration',
'ExportDefinition',
'ExportDeliveryDestination',
'ExportDeliveryInfo',
'ExportExecution',
'ExportExecutionListResult',
'ExportListResult',
'ExportRecurrencePeriod',
'ExportSchedule',
'ExportTimePeriod',
'ForecastDataset',
'ForecastDefinition',
'KpiProperties',
'Operation',
'OperationDisplay',
'PivotProperties',
'ProxyResource',
'QueryAggregation',
'QueryColumn',
'QueryComparisonExpression',
Expand All @@ -100,16 +180,45 @@
'QueryGrouping',
'QueryResult',
'QueryTimePeriod',
'ReportConfigAggregation',
'ReportConfigComparisonExpression',
'ReportConfigDataset',
'ReportConfigDatasetConfiguration',
'ReportConfigFilter',
'ReportConfigGrouping',
'ReportConfigSorting',
'ReportConfigTimePeriod',
'Resource',
'View',
'ViewPaged',
'DimensionPaged',
'OperationPaged',
'ReportTimeframeType',
'ReportGranularityType',
'ReportConfigColumnType',
'OperatorType',
'ChartType',
'AccumulatedType',
'MetricType',
'KpiTypeType',
'PivotTypeType',
'AlertType',
'AlertCategory',
'AlertCriteria',
'AlertSource',
'AlertTimeGrainType',
'AlertOperator',
'AlertStatus',
'ForecastType',
'ForecastTimeframeType',
'GranularityType',
'ExportType',
'TimeframeType',
'GranularityType',
'QueryColumnType',
'StatusType',
'RecurrenceType',
'FormatType',
'ExecutionType',
'ExecutionStatus',
'ExternalCloudProviderType',
]
Loading

0 comments on commit 5329330

Please sign in to comment.