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 @@ -52,6 +52,7 @@
from .job_schedule import JobSchedule
from .job_schedule_create_parameters import JobScheduleCreateParameters
from .linked_workspace import LinkedWorkspace
from .activity_parameter_validation_set import ActivityParameterValidationSet
from .activity_parameter import ActivityParameter
from .activity_parameter_set import ActivityParameterSet
from .activity_output_type import ActivityOutputType
Expand Down Expand Up @@ -234,6 +235,7 @@
'JobSchedule',
'JobScheduleCreateParameters',
'LinkedWorkspace',
'ActivityParameterValidationSet',
'ActivityParameter',
'ActivityParameterSet',
'ActivityOutputType',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ class ActivityParameter(Model):
of an array. false if the cmdlet parameter does not accept all the
remaining argument values.
:type value_from_remaining_arguments: bool
:param description: Gets or sets the description of the activity
parameter.
:type description: str
:param validation_set: Gets or sets the validation set of activity
parameter.
:type validation_set:
list[~azure.mgmt.automation.models.ActivityParameterValidationSet]
"""

_attribute_map = {
Expand All @@ -57,9 +64,11 @@ class ActivityParameter(Model):
'value_from_pipeline': {'key': 'valueFromPipeline', 'type': 'bool'},
'value_from_pipeline_by_property_name': {'key': 'valueFromPipelineByPropertyName', 'type': 'bool'},
'value_from_remaining_arguments': {'key': 'valueFromRemainingArguments', 'type': 'bool'},
'description': {'key': 'description', 'type': 'str'},
'validation_set': {'key': 'validationSet', 'type': '[ActivityParameterValidationSet]'},
}

def __init__(self, name=None, type=None, is_mandatory=None, is_dynamic=None, position=None, value_from_pipeline=None, value_from_pipeline_by_property_name=None, value_from_remaining_arguments=None):
def __init__(self, name=None, type=None, is_mandatory=None, is_dynamic=None, position=None, value_from_pipeline=None, value_from_pipeline_by_property_name=None, value_from_remaining_arguments=None, description=None, validation_set=None):
super(ActivityParameter, self).__init__()
self.name = name
self.type = type
Expand All @@ -69,3 +78,5 @@ def __init__(self, name=None, type=None, is_mandatory=None, is_dynamic=None, pos
self.value_from_pipeline = value_from_pipeline
self.value_from_pipeline_by_property_name = value_from_pipeline_by_property_name
self.value_from_remaining_arguments = value_from_remaining_arguments
self.description = description
self.validation_set = validation_set
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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 ActivityParameterValidationSet(Model):
"""Definition of the activity parameter validation set.

:param member_value: Gets or sets the name of the activity parameter
validation set member.
:type member_value: str
"""

_attribute_map = {
'member_value': {'key': 'memberValue', 'type': 'str'},
}

def __init__(self, member_value=None):
super(ActivityParameterValidationSet, self).__init__()
self.member_value = member_value
6 changes: 5 additions & 1 deletion azure-mgmt-automation/azure/mgmt/automation/models/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class Module(TrackedResource):
:type last_modified_time: datetime
:param description: Gets or sets the description.
:type description: str
:param is_composite: Gets or sets type of module, if its composite or not.
:type is_composite: bool
:param etag: Gets or sets the etag of the resource.
:type etag: str
"""
Expand All @@ -81,10 +83,11 @@ class Module(TrackedResource):
'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'},
'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'},
'description': {'key': 'properties.description', 'type': 'str'},
'is_composite': {'key': 'properties.isComposite', 'type': 'bool'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, tags=None, location=None, is_global=None, version=None, size_in_bytes=None, activity_count=None, provisioning_state=None, content_link=None, error=None, creation_time=None, last_modified_time=None, description=None, etag=None):
def __init__(self, tags=None, location=None, is_global=None, version=None, size_in_bytes=None, activity_count=None, provisioning_state=None, content_link=None, error=None, creation_time=None, last_modified_time=None, description=None, is_composite=None, etag=None):
super(Module, self).__init__(tags=tags, location=location)
self.is_global = is_global
self.version = version
Expand All @@ -96,4 +99,5 @@ def __init__(self, tags=None, location=None, is_global=None, version=None, size_
self.creation_time = creation_time
self.last_modified_time = last_modified_time
self.description = description
self.is_composite = is_composite
self.etag = etag