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

Updating PUT operation requirements for SourceControls and SourceControlSyncJobs, updating streams’ value property, and updating examples. #3580

Merged
merged 5 commits into from
Aug 6, 2018
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"autoSync": true,
"publishRunbook": true,
"sourceType": "VsoGit",
"securityToken": "3a326f7a0dcd343ea58fee21f2fd5fb4c1234567",
"securityToken": {
"accessToken":"3a326f7a0dcd343ea58fee21f2fd5fb4c1234567",
"tokenType": "PersonalAccessToken"
},
"description": "my description"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
"folderPath": "/folderOne/folderTwo",
"autoSync": true,
"publishRunbook": true,
"securityToken": "3a326f7a0dcd343ea58fee21f2fd5fb4c1234567",
"securityToken": {
"accessToken":"3a326f7a0dcd343ea58fee21f2fd5fb4c1234567",
"tokenType": "PersonalAccessToken"
},
"description": "my description"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"body": {
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a",
"properties": {
"syncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a",
"sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a",
"creationTime": "2017-03-28T23:14:26.903+00:00",
"provisioningState": "Completed",
"startTime": "2017-03-28T23:14:27.903+00:00",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a1a",
"properties": {
"syncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a1a",
"sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a1a",
"creationTime": "2017-03-28T23:14:26.903+00:00",
"provisioningState": "Completed",
"startTime": "2017-03-28T23:14:27.903+00:00",
Expand All @@ -25,7 +25,7 @@
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a2a",
"properties": {
"syncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a2a",
"sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a2a",
"creationTime": "2017-03-28T23:14:26.903+00:00",
"provisioningState": "Completed",
"startTime": "2017-03-28T23:14:27.903+00:00",
Expand All @@ -36,7 +36,7 @@
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a3a",
"properties": {
"syncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a3a",
"sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a3a",
"creationTime": "2017-03-28T23:14:26.903+00:00",
"provisioningState": "Completed",
"startTime": "2017-03-28T23:14:27.903+00:00",
Expand All @@ -47,7 +47,7 @@
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a4a",
"properties": {
"syncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a4a",
"sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a4a",
"creationTime": "2017-03-28T23:14:26.903+00:00",
"provisioningState": "Completed",
"startTime": "2017-03-28T23:14:27.903+00:00",
Expand All @@ -58,7 +58,7 @@
{
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a5a",
"properties": {
"syncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a5a",
"sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a5a",
"creationTime": "2017-03-28T23:14:26.903+00:00",
"provisioningState": "Completed",
"startTime": "2017-03-28T23:14:27.903+00:00",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"body": {
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/sourceControls/MySourceControl/sourceControlSyncJobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a",
"properties": {
"syncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a",
"sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a",
"creationTime": "2017-03-28T23:14:26.903+00:00",
"provisioningState": "Completed",
"startTime": "2017-03-28T23:14:27.903+00:00",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
"time": "2017-03-28T23:14:26.903+00:00",
"streamType": "Error",
"streamText": "New-AzureAffinityGroup : Cannot validate argument on parameter 'Location'. The argument is null or empty. Provide an \r\nargument that is not null or empty, and then try the command again.\r\nAt DatabaseExportImport1fba401e-0:69 char:69\r\n+ \r\n + CategoryInfo : InvalidData: . . . .",
"value": "{ 'Exception': {'Message':'System.Management.Automation.ParameterBindingValidationException: Cannot validate argument on parameter 'Location'. The argument is null or empty . . .} }"
"value": {
"Exception": {
"Message":"System.Management.Automation.ParameterBindingValidationException: Cannot validate argument on parameter 'Location'. The argument is null or empty . . .} }"
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,11 @@
"items": {
"$ref": "#/definitions/SourceControl"
},
"description": "Gets or sets a list of souce controls."
"description": "The list of souce controls."
},
"nextLink": {
"type": "string",
"description": "Gets or sets the next link."
"description": "The next link."
}
},
"description": "The response model for the list source controls operation."
Expand All @@ -336,27 +336,27 @@
"properties": {
"branch": {
"type": "string",
"description": "Gets or sets the repo branch of the source control."
"description": "The repo branch of the source control."
},
"folderPath": {
"type": "string",
"description": "Gets or sets the folder path of the source control. Path must be relative."
"description": "The folder path of the source control. Path must be relative."
},
"autoSync": {
"type": "boolean",
"description": "Gets or sets auto async of the source control. Default is false."
"description": "The auto sync of the source control. Default is false."
},
"publishRunbook": {
"type": "boolean",
"description": "Gets or sets the auto publish of the source control. Default is true."
"description": "The auto publish of the source control. Default is true."
},
"securityToken": {
"type": "string",
"description": "Gets or sets the authorization token for the repo of the source control."
"description": "The authorization token for the repo of the source control.",
"$ref": "#/definitions/SourceControlSecurityTokenProperties"
},
"description": {
"type": "string",
"description": "Gets or sets the user description of the source control."
"description": "The user description of the source control."
}
},
"description": "The properties of the update source control"
Expand All @@ -366,7 +366,7 @@
"properties": {
"$ref": "#/definitions/SourceControlUpdateProperties",
"x-ms-client-flatten": true,
"description": "Gets or sets the value of the source control."
"description": "The value of the source control."
}
},
"description": "The parameters supplied to the update source control operation."
Expand All @@ -376,7 +376,7 @@
"properties": {
"$ref": "#/definitions/SourceControlProperties",
"x-ms-client-flatten": true,
"description": "Gets or sets the properties of the source control."
"description": "The properties of the source control."
}
},
"allOf": [
Expand All @@ -390,23 +390,23 @@
"properties": {
"repoUrl": {
"type": "string",
"description": "Gets or sets the repo url of the source control."
"description": "The repo url of the source control."
},
"branch": {
"type": "string",
"description": "Gets or sets the repo branch of the source control. Include branch as empty string for VsoTfvc."
"description": "The repo branch of the source control. Include branch as empty string for VsoTfvc."
},
"folderPath": {
"type": "string",
"description": "Gets or sets the folder path of the source control."
"description": "The folder path of the source control."
},
"autoSync": {
"type": "boolean",
"description": "Gets or sets auto async of the source control. Default is false."
"description": "The auto sync of the source control. Default is false."
},
"publishRunbook": {
"type": "boolean",
"description": "Gets or sets the auto publish of the source control. Default is true."
"description": "The auto publish of the source control. Default is true."
},
"sourceType": {
"type": "string",
Expand All @@ -423,19 +423,19 @@
},
"description": {
"type": "string",
"description": "Gets or sets the description."
"description": "The description."
},
"creationTime": {
"type": "string",
"format": "date-time",
"x-nullable": false,
"description": "Gets or sets the creation time."
"description": "The creation time."
},
"lastModifiedTime": {
"type": "string",
"format": "date-time",
"x-nullable": false,
"description": "Gets or sets the last modified time."
"description": "The last modified time."
}
},
"description": "Definition of the source control properties"
Expand All @@ -445,7 +445,7 @@
"properties": {
"$ref": "#/definitions/SourceControlCreateOrUpdateProperties",
"x-ms-client-flatten": true,
"description": "Gets or sets the properties of the source control."
"description": "The properties of the source control."
}
},
"required": [
Expand All @@ -458,25 +458,25 @@
"repoUrl": {
"type": "string",
"maxLength": 2000,
"description": "Gets or sets the repo url of the source control."
"description": "The repo url of the source control."
},
"branch": {
"type": "string",
"maxLength": 255,
"description": "Gets or sets the repo branch of the source control. Include branch as empty string for VsoTfvc."
"description": "The repo branch of the source control. Include branch as empty string for VsoTfvc."
},
"folderPath": {
"type": "string",
"maxLength": 255,
"description": "Gets or sets the folder path of the source control. Path must be relative."
"description": "The folder path of the source control. Path must be relative."
},
"autoSync": {
"type": "boolean",
"description": "Gets or sets auto async of the source control. Default is false."
"description": "The auto async of the source control. Default is false."
},
"publishRunbook": {
"type": "boolean",
"description": "Gets or sets the auto publish of the source control. Default is true."
"description": "The auto publish of the source control. Default is true."
},
"sourceType": {
"type": "string",
Expand All @@ -492,17 +492,42 @@
}
},
"securityToken": {
"type": "string",
"maxLength": 1024,
"description": "Gets or sets the authorization token for the repo of the source control."
"description": "The authorization token for the repo of the source control.",
"$ref": "#/definitions/SourceControlSecurityTokenProperties"
},
"description": {
"type": "string",
"maxLength": 512,
"description": "Gets or sets the user description of the source control."
"description": "The user description of the source control."
}
},
"description": "The properties of the create source control operation."
},
"SourceControlSecurityTokenProperties": {
"properties":{
"accessToken":{
"type":"string",
"maxLength":1024,
"description":"The access token."
},
"refreshToken":{
"type":"string",
"maxLength":1024,
"description":"The refresh token."
},
"tokenType":{
"type": "string",
"description": "The token type. Must be either PersonalAccessToken or Oauth.",
"enum": [
"PersonalAccessToken",
"Oauth"
],
"x-ms-enum": {
"name": "tokenType",
"modelAsString": true
}
}
}
}
}
}
Loading