diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/componentWorkItemConfigs_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/componentWorkItemConfigs_API.json index 8531ddb5a0e5..0767f24e563d 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/componentWorkItemConfigs_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/componentWorkItemConfigs_API.json @@ -111,7 +111,7 @@ }, "x-ms-examples": { "WorkItemConfigurationsCreate": { - "$ref": "./examples/WorkItemConfigsCreate.json" + "$ref": "./examples/WorkItemConfigCreate.json" } } } @@ -173,7 +173,7 @@ "responses": { "200": { "description": "The work item configuration that was successfully deleted.", - "schema": {} + "schema": { } } }, "x-ms-examples": { @@ -181,6 +181,83 @@ "$ref": "./examples/WorkItemConfigDelete.json" } } + }, + "get": { + "description": "Gets specified work item configuration for an Application Insights component.", + "operationId": "WorkItemConfigurations_GetItem", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/WorkItemConfigIdParameter" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/WorkItemConfiguration" + } + } + }, + "x-ms-examples": { + "WorkItemConfigurationsGetDefault": { + "$ref": "./examples/WorkItemConfigGet.json" + } + } + }, + "patch" : { + "description": "Update a work item configuration for an Application Insights component.", + "operationId": "WorkItemConfigurations_UpdateItem", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/WorkItemConfigIdParameter" + }, + { + "name": "WorkItemConfigurationProperties", + "description": "Properties that need to be specified to update a work item configuration for this Application Insights component.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WorkItemCreateConfiguration" + } + } + ], + "responses": { + "200": { + "description": "Successful operation indicating the config updated by this PATCH call.", + "schema": { + "$ref": "#/definitions/WorkItemConfiguration" + } + } + }, + "x-ms-examples": { + "WorkItemConfigurationsCreate": { + "$ref": "./examples/WorkItemConfigUpdate.json" + } + } } } }, @@ -241,7 +318,10 @@ "description": "Boolean indicating validate only" }, "WorkItemProperties": { - "type": "string", + "type": "object", + "additionalProperties": { + "type": "string" + }, "description": "Custom work item properties" } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigsCreate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigCreate.json similarity index 56% rename from specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigsCreate.json rename to specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigCreate.json index aa1a78b8ea77..7ac6f85ef5e2 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigsCreate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigCreate.json @@ -6,13 +6,7 @@ "resourceName": "my-component", "WorkItemConfigurationProperties": { "ConnectorId": "d334e2a4-6733-488e-8645-a9fdc1694f41", - "ConnectorDataConfiguration": { - "VSOAccountBaseUrl": "https://testtodelete.visualstudio.com", - "ProjectCollection": "DefaultCollection", - "Project": "todeletefirst", - "ResourceId": "d0662b05-439a-4a1b-840b-33a7f8b42ebf", - "Custom": "{\"/fields/System.WorkItemType\":\"Bug\",\"/fields/System.AreaPath\":\"todeletefirst\",\"/fields/System.AssignedTo\":\"\"}" - }, + "ConnectorDataConfiguration": "{\"VSOAccountBaseUrl\":\"https://testtodelete.visualstudio.com\",\"ProjectCollection\":\"DefaultCollection\",\"Project\":\"todeletefirst\",\"ResourceId\":\"d0662b05-439a-4a1b-840b-33a7f8b42ebf\",\"Custom\":\"{\\\"/fields/System.WorkItemType\\\":\\\"Bug\\\",\\\"/fields/System.AreaPath\\\":\\\"todeletefirst\\\",\\\"/fields/System.AssignedTo\\\":\\\"\\\"}\"}", "WorkItemProperties": [ { "name": "Title", @@ -23,7 +17,7 @@ "value": "Validate Only Description" } ], - "ValidateOnly": "true" + "ValidateOnly": true } }, "responses": { @@ -31,4 +25,4 @@ "body": {} } } -} +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigDelete.json index 0742113a565c..23bca180c1de 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigDelete.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigDelete.json @@ -8,7 +8,7 @@ }, "responses": { "200": { - "body": {} + "body": { } } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigGet.json new file mode 100644 index 000000000000..113066f65184 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigGet.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "my-component", + "workItemConfigId" : "Visual Studio Team Services" + }, + "responses": { + "200": { + "body": { + "ConnectorId":"d334e2a4-6733-488e-8645-a9fdc1694f41", + "IsDefault":true, + "ConfigDisplayName":"Visual Studio Team Services", + "Id":"Visual Studio Team Services", + "ConfigProperties":"{\"VSOAccountBaseUrl\":\"https://testtodelete.visualstudio.com\",\"ProjectCollection\":\"DefaultCollection\",\"Project\":\"todeletefirst\",\"ResourceId\":\"d0662b05-439a-4a1b-840b-33a7f8b42ebf\",\"ConfigurationType\":\"Standard\",\"WorkItemType\":\"Bug\",\"AreaPath\":\"todeletefirst\",\"AssignedTo\":\"\"}" + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigUpdate.json new file mode 100644 index 000000000000..7240cc900859 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkItemConfigUpdate.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "my-component", + "workItemConfigId": "Visual Studio Team Services", + "WorkItemConfigurationProperties": { + "ConnectorId": "d334e2a4-6733-488e-8645-a9fdc1694f41", + "ConnectorDataConfiguration": "{\"VSOAccountBaseUrl\":\"https://testtodelete.visualstudio.com\",\"ProjectCollection\":\"DefaultCollection\",\"Project\":\"todeletefirst\",\"ResourceId\":\"d0662b05-439a-4a1b-840b-33a7f8b42ebf\",\"Custom\":\"{\\\"/fields/System.WorkItemType\\\":\\\"Bug\\\",\\\"/fields/System.AreaPath\\\":\\\"todeletefirst\\\",\\\"/fields/System.AssignedTo\\\":\\\"\\\"}\"}", + "WorkItemProperties": [ + { + "name": "Title", + "value": "Validate Only Title" + }, + { + "name": "Description", + "value": "Validate Only Description" + } + ], + "ValidateOnly": true + } + }, + "responses": { + "200": { + "body": { + "ConnectorId": "d334e2a4-6733-488e-8645-a9fdc1694f41", + "IsDefault": true, + "ConfigDisplayName": "Visual Studio Team Services", + "Id": "Visual Studio Team Services", + "ConfigProperties": "{\"VSOAccountBaseUrl\":\"https://testtodelete.visualstudio.com\",\"ProjectCollection\":\"DefaultCollection\",\"Project\":\"todeletefirst\",\"ResourceId\":\"d0662b05-439a-4a1b-840b-33a7f8b42ebf\",\"ConfigurationType\":\"Standard\",\"WorkItemType\":\"Bug\",\"AreaPath\":\"todeletefirst\",\"AssignedTo\":\"\"}" + } + } + } +} \ No newline at end of file