Update python generator based on feedback:

1. From yuguan's code review (move python ignore to python folder, update setting validation).
2. From Anna's suggestion (docstring change, operation name re-case)
3. Remvoe generated ruby test code.
4. Add new test case for stream upload
This commit is contained in:
xingwu1 2016-01-07 14:56:22 -08:00
Родитель 7993bfd52a
Коммит 191e31b13f
523 изменённых файлов: 3772 добавлений и 67914 удалений

73
.gitignore поставляемый
Просмотреть файл

@ -172,78 +172,7 @@ Thumbs.db
#old nuget restore folder
.nuget/
AutoRest/Generators/Ruby/*Tests/Gemfile.lock
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
# Translations
*.mo
*.pot
# Django stuff:
*.log
# Sphinx documentation
docs/_build/
# PyBuilder
target/
ClientRuntimes/Python/Python35-64-ENV/pip-selfcheck.json
ClientRuntimes/Python/Python35-64-ENV/pyvenv.cfg
ClientRuntimes/Python/Python35-64-ENV/Scripts/activate.bat
ClientRuntimes/Python/Python35-64-ENV/Scripts/Activate.ps1
ClientRuntimes/Python/Python35-64-ENV/Scripts/deactivate.bat
*.pyc
#tox directory
*.tox
#python code coverage
*.coverage
AutoRest/Generators/Ruby/*/RspecTests/Generated/*
#dnx installation
dnx-clr-win-x86*/

Просмотреть файл

