Skip to content

Commit

Permalink
regenerated python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
annatisch committed May 17, 2016
1 parent 71f8973 commit c951cb8
Show file tree
Hide file tree
Showing 94 changed files with 745 additions and 491 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .auto_rest_duration_test_service import AutoRestDurationTestService, AutoRestDurationTestServiceConfiguration
from .auto_rest_duration_test_service import AutoRestDurationTestService
from .version import VERSION

__all__ = [
'AutoRestDurationTestService',
'AutoRestDurationTestServiceConfiguration'
]
__all__ = ['AutoRestDurationTestService']

__version__ = VERSION

Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,38 @@ def __init__(
class AutoRestDurationTestService(object):
"""Test Infrastructure for AutoRest
:param config: Configuration for client.
:type config: AutoRestDurationTestServiceConfiguration
:ivar config: Configuration for client.
:vartype config: AutoRestDurationTestServiceConfiguration
:ivar duration: Duration operations
:vartype duration: .operations.DurationOperations
:param credentials: Gets Azure subscription credentials.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param accept_language: Gets or sets the preferred language for the
response.
:type accept_language: str
:param long_running_operation_retry_timeout: Gets or sets the retry
timeout in seconds for Long Running Operations. Default value is 30.
:type long_running_operation_retry_timeout: int
:param generate_client_request_id: When set to true a unique
x-ms-client-request-id value is generated and included in each request.
Default is true.
:type generate_client_request_id: bool
:param str base_url: Service URL
:param str filepath: Existing config
"""

def __init__(self, config):
def __init__(
self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None):

self._client = ServiceClient(config.credentials, config)
self.config = AutoRestDurationTestServiceConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath)
self._client = ServiceClient(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer()
self._deserialize = Deserializer(client_models)

self.config = config
self.duration = DurationOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .auto_rest_parameter_grouping_test_service import AutoRestParameterGroupingTestService, AutoRestParameterGroupingTestServiceConfiguration
from .auto_rest_parameter_grouping_test_service import AutoRestParameterGroupingTestService
from .version import VERSION

__all__ = [
'AutoRestParameterGroupingTestService',
'AutoRestParameterGroupingTestServiceConfiguration'
]
__all__ = ['AutoRestParameterGroupingTestService']

__version__ = VERSION

Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,38 @@ def __init__(
class AutoRestParameterGroupingTestService(object):
"""Test Infrastructure for AutoRest
:param config: Configuration for client.
:type config: AutoRestParameterGroupingTestServiceConfiguration
:ivar config: Configuration for client.
:vartype config: AutoRestParameterGroupingTestServiceConfiguration
:ivar parameter_grouping: ParameterGrouping operations
:vartype parameter_grouping: .operations.ParameterGroupingOperations
:param credentials: Gets Azure subscription credentials.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param accept_language: Gets or sets the preferred language for the
response.
:type accept_language: str
:param long_running_operation_retry_timeout: Gets or sets the retry
timeout in seconds for Long Running Operations. Default value is 30.
:type long_running_operation_retry_timeout: int
:param generate_client_request_id: When set to true a unique
x-ms-client-request-id value is generated and included in each request.
Default is true.
:type generate_client_request_id: bool
:param str base_url: Service URL
:param str filepath: Existing config
"""

def __init__(self, config):
def __init__(
self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None):

self._client = ServiceClient(config.credentials, config)
self.config = AutoRestParameterGroupingTestServiceConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath)
self._client = ServiceClient(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer()
self._deserialize = Deserializer(client_models)

self.config = config
self.parameter_grouping = ParameterGroupingOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .auto_rest_report_service_for_azure import AutoRestReportServiceForAzure, AutoRestReportServiceForAzureConfiguration
from .auto_rest_report_service_for_azure import AutoRestReportServiceForAzure
from .version import VERSION

__all__ = [
'AutoRestReportServiceForAzure',
'AutoRestReportServiceForAzureConfiguration'
]
__all__ = ['AutoRestReportServiceForAzure']

__version__ = VERSION

Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,36 @@ def __init__(
class AutoRestReportServiceForAzure(object):
"""Test Infrastructure for AutoRest
:param config: Configuration for client.
:type config: AutoRestReportServiceForAzureConfiguration
:ivar config: Configuration for client.
:vartype config: AutoRestReportServiceForAzureConfiguration
:param credentials: Gets Azure subscription credentials.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param accept_language: Gets or sets the preferred language for the
response.
:type accept_language: str
:param long_running_operation_retry_timeout: Gets or sets the retry
timeout in seconds for Long Running Operations. Default value is 30.
:type long_running_operation_retry_timeout: int
:param generate_client_request_id: When set to true a unique
x-ms-client-request-id value is generated and included in each request.
Default is true.
:type generate_client_request_id: bool
:param str base_url: Service URL
:param str filepath: Existing config
"""

def __init__(self, config):
def __init__(
self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None):

self._client = ServiceClient(config.credentials, config)
self.config = AutoRestReportServiceForAzureConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath)
self._client = ServiceClient(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer()
self._deserialize = Deserializer(client_models)

self.config = config

def get_report(
self, custom_headers={}, raw=False, **operation_config):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .auto_rest_resource_flattening_test_service import AutoRestResourceFlatteningTestService, AutoRestResourceFlatteningTestServiceConfiguration
from .auto_rest_resource_flattening_test_service import AutoRestResourceFlatteningTestService
from .version import VERSION

__all__ = [
'AutoRestResourceFlatteningTestService',
'AutoRestResourceFlatteningTestServiceConfiguration'
]
__all__ = ['AutoRestResourceFlatteningTestService']

__version__ = VERSION

Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,36 @@ def __init__(
class AutoRestResourceFlatteningTestService(object):
"""Resource Flattening for AutoRest
:param config: Configuration for client.
:type config: AutoRestResourceFlatteningTestServiceConfiguration
:ivar config: Configuration for client.
:vartype config: AutoRestResourceFlatteningTestServiceConfiguration
:param credentials: Gets Azure subscription credentials.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param accept_language: Gets or sets the preferred language for the
response.
:type accept_language: str
:param long_running_operation_retry_timeout: Gets or sets the retry
timeout in seconds for Long Running Operations. Default value is 30.
:type long_running_operation_retry_timeout: int
:param generate_client_request_id: When set to true a unique
x-ms-client-request-id value is generated and included in each request.
Default is true.
:type generate_client_request_id: bool
:param str base_url: Service URL
:param str filepath: Existing config
"""

def __init__(self, config):
def __init__(
self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None):

self._client = ServiceClient(config.credentials, config)
self.config = AutoRestResourceFlatteningTestServiceConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath)
self._client = ServiceClient(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer()
self._deserialize = Deserializer(client_models)

self.config = config

def put_array(
self, resource_array=None, custom_headers={}, raw=False, **operation_config):
Expand Down Expand Up @@ -312,7 +329,7 @@ def put_resource_collection(

# Construct body
if resource_complex_object is not None:
body_content = self._serialize.body(resource_complex_object, 'ResourceCollection')
body_content = self._serialize.body(resource_complex_object, models.ResourceCollection)
else:
body_content = None

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .auto_rest_azure_special_parameters_test_client import AutoRestAzureSpecialParametersTestClient, AutoRestAzureSpecialParametersTestClientConfiguration
from .auto_rest_azure_special_parameters_test_client import AutoRestAzureSpecialParametersTestClient
from .version import VERSION

__all__ = [
'AutoRestAzureSpecialParametersTestClient',
'AutoRestAzureSpecialParametersTestClientConfiguration'
]
__all__ = ['AutoRestAzureSpecialParametersTestClient']

__version__ = VERSION

Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def __init__(
class AutoRestAzureSpecialParametersTestClient(object):
"""Test Infrastructure for AutoRest
:param config: Configuration for client.
:type config: AutoRestAzureSpecialParametersTestClientConfiguration
:ivar config: Configuration for client.
:vartype config: AutoRestAzureSpecialParametersTestClientConfiguration
:ivar xms_client_request_id: XMsClientRequestId operations
:vartype xms_client_request_id: .operations.XMsClientRequestIdOperations
Expand All @@ -103,17 +103,40 @@ class AutoRestAzureSpecialParametersTestClient(object):
:vartype odata: .operations.OdataOperations
:ivar header: Header operations
:vartype header: .operations.HeaderOperations
:param credentials: Gets Azure subscription credentials.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The subscription id, which appears in the path,
always modeled in credentials. The value is always '1234-5678-9012-3456'
:type subscription_id: str
:param api_version: The api version, which appears in the query, the
value is always '2015-07-01-preview'
:type api_version: str
:param accept_language: Gets or sets the preferred language for the
response.
:type accept_language: str
:param long_running_operation_retry_timeout: Gets or sets the retry
timeout in seconds for Long Running Operations. Default value is 30.
:type long_running_operation_retry_timeout: int
:param generate_client_request_id: When set to true a unique
x-ms-client-request-id value is generated and included in each request.
Default is true.
:type generate_client_request_id: bool
:param str base_url: Service URL
:param str filepath: Existing config
"""

def __init__(self, config):
def __init__(
self, credentials, subscription_id, api_version='2015-07-01-preview', accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None):

self._client = ServiceClient(config.credentials, config)
self.config = AutoRestAzureSpecialParametersTestClientConfiguration(credentials, subscription_id, api_version, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath)
self._client = ServiceClient(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer()
self._deserialize = Deserializer(client_models)

self.config = config
self.xms_client_request_id = XMsClientRequestIdOperations(
self._client, self.config, self._serialize, self._deserialize)
self.subscription_in_credentials = SubscriptionInCredentialsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .auto_rest_parameterized_host_test_client import AutoRestParameterizedHostTestClient, AutoRestParameterizedHostTestClientConfiguration
from .auto_rest_parameterized_host_test_client import AutoRestParameterizedHostTestClient
from .version import VERSION

__all__ = [
'AutoRestParameterizedHostTestClient',
'AutoRestParameterizedHostTestClientConfiguration'
]
__all__ = ['AutoRestParameterizedHostTestClient']

__version__ = VERSION

Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,40 @@ def __init__(
class AutoRestParameterizedHostTestClient(object):
"""Test Infrastructure for AutoRest
:param config: Configuration for client.
:type config: AutoRestParameterizedHostTestClientConfiguration
:ivar config: Configuration for client.
:vartype config: AutoRestParameterizedHostTestClientConfiguration
:ivar paths: Paths operations
:vartype paths: .operations.PathsOperations
:param credentials: Gets Azure subscription credentials.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param host: A string value that is used as a global part of the
parameterized host
:type host: str
:param accept_language: Gets or sets the preferred language for the
response.
:type accept_language: str
:param long_running_operation_retry_timeout: Gets or sets the retry
timeout in seconds for Long Running Operations. Default value is 30.
:type long_running_operation_retry_timeout: int
:param generate_client_request_id: When set to true a unique
x-ms-client-request-id value is generated and included in each request.
Default is true.
:type generate_client_request_id: bool
:param str filepath: Existing config
"""

def __init__(self, config):
def __init__(
self, credentials, host, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, filepath=None):

self._client = ServiceClient(config.credentials, config)
self.config = AutoRestParameterizedHostTestClientConfiguration(credentials, host, accept_language, long_running_operation_retry_timeout, generate_client_request_id, filepath)
self._client = ServiceClient(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer()
self._deserialize = Deserializer(client_models)

self.config = config
self.paths = PathsOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .auto_rest_head_test_service import AutoRestHeadTestService, AutoRestHeadTestServiceConfiguration
from .auto_rest_head_test_service import AutoRestHeadTestService
from .version import VERSION

__all__ = [
'AutoRestHeadTestService',
'AutoRestHeadTestServiceConfiguration'
]
__all__ = ['AutoRestHeadTestService']

__version__ = VERSION

0 comments on commit c951cb8

Please sign in to comment.