Msrest For Python Versions Save

The runtime library "msrest" for AutoRest generated Python clients.

v0.4.26

6 years ago

2018-01-30 Version 0.4.26

Features

  • Add TopicCredentials for EventGrid client

Bugfixes

  • Fix minimal dependency of isodate
  • Fix serialisation from dict if datetime provided

v0.4.25

6 years ago

2018-01-08 Version 0.4.25

Features

  • Add LROPoller class. This is a customizable LRO engine. This is the poller engine of Autorest.Python 3.0, and is not used by code generated by previous Autorest version.

v0.4.24

6 years ago

2018-01-03 Version 0.4.24

Bugfixes

  • Date parsing is not compliant with Autorest / Swagger 2.0 specification (less lenient)

Internal optimisation

  • Call that does not return a streamable object are now executed in requests stream mode False (was True whatever the type of the call). This should reduce the number of leaked opened session and allow urllib3 to manage connection pooling more efficiently. Only clients generated with Autorest.Python >= 2.1.31 (not impacted otherwise, fully backward compatible)

v0.4.23

6 years ago

2017-12-21 Version 0.4.23

Bugfixes

  • Accept to deserialize enum of different type if content string match #75
  • Stop failing on deserialization if enum string is unkwon. Return the string instead.

Features

  • Model now accept kwargs in constructor for future kwargs models

v0.4.22

6 years ago

2017-12-15 Version 0.4.22

Bugfixes

  • Do not validate additional_properties #73
  • Improve validation error if expected type is dict, but actual type is not #73

v0.4.21

6 years ago

2017-12-14 Version 0.4.21

Bugfixes

  • Fix additional_properties if Swagger was flatten #72

v0.4.20

6 years ago

2017-12-13 Version 0.4.20

Features

  • Add support for additional_properties

    • By default, all additional_properties are kept.
    • Additional properties are sent to the server only if it was specified in the Swagger, or if "enable_additional_properties_sending" is called on the model we want it. This is a class method that enables it for all instance of this model.

v0.4.19

6 years ago

2017-11-20 Version 0.4.19

Features

  • The interpretation of Swagger 2.0 "discriminator" is now lenient. This means for these two scenarios:

    • Discriminator value is missing from the received payload
    • Discriminator value is not defined in the Swagger

    Instead of failing with an exception, this now returns the base type for this "discriminator".

    Note that this is not a contradiction of the Swagger 2.0 spec, that specifies "validation SHOULD fail [...] there may exist valid reasons in particular circumstances to ignore a particular item, but the full implications must be understood and carefully weighed before choosing a different course."

    This cannot be configured for now and is the new default behvaior, but can be in the future if needed.

Bugfixes

  • Optional formdata parameters were raising an exception (#65)
  • "application/x-www-form-urlencoded" form was sent using "multipart/form-data". This causes problems if the server does not support "multipart/form-data" (#66)

v0.4.18

6 years ago

2017-10-26 Version 0.4.18

Features

  • Add ApiKeyCredentials class. This can be used to support OpenAPI ApiKey feature.
  • Add CognitiveServicesAuthentication class. Pre-declared ApiKeyCredentials class for Cognitive Services.

v0.4.17

6 years ago

2017-10-12 Version 0.4.17

Features

This make Authentication classes more consistent:

  • OAuthTokenAuthentication is now a subclass of BasicTokenAuthentication (was Authentication)
  • BasicTokenAuthentication has now a "set_token" methods that does nothing.

This allows test like "isintance(o, BasicTokenAuthentication)" to be guaranted that the following attributes exists:

  • token
  • set_token()
  • signed_session()

This means for users of "msrestazure", that they are guaranted that all AD classes somehow inherits from "BasicTokenAuthentication"