Skip to content

Commit

Permalink
Generated from ab35ac5d163cb8818771763a66fa1f720954f760 (#2430)
Browse files Browse the repository at this point in the history
Changing enum to free string for Provisioning State
  • Loading branch information
AutorestCI authored Apr 20, 2018
1 parent 4a90c49 commit e87a05d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
9 changes: 5 additions & 4 deletions azure-mgmt-automation/azure/mgmt/automation/models/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,16 @@ class Job(ProxyResource):
:type last_status_modified_time: datetime
:param parameters: Gets or sets the parameters of the job.
:type parameters: dict[str, str]
:param provisioning_state: The provisioning state of a resource.
:type provisioning_state:
:ivar provisioning_state: The provisioning state of a resource.
:vartype provisioning_state:
~azure.mgmt.automation.models.JobProvisioningStateProperty
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'provisioning_state': {'readonly': True},
}

_attribute_map = {
Expand All @@ -86,7 +87,7 @@ class Job(ProxyResource):
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'JobProvisioningStateProperty'},
}

def __init__(self, runbook=None, started_by=None, run_on=None, job_id=None, creation_time=None, status=None, status_details=None, start_time=None, end_time=None, exception=None, last_modified_time=None, last_status_modified_time=None, parameters=None, provisioning_state=None):
def __init__(self, runbook=None, started_by=None, run_on=None, job_id=None, creation_time=None, status=None, status_details=None, start_time=None, end_time=None, exception=None, last_modified_time=None, last_status_modified_time=None, parameters=None):
super(Job, self).__init__()
self.runbook = runbook
self.started_by = started_by
Expand All @@ -101,4 +102,4 @@ def __init__(self, runbook=None, started_by=None, run_on=None, job_id=None, crea
self.last_modified_time = last_modified_time
self.last_status_modified_time = last_status_modified_time
self.parameters = parameters
self.provisioning_state = provisioning_state
self.provisioning_state = None
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ class JobCollectionItem(ProxyResource):
:vartype end_time: datetime
:ivar last_modified_time: The last modified time of the job.
:vartype last_modified_time: datetime
:param provisioning_state: The current provisioning state of the job.
:type provisioning_state:
~azure.mgmt.automation.models.JobProvisioningStateProperty
:ivar provisioning_state: The provisioning state of a resource.
:vartype provisioning_state: str
"""

_validation = {
Expand All @@ -57,6 +56,7 @@ class JobCollectionItem(ProxyResource):
'start_time': {'readonly': True},
'end_time': {'readonly': True},
'last_modified_time': {'readonly': True},
'provisioning_state': {'readonly': True},
}

_attribute_map = {
Expand All @@ -70,10 +70,10 @@ class JobCollectionItem(ProxyResource):
'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'},
'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'},
'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'JobProvisioningStateProperty'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
}

def __init__(self, provisioning_state=None):
def __init__(self):
super(JobCollectionItem, self).__init__()
self.runbook = None
self.job_id = None
Expand All @@ -82,4 +82,4 @@ def __init__(self, provisioning_state=None):
self.start_time = None
self.end_time = None
self.last_modified_time = None
self.provisioning_state = provisioning_state
self.provisioning_state = None

0 comments on commit e87a05d

Please sign in to comment.