Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR automation/resource-manager] Updating SourceControlSyncJobs and SourceControlSyncJobStreams properties and examples. #3124

Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions azure-mgmt-automation/azure/mgmt/automation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 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 .automation_client import AutomationClient
from .version import VERSION

__all__ = ['AutomationClient']

__version__ = VERSION

288 changes: 288 additions & 0 deletions azure-mgmt-automation/azure/mgmt/automation/automation_client.py

Large diffs are not rendered by default.

505 changes: 505 additions & 0 deletions azure-mgmt-automation/azure/mgmt/automation/models/__init__.py

Large diffs are not rendered by default.

64 changes: 64 additions & 0 deletions azure-mgmt-automation/azure/mgmt/automation/models/activity.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# 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 Activity(Model):
"""Definition of the activity.

Variables are only populated by the server, and will be ignored when
sending a request.

:param id: Gets or sets the id of the resource.
:type id: str
:ivar name: Gets the name of the activity.
:vartype name: str
:param definition: Gets or sets the user name of the activity.
:type definition: str
:param parameter_sets: Gets or sets the parameter sets of the activity.
:type parameter_sets:
list[~azure.mgmt.automation.models.ActivityParameterSet]
:param output_types: Gets or sets the output types of the activity.
:type output_types: list[~azure.mgmt.automation.models.ActivityOutputType]
:param creation_time: Gets or sets the creation time.
:type creation_time: datetime
:param last_modified_time: Gets or sets the last modified time.
:type last_modified_time: datetime
:param description: Gets or sets the description.
:type description: str
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'definition': {'key': 'properties.definition', 'type': 'str'},
'parameter_sets': {'key': 'properties.parameterSets', 'type': '[ActivityParameterSet]'},
'output_types': {'key': 'properties.outputTypes', 'type': '[ActivityOutputType]'},
'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, **kwargs):
super(Activity, self).__init__(**kwargs)
self.id = kwargs.get('id', None)
self.name = None
self.definition = kwargs.get('definition', None)
self.parameter_sets = kwargs.get('parameter_sets', None)
self.output_types = kwargs.get('output_types', None)
self.creation_time = kwargs.get('creation_time', None)
self.last_modified_time = kwargs.get('last_modified_time', None)
self.description = kwargs.get('description', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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 ActivityOutputType(Model):
"""Definition of the activity output type.

:param name: Gets or sets the name of the activity output type.
:type name: str
:param type: Gets or sets the type of the activity output type.
:type type: str
"""

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

def __init__(self, **kwargs):
super(ActivityOutputType, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.type = kwargs.get('type', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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 ActivityOutputType(Model):
"""Definition of the activity output type.

