Skip to content

Commit

Permalink
Generated from d62eb16808d56932d9ee52faec9af253d36b1f09 (#8933)
Browse files Browse the repository at this point in the history
Change the order of parameters in swagger to comply the convention in
SDK
  • Loading branch information
AutorestCI authored Dec 3, 2019
1 parent 8b3566b commit 27dfa90
Show file tree
Hide file tree
Showing 8 changed files with 177 additions and 138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
TestKeyType,
AppResourceProvisioningState,
UserSourceType,
RuntimeVersion,
DeploymentResourceProvisioningState,
RuntimeVersion,
DeploymentResourceStatus,
)

Expand Down Expand Up @@ -145,7 +145,7 @@
'TestKeyType',
'AppResourceProvisioningState',
'UserSourceType',
'RuntimeVersion',
'DeploymentResourceProvisioningState',
'RuntimeVersion',
'DeploymentResourceStatus',
]
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class AppResourceProvisioningState(str, Enum):

succeeded = "Succeeded"
failed = "Failed"
creating = "Creating"
updating = "Updating"


class UserSourceType(str, Enum):
Expand All @@ -60,24 +62,26 @@ class UserSourceType(str, Enum):
source = "Source"


class RuntimeVersion(str, Enum):

java_8 = "Java_8"
java_11 = "Java_11"


class DeploymentResourceProvisioningState(str, Enum):

creating = "Creating"
processing = "Processing"
updating = "Updating"
succeeded = "Succeeded"
failed = "Failed"


class RuntimeVersion(str, Enum):

java_8 = "Java_8"
java_11 = "Java_11"


class DeploymentResourceStatus(str, Enum):

unknown = "Unknown"
stopped = "Stopped"
running = "Running"
failed = "Failed"
processing = "Processing"
allocating = "Allocating"
upgrading = "Upgrading"
compiling = "Compiling"
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class AppResourceProperties(Model):
:ivar url: URL of the App
:vartype url: str
:ivar provisioning_state: Provisioning state of the App. Possible values
include: 'Succeeded', 'Failed'
include: 'Succeeded', 'Failed', 'Creating', 'Updating'
:vartype provisioning_state: str or
~azure.mgmt.appplatform.models.AppResourceProvisioningState
:param active_deployment_name: Name of the active deployment of the App
Expand Down Expand Up @@ -547,15 +547,16 @@ class DeploymentResourceProperties(Model):
:type source: ~azure.mgmt.appplatform.models.UserSourceInfo
:ivar app_name: App name of the deployment
:vartype app_name: str
:param deployment_settings: Deployment settings of the Deployment
:type deployment_settings:
~azure.mgmt.appplatform.models.DeploymentSettings
:ivar provisioning_state: Provisioning state of the Deployment. Possible
values include: 'Creating', 'Processing', 'Succeeded', 'Failed'
values include: 'Creating', 'Updating', 'Succeeded', 'Failed'
:vartype provisioning_state: str or
~azure.mgmt.appplatform.models.DeploymentResourceProvisioningState
:param deployment_settings: Deployment settings of the Deployment
:type deployment_settings:
~azure.mgmt.appplatform.models.DeploymentSettings
:ivar status: Status of the Deployment. Possible values include:
'Unknown', 'Stopped', 'Running', 'Failed', 'Processing'
'Unknown', 'Stopped', 'Running', 'Failed', 'Allocating', 'Upgrading',
'Compiling'
:vartype status: str or
~azure.mgmt.appplatform.models.DeploymentResourceStatus
:ivar active: Indicates whether the Deployment is active
Expand All @@ -579,8 +580,8 @@ class DeploymentResourceProperties(Model):
_attribute_map = {
'source': {'key': 'source', 'type': 'UserSourceInfo'},
'app_name': {'key': 'appName', 'type': 'str'},
'deployment_settings': {'key': 'deploymentSettings', 'type': 'DeploymentSettings'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'deployment_settings': {'key': 'deploymentSettings', 'type': 'DeploymentSettings'},
'status': {'key': 'status', 'type': 'str'},
'active': {'key': 'active', 'type': 'bool'},
'created_time': {'key': 'createdTime', 'type': 'iso-8601'},
Expand All @@ -591,8 +592,8 @@ def __init__(self, **kwargs):
super(DeploymentResourceProperties, self).__init__(**kwargs)
self.source = kwargs.get('source', None)
self.app_name = None
self.deployment_settings = kwargs.get('deployment_settings', None)
self.provisioning_state = None
self.deployment_settings = kwargs.get('deployment_settings', None)
self.status = None
self.active = None
self.created_time = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class AppResourceProperties(Model):
:ivar url: URL of the App
:vartype url: str
:ivar provisioning_state: Provisioning state of the App. Possible values
include: 'Succeeded', 'Failed'
include: 'Succeeded', 'Failed', 'Creating', 'Updating'
:vartype provisioning_state: str or
~azure.mgmt.appplatform.models.AppResourceProvisioningState
:param active_deployment_name: Name of the active deployment of the App
Expand Down Expand Up @@ -547,15 +547,16 @@ class DeploymentResourceProperties(Model):
:type source: ~azure.mgmt.appplatform.models.UserSourceInfo
:ivar app_name: App name of the deployment
:vartype app_name: str
:param deployment_settings: Deployment settings of the Deployment
:type deployment_settings:
~azure.mgmt.appplatform.models.DeploymentSettings
:ivar provisioning_state: Provisioning state of the Deployment. Possible
values include: 'Creating', 'Processing', 'Succeeded', 'Failed'
values include: 'Creating', 'Updating', 'Succeeded', 'Failed'
:vartype provisioning_state: str or
~azure.mgmt.appplatform.models.DeploymentResourceProvisioningState
:param deployment_settings: Deployment settings of the Deployment
:type deployment_settings:
~azure.mgmt.appplatform.models.DeploymentSettings
:ivar status: Status of the Deployment. Possible values include:
'Unknown', 'Stopped', 'Running', 'Failed', 'Processing'
'Unknown', 'Stopped', 'Running', 'Failed', 'Allocating', 'Upgrading',
'Compiling'
:vartype status: str or
~azure.mgmt.appplatform.models.DeploymentResourceStatus
:ivar active: Indicates whether the Deployment is active
Expand All @@ -579,8 +580,8 @@ class DeploymentResourceProperties(Model):
_attribute_map = {
'source': {'key': 'source', 'type': 'UserSourceInfo'},
'app_name': {'key': 'appName', 'type': 'str'},
'deployment_settings': {'key': 'deploymentSettings', 'type': 'DeploymentSettings'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'deployment_settings': {'key': 'deploymentSettings', 'type': 'DeploymentSettings'},
'status': {'key': 'status', 'type': 'str'},
'active': {'key': 'active', 'type': 'bool'},
'created_time': {'key': 'createdTime', 'type': 'iso-8601'},
Expand All @@ -591,8 +592,8 @@ def __init__(self, *, source=None, deployment_settings=None, **kwargs) -> None:
super(DeploymentResourceProperties, self).__init__(**kwargs)
self.source = source
self.app_name = None
self.deployment_settings = deployment_settings
self.provisioning_state = None
self.deployment_settings = deployment_settings
self.status = None
self.active = None
self.created_time = None
Expand Down
Loading

0 comments on commit 27dfa90

Please sign in to comment.