@ -5,6 +5,7 @@ using System.Collections.Generic;
using System.Linq;
using Microsoft.Rest.Generator.Logging;
using Xunit;
using Microsoft.Rest.Generator.Test.Resource;
namespace Microsoft.Rest.Generator.Test
{
@ -91,7 +92,8 @@ namespace Microsoft.Rest.Generator.Test
var settings = Settings.Create(new[] {"-Modeler", "foo"});
try
{
settings.Validate(null);
var codeGenerator = new SampleCodeGenerator(settings);
settings.Validate(codeGenerator);
Assert.True(false);
}
catch (CodeGenerationException e)

Просмотреть файл

@ -56,7 +56,7 @@ namespace Microsoft.Rest.Generator
/// </summary>
/// <param name="settingName">the setting name</param>
/// <returns></returns>
public virtual bool DoesSupportSetting(string settingName)
public virtual bool IsSettingSupported(string settingName)
{
// Don't support any customized setting
return false;

Просмотреть файл

@ -304,6 +304,11 @@ Licensed under the MIT License. See License.txt in the project root for license
public void Validate(CodeGenerator codeGenerator)
{
if (codeGenerator == null)
{
throw new ArgumentNullException("codeGenerator");
}
foreach (PropertyInfo property in (typeof (Settings)).GetProperties())
{
// If property value is not set - throw exception.
@ -314,11 +319,12 @@ Licensed under the MIT License. See License.txt in the project root for license
Resources.ParameterValueIsMissing, property.Name);
}
}
if (CustomSettings != null && codeGenerator != null)
if (CustomSettings != null)
{
foreach (var unmatchedSetting in CustomSettings.Keys)
{
if (!codeGenerator.DoesSupportSetting(unmatchedSetting))
if (!codeGenerator.IsSettingSupported(unmatchedSetting))
{
Logger.LogError(new ArgumentException(unmatchedSetting),
Resources.ParameterIsNotValid, unmatchedSetting);

72
AutoRest/Generators/Python/.gitignore поставляемый Normal file
Просмотреть файл

@ -0,0 +1,72 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
# Translations
*.mo
*.pot
# Django stuff:
*.log
# Sphinx documentation
docs/_build/
# PyBuilder
target/
ClientRuntimes/Python/Python35-64-ENV/pip-selfcheck.json
ClientRuntimes/Python/Python35-64-ENV/pyvenv.cfg
ClientRuntimes/Python/Python35-64-ENV/Scripts/activate.bat
ClientRuntimes/Python/Python35-64-ENV/Scripts/Activate.ps1
ClientRuntimes/Python/Python35-64-ENV/Scripts/deactivate.bat
*.pyc
#tox directory
*.tox
#python code coverage
*.coverage

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -12,7 +12,7 @@
from msrest.service_client import ServiceClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .operations.duration_operations import durationOperations
from .operations.duration_operations import DurationOperations
from . import models
@ -46,5 +46,5 @@ class AutoRestDurationTestService(object):
self._deserialize = Deserializer(client_models)
self.config = config
self.duration = durationOperations(
self.duration = DurationOperations(
self._client, self.config, self._serialize, self._deserialize)

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,13 +4,13 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .duration_operations import durationOperations
from .duration_operations import DurationOperations
__all__ = [
'durationOperations',
'DurationOperations',
]

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -16,7 +16,7 @@ import uuid
from .. import models
class durationOperations(object):
class DurationOperations(object):
def __init__(self, client, config, serializer, derserializer):
@ -30,22 +30,18 @@ class durationOperations(object):
def get_null(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get null duration value
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: timedelta or (timedelta, requests.response) or
concurrent.futures.Future
"""
# Construct URL
url = '/duration/null'
@ -83,23 +79,19 @@ class durationOperations(object):
def put_positive_duration(
self, duration_body, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Put a positive duration value
:param duration_body:
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type duration_body: timedelta
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type duration_body: timedelta
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/duration/positiveduration'
@ -134,22 +126,18 @@ class durationOperations(object):
def get_positive_duration(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get a positive duration value
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: timedelta or (timedelta, requests.response) or
concurrent.futures.Future
"""
# Construct URL
url = '/duration/positiveduration'
@ -187,22 +175,18 @@ class durationOperations(object):
def get_invalid(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get an invalid duration value
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: timedelta or (timedelta, requests.response) or
concurrent.futures.Future
"""
# Construct URL
url = '/duration/invalid'

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -22,7 +22,7 @@ VERSION = "1.0.0"
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
REQUIRES = ["urllib3 >= 1.10", "six >= 1.9", "certifi", "python-dateutil"]
REQUIRES = ["msrest>=0.0.1", "msrestazure>=0.0.1"]
setup(
name=NAME,

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -12,7 +12,7 @@
from msrest.service_client import ServiceClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .operations.parameter_grouping_operations import parameter_groupingOperations
from .operations.parameter_grouping_operations import ParameterGroupingOperations
from . import models
@ -46,5 +46,5 @@ class AutoRestParameterGroupingTestService(object):
self._deserialize = Deserializer(client_models)
self.config = config
self.parameter_grouping = parameter_groupingOperations(
self.parameter_grouping = ParameterGroupingOperations(
self._client, self.config, self._serialize, self._deserialize)

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,13 +4,13 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .parameter_grouping_operations import parameter_groupingOperations
from .parameter_grouping_operations import ParameterGroupingOperations
__all__ = [
'parameter_groupingOperations',
'ParameterGroupingOperations',
]

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -16,7 +16,7 @@ import uuid
from .. import models
class parameter_groupingOperations(object):
class ParameterGroupingOperations(object):
def __init__(self, client, config, serializer, derserializer):
@ -30,24 +30,21 @@ class parameter_groupingOperations(object):
def post_required(
self, parameter_grouping_post_required_parameters, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Post a bunch of required parameters grouped
:param parameter_grouping_post_required_parameters: Additional
parameters for the operation
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type parameter_grouping_post_required_parameters:
parametergroupingpostrequiredparameters
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type parameter_grouping_post_required_parameters: object
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
body = None
if parameter_grouping_post_required_parameters is not None:
body = parameter_grouping_post_required_parameters.body
@ -103,24 +100,21 @@ class parameter_groupingOperations(object):
def post_optional(
self, parameter_grouping_post_optional_parameters=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Post a bunch of optional parameters grouped
:param parameter_grouping_post_optional_parameters: Additional
parameters for the operation
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type parameter_grouping_post_optional_parameters:
parametergroupingpostoptionalparameters or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type parameter_grouping_post_optional_parameters: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
custom_header = None
if parameter_grouping_post_optional_parameters is not None:
custom_header = parameter_grouping_post_optional_parameters.custom_header
@ -162,29 +156,26 @@ class parameter_groupingOperations(object):
def post_multiple_parameter_groups(
self, first_parameter_group=None, parameter_grouping_post_multiple_parameter_groups_second_parameter_group=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Post parameters from multiple different parameter groups
:param first_parameter_group: Additional parameters for the operation
:type first_parameter_group: firstparametergroup or none
:param
parameter_grouping_post_multiple_parameter_groups_second_parameter_group:
Additional parameters for the operation
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type
parameter_grouping_post_multiple_parameter_groups_second_parameter_group:
parametergroupingpostmultipleparametergroupssecondparametergroup or
none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type first_parameter_group: object or none
:type
parameter_grouping_post_multiple_parameter_groups_second_parameter_group:
object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
header_one = None
if first_parameter_group is not None:
header_one = first_parameter_group.header_one
@ -236,23 +227,19 @@ class parameter_groupingOperations(object):
def post_shared_parameter_group_object(
self, first_parameter_group=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Post parameters with a shared parameter group object
:param first_parameter_group: Additional parameters for the operation
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type first_parameter_group: firstparametergroup or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type first_parameter_group: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
header_one = None
if first_parameter_group is not None:
header_one = first_parameter_group.header_one

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -22,7 +22,7 @@ VERSION = "1.0.0"
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
REQUIRES = ["urllib3 >= 1.10", "six >= 1.9", "certifi", "python-dateutil"]
REQUIRES = ["msrest>=0.0.1", "msrestazure>=0.0.1"]
setup(
name=NAME,

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -53,22 +53,17 @@ class AutoRestReportServiceForAzure(object):
def get_report(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get test coverage report
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
concurrent.futures.Future
:rtype: dict or (dict, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/report/azure'

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -22,7 +22,7 @@ VERSION = "1.0.0"
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
REQUIRES = ["urllib3 >= 1.10", "six >= 1.9", "certifi", "python-dateutil"]
REQUIRES = ["msrest>=0.0.1", "msrestazure>=0.0.1"]
setup(
name=NAME,

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -12,14 +12,14 @@
from msrest.service_client import ServiceClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .operations.xms_client_request_id_operations import xms_client_request_idOperations
from .operations.subscription_in_credentials_operations import subscription_in_credentialsOperations
from .operations.subscription_in_method_operations import subscription_in_methodOperations
from .operations.api_version_default_operations import api_version_defaultOperations
from .operations.api_version_local_operations import api_version_localOperations
from .operations.skip_url_encoding_operations import skip_url_encodingOperations
from .operations.odata_operations import odataOperations
from .operations.header_operations import headerOperations
from .operations.xms_client_request_id_operations import XMsClientRequestIdOperations
from .operations.subscription_in_credentials_operations import SubscriptionInCredentialsOperations
from .operations.subscription_in_method_operations import SubscriptionInMethodOperations
from .operations.api_version_default_operations import ApiVersionDefaultOperations
from .operations.api_version_local_operations import ApiVersionLocalOperations
from .operations.skip_url_encoding_operations import SkipUrlEncodingOperations
from .operations.odata_operations import OdataOperations
from .operations.header_operations import HeaderOperations
from . import models
@ -57,19 +57,19 @@ class AutoRestAzureSpecialParametersTestClient(object):
self._deserialize = Deserializer(client_models)
self.config = config
self.xms_client_request_id = xms_client_request_idOperations(
self.xms_client_request_id = XMsClientRequestIdOperations(
self._client, self.config, self._serialize, self._deserialize)
self.subscription_in_credentials = subscription_in_credentialsOperations(
self.subscription_in_credentials = SubscriptionInCredentialsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.subscription_in_method = subscription_in_methodOperations(
self.subscription_in_method = SubscriptionInMethodOperations(
self._client, self.config, self._serialize, self._deserialize)
self.api_version_default = api_version_defaultOperations(
self.api_version_default = ApiVersionDefaultOperations(
self._client, self.config, self._serialize, self._deserialize)
self.api_version_local = api_version_localOperations(
self.api_version_local = ApiVersionLocalOperations(
self._client, self.config, self._serialize, self._deserialize)
self.skip_url_encoding = skip_url_encodingOperations(
self.skip_url_encoding = SkipUrlEncodingOperations(
self._client, self.config, self._serialize, self._deserialize)
self.odata = odataOperations(
self.odata = OdataOperations(
self._client, self.config, self._serialize, self._deserialize)
self.header = headerOperations(
self.header = HeaderOperations(
self._client, self.config, self._serialize, self._deserialize)

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,27 +4,27 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .xms_client_request_id_operations import xms_client_request_idOperations
from .subscription_in_credentials_operations import subscription_in_credentialsOperations
from .subscription_in_method_operations import subscription_in_methodOperations
from .api_version_default_operations import api_version_defaultOperations
from .api_version_local_operations import api_version_localOperations
from .skip_url_encoding_operations import skip_url_encodingOperations
from .odata_operations import odataOperations
from .header_operations import headerOperations
from .xms_client_request_id_operations import XMsClientRequestIdOperations
from .subscription_in_credentials_operations import SubscriptionInCredentialsOperations
from .subscription_in_method_operations import SubscriptionInMethodOperations
from .api_version_default_operations import ApiVersionDefaultOperations
from .api_version_local_operations import ApiVersionLocalOperations
from .skip_url_encoding_operations import SkipUrlEncodingOperations
from .odata_operations import OdataOperations
from .header_operations import HeaderOperations
__all__ = [
'xms_client_request_idOperations',
'subscription_in_credentialsOperations',
'subscription_in_methodOperations',
'api_version_defaultOperations',
'api_version_localOperations',
'skip_url_encodingOperations',
'odataOperations',
'headerOperations',
'XMsClientRequestIdOperations',
'SubscriptionInCredentialsOperations',
'SubscriptionInMethodOperations',
'ApiVersionDefaultOperations',
'ApiVersionLocalOperations',
'SkipUrlEncodingOperations',
'OdataOperations',
'HeaderOperations',
]

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -16,7 +16,7 @@ import uuid
from .. import models
class api_version_defaultOperations(object):
class ApiVersionDefaultOperations(object):
def __init__(self, client, config, serializer, derserializer):
@ -30,21 +30,17 @@ class api_version_defaultOperations(object):
def get_method_global_valid(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
GET method with api-version modeled in global settings.
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/apiVersion/method/string/none/query/global/2015-07-01-preview'
@ -76,21 +72,17 @@ class api_version_defaultOperations(object):
def get_method_global_not_provided_valid(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
GET method with api-version modeled in global settings.
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/apiVersion/method/string/none/query/globalNotProvided/2015-07-01-preview'
@ -122,21 +114,17 @@ class api_version_defaultOperations(object):
def get_path_global_valid(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
GET method with api-version modeled in global settings.
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/apiVersion/path/string/none/query/global/2015-07-01-preview'
@ -168,21 +156,17 @@ class api_version_defaultOperations(object):
def get_swagger_global_valid(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
GET method with api-version modeled in global settings.
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/apiVersion/swagger/string/none/query/global/2015-07-01-preview'

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -16,7 +16,7 @@ import uuid
from .. import models
class api_version_localOperations(object):
class ApiVersionLocalOperations(object):
def __init__(self, client, config, serializer, derserializer):
@ -30,25 +30,21 @@ class api_version_localOperations(object):
def get_method_local_valid(
self, api_version, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get method with api-version modeled in the method. pass in
api-version = '2.0' to succeed
:param api_version: This should appear as a method parameter, use
value '2.0'. Possible values for this parameter include: '2.0'
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type api_version: str
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type api_version: str
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/apiVersion/method/string/none/query/local/2.0'
@ -80,25 +76,21 @@ class api_version_localOperations(object):
def get_method_local_null(
self, api_version=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get method with api-version modeled in the method. pass in
api-version = null to succeed
:param api_version: This should appear as a method parameter, use
value null, this should result in no serialized parameter
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type api_version: str or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type api_version: str or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/apiVersion/method/string/none/query/local/null'
@ -131,25 +123,21 @@ class api_version_localOperations(object):
def get_path_local_valid(
self, api_version, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get method with api-version modeled in the method. pass in
api-version = '2.0' to succeed
:param api_version: This should appear as a method parameter, use
value '2.0'. Possible values for this parameter include: '2.0'
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type api_version: str
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type api_version: str
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/apiVersion/path/string/none/query/local/2.0'
@ -181,26 +169,22 @@ class api_version_localOperations(object):
def get_swagger_local_valid(
self, api_version, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get method with api-version modeled in the method. pass in
api-version = '2.0' to succeed
:param api_version: The api version, which appears in the query, the
value is always '2.0'. Possible values for this parameter include:
'2.0'
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type api_version: str
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type api_version: str
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/apiVersion/swagger/string/none/query/local/2.0'

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -16,7 +16,7 @@ import uuid
from .. import models
class headerOperations(object):
class HeaderOperations(object):
def __init__(self, client, config, serializer, derserializer):
@ -30,24 +30,20 @@ class headerOperations(object):
def custom_named_request_id(
self, foo_client_request_id, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Send foo-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in
the header of the request
:param foo_client_request_id: The fooRequestId
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type foo_client_request_id: str
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type foo_client_request_id: str
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/customNamedRequestId'

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -16,7 +16,7 @@ import uuid
from .. import models
class odataOperations(object):
class OdataOperations(object):
def __init__(self, client, config, serializer, derserializer):
@ -30,29 +30,25 @@ class odataOperations(object):
def get_with_filter(
self, filter=None, top=None, orderby=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Specify filter parameter with value '$filter=id gt 5 and name eq
'foo'&$orderby=id&$top=10'
:param filter: The filter parameter with value '$filter=id gt 5 and
name eq 'foo''.
:type filter: odatafilter or none
:param top: The top parameter with value 10.
:type top: int or none
:param orderby: The orderby parameter with value id.
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type orderby: str or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type filter: object or none
:type top: int or none
:type orderby: str or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/odata/filter'

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -16,7 +16,7 @@ import uuid
from .. import models
class skip_url_encodingOperations(object):
class SkipUrlEncodingOperations(object):
def __init__(self, client, config, serializer, derserializer):
@ -30,24 +30,20 @@ class skip_url_encodingOperations(object):
def get_method_path_valid(
self, unencoded_path_param, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get method with unencoded path parameter with value 'path1/path2/path3'
:param unencoded_path_param: Unencoded path parameter with value
'path1/path2/path3'
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type unencoded_path_param: str
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type unencoded_path_param: str
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/skipUrlEncoding/method/path/valid/{unencodedPathParam}'
path_format_arguments = {
@ -82,24 +78,20 @@ class skip_url_encodingOperations(object):
def get_path_path_valid(
self, unencoded_path_param, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get method with unencoded path parameter with value 'path1/path2/path3'
:param unencoded_path_param: Unencoded path parameter with value
'path1/path2/path3'
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type unencoded_path_param: str
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type unencoded_path_param: str
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/skipUrlEncoding/path/path/valid/{unencodedPathParam}'
path_format_arguments = {
@ -134,25 +126,21 @@ class skip_url_encodingOperations(object):
def get_swagger_path_valid(
self, unencoded_path_param, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get method with unencoded path parameter with value 'path1/path2/path3'
:param unencoded_path_param: An unencoded path parameter with value
'path1/path2/path3'. Possible values for this parameter include:
'path1/path2/path3'
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type unencoded_path_param: str
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type unencoded_path_param: str
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/skipUrlEncoding/swagger/path/valid/{unencodedPathParam}'
path_format_arguments = {
@ -187,25 +175,21 @@ class skip_url_encodingOperations(object):
def get_method_query_valid(
self, q1, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get method with unencoded query parameter with value
'value1&q2=value2&q3=value3'
:param q1: Unencoded query parameter with value
'value1&q2=value2&q3=value3'
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type q1: str
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type q1: str
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/skipUrlEncoding/method/query/valid'
@ -237,23 +221,19 @@ class skip_url_encodingOperations(object):
def get_method_query_null(
self, q1=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get method with unencoded query parameter with value null
:param q1: Unencoded query parameter with value null
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type q1: str or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type q1: str or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/skipUrlEncoding/method/query/null'
@ -286,25 +266,21 @@ class skip_url_encodingOperations(object):
def get_path_query_valid(
self, q1, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get method with unencoded query parameter with value
'value1&q2=value2&q3=value3'
:param q1: Unencoded query parameter with value
'value1&q2=value2&q3=value3'
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type q1: str
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type q1: str
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/skipUrlEncoding/path/query/valid'
@ -336,26 +312,22 @@ class skip_url_encodingOperations(object):
def get_swagger_query_valid(
self, q1=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get method with unencoded query parameter with value
'value1&q2=value2&q3=value3'
:param q1: An unencoded query parameter with value
'value1&q2=value2&q3=value3'. Possible values for this parameter
include: 'value1&q2=value2&q3=value3'
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type q1: str or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type q1: str or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/skipUrlEncoding/swagger/query/valid'

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -16,7 +16,7 @@ import uuid
from .. import models
class subscription_in_credentialsOperations(object):
class SubscriptionInCredentialsOperations(object):
def __init__(self, client, config, serializer, derserializer):
@ -30,22 +30,18 @@ class subscription_in_credentialsOperations(object):
def post_method_global_valid(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
POST method with subscriptionId modeled in credentials. Set the
credential subscriptionId to '1234-5678-9012-3456' to succeed
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/subscriptionId/method/string/none/path/global/1234-5678-9012-3456/{subscriptionId}'
path_format_arguments = {
@ -80,23 +76,19 @@ class subscription_in_credentialsOperations(object):
def post_method_global_null(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
POST method with subscriptionId modeled in credentials. Set the
credential subscriptionId to null, and client-side validation should
prevent you from making this call
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/subscriptionId/method/string/none/path/global/null/{subscriptionId}'
path_format_arguments = {
@ -131,22 +123,18 @@ class subscription_in_credentialsOperations(object):
def post_method_global_not_provided_valid(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
POST method with subscriptionId modeled in credentials. Set the
credential subscriptionId to '1234-5678-9012-3456' to succeed
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/subscriptionId/method/string/none/path/globalNotProvided/1234-5678-9012-3456/{subscriptionId}'
path_format_arguments = {
@ -182,22 +170,18 @@ class subscription_in_credentialsOperations(object):
def post_path_global_valid(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
POST method with subscriptionId modeled in credentials. Set the
credential subscriptionId to '1234-5678-9012-3456' to succeed
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/subscriptionId/path/string/none/path/global/1234-5678-9012-3456/{subscriptionId}'
path_format_arguments = {
@ -232,22 +216,18 @@ class subscription_in_credentialsOperations(object):
def post_swagger_global_valid(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
POST method with subscriptionId modeled in credentials. Set the
credential subscriptionId to '1234-5678-9012-3456' to succeed
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/subscriptionId/swagger/string/none/path/global/1234-5678-9012-3456/{subscriptionId}'
path_format_arguments = {

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -16,7 +16,7 @@ import uuid
from .. import models
class subscription_in_methodOperations(object):
class SubscriptionInMethodOperations(object):
def __init__(self, client, config, serializer, derserializer):
@ -30,25 +30,21 @@ class subscription_in_methodOperations(object):
def post_method_local_valid(
self, subscription_id, custom_headers={}, raw=False, callback=None, **operation_config):
"""
POST method with subscriptionId modeled in the method. pass in
subscription id = '1234-5678-9012-3456' to succeed
:param subscription_id: This should appear as a method parameter, use
value '1234-5678-9012-3456'
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type subscription_id: str
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type subscription_id: str
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/subscriptionId/method/string/none/path/local/1234-5678-9012-3456/{subscriptionId}'
path_format_arguments = {
@ -83,26 +79,22 @@ class subscription_in_methodOperations(object):
def post_method_local_null(
self, subscription_id, custom_headers={}, raw=False, callback=None, **operation_config):
"""
POST method with subscriptionId modeled in the method. pass in
subscription id = null, client-side validation should prevent you
from making this call
:param subscription_id: This should appear as a method parameter, use
value null, client-side validation should prvenet the call
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type subscription_id: str
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type subscription_id: str
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/subscriptionId/method/string/none/path/local/null/{subscriptionId}'
path_format_arguments = {
@ -137,25 +129,21 @@ class subscription_in_methodOperations(object):
def post_path_local_valid(
self, subscription_id, custom_headers={}, raw=False, callback=None, **operation_config):
"""
POST method with subscriptionId modeled in the method. pass in
subscription id = '1234-5678-9012-3456' to succeed
:param subscription_id: Should appear as a method parameter -use value
'1234-5678-9012-3456'
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type subscription_id: str
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type subscription_id: str
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/subscriptionId/path/string/none/path/local/1234-5678-9012-3456/{subscriptionId}'
path_format_arguments = {
@ -190,25 +178,21 @@ class subscription_in_methodOperations(object):
def post_swagger_local_valid(
self, subscription_id, custom_headers={}, raw=False, callback=None, **operation_config):
"""
POST method with subscriptionId modeled in the method. pass in
subscription id = '1234-5678-9012-3456' to succeed
:param subscription_id: The subscriptionId, which appears in the path,
the value is always '1234-5678-9012-3456'
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type subscription_id: str
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type subscription_id: str
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/subscriptionId/swagger/string/none/path/local/1234-5678-9012-3456/{subscriptionId}'
path_format_arguments = {

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -16,7 +16,7 @@ import uuid
from .. import models
class xms_client_request_idOperations(object):
class XMsClientRequestIdOperations(object):
def __init__(self, client, config, serializer, derserializer):
@ -30,22 +30,18 @@ class xms_client_request_idOperations(object):
def get(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get method that overwrites x-ms-client-request header with value
9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/overwrite/x-ms-client-request-id/method/'
@ -76,25 +72,21 @@ class xms_client_request_idOperations(object):
def param_get(
self, x_ms_client_request_id, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get method that overwrites x-ms-client-request header with value
9C4D50EE-2D56-4CD3-8152-34347DC9F2B0.
:param x_ms_client_request_id: This should appear as a method
parameter, use value '9C4D50EE-2D56-4CD3-8152-34347DC9F2B0'
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type x_ms_client_request_id: str
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type x_ms_client_request_id: str
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azurespecials/overwrite/x-ms-client-request-id/via-param/method/'

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -22,7 +22,7 @@ VERSION = "2015-07-01-preview"
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
REQUIRES = ["urllib3 >= 1.10", "six >= 1.9", "certifi", "python-dateutil"]
REQUIRES = ["msrest>=0.0.1", "msrestazure>=0.0.1"]
setup(
name=NAME,

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -12,7 +12,7 @@
from msrest.service_client import ServiceClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .operations.http_success_operations import http_successOperations
from .operations.http_success_operations import HttpSuccessOperations
class AutoRestHeadTestServiceConfiguration(AzureConfiguration):
@ -45,5 +45,5 @@ class AutoRestHeadTestService(object):
self._deserialize = Deserializer(client_models)
self.config = config
self.http_success = http_successOperations(
self.http_success = HttpSuccessOperations(
self._client, self.config, self._serialize, self._deserialize)

Просмотреть файл

@ -4,13 +4,13 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .http_success_operations import http_successOperations
from .http_success_operations import HttpSuccessOperations
__all__ = [
'http_successOperations',
'HttpSuccessOperations',
]

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -15,7 +15,7 @@ from msrestazure.azure_exceptions import CloudError
import uuid
class http_successOperations(object):
class HttpSuccessOperations(object):
def __init__(self, client, config, serializer, derserializer):
@ -29,21 +29,17 @@ class http_successOperations(object):
def head200(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Return 200 status code if successful
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: bool or (bool, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/http/success/200'
@ -76,21 +72,17 @@ class http_successOperations(object):
def head204(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Return 204 status code if successful
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: bool or (bool, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/http/success/204'
@ -123,21 +115,17 @@ class http_successOperations(object):
def head404(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Return 404 status code if successful
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: bool or (bool, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/http/success/404'

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -22,7 +22,7 @@ VERSION = "1.0.0"
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
REQUIRES = ["urllib3 >= 1.10", "six >= 1.9", "certifi", "python-dateutil"]
REQUIRES = ["msrest>=0.0.1", "msrestazure>=0.0.1"]
setup(
name=NAME,

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -12,10 +12,10 @@
from msrest.service_client import ServiceClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .operations.lr_os_operations import lr_osOperations
from .operations.lro_retrys_operations import lro_retrysOperations
from .operations.lrosa_ds_operations import lrosa_dsOperations
from .operations.lr_os_custom_header_operations import lr_os_custom_headerOperations
from .operations.lr_os_operations import LROsOperations
from .operations.lro_retrys_operations import LRORetrysOperations
from .operations.lrosa_ds_operations import LROSADsOperations
from .operations.lr_os_custom_header_operations import LROsCustomHeaderOperations
from . import models
@ -49,11 +49,11 @@ class AutoRestLongRunningOperationTestService(object):
self._deserialize = Deserializer(client_models)
self.config = config
self.lr_os = lr_osOperations(
self.lr_os = LROsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.lro_retrys = lro_retrysOperations(
self.lro_retrys = LRORetrysOperations(
self._client, self.config, self._serialize, self._deserialize)
self.lrosa_ds = lrosa_dsOperations(
self.lrosa_ds = LROSADsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.lr_os_custom_header = lr_os_custom_headerOperations(
self.lr_os_custom_header = LROsCustomHeaderOperations(
self._client, self.config, self._serialize, self._deserialize)

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,19 +4,19 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .lr_os_operations import lr_osOperations
from .lro_retrys_operations import lro_retrysOperations
from .lrosa_ds_operations import lrosa_dsOperations
from .lr_os_custom_header_operations import lr_os_custom_headerOperations
from .lr_os_operations import LROsOperations
from .lro_retrys_operations import LRORetrysOperations
from .lrosa_ds_operations import LROSADsOperations
from .lr_os_custom_header_operations import LROsCustomHeaderOperations
__all__ = [
'lr_osOperations',
'lro_retrysOperations',
'lrosa_dsOperations',
'lr_os_custom_headerOperations',
'LROsOperations',
'LRORetrysOperations',
'LROSADsOperations',
'LROsCustomHeaderOperations',
]

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -18,7 +18,7 @@ import uuid
from .. import models
class lr_os_custom_headerOperations(object):
class LROsCustomHeaderOperations(object):
def __init__(self, client, config, serializer, derserializer):
@ -31,7 +31,6 @@ class lr_os_custom_headerOperations(object):
def put_async_retry_succeeded(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is
required message header for all requests. Long running put request,
service returns a 200 to the initial request, with an entity that
@ -39,20 +38,17 @@ class lr_os_custom_headerOperations(object):
the Azure-AsyncOperation header for operation status
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: product or (product, requests.response) or
concurrent.futures.Future
"""
# Construct URL
url = '/lro/customheader/putasync/retry/succeeded'
@ -120,7 +116,6 @@ class lr_os_custom_headerOperations(object):
def put201_creating_succeeded200(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is
required message header for all requests. Long running put request,
service returns a 201 to the initial request, with an entity that
@ -128,20 +123,17 @@ class lr_os_custom_headerOperations(object):
the last poll returns a 200 with ProvisioningState=Succeeded
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: product or (product, requests.response) or
concurrent.futures.Future
"""
# Construct URL
url = '/lro/customheader/put/201/creating/succeeded/200'
@ -205,7 +197,6 @@ class lr_os_custom_headerOperations(object):
def post202_retry200(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is
required message header for all requests. Long running post request,
service returns a 202 to the initial request, with 'Location' and
@ -213,19 +204,16 @@ class lr_os_custom_headerOperations(object):
success
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/customheader/post/202/retry/200'
@ -284,7 +272,6 @@ class lr_os_custom_headerOperations(object):
def post_async_retry_succeeded(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is
required message header for all requests. Long running post request,
service returns a 202 to the initial request, with an entity that
@ -292,19 +279,16 @@ class lr_os_custom_headerOperations(object):
the Azure-AsyncOperation header for operation status
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/customheader/postasync/retry/succeeded'

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -18,7 +18,7 @@ import uuid
from .. import models
class lro_retrysOperations(object):
class LRORetrysOperations(object):
def __init__(self, client, config, serializer, derserializer):
@ -31,27 +31,23 @@ class lro_retrysOperations(object):
def put201_creating_succeeded200(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running put request, service returns a 500, then a 201 to the
initial request, with an entity that contains
ProvisioningState=Creating. Polls return this value until the last
poll returns a 200 with ProvisioningState=Succeeded
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: product or (product, requests.response) or
concurrent.futures.Future
"""
# Construct URL
url = '/lro/retryerror/put/201/creating/succeeded/200'
@ -115,27 +111,23 @@ class lro_retrysOperations(object):
def put_async_relative_retry_succeeded(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running put request, service returns a 500, then a 200 to the
initial request, with an entity that contains
ProvisioningState=Creating. Poll the endpoint indicated in the
Azure-AsyncOperation header for operation status
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: product or (product, requests.response) or
concurrent.futures.Future
"""
# Construct URL
url = '/lro/retryerror/putasync/retry/succeeded'
@ -203,25 +195,21 @@ class lro_retrysOperations(object):
def delete_provisioning202_accepted200_succeeded(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running delete request, service returns a 500, then a 202 to the
initial request, with an entity that contains
ProvisioningState=Accepted. Polls return this value until the last
poll returns a 200 with ProvisioningState=Succeeded
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: product or (product, requests.response) or
concurrent.futures.Future
"""
# Construct URL
url = '/lro/retryerror/delete/provisioning/202/accepted/200/succeeded'
@ -287,23 +275,19 @@ class lro_retrysOperations(object):
def delete202_retry200(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running delete request, service returns a 500, then a 202 to the
initial request. Polls return this value until the last poll returns
a 200 with ProvisioningState=Succeeded
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/retryerror/delete/202/retry/200'
@ -355,23 +339,19 @@ class lro_retrysOperations(object):
def delete_async_relative_retry_succeeded(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running delete request, service returns a 500, then a 202 to the
initial request. Poll the endpoint indicated in the
Azure-AsyncOperation header for operation status
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/retryerror/deleteasync/retry/succeeded'
@ -424,25 +404,21 @@ class lro_retrysOperations(object):
def post202_retry200(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running post request, service returns a 500, then a 202 to the
initial request, with 'Location' and 'Retry-After' headers, Polls
return a 200 with a response body after success
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/retryerror/post/202/retry/200'
@ -501,26 +477,22 @@ class lro_retrysOperations(object):
def post_async_relative_retry_succeeded(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running post request, service returns a 500, then a 202 to the
initial request, with an entity that contains
ProvisioningState=Creating. Poll the endpoint indicated in the
Azure-AsyncOperation header for operation status
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/retryerror/postasync/retry/succeeded'

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -18,7 +18,7 @@ import uuid
from .. import models
class lrosa_dsOperations(object):
class LROSADsOperations(object):
def __init__(self, client, config, serializer, derserializer):
@ -31,24 +31,20 @@ class lrosa_dsOperations(object):
def put_non_retry400(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running put request, service returns a 400 to the initial request
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: product or (product, requests.response) or
concurrent.futures.Future
"""
# Construct URL
url = '/lro/nonretryerror/put/400'
@ -112,25 +108,21 @@ class lrosa_dsOperations(object):
def put_non_retry201_creating400(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running put request, service returns a Product with
'ProvisioningState' = 'Creating' and 201 response code
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: product or (product, requests.response) or
concurrent.futures.Future
"""
# Construct URL
url = '/lro/nonretryerror/put/201/creating/400'
@ -194,26 +186,22 @@ class lrosa_dsOperations(object):
def put_async_relative_retry400(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running put request, service returns a 200 with
ProvisioningState=Creating. Poll the endpoint indicated in the
Azure-AsyncOperation header for operation status
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: product or (product, requests.response) or
concurrent.futures.Future
"""
# Construct URL
url = '/lro/nonretryerror/putasync/retry/400'
@ -281,21 +269,17 @@ class lrosa_dsOperations(object):
def delete_non_retry400(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running delete request, service returns a 400 with an error body
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/nonretryerror/delete/400'
@ -347,22 +331,18 @@ class lrosa_dsOperations(object):
def delete202_non_retry400(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running delete request, service returns a 202 with a location
header
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/nonretryerror/delete/202/retry/400'
@ -414,23 +394,19 @@ class lrosa_dsOperations(object):
def delete_async_relative_retry400(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running delete request, service returns a 202 to the initial
request. Poll the endpoint indicated in the Azure-AsyncOperation
header for operation status
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/nonretryerror/deleteasync/retry/400'
@ -483,23 +459,19 @@ class lrosa_dsOperations(object):
def post_non_retry400(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running post request, service returns a 400 with no error body
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/nonretryerror/post/400'
@ -558,23 +530,19 @@ class lrosa_dsOperations(object):
def post202_non_retry400(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running post request, service returns a 202 with a location header
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/nonretryerror/post/202/retry/400'
@ -633,25 +601,21 @@ class lrosa_dsOperations(object):
def post_async_relative_retry400(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running post request, service returns a 202 to the initial
request Poll the endpoint indicated in the Azure-AsyncOperation
header for operation status
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/nonretryerror/postasync/retry/400'
@ -711,25 +675,21 @@ class lrosa_dsOperations(object):
def put_error201_no_provisioning_state_payload(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running put request, service returns a 201 to the initial request
with no payload
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: product or (product, requests.response) or
concurrent.futures.Future
"""
# Construct URL
url = '/lro/error/put/201/noprovisioningstatepayload'
@ -793,27 +753,23 @@ class lrosa_dsOperations(object):
def put_async_relative_retry_no_status(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running put request, service returns a 200 to the initial
request, with an entity that contains ProvisioningState=Creating.
Poll the endpoint indicated in the Azure-AsyncOperation header for
operation status
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: product or (product, requests.response) or
concurrent.futures.Future
"""
# Construct URL
url = '/lro/error/putasync/retry/nostatus'
@ -881,27 +837,23 @@ class lrosa_dsOperations(object):
def put_async_relative_retry_no_status_payload(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running put request, service returns a 200 to the initial
request, with an entity that contains ProvisioningState=Creating.
Poll the endpoint indicated in the Azure-AsyncOperation header for
operation status
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: product or (product, requests.response) or
concurrent.futures.Future
"""
# Construct URL
url = '/lro/error/putasync/retry/nostatuspayload'
@ -969,22 +921,18 @@ class lrosa_dsOperations(object):
def delete204_succeeded(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running delete request, service returns a 204 to the initial
request, indicating success.
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/error/delete/204/nolocation'
@ -1032,23 +980,19 @@ class lrosa_dsOperations(object):
def delete_async_relative_retry_no_status(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running delete request, service returns a 202 to the initial
request. Poll the endpoint indicated in the Azure-AsyncOperation
header for operation status
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/error/deleteasync/retry/nostatus'
@ -1101,24 +1045,20 @@ class lrosa_dsOperations(object):
def post202_no_location(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running post request, service returns a 202 to the initial
request, without a location header.
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/error/post/202/nolocation'
@ -1177,26 +1117,22 @@ class lrosa_dsOperations(object):
def post_async_relative_retry_no_payload(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running post request, service returns a 202 to the initial
request, with an entity that contains ProvisioningState=Creating.
Poll the endpoint indicated in the Azure-AsyncOperation header for
operation status
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/error/postasync/retry/nopayload'
@ -1256,25 +1192,21 @@ class lrosa_dsOperations(object):
def put200_invalid_json(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running put request, service returns a 200 to the initial
request, with an entity that is not a valid json
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: product or (product, requests.response) or
concurrent.futures.Future
"""
# Construct URL
url = '/lro/error/put/200/invalidjson'
@ -1336,26 +1268,22 @@ class lrosa_dsOperations(object):
def put_async_relative_retry_invalid_header(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running put request, service returns a 200 to the initial
request, with an entity that contains ProvisioningState=Creating.
The endpoint indicated in the Azure-AsyncOperation header is invalid.
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: product or (product, requests.response) or
concurrent.futures.Future
"""
# Construct URL
url = '/lro/error/putasync/retry/invalidheader'
@ -1423,27 +1351,23 @@ class lrosa_dsOperations(object):
def put_async_relative_retry_invalid_json_polling(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running put request, service returns a 200 to the initial
request, with an entity that contains ProvisioningState=Creating.
Poll the endpoint indicated in the Azure-AsyncOperation header for
operation status
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: product or (product, requests.response) or
concurrent.futures.Future
"""
# Construct URL
url = '/lro/error/putasync/retry/invalidjsonpolling'
@ -1511,23 +1435,19 @@ class lrosa_dsOperations(object):
def delete202_retry_invalid_header(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running delete request, service returns a 202 to the initial
request receing a reponse with an invalid 'Location' and
'Retry-After' headers
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/error/delete/202/retry/invalidheader'
@ -1579,23 +1499,19 @@ class lrosa_dsOperations(object):
def delete_async_relative_retry_invalid_header(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running delete request, service returns a 202 to the initial
request. The endpoint indicated in the Azure-AsyncOperation header is
invalid
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/error/deleteasync/retry/invalidheader'
@ -1648,23 +1564,19 @@ class lrosa_dsOperations(object):
def delete_async_relative_retry_invalid_json_polling(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running delete request, service returns a 202 to the initial
request. Poll the endpoint indicated in the Azure-AsyncOperation
header for operation status
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/error/deleteasync/retry/invalidjsonpolling'
@ -1717,24 +1629,20 @@ class lrosa_dsOperations(object):
def post202_retry_invalid_header(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running post request, service returns a 202 to the initial
request, with invalid 'Location' and 'Retry-After' headers.
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/error/post/202/retry/invalidheader'
@ -1793,25 +1701,21 @@ class lrosa_dsOperations(object):
def post_async_relative_retry_invalid_header(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running post request, service returns a 202 to the initial
request, with an entity that contains ProvisioningState=Creating.
The endpoint indicated in the Azure-AsyncOperation header is invalid.
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/error/postasync/retry/invalidheader'
@ -1871,26 +1775,22 @@ class lrosa_dsOperations(object):
def post_async_relative_retry_invalid_json_polling(
self, product=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Long running post request, service returns a 202 to the initial
request, with an entity that contains ProvisioningState=Creating.
Poll the endpoint indicated in the Azure-AsyncOperation header for
operation status
:param product: Product to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type product: product or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type product: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/lro/error/postasync/retry/invalidjsonpolling'

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -22,7 +22,7 @@ VERSION = "1.0.0"
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
REQUIRES = ["urllib3 >= 1.10", "six >= 1.9", "certifi", "python-dateutil"]
REQUIRES = ["msrest>=0.0.1", "msrestazure>=0.0.1"]
setup(
name=NAME,

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -12,7 +12,7 @@
from msrest.service_client import ServiceClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .operations.paging_operations import pagingOperations
from .operations.paging_operations import PagingOperations
from . import models
@ -46,5 +46,5 @@ class AutoRestPagingTestService(object):
self._deserialize = Deserializer(client_models)
self.config = config
self.paging = pagingOperations(
self.paging = PagingOperations(
self._client, self.config, self._serialize, self._deserialize)

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -12,11 +12,13 @@
from .product import Product
from .product_properties import ProductProperties
from .operation_result import OperationResult
from .paging_get_multiple_pages_options import PagingGetMultiplePagesOptions
from .product_paged import ProductPaged
__all__ = [
'Product',
'ProductProperties',
'OperationResult',
'PagingGetMultiplePagesOptions',
'ProductPaged',
]

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -0,0 +1,24 @@
# 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 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class PagingGetMultiplePagesOptions(Model):
_required = []
def __init__(self, *args, **kwargs):
self.maxresults = None
self.timeout = None
super(PagingGetMultiplePagesOptions, self).__init__(*args, **kwargs)

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,13 +4,13 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .paging_operations import pagingOperations
from .paging_operations import PagingOperations
__all__ = [
'pagingOperations',
'PagingOperations',
]

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -17,7 +17,7 @@ import uuid
from .. import models
class pagingOperations(object):
class PagingOperations(object):
def __init__(self, client, config, serializer, derserializer):
@ -31,22 +31,18 @@ class pagingOperations(object):
def get_single_pages(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
A paging operation that finishes on the first call without a nextlink
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: productpaged or (productpaged, requests.response) or
concurrent.futures.Future
"""
def internal_paging(next_link=None, raw=False):
if next_link is None:
@ -92,25 +88,32 @@ class pagingOperations(object):
@async_request
def get_multiple_pages(
self, client_request_id=None, custom_headers={}, raw=False, callback=None, **operation_config):
self, client_request_id=None, paging_get_multiple_pages_options=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
A paging operation that includes a nextLink that has 10 pages
:param client_request_id:
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type client_request_id: str or none
:param paging_get_multiple_pages_options: Additional parameters for
the operation
:type paging_get_multiple_pages_options: paginggetmultiplepagesoptions
or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type client_request_id: str or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: productpaged or (productpaged, requests.response) or
concurrent.futures.Future
"""
maxresults = None
if paging_get_multiple_pages_options is not None:
maxresults = paging_get_multiple_pages_options.maxresults
timeout = None
if paging_get_multiple_pages_options is not None:
timeout = paging_get_multiple_pages_options.timeout
def internal_paging(next_link=None, raw=False):
@ -135,6 +138,10 @@ class pagingOperations(object):
header_parameters['client-request-id'] = self._serialize.header("client_request_id", client_request_id, 'str')
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
if maxresults is not None:
header_parameters['maxresults'] = self._serialize.header("maxresults", maxresults, 'int')
if timeout is not None:
header_parameters['timeout'] = self._serialize.header("timeout", timeout, 'int')
# Construct and send request
request = self._client.get(url, query_parameters)
@ -161,23 +168,19 @@ class pagingOperations(object):
def get_multiple_pages_retry_first(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
A paging operation that fails on the first call with 500 and then
retries and then get a response including a nextLink that has 10 pages
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: productpaged or (productpaged, requests.response) or
concurrent.futures.Future
"""
def internal_paging(next_link=None, raw=False):
if next_link is None:
@ -225,24 +228,20 @@ class pagingOperations(object):
def get_multiple_pages_retry_second(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
A paging operation that includes a nextLink that has 10 pages, of
which the 2nd call fails first with 500. The client should retry and
finish all 10 pages eventually.
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: productpaged or (productpaged, requests.response) or
concurrent.futures.Future
"""
def internal_paging(next_link=None, raw=False):
if next_link is None:
@ -290,22 +289,18 @@ class pagingOperations(object):
def get_single_pages_failure(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
A paging operation that receives a 400 on the first call
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: productpaged or (productpaged, requests.response) or
concurrent.futures.Future
"""
def internal_paging(next_link=None, raw=False):
if next_link is None:
@ -353,22 +348,18 @@ class pagingOperations(object):
def get_multiple_pages_failure(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
A paging operation that receives a 400 on the second call
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: productpaged or (productpaged, requests.response) or
concurrent.futures.Future
"""
def internal_paging(next_link=None, raw=False):
if next_link is None:
@ -416,22 +407,18 @@ class pagingOperations(object):
def get_multiple_pages_failure_uri(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
A paging operation that receives an invalid nextLink
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
:rtype: productpaged or (productpaged, requests.response) or
concurrent.futures.Future
"""
def internal_paging(next_link=None, raw=False):
if next_link is None:

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -22,7 +22,7 @@ VERSION = "1.0.0"
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
REQUIRES = ["urllib3 >= 1.10", "six >= 1.9", "certifi", "python-dateutil"]
REQUIRES = ["msrest>=0.0.1", "msrestazure>=0.0.1"]
setup(
name=NAME,

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -53,23 +53,19 @@ class AutoRestResourceFlatteningTestService(object):
def put_array(
self, resource_array=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Put External Resource as an Array
:param resource_array: External Resource as an Array to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type resource_array: list or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type resource_array: list or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azure/resource-flatten/array'
@ -107,21 +103,17 @@ class AutoRestResourceFlatteningTestService(object):
def get_array(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get External Resource as an Array
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: list or (list, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azure/resource-flatten/array'
@ -159,23 +151,19 @@ class AutoRestResourceFlatteningTestService(object):
def put_dictionary(
self, resource_dictionary=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Put External Resource as a Dictionary
:param resource_dictionary: External Resource as a Dictionary to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type resource_dictionary: dict or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type resource_dictionary: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azure/resource-flatten/dictionary'
@ -213,22 +201,17 @@ class AutoRestResourceFlatteningTestService(object):
def get_dictionary(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get External Resource as a Dictionary
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
concurrent.futures.Future
:rtype: dict or (dict, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azure/resource-flatten/dictionary'
@ -266,24 +249,20 @@ class AutoRestResourceFlatteningTestService(object):
def put_resource_collection(
self, resource_complex_object=None, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Put External Resource as a ResourceCollection
:param resource_complex_object: External Resource as a
ResourceCollection to put
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:type resource_complex_object: resourcecollection or none
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type resource_complex_object: object or none
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: None or (None, requests.response) or concurrent.futures.Future
"""
# Construct URL
url = '/azure/resource-flatten/resourcecollection'
@ -321,22 +300,18 @@ class AutoRestResourceFlatteningTestService(object):
def get_resource_collection(
self, custom_headers={}, raw=False, callback=None, **operation_config):
"""
Get External Resource as a ResourceCollection
:param custom_headers: headers that will be added to the request
:param raw: returns the direct response alongside the deserialized
response
:param dict custom_headers: headers that will be added to the request
:param boolean raw: returns the direct response alongside the
deserialized response
:param callback: if provided, the call will run asynchronously and
call the callback when complete. When specified the function returns
a concurrent.futures.Future
:type custom_headers: dict
:type raw: boolean
:type callback: Callable[[concurrent.futures.Future], None] or None
:rtype: object or (object, requests.response) or
concurrent.futures.Future
:rtype: resourcecollection or (resourcecollection, requests.response)
or concurrent.futures.Future
"""
# Construct URL
url = '/azure/resource-flatten/resourcecollection'

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -22,7 +22,7 @@ VERSION = "1.0.0"
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
REQUIRES = ["urllib3 >= 1.10", "six >= 1.9", "certifi", "python-dateutil"]
REQUIRES = ["msrest>=0.0.1", "msrestazure>=0.0.1"]
setup(
name=NAME,

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -22,7 +22,7 @@ VERSION = "2015-05-01-preview"
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
REQUIRES = ["urllib3 >= 1.10", "six >= 1.9", "certifi", "python-dateutil"]
REQUIRES = ["msrest>=0.0.1", "msrestazure>=0.0.1"]
setup(
name=NAME,

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
@ -12,8 +12,8 @@
from msrest.service_client import ServiceClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .operations.storage_accounts_operations import storage_accountsOperations
from .operations.usage_operations import usageOperations
from .operations.storage_accounts_operations import StorageAccountsOperations
from .operations.usage_operations import UsageOperations
from . import models
@ -51,7 +51,7 @@ class StorageManagementClient(object):
self._deserialize = Deserializer(client_models)
self.config = config
self.storage_accounts = storage_accountsOperations(
self.storage_accounts = StorageAccountsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.usage = usageOperations(
self.usage = UsageOperations(
self._client, self.config, self._serialize, self._deserialize)

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Просмотреть файл

@ -4,7 +4,7 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 0.13.0.0
# Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше