Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
1e458da
Automatic PR of restapi_auto_lmazuel_automationpy into master (#1801)
AutorestCI Feb 12, 2018
997f37b
Generated from da610400a1306f1ab50c7c796746b9938d5f40e7 (#1947)
AutorestCI Feb 12, 2018
70f7099
[AutoPR automation/resource-manager] Fixing the resource definitions …
AutorestCI Feb 15, 2018
39e5e3e
Generated from 9f22184d852d3d5b2728466cd034f5adadc0cb05 (#1984)
AutorestCI Feb 15, 2018
97256b1
Generated from 3ee5a3b33c6b37c2198e58470ae309f1cfbdedbc (#2012)
AutorestCI Feb 21, 2018
e5b3bed
Generated from 7c8ecc676f97292a87b1373623ac6235ac14082e (#2231)
AutorestCI Mar 20, 2018
93626e1
Generated from 39c2f9a4855320ed80fe45f847bf2c3d0c25f70e (#2261)
AutorestCI Mar 23, 2018
77b9bed
[AutoPR automation/resource-manager] Adding patch API for Configurati…
AutorestCI Mar 23, 2018
c4b5ada
[AutoPR automation/resource-manager] Add new HybridWorkerGroup update…
AutorestCI Mar 26, 2018
8f571f7
[AutoPR automation/resource-manager] Adding ListKeys support for Auto…
AutorestCI Mar 26, 2018
1b5515d
Generated from 51e53725da6e2fcb29836f63c34d629ce31dafeb (#2281)
AutorestCI Mar 26, 2018
f8a8c75
[AutoPR automation/resource-manager] Runbook Linting issues fixed (#2…
AutorestCI Mar 27, 2018
05cd4f5
Generated from c79ea034321a4ca0bd8c055821a4901d20f7c6a0 (#2333)
AutorestCI Apr 4, 2018
a4e89aa
Generated from a4b37e767f42cdc45542216ed43704aecb4222c0 (#2360)
AutorestCI Apr 6, 2018
badb0aa
Generated from 78e336d893321f6a2537f044aea283bbaf987203 (#2366)
AutorestCI Apr 9, 2018
4a90c49
Generated from dbe5e9ac34b138b0e23c58ded24526d0b27e9854 (#2397)
AutorestCI Apr 14, 2018
e87a05d
Generated from ab35ac5d163cb8818771763a66fa1f720954f760 (#2430)
AutorestCI Apr 20, 2018
f16d521
[AutoPR automation/resource-manager] [UpdateManagement] SoftwareUpdat…
AutorestCI Apr 26, 2018
111abfd
[AutoPR automation/resource-manager] Dsc paging changes (#2454)
AutorestCI May 2, 2018
ebaca2f
Generated from 3969ccd29b11be74beb11be597e6ec60a2b10fcc (#2528)
AutorestCI May 4, 2018
af8bc7e
Generated from ff4ef35bec35df647ad4e2f0d73f2f94f549df21 (#2582)
AutorestCI May 21, 2018
f5c0f38
[AutoPR automation/resource-manager] [Automation] Refactoring Automat…
AutorestCI Jun 22, 2018
751d7f2
Generated from 4427304dc57f73fbeb012d11bffca3038ea2bf99 (#2813)
AutorestCI Jun 27, 2018
cb78c52
[AutoPR automation/resource-manager] Reverting the schedule.json resp…
AutorestCI Jun 28, 2018
1d089ac
Generated from d393fcd982df8339a966bf6a6bf3ba58099f3b28 (#2853)
AutorestCI Jul 2, 2018
de8f510
Generated from ad46e205e322a7981412bb3b79ce29bcb757e175 (#2916)
AutorestCI Jul 11, 2018
4e5ca91
[AutoPR automation/resource-manager] Remove 4xx responses and change …
AutorestCI Jul 12, 2018
93d15da
Generated from bc2ab8179aa738ee9686eb95816ab74917b0d8d1 (#2933)
AutorestCI Jul 18, 2018
d634926
[AutoPR automation/resource-manager] [UpdateManagement] SoftwareUpdat…
AutorestCI Jul 19, 2018
5d366a0
[AutoPR automation/resource-manager] Updating PUT operation requireme…
AutorestCI Aug 6, 2018
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
Prev Previous commit
[AutoPR automation/resource-manager] Updating PUT operation requireme…
…nts for SourceControls and SourceControlSyncJobs, updating streams’ value property, and updating examples. (#3078)

* Generated from ea69aa851115aefa504659edacc24fcacd9ae694

Making stream's value property an object instead of a string. Updating stream's examples.

* Generated from 2afd6dfd8ad7749ca0b7ca83b9e2a16d59ce169b

Addressing PR comments.
  • Loading branch information
AutorestCI authored Aug 6, 2018
commit 5d366a0e20b2990eed5c765a104fbe60a6340f6d
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
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_security_token_properties import SourceControlSecurityTokenProperties
from .source_control_update_parameters import SourceControlUpdateParameters
from .source_control_create_or_update_parameters import SourceControlCreateOrUpdateParameters
from .source_control_sync_job import SourceControlSyncJob
Expand Down Expand Up @@ -182,6 +183,7 @@
WindowsUpdateClasses,
LinuxUpdateClasses,
SourceType,
TokenType,
ProvisioningState,
StartType,
StreamType,
Expand Down Expand Up @@ -286,6 +288,7 @@
'SoftwareUpdateConfigurationMachineRun',
'SoftwareUpdateConfigurationMachineRunListResult',
'SourceControl',
'SourceControlSecurityTokenProperties',
'SourceControlUpdateParameters',
'SourceControlCreateOrUpdateParameters',
'SourceControlSyncJob',
Expand Down Expand Up @@ -364,6 +367,7 @@
'WindowsUpdateClasses',
'LinuxUpdateClasses',
'SourceType',
'TokenType',
'ProvisioningState',
'StartType',
'StreamType',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ class SourceType(Enum):
git_hub = "GitHub"


class TokenType(Enum):

personal_access_token = "PersonalAccessToken"
oauth = "Oauth"


class ProvisioningState(Enum):

completed = "Completed"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,26 @@ class SourceControl(ProxyResource):
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
:param repo_url: Gets or sets the repo url of the source control.
:param repo_url: The repo url of the source control.
:type repo_url: str
:param branch: Gets or sets the repo branch of the source control. Include
branch as empty string for VsoTfvc.
:param branch: The repo branch of the source control. Include branch as
empty string for VsoTfvc.
:type branch: str
:param folder_path: Gets or sets the folder path of the source control.
:param folder_path: The folder path of the source control.
:type folder_path: str
:param auto_sync: Gets or sets auto async of the source control. Default
is false.
:param auto_sync: The auto sync of the source control. Default is false.
:type auto_sync: bool
:param publish_runbook: Gets or sets the auto publish of the source
control. Default is true.
:param publish_runbook: The auto publish of the source control. Default is
true.
:type publish_runbook: bool
:param source_type: The source type. Must be one of VsoGit, VsoTfvc,
GitHub. Possible values include: 'VsoGit', 'VsoTfvc', 'GitHub'
:type source_type: str or ~azure.mgmt.automation.models.SourceType
:param description: Gets or sets the description.
:param description: The description.
:type description: str
:param creation_time: Gets or sets the creation time.
:param creation_time: The creation time.
:type creation_time: datetime
:param last_modified_time: Gets or sets the last modified time.
:param last_modified_time: The last modified time.
:type last_modified_time: datetime
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,35 @@
class SourceControlCreateOrUpdateParameters(Model):
"""The parameters supplied to the create or update source control operation.

:param repo_url: Gets or sets the repo url of the source control.
:param repo_url: The repo url of the source control.
:type repo_url: str
:param branch: Gets or sets the repo branch of the source control. Include
branch as empty string for VsoTfvc.
:param branch: The repo branch of the source control. Include branch as
empty string for VsoTfvc.
:type branch: str
:param folder_path: Gets or sets the folder path of the source control.
Path must be relative.
:param folder_path: The folder path of the source control. Path must be
relative.
:type folder_path: str
:param auto_sync: Gets or sets auto async of the source control. Default
is false.
:param auto_sync: The auto async of the source control. Default is false.
:type auto_sync: bool
:param publish_runbook: Gets or sets the auto publish of the source
control. Default is true.
:param publish_runbook: The auto publish of the source control. Default is
true.
:type publish_runbook: bool
:param source_type: The source type. Must be one of VsoGit, VsoTfvc,
GitHub, case sensitive. Possible values include: 'VsoGit', 'VsoTfvc',
'GitHub'
:type source_type: str or ~azure.mgmt.automation.models.SourceType
:param security_token: Gets or sets the authorization token for the repo
of the source control.
:type security_token: str
:param description: Gets or sets the user description of the source
:param security_token: The authorization token for the repo of the source
control.
:type security_token:
~azure.mgmt.automation.models.SourceControlSecurityTokenProperties
:param description: The user description of the source control.
:type description: str
"""

_validation = {
'repo_url': {'max_length': 2000},
'branch': {'max_length': 255},
'folder_path': {'max_length': 255},
'security_token': {'max_length': 1024},
'description': {'max_length': 512},
}

Expand All @@ -56,7 +54,7 @@ class SourceControlCreateOrUpdateParameters(Model):
'auto_sync': {'key': 'properties.autoSync', 'type': 'bool'},
'publish_runbook': {'key': 'properties.publishRunbook', 'type': 'bool'},
'source_type': {'key': 'properties.sourceType', 'type': 'str'},
'security_token': {'key': 'properties.securityToken', 'type': 'str'},
'security_token': {'key': 'properties.securityToken', 'type': 'SourceControlSecurityTokenProperties'},
'description': {'key': 'properties.description', 'type': 'str'},
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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 SourceControlSecurityTokenProperties(Model):
"""SourceControlSecurityTokenProperties.

:param access_token: The access token.
:type access_token: str
:param refresh_token: The refresh token.
:type refresh_token: str
:param token_type: The token type. Must be either PersonalAccessToken or
Oauth. Possible values include: 'PersonalAccessToken', 'Oauth'
:type token_type: str or ~azure.mgmt.automation.models.TokenType
"""

_validation = {
'access_token': {'max_length': 1024},
'refresh_token': {'max_length': 1024},
}

_attribute_map = {
'access_token': {'key': 'accessToken', 'type': 'str'},
'refresh_token': {'key': 'refreshToken', 'type': 'str'},
'token_type': {'key': 'tokenType', 'type': 'str'},
}

def __init__(self, access_token=None, refresh_token=None, token_type=None):
super(SourceControlSecurityTokenProperties, self).__init__()
self.access_token = access_token
self.refresh_token = refresh_token
self.token_type = token_type
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ class SourceControlSyncJob(Model):
:vartype type: str
:ivar id: Resource id.
:vartype id: str
:param sync_job_id: Gets the source control sync job id.
:type sync_job_id: str
:ivar creation_time: Gets the creation time of the job.
:param source_control_sync_job_id: The source control sync job id.
:type source_control_sync_job_id: str
:ivar creation_time: The creation time of the job.
:vartype creation_time: datetime
:param provisioning_state: Gets the provisioning state of the job.
Possible values include: 'Completed', 'Failed', 'Running'
:param provisioning_state: The provisioning state of the job. Possible
values include: 'Completed', 'Failed', 'Running'
:type provisioning_state: str or
~azure.mgmt.automation.models.ProvisioningState
:ivar start_time: Gets the start time of the job.
:ivar start_time: The start time of the job.
:vartype start_time: datetime
:ivar end_time: Gets the end time of the job.
:ivar end_time: The end time of the job.
:vartype end_time: datetime
:param start_type: Gets the type of start for the sync job. Possible
values include: 'AutoSync', 'ManualSync'
:param start_type: The type of start for the sync job. Possible values
include: 'AutoSync', 'ManualSync'
:type start_type: str or ~azure.mgmt.automation.models.StartType
"""

Expand All @@ -54,20 +54,20 @@ class SourceControlSyncJob(Model):
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'sync_job_id': {'key': 'properties.syncJobId', 'type': 'str'},
'source_control_sync_job_id': {'key': 'properties.sourceControlSyncJobId', 'type': 'str'},
'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'},
'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'},
'start_type': {'key': 'properties.startType', 'type': 'str'},
}

def __init__(self, sync_job_id=None, provisioning_state=None, start_type=None):
def __init__(self, source_control_sync_job_id=None, provisioning_state=None, start_type=None):
super(SourceControlSyncJob, self).__init__()
self.name = None
self.type = None
self.id = None
self.sync_job_id = sync_job_id
self.source_control_sync_job_id = source_control_sync_job_id
self.creation_time = None
self.provisioning_state = provisioning_state
self.start_time = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,24 @@ class SourceControlSyncJobById(Model):
Variables are only populated by the server, and will be ignored when
sending a request.

:param id: Gets the id of the job.
:param id: The id of the job.
:type id: str
:param sync_job_id: Gets the source control sync job id.
:type sync_job_id: str
:ivar creation_time: Gets the creation time of the job.
:param source_control_sync_job_id: The source control sync job id.
:type source_control_sync_job_id: str
:ivar creation_time: The creation time of the job.
:vartype creation_time: datetime
:param provisioning_state: Gets the provisioning state of the job.
Possible values include: 'Completed', 'Failed', 'Running'
:param provisioning_state: The provisioning state of the job. Possible
values include: 'Completed', 'Failed', 'Running'
:type provisioning_state: str or
~azure.mgmt.automation.models.ProvisioningState
:ivar start_time: Gets the start time of the job.
:ivar start_time: The start time of the job.
:vartype start_time: datetime
:ivar end_time: Gets the end time of the job.
:ivar end_time: The end time of the job.
:vartype end_time: datetime
:param start_type: Gets the type of start for the sync job. Possible
values include: 'AutoSync', 'ManualSync'
:param start_type: The type of start for the sync job. Possible values
include: 'AutoSync', 'ManualSync'
:type start_type: str or ~azure.mgmt.automation.models.StartType
:param exception: Gets the exceptions that occured while running the sync
job.
:param exception: The exceptions that occured while running the sync job.
:type exception: str
"""

Expand All @@ -48,7 +47,7 @@ class SourceControlSyncJobById(Model):

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'sync_job_id': {'key': 'properties.syncJobId', 'type': 'str'},
'source_control_sync_job_id': {'key': 'properties.sourceControlSyncJobId', 'type': 'str'},
'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'},
Expand All @@ -57,10 +56,10 @@ class SourceControlSyncJobById(Model):
'exception': {'key': 'properties.exception', 'type': 'str'},
}

def __init__(self, id=None, sync_job_id=None, provisioning_state=None, start_type=None, exception=None):
def __init__(self, id=None, source_control_sync_job_id=None, provisioning_state=None, start_type=None, exception=None):
super(SourceControlSyncJobById, self).__init__()
self.id = id
self.sync_job_id = sync_job_id
self.source_control_sync_job_id = source_control_sync_job_id
self.creation_time = None
self.provisioning_state = provisioning_state
self.start_time = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,19 @@
class SourceControlSyncJobCreateParameters(Model):
"""The parameters supplied to the create source control sync job operation.

:param commit_id: Sets the commit id of the source control sync job.
:param commit_id: The commit id of the source control sync job. If not
syncing to a commitId, enter an empty string.
:type commit_id: str
"""

_validation = {
'commit_id': {'required': True, 'min_length': 0},
}

_attribute_map = {
'commit_id': {'key': 'properties.commitId', 'type': 'str'},
}

def __init__(self, commit_id=None):
def __init__(self, commit_id):
super(SourceControlSyncJobCreateParameters, self).__init__()
self.commit_id = commit_id
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ class SourceControlSyncJobStream(Model):

:ivar id: Resource id.
:vartype id: str
:param sync_job_stream_id: Gets the sync job stream id.
:param sync_job_stream_id: The sync job stream id.
:type sync_job_stream_id: str
:param summary: Gets the summary of the sync job stream.
:param summary: The summary of the sync job stream.
:type summary: str
:ivar time: Gets the time of the sync job stream.
:ivar time: The time of the sync job stream.
:vartype time: datetime
:param stream_type: Gets the type of the sync job stream. Possible values
:param stream_type: The type of the sync job stream. Possible values
include: 'Error', 'Output'
:type stream_type: str or ~azure.mgmt.automation.models.StreamType
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ class SourceControlSyncJobStreamById(Model):

:ivar id: Resource id.
:vartype id: str
:param sync_job_stream_id: Gets the sync job stream id.
:param sync_job_stream_id: The sync job stream id.
:type sync_job_stream_id: str
:param summary: Gets the summary of the sync job stream.
:param summary: The summary of the sync job stream.
:type summary: str
:ivar time: Gets the time of the sync job stream.
:ivar time: The time of the sync job stream.
:vartype time: datetime
:param stream_type: Gets the type of the sync job stream. Possible values
:param stream_type: The type of the sync job stream. Possible values
include: 'Error', 'Output'
:type stream_type: str or ~azure.mgmt.automation.models.StreamType
:param stream_text: Gets the text of the sync job stream.
:param stream_text: The text of the sync job stream.
:type stream_text: str
:param value: Gets the value of the sync job stream.
:type value: str
:param value: The values of the job stream.
:type value: dict[str, object]
"""

_validation = {
Expand All @@ -47,7 +47,7 @@ class SourceControlSyncJobStreamById(Model):
'time': {'key': 'properties.time', 'type': 'iso-8601'},
'stream_type': {'key': 'properties.streamType', 'type': 'str'},
'stream_text': {'key': 'properties.streamText', 'type': 'str'},
'value': {'key': 'properties.value', 'type': 'str'},
'value': {'key': 'properties.value', 'type': '{object}'},
}

def __init__(self, sync_job_stream_id=None, summary=None, stream_type=None, stream_text=None, value=None):
Expand Down
Loading