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
10 changes: 10 additions & 0 deletions azure-mgmt-automation/azure/mgmt/automation/automation_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
from .operations.software_update_configurations_operations import SoftwareUpdateConfigurationsOperations
from .operations.software_update_configuration_runs_operations import SoftwareUpdateConfigurationRunsOperations
from .operations.software_update_configuration_machine_runs_operations import SoftwareUpdateConfigurationMachineRunsOperations
from .operations.source_control_operations import SourceControlOperations
from .operations.source_control_sync_job_operations import SourceControlSyncJobOperations
from . import models


Expand Down Expand Up @@ -165,6 +167,10 @@ class AutomationClient(object):
:vartype software_update_configuration_runs: azure.mgmt.automation.operations.SoftwareUpdateConfigurationRunsOperations
:ivar software_update_configuration_machine_runs: SoftwareUpdateConfigurationMachineRuns operations
:vartype software_update_configuration_machine_runs: azure.mgmt.automation.operations.SoftwareUpdateConfigurationMachineRunsOperations
:ivar source_control: SourceControl operations
:vartype source_control: azure.mgmt.automation.operations.SourceControlOperations
:ivar source_control_sync_job: SourceControlSyncJob operations
:vartype source_control_sync_job: azure.mgmt.automation.operations.SourceControlSyncJobOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand Down Expand Up @@ -256,3 +262,7 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.software_update_configuration_machine_runs = SoftwareUpdateConfigurationMachineRunsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.source_control = SourceControlOperations(
self._client, self.config, self._serialize, self._deserialize)
self.source_control_sync_job = SourceControlSyncJobOperations(
self._client, self.config, self._serialize, self._deserialize)
24 changes: 22 additions & 2 deletions azure-mgmt-automation/azure/mgmt/automation/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
from .content_source import ContentSource
from .dsc_configuration_parameter import DscConfigurationParameter
from .dsc_configuration import DscConfiguration
from .resource import Resource
from .sku import Sku
from .automation_account import AutomationAccount
from .resource import Resource
from .operation_display import OperationDisplay
from .operation import Operation
from .automation_account_create_or_update_parameters import AutomationAccountCreateOrUpdateParameters
Expand Down Expand Up @@ -112,6 +112,12 @@
from .job_navigation import JobNavigation
from .software_update_configuration_machine_run import SoftwareUpdateConfigurationMachineRun
from .software_update_configuration_machine_run_list_result import SoftwareUpdateConfigurationMachineRunListResult
from .source_control import SourceControl
from .source_control_update_parameters import SourceControlUpdateParameters
from .source_control_create_or_update_parameters import SourceControlCreateOrUpdateParameters
from .source_control_sync_job import SourceControlSyncJob
from .source_control_sync_job_by_id_errors import SourceControlSyncJobByIdErrors
from .source_control_sync_job_by_id import SourceControlSyncJobById
from .automation_account_paged import AutomationAccountPaged
from .operation_paged import OperationPaged
from .statistics_paged import StatisticsPaged
Expand All @@ -136,6 +142,8 @@
from .schedule_paged import SchedulePaged
from .variable_paged import VariablePaged
from .webhook_paged import WebhookPaged
from .source_control_paged import SourceControlPaged
from .source_control_sync_job_paged import SourceControlSyncJobPaged
from .automation_client_enums import (
RunbookTypeEnum,
RunbookState,
Expand All @@ -155,6 +163,8 @@
LinuxUpdateClasses,
WindowsUpdateClasses,
OperatingSystemType,
SourceType,
ProvisioningState,
)

