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
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
from .operations.runbook_operations import RunbookOperations
from .operations.test_job_streams_operations import TestJobStreamsOperations
from .operations.test_job_operations import TestJobOperations
from .operations.python2_package_operations import Python2PackageOperations
from . import models


Expand Down Expand Up @@ -182,6 +183,8 @@ class AutomationClient(SDKClient):
:vartype test_job_streams: azure.mgmt.automation.operations.TestJobStreamsOperations
:ivar test_job: TestJob operations
:vartype test_job: azure.mgmt.automation.operations.TestJobOperations
:ivar python2_package: Python2Package operations
:vartype python2_package: azure.mgmt.automation.operations.Python2PackageOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand Down Expand Up @@ -286,3 +289,5 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.test_job = TestJobOperations(
self._client, self.config, self._serialize, self._deserialize)
self.python2_package = Python2PackageOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@
from .test_job_py3 import TestJob
from .runbook_create_or_update_draft_properties_py3 import RunbookCreateOrUpdateDraftProperties
from .runbook_create_or_update_draft_parameters_py3 import RunbookCreateOrUpdateDraftParameters
from .python_package_create_parameters_py3 import PythonPackageCreateParameters
from .python_package_update_parameters_py3 import PythonPackageUpdateParameters
except (SyntaxError, ImportError):
from .sku import Sku
from .automation_account import AutomationAccount
Expand Down Expand Up @@ -261,6 +263,8 @@
from .test_job import TestJob
from .runbook_create_or_update_draft_properties import RunbookCreateOrUpdateDraftProperties
from .runbook_create_or_update_draft_parameters import RunbookCreateOrUpdateDraftParameters
from .python_package_create_parameters import PythonPackageCreateParameters
from .python_package_update_parameters import PythonPackageUpdateParameters
from .automation_account_paged import AutomationAccountPaged
from .operation_paged import OperationPaged
from .statistics_paged import StatisticsPaged
Expand Down Expand Up @@ -446,6 +450,8 @@
'TestJob',
'RunbookCreateOrUpdateDraftProperties',
'RunbookCreateOrUpdateDraftParameters',
'PythonPackageCreateParameters',
'PythonPackageUpdateParameters',
'AutomationAccountPaged',
'OperationPaged',
'StatisticsPaged',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class PythonPackageCreateParameters(Model):
"""The parameters supplied to the create or update module operation.

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

:param content_link: Required. Gets or sets the module content link.
:type content_link: ~azure.mgmt.automation.models.ContentLink
:param tags: Gets or sets the tags attached to the resource.
:type tags: dict[str, str]
"""

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

_attribute_map = {
'content_link': {'key': 'properties.contentLink', 'type': 'ContentLink'},
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, **kwargs):
super(PythonPackageCreateParameters, self).__init__(**kwargs)
self.content_link = kwargs.get('content_link', None)
self.tags = kwargs.get('tags', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class PythonPackageCreateParameters(Model):
"""The parameters supplied to the create or update module operation.

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

:param content_link: Required. Gets or sets the module content link.
:type content_link: ~azure.mgmt.automation.models.ContentLink
:param tags: Gets or sets the tags attached to the resource.
:type tags: dict[str, str]
"""

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

_attribute_map = {
'content_link': {'key': 'properties.contentLink', 'type': 'ContentLink'},
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, *, content_link, tags=None, **kwargs) -> None:
super(PythonPackageCreateParameters, self).__init__(**kwargs)
self.content_link = content_link
self.tags = tags
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class PythonPackageUpdateParameters(Model):
"""The parameters supplied to the update module operation.

:param tags: Gets or sets the tags attached to the resource.
:type tags: dict[str, str]
"""

_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, **kwargs):
super(PythonPackageUpdateParameters, self).__init__(**kwargs)
self.tags = kwargs.get('tags', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class PythonPackageUpdateParameters(Model):
"""The parameters supplied to the update module operation.

:param tags: Gets or sets the tags attached to the resource.
:type tags: dict[str, str]
"""

_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, *, tags=None, **kwargs) -> None:
super(PythonPackageUpdateParameters, self).__init__(**kwargs)
self.tags = tags
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
from .runbook_operations import RunbookOperations
from .test_job_streams_operations import TestJobStreamsOperations
from .test_job_operations import TestJobOperations
from .python2_package_operations import Python2PackageOperations

__all__ = [
'AutomationAccountOperations',
Expand Down Expand Up @@ -91,4 +92,5 @@
'RunbookOperations',
'TestJobStreamsOperations',
'TestJobOperations',
'Python2PackageOperations',
]
Loading