Skip to content
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
5867959
Moving to Public Repository
vivek-microsoft Sep 18, 2018
e8b72cf
moving inside preview folder
vivek67 Sep 19, 2018
bcc6b14
updating relative path
vivek67 Sep 19, 2018
4efef08
Updating readme with code generation instructions
vivek-microsoft Oct 5, 2018
e2e0ff3
Merge branch 'master' of https://github.com/vivek-microsoft/azure-res…
vivek-microsoft Oct 5, 2018
351b566
Merge branch 'master' into master
vivek-microsoft Oct 9, 2018
3441247
Updating tag
vivek-microsoft Oct 10, 2018
8ca2559
Merge branch 'master' of https://github.com/vivek-microsoft/azure-res…
vivek-microsoft Oct 10, 2018
a796b2d
adding PUT notificationSettings api
vivek67 Nov 12, 2018
8624501
Merge branch 'master' of https://github.com/vivek-microsoft/azure-res…
vivek67 Nov 12, 2018
6713eaa
adding example file
vivek67 Nov 12, 2018
d2181a4
Fix example format
vivek67 Nov 12, 2018
73fd95c
fix validation error
vivek67 Nov 12, 2018
da2f1ad
fix validation error
vivek67 Nov 12, 2018
93b0f7b
validation error fix
vivek67 Nov 13, 2018
3d1a976
fix validation error
vivek67 Nov 14, 2018
6a5df3d
fix example
vivek67 Nov 14, 2018
716875e
fix example
vivek67 Nov 14, 2018
5027a86
fix example
vivek67 Nov 14, 2018
949fa4f
fix example
vivek67 Nov 14, 2018
79c5c95
Removing python sdk instruction from readme.md
vivek67 Nov 14, 2018
703983c
Merge branch 'master' into master
vivek-microsoft Nov 19, 2018
73ae4f0
Review comments
vivek67 Nov 20, 2018
47e7e9f
Merge branch 'master' of https://github.com/vivek-microsoft/azure-res…
vivek67 Nov 20, 2018
afeeb38
Deleting temporary file.
vivek67 Nov 20, 2018
998f970
Adding examples
vivek-microsoft Nov 21, 2018
e8ce809
review comments
vivek67 Nov 26, 2018
a5f92e4
Merge branch 'master' of https://github.com/vivek-microsoft/azure-res…
vivek67 Nov 26, 2018
d086740
Updating response format
vivek67 Nov 27, 2018
a49a4bb
Fixing json format
vivek67 Nov 27, 2018
1592500
Restoring Python sdk in readme.md
vivek67 Nov 27, 2018
5465027
Updating id in response
vivek67 Nov 27, 2018
305f074
manual edit to refer to default parameter
vivek67 Nov 27, 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
Original file line number Diff line number Diff line change
Expand Up @@ -601,9 +601,6 @@
},
{
"$ref": "#/parameters/api-version"
},
{

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vivek-microsoft Why are the skipToken and nxtlink params being pulled out? Does the API not support pagination?

"$ref": "#/parameters/$skiptoken"
}
],
"responses": {
Expand All @@ -620,14 +617,84 @@
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"NotificationSettings_ListByResource": {
"$ref": "./examples/NotificationSettings_ListByResource.json"
}
}
},
Comment thread
vivek-microsoft marked this conversation as resolved.
"put": {
"tags": [
"WLIExtension"
],
"summary": "Update notification settings for a resource.",
"operationId": "NotificationSettings_Update",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "resourceNamespace",
"in": "path",
"description": "The Namespace of the resource.",
"required": true,
"type": "string"
},
{
"name": "resourceType",
"in": "path",
"description": "The type of the resource.",
"required": true,
"type": "string"
},
{
"name": "resourceName",
"in": "path",
"description": "Name of the resource.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/api-version"
},
{
"name": "body",
"in": "body",
"description": "Body of the NotificationSetting PUT object.",
"required": true,
"schema": {
"$ref": "#/definitions/NotificationSetting"
}
}
],
"responses": {
"200": {
"description": "OK. At least one component found.",
"schema": {
"$ref": "#/definitions/NotificationSettingsCollection"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"NotificationSettings_Update": {
"$ref": "./examples/NotificationSettings_Update.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.WorkloadMonitor/componentsSummary": {
Expand Down Expand Up @@ -1446,38 +1513,40 @@
"description": "Model for collection of notificationSettings.",
"type": "object",
"properties": {
"nextLink": {
"description": "URL to the next set of results.",
"properties": {
"$ref": "#/definitions/NotificationSetting",
"x-ms-client-flatten": true
},
"name": {
"description": "Resource name of NotificationSettings",
"type": "string",
"readOnly": true
},
"value": {
"description": "Collection of components.",
"type": "array",
"items": {
"$ref": "#/definitions/NotificationSetting"
},
"id": {
"description": "ARM resource ID of notification settings",
"type": "string",
"readOnly": true
},
"type": {
"description": "Resource type of NotificationSettings",
"type": "string",
"readOnly": true
}
}
},
"x-ms-azure-resource": true
},
"NotificationSetting": {
"description": "Model for component.",
"description": "Model for NotificationSetting.",
"type": "object",
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
}
],
"properties": {
"etag": {
"description": "For optimistic concurrency control.",
"type": "string",
"readOnly": true
},
"properties": {
"$ref": "#/definitions/NotificationSettingProperties",
"description": "Properties of the component.",
"description": "Properties of Notification Settings",
"readOnly": true,
"x-ms-client-flatten": true
}
Expand All @@ -1487,7 +1556,7 @@
"description": "Model for properties of a NotificationSetting.",
"type": "object",
"properties": {
"actionGroups": {
"actionGroupResourceIds": {
"description": "List of action group resource ids to be notified",
"type": "array",
"items": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,12 @@
"responses": {
"200": {
"body": {
"value": [
{
"etag": null,
"properties": {
"actionGroups": [

]
}
}
],
"nextLink": null
"properties": {
"properties": {
"actionGroupResourceIds": [
]
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e",
"resourceGroupName": "viv_rg",
"resourceNamespace": "Microsoft.Compute",
"resourceType": "virtualMachines",
"resourceName": "Canary-WLI-2",
"api-version": "2018-08-31-preview",
"body": {
"properties": {
"actionGroupResourceIds": [
"/subscriptions/12c5bb75-2c2c-44b1-8d7d-cbf4d12ff5c1/resourceGroups/vgajulaRG/providers/microsoft.insights/actiongroups/wli-we"
]
}
}
},
"responses": {
"200": {
"body": {

}
}
}
}
31 changes: 1 addition & 30 deletions specification/workloadmonitor/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ This is not used by Autorest itself.

``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-python

- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-node
Expand All @@ -75,35 +75,6 @@ csharp:
clear-output-folder: true
```


## Python
Comment thread
vivek-microsoft marked this conversation as resolved.

These settings apply only when `--python` is specified on the command line.
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.

``` yaml $(python)
python-mode: create
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.mgmt.workloadmonitor
package-name: azure-mgmt-workloadmonitor
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/azure-mgmt-workloadmonitor/azure/mgmt/workloadmonitor
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/azure-mgmt-workloadmonitor
```


## Go

These settings apply only when `--go` is specified on the command line.
Expand Down