__all__ = [
Expand All @@ -175,9 +185,9 @@
'ContentSource',
'DscConfigurationParameter',
'DscConfiguration',
'Resource',
'Sku',
'AutomationAccount',
'Resource',
'OperationDisplay',
'Operation',
'AutomationAccountCreateOrUpdateParameters',
Expand Down Expand Up @@ -261,6 +271,12 @@
'JobNavigation',
'SoftwareUpdateConfigurationMachineRun',
'SoftwareUpdateConfigurationMachineRunListResult',
'SourceControl',
'SourceControlUpdateParameters',
'SourceControlCreateOrUpdateParameters',
'SourceControlSyncJob',
'SourceControlSyncJobByIdErrors',
'SourceControlSyncJobById',
'AutomationAccountPaged',
'OperationPaged',
'StatisticsPaged',
Expand All @@ -285,6 +301,8 @@
'SchedulePaged',
'VariablePaged',
'WebhookPaged',
'SourceControlPaged',
'SourceControlSyncJobPaged',
'RunbookTypeEnum',
'RunbookState',
'RunbookProvisioningState',
Expand All @@ -303,4 +321,6 @@
'LinuxUpdateClasses',
'WindowsUpdateClasses',
'OperatingSystemType',
'SourceType',
'ProvisioningState',
]
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,17 @@ class OperatingSystemType(Enum):

windows = "Windows"
linux = "Linux"


class SourceType(Enum):

vso_git = "VsoGit"
vso_tfvc = "VsoTfvc"
git_hub = "GitHub"


class ProvisioningState(Enum):

completed = "Completed"
failed = "Failed"
running = "Running"
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class Certificate(Model):
:vartype id: str
:ivar name: Gets the name of the certificate.
:vartype name: str
:ivar type: Resource type
:vartype type: str
:ivar thumbprint: Gets the thumbprint of the certificate.
:vartype thumbprint: str
:ivar expiry_time: Gets the expiry time of the certificate.
Expand All @@ -39,6 +41,7 @@ class Certificate(Model):
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'thumbprint': {'readonly': True},
'expiry_time': {'readonly': True},
'is_exportable': {'readonly': True},
Expand All @@ -49,6 +52,7 @@ class Certificate(Model):
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'thumbprint': {'key': 'properties.thumbprint', 'type': 'str'},
'expiry_time': {'key': 'properties.expiryTime', 'type': 'iso-8601'},
'is_exportable': {'key': 'properties.isExportable', 'type': 'bool'},
Expand All @@ -61,6 +65,7 @@ def __init__(self, description=None):
super(Certificate, self).__init__()
self.id = None
self.name = None
self.type = None
self.thumbprint = None
self.expiry_time = None
self.is_exportable = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,12 @@ class CertificateUpdateParameters(Model):
:type description: str
"""

_validation = {
'name': {'required': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
}

def __init__(self, name, description=None):
def __init__(self, name=None, description=None):
super(CertificateUpdateParameters, self).__init__()
self.name = name
self.description = description
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class Connection(Model):
:vartype id: str
:ivar name: Gets the name of the connection.
:vartype name: str
:ivar type: Resource type
:vartype type: str
:param connection_type: Gets or sets the connectionType of the connection.
:type connection_type:
~azure.mgmt.automation.models.ConnectionTypeAssociationProperty
Expand All @@ -39,6 +41,7 @@ class Connection(Model):
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'field_definition_values': {'readonly': True},
'creation_time': {'readonly': True},
'last_modified_time': {'readonly': True},
Expand All @@ -47,6 +50,7 @@ class Connection(Model):
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'connection_type': {'key': 'properties.connectionType', 'type': 'ConnectionTypeAssociationProperty'},
'field_definition_values': {'key': 'properties.fieldDefinitionValues', 'type': '{str}'},
'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'},
Expand All @@ -58,6 +62,7 @@ def __init__(self, connection_type=None, description=None):
super(Connection, self).__init__()
self.id = None
self.name = None
self.type = None
self.connection_type = connection_type
self.field_definition_values = None
self.creation_time = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class ConnectionType(Model):
:vartype id: str
:ivar name: Gets the name of the connection type.
:vartype name: str
:ivar type: Resource type
:vartype type: str
:param is_global: Gets or sets a Boolean value to indicate if the
connection type is global.
:type is_global: bool
Expand All @@ -40,13 +42,15 @@ class ConnectionType(Model):
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'field_definitions': {'readonly': True},
'creation_time': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'is_global': {'key': 'properties.isGlobal', 'type': 'bool'},
'field_definitions': {'key': 'properties.fieldDefinitions', 'type': '{FieldDefinition}'},
'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'},
Expand All @@ -58,6 +62,7 @@ def __init__(self, is_global=None, last_modified_time=None, description=None):
super(ConnectionType, self).__init__()
self.id = None
self.name = None
self.type = None
self.is_global = is_global
self.field_definitions = None
self.creation_time = None
Expand Down
14 changes: 10 additions & 4 deletions azure-mgmt-automation/azure/mgmt/automation/models/credential.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ class Credential(Model):

:ivar id: Gets the id of the resource.
:vartype id: str
:param name: Gets the name of the credential.
:type name: str
:ivar name: Gets the name of the credential.
:vartype name: str
:ivar type: Resource type
:vartype type: str
:ivar user_name: Gets the user name of the credential.
:vartype user_name: str
:ivar creation_time: Gets the creation time.
Expand All @@ -34,6 +36,8 @@ class Credential(Model):

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'user_name': {'readonly': True},
'creation_time': {'readonly': True},
'last_modified_time': {'readonly': True},
Expand All @@ -42,16 +46,18 @@ class Credential(Model):
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'user_name': {'key': 'properties.userName', 'type': 'str'},
'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'},
'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'},
'description': {'key': 'properties.description', 'type': 'str'},
}

def __init__(self, name=None, description=None):
def __init__(self, description=None):
super(Credential, self).__init__()
self.id = None
self.name = name
self.name = None
self.type = None
self.user_name = None
self.creation_time = None
self.last_modified_time = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,14 @@ class CredentialUpdateParameters(Model):
:type description: str
"""

