Skip to content

Commit 1052ccc

Browse files
AutorestCIlmazuel
authored andcommitted
Generated from da610400a1306f1ab50c7c796746b9938d5f40e7 (#1947)
correct API version, update provisioning state enum
1 parent d99b551 commit 1052ccc

26 files changed

+1173
-45
lines changed

azure-mgmt-automation/azure/mgmt/automation/automation_client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
from .operations.software_update_configurations_operations import SoftwareUpdateConfigurationsOperations
4646
from .operations.software_update_configuration_runs_operations import SoftwareUpdateConfigurationRunsOperations
4747
from .operations.software_update_configuration_machine_runs_operations import SoftwareUpdateConfigurationMachineRunsOperations
48+
from .operations.source_control_operations import SourceControlOperations
49+
from .operations.source_control_sync_job_operations import SourceControlSyncJobOperations
4850
from . import models
4951

5052

@@ -165,6 +167,10 @@ class AutomationClient(object):
165167
:vartype software_update_configuration_runs: azure.mgmt.automation.operations.SoftwareUpdateConfigurationRunsOperations
166168
:ivar software_update_configuration_machine_runs: SoftwareUpdateConfigurationMachineRuns operations
167169
:vartype software_update_configuration_machine_runs: azure.mgmt.automation.operations.SoftwareUpdateConfigurationMachineRunsOperations
170+
:ivar source_control: SourceControl operations
171+
:vartype source_control: azure.mgmt.automation.operations.SourceControlOperations
172+
:ivar source_control_sync_job: SourceControlSyncJob operations
173+
:vartype source_control_sync_job: azure.mgmt.automation.operations.SourceControlSyncJobOperations
168174
169175
:param credentials: Credentials needed for the client to connect to Azure.
170176
:type credentials: :mod:`A msrestazure Credentials
@@ -256,3 +262,7 @@ def __init__(
256262
self._client, self.config, self._serialize, self._deserialize)
257263
self.software_update_configuration_machine_runs = SoftwareUpdateConfigurationMachineRunsOperations(
258264
self._client, self.config, self._serialize, self._deserialize)
265+
self.source_control = SourceControlOperations(
266+
self._client, self.config, self._serialize, self._deserialize)
267+
self.source_control_sync_job = SourceControlSyncJobOperations(
268+
self._client, self.config, self._serialize, self._deserialize)

azure-mgmt-automation/azure/mgmt/automation/models/__init__.py

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
from .content_source import ContentSource
2727
from .dsc_configuration_parameter import DscConfigurationParameter
2828
from .dsc_configuration import DscConfiguration
29+
from .resource import Resource
2930
from .sku import Sku
3031
from .automation_account import AutomationAccount
31-
from .resource import Resource
3232
from .operation_display import OperationDisplay
3333
from .operation import Operation
3434
from .automation_account_create_or_update_parameters import AutomationAccountCreateOrUpdateParameters
@@ -112,6 +112,12 @@
112112
from .job_navigation import JobNavigation
113113
from .software_update_configuration_machine_run import SoftwareUpdateConfigurationMachineRun
114114
from .software_update_configuration_machine_run_list_result import SoftwareUpdateConfigurationMachineRunListResult
115+
from .source_control import SourceControl
116+
from .source_control_update_parameters import SourceControlUpdateParameters
117+
from .source_control_create_or_update_parameters import SourceControlCreateOrUpdateParameters
118+
from .source_control_sync_job import SourceControlSyncJob
119+
from .source_control_sync_job_by_id_errors import SourceControlSyncJobByIdErrors
120+
from .source_control_sync_job_by_id import SourceControlSyncJobById
115121
from .automation_account_paged import AutomationAccountPaged
116122
from .operation_paged import OperationPaged
117123
from .statistics_paged import StatisticsPaged
@@ -136,6 +142,8 @@
136142
from .schedule_paged import SchedulePaged
137143
from .variable_paged import VariablePaged
138144
from .webhook_paged import WebhookPaged
145+
from .source_control_paged import SourceControlPaged
146+
from .source_control_sync_job_paged import SourceControlSyncJobPaged
139147
from .automation_client_enums import (
140148
RunbookTypeEnum,
141149
RunbookState,
@@ -155,6 +163,8 @@
155163
LinuxUpdateClasses,
156164
WindowsUpdateClasses,
157165
OperatingSystemType,
166+
SourceType,
167+
ProvisioningState,
158168
)
159169

160170
__all__ = [
@@ -175,9 +185,9 @@
175185
'ContentSource',
176186
'DscConfigurationParameter',
177187
'DscConfiguration',
188+
'Resource',
178189
'Sku',
179190
'AutomationAccount',
180-
'Resource',
181191
'OperationDisplay',
182192
'Operation',
183193
'AutomationAccountCreateOrUpdateParameters',
@@ -261,6 +271,12 @@
261271
'JobNavigation',
262272
'SoftwareUpdateConfigurationMachineRun',
263273
'SoftwareUpdateConfigurationMachineRunListResult',
274+
'SourceControl',
275+
'SourceControlUpdateParameters',
276+
'SourceControlCreateOrUpdateParameters',
277+
'SourceControlSyncJob',
278+
'SourceControlSyncJobByIdErrors',
279+
'SourceControlSyncJobById',
264280
'AutomationAccountPaged',
265281
'OperationPaged',
266282
'StatisticsPaged',
@@ -285,6 +301,8 @@
285301
'SchedulePaged',
286302
'VariablePaged',
287303
'WebhookPaged',
304+
'SourceControlPaged',
305+
'SourceControlSyncJobPaged',
288306
'RunbookTypeEnum',
289307
'RunbookState',
290308
'RunbookProvisioningState',
@@ -303,4 +321,6 @@
303321
'LinuxUpdateClasses',
304322
'WindowsUpdateClasses',
305323
'OperatingSystemType',
324+
'SourceType',
325+
'ProvisioningState',
306326
]

azure-mgmt-automation/azure/mgmt/automation/models/automation_client_enums.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,3 +215,17 @@ class OperatingSystemType(Enum):
215215

216216
windows = "Windows"
217217
linux = "Linux"
218+
219+
220+
class SourceType(Enum):
221+
222+
vso_git = "VsoGit"
223+
vso_tfvc = "VsoTfvc"
224+
git_hub = "GitHub"
225+
226+
227+
class ProvisioningState(Enum):
228+
229+
completed = "Completed"
230+
failed = "Failed"
231+
running = "Running"

azure-mgmt-automation/azure/mgmt/automation/models/certificate.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class Certificate(Model):
2222
:vartype id: str
2323
:ivar name: Gets the name of the certificate.
2424
:vartype name: str
25+
:ivar type: Resource type
26+
:vartype type: str
2527
:ivar thumbprint: Gets the thumbprint of the certificate.
2628
:vartype thumbprint: str
2729
:ivar expiry_time: Gets the expiry time of the certificate.
@@ -39,6 +41,7 @@ class Certificate(Model):
3941
_validation = {
4042
'id': {'readonly': True},
4143
'name': {'readonly': True},
44+
'type': {'readonly': True},
4245
'thumbprint': {'readonly': True},
4346
'expiry_time': {'readonly': True},
4447
'is_exportable': {'readonly': True},
@@ -49,6 +52,7 @@ class Certificate(Model):
4952
_attribute_map = {
5053
'id': {'key': 'id', 'type': 'str'},
5154
'name': {'key': 'name', 'type': 'str'},
55+
'type': {'key': 'type', 'type': 'str'},
5256
'thumbprint': {'key': 'properties.thumbprint', 'type': 'str'},
5357
'expiry_time': {'key': 'properties.expiryTime', 'type': 'iso-8601'},
5458
'is_exportable': {'key': 'properties.isExportable', 'type': 'bool'},
@@ -61,6 +65,7 @@ def __init__(self, description=None):
6165
super(Certificate, self).__init__()
6266
self.id = None
6367
self.name = None
68+
self.type = None
6469
self.thumbprint = None
6570
self.expiry_time = None
6671
self.is_exportable = None

azure-mgmt-automation/azure/mgmt/automation/models/certificate_update_parameters.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,12 @@ class CertificateUpdateParameters(Model):
2121
:type description: str
2222
"""
2323

24-
_validation = {
25-
'name': {'required': True},
26-
}
27-
2824
_attribute_map = {
2925
'name': {'key': 'name', 'type': 'str'},
3026
'description': {'key': 'properties.description', 'type': 'str'},
3127
}
3228

33-
def __init__(self, name, description=None):
29+
def __init__(self, name=None, description=None):
3430
super(CertificateUpdateParameters, self).__init__()
3531
self.name = name
3632
self.description = description

azure-mgmt-automation/azure/mgmt/automation/models/connection.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class Connection(Model):
2222
:vartype id: str
2323
:ivar name: Gets the name of the connection.
2424
:vartype name: str
25+
:ivar type: Resource type
26+
:vartype type: str
2527
:param connection_type: Gets or sets the connectionType of the connection.
2628
:type connection_type:
2729
~azure.mgmt.automation.models.ConnectionTypeAssociationProperty
@@ -39,6 +41,7 @@ class Connection(Model):
3941
_validation = {
4042
'id': {'readonly': True},
4143
'name': {'readonly': True},
44+
'type': {'readonly': True},
4245
'field_definition_values': {'readonly': True},
4346
'creation_time': {'readonly': True},
4447
'last_modified_time': {'readonly': True},
@@ -47,6 +50,7 @@ class Connection(Model):
4750
_attribute_map = {
4851
'id': {'key': 'id', 'type': 'str'},
4952
'name': {'key': 'name', 'type': 'str'},
53+
'type': {'key': 'type', 'type': 'str'},
5054
'connection_type': {'key': 'properties.connectionType', 'type': 'ConnectionTypeAssociationProperty'},
5155
'field_definition_values': {'key': 'properties.fieldDefinitionValues', 'type': '{str}'},
5256
'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'},
@@ -58,6 +62,7 @@ def __init__(self, connection_type=None, description=None):
5862
super(Connection, self).__init__()
5963
self.id = None
6064
self.name = None
65+
self.type = None
6166
self.connection_type = connection_type
6267
self.field_definition_values = None
6368
self.creation_time = None

azure-mgmt-automation/azure/mgmt/automation/models/connection_type.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class ConnectionType(Model):
2222
:vartype id: str
2323
:ivar name: Gets the name of the connection type.
2424
:vartype name: str
25+
:ivar type: Resource type
26+
:vartype type: str
2527
:param is_global: Gets or sets a Boolean value to indicate if the
2628
connection type is global.
2729
:type is_global: bool
@@ -40,13 +42,15 @@ class ConnectionType(Model):
4042
_validation = {
4143
'id': {'readonly': True},
4244
'name': {'readonly': True},
45+
'type': {'readonly': True},
4346
'field_definitions': {'readonly': True},
4447
'creation_time': {'readonly': True},
4548
}
4649

4750
_attribute_map = {
4851
'id': {'key': 'id', 'type': 'str'},
4952
'name': {'key': 'name', 'type': 'str'},
53+
'type': {'key': 'type', 'type': 'str'},
5054
'is_global': {'key': 'properties.isGlobal', 'type': 'bool'},
5155
'field_definitions': {'key': 'properties.fieldDefinitions', 'type': '{FieldDefinition}'},
5256
'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'},
@@ -58,6 +62,7 @@ def __init__(self, is_global=None, last_modified_time=None, description=None):
5862
super(ConnectionType, self).__init__()
5963
self.id = None
6064
self.name = None
65+
self.type = None
6166
self.is_global = is_global
6267
self.field_definitions = None
6368
self.creation_time = None

azure-mgmt-automation/azure/mgmt/automation/models/credential.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ class Credential(Model):
2020
2121
:ivar id: Gets the id of the resource.
2222
:vartype id: str
23-
:param name: Gets the name of the credential.
24-
:type name: str
23+
:ivar name: Gets the name of the credential.
24+
:vartype name: str
25+
:ivar type: Resource type
26+
:vartype type: str
2527
:ivar user_name: Gets the user name of the credential.
2628
:vartype user_name: str
2729
:ivar creation_time: Gets the creation time.
@@ -34,6 +36,8 @@ class Credential(Model):
3436

3537
_validation = {
3638
'id': {'readonly': True},
39+
'name': {'readonly': True},
40+
'type': {'readonly': True},
3741
'user_name': {'readonly': True},
3842
'creation_time': {'readonly': True},
3943
'last_modified_time': {'readonly': True},
@@ -42,16 +46,18 @@ class Credential(Model):
4246
_attribute_map = {
4347
'id': {'key': 'id', 'type': 'str'},
4448
'name': {'key': 'name', 'type': 'str'},
49+
'type': {'key': 'type', 'type': 'str'},
4550
'user_name': {'key': 'properties.userName', 'type': 'str'},
4651
'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'},
4752
'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'},
4853
'description': {'key': 'properties.description', 'type': 'str'},
4954
}
5055

51-
def __init__(self, name=None, description=None):
56+
def __init__(self, description=None):
5257
super(Credential, self).__init__()
5358
self.id = None
54-
self.name = name
59+
self.name = None
60+
self.type = None
5561
self.user_name = None
5662
self.creation_time = None
5763
self.last_modified_time = None

azure-mgmt-automation/azure/mgmt/automation/models/credential_update_parameters.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,14 @@ class CredentialUpdateParameters(Model):
2525
:type description: str
2626
"""
2727

28-
_validation = {
29-
'name': {'required': True},
30-
}
31-
3228
_attribute_map = {
3329
'name': {'key': 'name', 'type': 'str'},
3430
'user_name': {'key': 'properties.userName', 'type': 'str'},
3531
'password': {'key': 'properties.password', 'type': 'str'},
3632
'description': {'key': 'properties.description', 'type': 'str'},
3733
}
3834

39-
def __init__(self, name, user_name=None, password=None, description=None):
35+
def __init__(self, name=None, user_name=None, password=None, description=None):
4036
super(CredentialUpdateParameters, self).__init__()
4137
self.name = name
4238
self.user_name = user_name

azure-mgmt-automation/azure/mgmt/automation/models/job_schedule.py

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,15 @@
1515
class JobSchedule(Model):
1616
"""Definition of the job schedule.
1717
18-
:param id: Gets or sets the id of the resource.
19-
:type id: str
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
:ivar id: Gets the id of the resource.
22+
:vartype id: str
23+
:ivar name: Gets the name of the variable.
24+
:vartype name: str
25+
:ivar type: Resource type
26+
:vartype type: str
2027
:param job_schedule_id: Gets or sets the id of job schedule.
2128
:type job_schedule_id: str
2229
:param schedule: Gets or sets the schedule.
@@ -30,18 +37,28 @@ class JobSchedule(Model):
3037
:type parameters: dict[str, str]
3138
"""
3239

40+
_validation = {
41+
'id': {'readonly': True},
42+
'name': {'readonly': True},
43+
'type': {'readonly': True},
44+
}
45+
3346
_attribute_map = {
3447
'id': {'key': 'id', 'type': 'str'},
48+
'name': {'key': 'name', 'type': 'str'},
49+
'type': {'key': 'type', 'type': 'str'},
3550
'job_schedule_id': {'key': 'properties.jobScheduleId', 'type': 'str'},
3651
'schedule': {'key': 'properties.schedule', 'type': 'ScheduleAssociationProperty'},
3752
'runbook': {'key': 'properties.runbook', 'type': 'RunbookAssociationProperty'},
3853
'run_on': {'key': 'properties.runOn', 'type': 'str'},
3954
'parameters': {'key': 'properties.parameters', 'type': '{str}'},
4055
}
4156

42-
def __init__(self, id=None, job_schedule_id=None, schedule=None, runbook=None, run_on=None, parameters=None):
57+
def __init__(self, job_schedule_id=None, schedule=None, runbook=None, run_on=None, parameters=None):
4358
super(JobSchedule, self).__init__()
44-
self.id = id
59+
self.id = None
60+
self.name = None
61+
self.type = None
4562
self.job_schedule_id = job_schedule_id
4663
self.schedule = schedule
4764
self.runbook = runbook

0 commit comments

Comments
 (0)