:param name: Gets or sets the name of the activity output type.
:type name: str
:param type: Gets or sets the type of the activity output type.
:type type: str
"""

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

def __init__(self, *, name: str=None, type: str=None, **kwargs) -> None:
super(ActivityOutputType, self).__init__(**kwargs)
self.name = name
self.type = type
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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.paging import Paged


class ActivityPaged(Paged):
"""
A paging container for iterating over a list of :class:`Activity <azure.mgmt.automation.models.Activity>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[Activity]'}
}

def __init__(self, *args, **kwargs):

super(ActivityPaged, self).__init__(*args, **kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# 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 ActivityParameter(Model):
"""Definition of the activity parameter.

:param name: Gets or sets the name of the activity parameter.
:type name: str
:param type: Gets or sets the type of the activity parameter.
:type type: str
:param is_mandatory: Gets or sets a Boolean value that indicates true if
the parameter is required. If the value is false, the parameter is
optional.
:type is_mandatory: bool
:param is_dynamic: Gets or sets a Boolean value that indicates true if the
parameter is dynamic.
:type is_dynamic: bool
:param position: Gets or sets the position of the activity parameter.
:type position: long
:param value_from_pipeline: Gets or sets a Boolean value that indicates
true if the parameter can take values from the incoming pipeline objects.
This setting is used if the cmdlet must access the complete input object.
false indicates that the parameter cannot take values from the complete
input object.
:type value_from_pipeline: bool
:param value_from_pipeline_by_property_name: Gets or sets a Boolean value
that indicates true if the parameter can be filled from a property of the
incoming pipeline object that has the same name as this parameter. false
indicates that the parameter cannot be filled from the incoming pipeline
object property with the same name.
:type value_from_pipeline_by_property_name: bool
:param value_from_remaining_arguments: Gets or sets a Boolean value that
indicates true if the cmdlet parameter accepts all the remaining
command-line arguments that are associated with this parameter in the form
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 = {
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'is_mandatory': {'key': 'isMandatory', 'type': 'bool'},
'is_dynamic': {'key': 'isDynamic', 'type': 'bool'},
'position': {'key': 'position', 'type': 'long'},
'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, **kwargs):
super(ActivityParameter, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.type = kwargs.get('type', None)
self.is_mandatory = kwargs.get('is_mandatory', None)
self.is_dynamic = kwargs.get('is_dynamic', None)
self.position = kwargs.get('position', None)
self.value_from_pipeline = kwargs.get('value_from_pipeline', None)
self.value_from_pipeline_by_property_name = kwargs.get('value_from_pipeline_by_property_name', None)
self.value_from_remaining_arguments = kwargs.get('value_from_remaining_arguments', None)
self.description = kwargs.get('description', None)
self.validation_set = kwargs.get('validation_set', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# 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 ActivityParameter(Model):
"""Definition of the activity parameter.

:param name: Gets or sets the name of the activity parameter.
:type name: str
:param type: Gets or sets the type of the activity parameter.
:type type: str
:param is_mandatory: Gets or sets a Boolean value that indicates true if
the parameter is required. If the value is false, the parameter is
optional.
:type is_mandatory: bool
:param is_dynamic: Gets or sets a Boolean value that indicates true if the
parameter is dynamic.
:type is_dynamic: bool
:param position: Gets or sets the position of the activity parameter.
:type position: long
:param value_from_pipeline: Gets or sets a Boolean value that indicates
true if the parameter can take values from the incoming pipeline objects.
This setting is used if the cmdlet must access the complete input object.
false indicates that the parameter cannot take values from the complete
input object.
:type value_from_pipeline: bool
:param value_from_pipeline_by_property_name: Gets or sets a Boolean value
that indicates true if the parameter can be filled from a property of the
incoming pipeline object that has the same name as this parameter. false
indicates that the parameter cannot be filled from the incoming pipeline
object property with the same name.
:type value_from_pipeline_by_property_name: bool
:param value_from_remaining_arguments: Gets or sets a Boolean value that
indicates true if the cmdlet parameter accepts all the remaining
command-line arguments that are associated with this parameter in the form
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 = {
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'is_mandatory': {'key': 'isMandatory', 'type': 'bool'},
'is_dynamic': {'key': 'isDynamic', 'type': 'bool'},
'position': {'key': 'position', 'type': 'long'},
'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: str=None, type: str=None, is_mandatory: bool=None, is_dynamic: bool=None, position: int=None, value_from_pipeline: bool=None, value_from_pipeline_by_property_name: bool=None, value_from_remaining_arguments: bool=None, description: str=None, validation_set=None, **kwargs) -> None:
super(ActivityParameter, self).__init__(**kwargs)
self.name = name
self.type = type
self.is_mandatory = is_mandatory
self.is_dynamic = is_dynamic
self.position = position
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,33 @@
# 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 ActivityParameterSet(Model):
"""Definition of the activity parameter set.

:param name: Gets or sets the name of the activity parameter set.
:type name: str
:param parameters: Gets or sets the parameters of the activity parameter
set.
:type parameters: list[~azure.mgmt.automation.models.ActivityParameter]
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'parameters': {'key': 'parameters', 'type': '[ActivityParameter]'},
}

def __init__(self, **kwargs):
super(ActivityParameterSet, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.parameters = kwargs.get('parameters', None)
Loading