Skip to content

Commit

Permalink
Adding patch API for Configurations (#2688)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrdmr authored and sarangan12 committed Mar 23, 2018
1 parent 803f316 commit 2c4ddff
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,27 @@
],
"description": "The parameters supplied to the create or update configuration operation."
},
"DscConfigurationUpdateParameters": {
"properties": {
"properties": {
"$ref": "#/definitions/DscConfigurationCreateOrUpdateProperties",
"x-ms-client-flatten": true,
"description": "Gets or sets configuration create or update properties."
},
"name": {
"type": "string",
"description": "Gets or sets name of the resource."
},
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Gets or sets the tags attached to the resource."
}
},
"description": "The parameters supplied to the create or update configuration operation."
},
"DscMetaConfiguration": {
"properties": {
"configurationModeFrequencyMins": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,68 @@
}
}
}
},
"patch": {
"tags": [
"DscConfiguration"
],
"operationId": "DscConfiguration_Update",
"description": "Create the configuration identified by configuration name.",
"externalDocs": {
"url": "http://aka.ms/azureautomationsdk/configurationoperations"
},
"x-ms-examples": {
"Create or Update Configuration": {
"$ref": "./examples/updateDscConfiguration.json"
}
},
"parameters": [
{
"$ref": "./definitions.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "automationAccountName",
"in": "path",
"required": true,
"type": "string",
"description": "The automation account name."
},
{
"name": "configurationName",
"in": "path",
"required": true,
"type": "string",
"description": "The create or update parameters for configuration."
},
{
"name": "parameters",
"in": "body",
"schema": {
"$ref": "./definitions.json#/definitions/DscConfigurationUpdateParameters"
},
"description": "The create or update parameters for configuration."
},
{
"$ref": "./definitions.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "./definitions.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "./definitions.json#/definitions/DscConfiguration"
}
},
"default": {
"description": "Automation error response describing why the operation failed.",
"schema": {
"$ref": "./definitions.json#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}/content": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg",
"automationAccountName": "myAutomationAccount18",
"configurationName": "SetupServer",
"api-version": "2015-10-31",
"parameters": {
"name": "SetupServer",
"tags": {
"Hello": "World"
}
}
},
"responses": {
"200": {
"headers": {},
"body": {
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/configurations/SetupServer",
"name": "SetupServer",
"type": "Microsoft.Automation/AutomationAccounts/Configurations",
"location": "eastus2",
"tags": {
"Hello": "World"
},
"etag": "\"636572843399170000\"",
"properties": {
"provisioningState": "Succeeded",
"jobCount": 0,
"parameters": {},
"description": "sample configuration",
"state": null,
"creationTime": "0001-01-01T00:00:00+00:00",
"lastModifiedTime": "0001-01-01T00:00:00+00:00",
"logVerbose": false
}
}
}
}
}

0 comments on commit 2c4ddff

Please sign in to comment.