Skip to content

Commit

Permalink
Generated from a71df15a587ec060147aaef2dcfc12d19500fdc8
Browse files Browse the repository at this point in the history
Fix json format by prettier
  • Loading branch information
SDK Automation committed Oct 25, 2019
1 parent 3e5126c commit c158f32
Show file tree
Hide file tree
Showing 68 changed files with 2,277 additions and 2,803 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .cost_management_client import CostManagementClient
from .version import VERSION
from ._configuration import CostManagementClientConfiguration
from ._cost_management_client import CostManagementClient
__all__ = ['CostManagementClient', 'CostManagementClientConfiguration']

__all__ = ['CostManagementClient']
from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrestazure import AzureConfiguration

from .version import VERSION


class CostManagementClientConfiguration(AzureConfiguration):
"""Configuration for CostManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Azure Subscription ID.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(CostManagementClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-costmanagement/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Original file line number Diff line number Diff line change
Expand Up @@ -11,45 +11,13 @@

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.dimensions_operations import DimensionsOperations
from .operations.query_operations import QueryOperations
from .operations.exports_operations import ExportsOperations
from .operations.operations import Operations
from . import models


class CostManagementClientConfiguration(AzureConfiguration):
"""Configuration for CostManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Azure Subscription ID.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(CostManagementClientConfiguration, self).__init__(base_url)

self.add_user_agent('azure-mgmt-costmanagement/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
from ._configuration import CostManagementClientConfiguration
from .operations import DimensionsOperations
from .operations import QueryOperations
from .operations import ExportsOperations
from .operations import Operations
from . import models


class CostManagementClient(SDKClient):
Expand Down Expand Up @@ -82,7 +50,7 @@ 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-01-01'
self.api_version = '2019-10-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,63 +10,62 @@
# --------------------------------------------------------------------------

try:
from .error_details_py3 import ErrorDetails
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .resource_py3 import Resource
from .dimension_py3 import Dimension
from .query_column_py3 import QueryColumn
from .query_py3 import Query
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .query_time_period_py3 import QueryTimePeriod
from .query_dataset_configuration_py3 import QueryDatasetConfiguration
from .query_aggregation_py3 import QueryAggregation
from .query_grouping_py3 import QueryGrouping
from .query_sorting_configuration_py3 import QuerySortingConfiguration
from .query_comparison_expression_py3 import QueryComparisonExpression
from .query_filter_py3 import QueryFilter
from .query_dataset_py3 import QueryDataset
from .query_definition_py3 import QueryDefinition
from .export_recurrence_period_py3 import ExportRecurrencePeriod
from .export_schedule_py3 import ExportSchedule
from .export_py3 import Export
from .export_list_result_py3 import ExportListResult
from .export_delivery_destination_py3 import ExportDeliveryDestination
from .export_delivery_info_py3 import ExportDeliveryInfo
from .common_export_properties_py3 import CommonExportProperties
from .export_execution_py3 import ExportExecution
from .export_execution_list_result_py3 import ExportExecutionListResult
from ._models_py3 import CommonExportProperties
from ._models_py3 import Dimension
from ._models_py3 import ErrorDetails
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import Export
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 Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import QueryAggregation
from ._models_py3 import QueryColumn
from ._models_py3 import QueryComparisonExpression
from ._models_py3 import QueryDataset
from ._models_py3 import QueryDatasetConfiguration
from ._models_py3 import QueryDefinition
from ._models_py3 import QueryFilter
from ._models_py3 import QueryGrouping
from ._models_py3 import QueryResult
from ._models_py3 import QuerySortingConfiguration
from ._models_py3 import QueryTimePeriod
from ._models_py3 import Resource
except (SyntaxError, ImportError):
from .error_details import ErrorDetails
from .error_response import ErrorResponse, ErrorResponseException
from .resource import Resource
from .dimension import Dimension
from .query_column import QueryColumn
from .query import Query
from .operation_display import OperationDisplay
from .operation import Operation
from .query_time_period import QueryTimePeriod
from .query_dataset_configuration import QueryDatasetConfiguration
from .query_aggregation import QueryAggregation
from .query_grouping import QueryGrouping
from .query_sorting_configuration import QuerySortingConfiguration
from .query_comparison_expression import QueryComparisonExpression
from .query_filter import QueryFilter
from .query_dataset import QueryDataset
from .query_definition import QueryDefinition
from .export_recurrence_period import ExportRecurrencePeriod
from .export_schedule import ExportSchedule
from .export import Export
from .export_list_result import ExportListResult
from .export_delivery_destination import ExportDeliveryDestination
from .export_delivery_info import ExportDeliveryInfo
from .common_export_properties import CommonExportProperties
from .export_execution import ExportExecution
from .export_execution_list_result import ExportExecutionListResult
from .dimension_paged import DimensionPaged
from .query_paged import QueryPaged
from .operation_paged import OperationPaged
from .cost_management_client_enums import (
from ._models import CommonExportProperties
from ._models import Dimension
from ._models import ErrorDetails
from ._models import ErrorResponse, ErrorResponseException
from ._models import Export
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 Operation
from ._models import OperationDisplay
from ._models import QueryAggregation
from ._models import QueryColumn
from ._models import QueryComparisonExpression
from ._models import QueryDataset
from ._models import QueryDatasetConfiguration
from ._models import QueryDefinition
from ._models import QueryFilter
from ._models import QueryGrouping
from ._models import QueryResult
from ._models import QuerySortingConfiguration
from ._models import QueryTimePeriod
from ._models import Resource
from ._paged_models import DimensionPaged
from ._paged_models import OperationPaged
from ._cost_management_client_enums import (
TimeframeType,
GranularityType,
QueryColumnType,
Expand All @@ -79,34 +78,33 @@
)

__all__ = [
'CommonExportProperties',
'Dimension',
'ErrorDetails',
'ErrorResponse', 'ErrorResponseException',
'Resource',
'Dimension',
'QueryColumn',
'Query',
'OperationDisplay',
'Operation',
'QueryTimePeriod',
'QueryDatasetConfiguration',
'QueryAggregation',
'QueryGrouping',
'QuerySortingConfiguration',
'QueryComparisonExpression',
'QueryFilter',
'QueryDataset',
'QueryDefinition',
'ExportRecurrencePeriod',
'ExportSchedule',
'Export',
'ExportListResult',
'ExportDeliveryDestination',
'ExportDeliveryInfo',
'CommonExportProperties',
'ExportExecution',
'ExportExecutionListResult',
'ExportListResult',
'ExportRecurrencePeriod',
'ExportSchedule',
'Operation',
'OperationDisplay',
'QueryAggregation',
'QueryColumn',
'QueryComparisonExpression',
'QueryDataset',
'QueryDatasetConfiguration',
'QueryDefinition',
'QueryFilter',
'QueryGrouping',
'QueryResult',
'QuerySortingConfiguration',
'QueryTimePeriod',
'Resource',
'DimensionPaged',
'QueryPaged',
'OperationPaged',
'TimeframeType',
'GranularityType',
Expand Down
Loading

0 comments on commit c158f32

Please sign in to comment.