Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

### 2020-07-XX - 5.1.0-preview.4
Modelerfour version: 4.15.378

**New Features**

- Enum values are uppercase (with an alias from the lowercase version)

### 2020-06-24 - 5.1.0-preview.3
Modelerfour version: 4.13.351

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pass-thru:
- subset-reducer
# version: 3.0.6258
use-extension:
"@autorest/modelerfour": "4.13.351"
"@autorest/modelerfour": "4.15.378"

modelerfour:
group-parameters: true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@autorest/python",
"version": "5.1.0-preview.3",
"version": "5.1.0-preview.4",
"description": "The Python extension for generators in AutoRest.",
"scripts": {
"prepare": "node run-python3.js prepare.py",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
from ._auto_rest_complex_test_service_enums import (
CMYKColors,
GoblinSharkColor,
MyKind,
)

__all__ = [
Expand Down Expand Up @@ -113,4 +114,5 @@
'StringWrapper',
'CMYKColors',
'GoblinSharkColor',
'MyKind',
]
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ class GoblinSharkColor(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
BROWN = "brown"
UPPER_RED = "RED" #: Uppercase RED.
LOWER_RED = "red" #: Lowercase RED.

class MyKind(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):

KIND1 = "Kind1"
Original file line number Diff line number Diff line change
Expand Up @@ -701,8 +701,8 @@ class MyBaseType(msrest.serialization.Model):

All required parameters must be populated in order to send to Azure.

:param kind: Required. Constant filled by server.
:type kind: str
:param kind: Required. Constant filled by server. Possible values include: "Kind1".
:type kind: str or ~bodycomplex.models.MyKind
:param prop_b1:
:type prop_b1: str
:param prop_bh1:
Expand Down Expand Up @@ -738,8 +738,8 @@ class MyDerivedType(MyBaseType):

All required parameters must be populated in order to send to Azure.

:param kind: Required. Constant filled by server.
:type kind: str
:param kind: Required. Constant filled by server. Possible values include: "Kind1".
:type kind: str or ~bodycomplex.models.MyKind
:param prop_b1:
:type prop_b1: str
:param prop_bh1:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,8 @@ class MyBaseType(msrest.serialization.Model):

All required parameters must be populated in order to send to Azure.

:param kind: Required. Constant filled by server.
:type kind: str
:param kind: Required. Constant filled by server. Possible values include: "Kind1".
:type kind: str or ~bodycomplex.models.MyKind
:param prop_b1:
:type prop_b1: str
:param prop_bh1:
Expand Down Expand Up @@ -832,8 +832,8 @@ class MyDerivedType(MyBaseType):

All required parameters must be populated in order to send to Azure.

:param kind: Required. Constant filled by server.
:type kind: str
:param kind: Required. Constant filled by server. Possible values include: "Kind1".
:type kind: str or ~bodycomplex.models.MyKind
:param prop_b1:
:type prop_b1: str
:param prop_bh1:
Expand Down