_validation = {
'name': {'required': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'user_name': {'key': 'properties.userName', 'type': 'str'},
'password': {'key': 'properties.password', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
}

def __init__(self, name, user_name=None, password=None, description=None):
def __init__(self, name=None, user_name=None, password=None, description=None):
super(CredentialUpdateParameters, self).__init__()
self.name = name
self.user_name = user_name
Expand Down
25 changes: 21 additions & 4 deletions azure-mgmt-automation/azure/mgmt/automation/models/job_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@
class JobSchedule(Model):
"""Definition of the job schedule.

:param id: Gets or sets the id of the resource.
:type id: str
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Gets the id of the resource.
:vartype id: str
:ivar name: Gets the name of the variable.
:vartype name: str
:ivar type: Resource type
:vartype type: str
:param job_schedule_id: Gets or sets the id of job schedule.
:type job_schedule_id: str
:param schedule: Gets or sets the schedule.
Expand All @@ -30,18 +37,28 @@ class JobSchedule(Model):
:type parameters: dict[str, str]
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'job_schedule_id': {'key': 'properties.jobScheduleId', 'type': 'str'},
'schedule': {'key': 'properties.schedule', 'type': 'ScheduleAssociationProperty'},
'runbook': {'key': 'properties.runbook', 'type': 'RunbookAssociationProperty'},
'run_on': {'key': 'properties.runOn', 'type': 'str'},
'parameters': {'key': 'properties.parameters', 'type': '{str}'},
}

def __init__(self, id=None, job_schedule_id=None, schedule=None, runbook=None, run_on=None, parameters=None):
def __init__(self, job_schedule_id=None, schedule=None, runbook=None, run_on=None, parameters=None):
super(JobSchedule, self).__init__()
self.id = id
self.id = None
self.name = None
self.type = None
self.job_schedule_id = job_schedule_id
self.schedule = schedule
self.runbook = runbook
Expand Down
Loading