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

Created newer version (2018-06-17-preview) of workbook resource type #2950

Merged
merged 29 commits into from
Jul 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
a892e9f
Adding Workbooks resource type.
ericc1103 Mar 29, 2018
aee9914
Rename workbookDelete.json to WorkbookDelete.json
ericc1103 Mar 29, 2018
4ba66aa
Fixed undefiend parameter issue with Delete verb.
ericc1103 Mar 29, 2018
e6041b2
Merge branch 'master' of https://github.com/ericc1103/azure-rest-api-…
ericc1103 Mar 29, 2018
6672215
Update swagger to add subscriptionId
ericc1103 Mar 30, 2018
92ff8e9
Fixed duplicated operation id issue
ericc1103 Mar 30, 2018
c245a85
Removed links endpoint
ericc1103 Apr 3, 2018
bed6bc3
Removed unused samples
ericc1103 Apr 3, 2018
d3bac20
Revert "Removed unused samples"
ericc1103 Apr 3, 2018
5259a41
Revert "Removed links endpoint"
ericc1103 Apr 3, 2018
4227f6c
Removed link logic and added get by resourceid
ericc1103 Apr 5, 2018
328b75c
Applied PR comments
ericc1103 Apr 5, 2018
b742198
Added Resource Group parameter for GET. Removed get by sourceId since…
ericc1103 Apr 18, 2018
15a0dcb
Merged with upstream. Modify Workbook Resource Type to include RG and…
ericc1103 Apr 18, 2018
12a3962
Resolved the merge conflicts with readme.md
ericc1103 Apr 18, 2018
f78a25b
Merge remote-tracking branch 'upstream/master'
ericc1103 Apr 21, 2018
ebf8df0
Remove a location parameter since ARM routes it as we are using an tr…
ericc1103 Apr 21, 2018
75c93eb
Created newer version (2018-04-01-preview) for workbook resource type.
ericc1103 Apr 26, 2018
b2613f1
Merge remote-tracking branch 'upstream/master'
ericc1103 Apr 26, 2018
86e578d
Added Microsoft/Insights/Operations
ericc1103 Jun 13, 2018
1f479eb
Added Microsoft/Insights/Operations
ericc1103 Jun 13, 2018
2f52c4e
Corrected the api version.
ericc1103 Jun 13, 2018
4dca63c
Made properties of PATCH operation as not required. Updated the versi…
ericc1103 Jun 25, 2018
f59f9fe
Updated Resource properties with the correct fields. Created new defi…
ericc1103 Jun 26, 2018
eb74830
Update readme file
ericc1103 Jun 26, 2018
3fcc797
Uses plural for operation group name
ericc1103 Jul 2, 2018
60eb6f2
Get the latest version from the upstream and resolved the merge conflict
ericc1103 Jul 2, 2018
bd29c56
Removed x-ms-mutability settings
ericc1103 Jul 2, 2018
46c31d1
Removed the location settings for PATCH
ericc1103 Jul 2, 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
@@ -0,0 +1,62 @@
{
"parameters": {
"api-version": "2018-06-17-preview",
"resourceGroupName": "my-resource-group",
"resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"subscriptionId": "subid",
"sourceId": "/subscriptions/ad2f1a83-caac-4e21-9d2a-9ca3f87105e2/resourceGroups/Default-Web-WestUS/providers/Microsoft.Web/sites/MyTestApp-CodeLens1",
"workbookProperties": {
"id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722",
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"location": "west us",
"kind": "shared",
"properties": {
"displayName": "Blah Blah Blah",
"userId": "userId",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}",
"category": "workbook",
"version": "ME",
"timeModified": null
},
"tags": null
}
},
"responses": {
"200": {
"body": {
"id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722",
"type": "",
"kind": "shared",
"location": "westus",
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"properties": {
"displayName": "Blah Blah Blah",
"userId": "userId",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}",
"category": "workbook",
"version": "ME",
"timeModified": null
},
"tags": null
}
},
"201": {
"body": {
"id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722",
"type": "",
"kind": "shared",
"location": "westus",
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"properties": {
"displayName": "Blah Blah Blah",
"userId": "userId",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}",
"category": "workbook",
"version": "ME",
"timeModified": null
},
"tags": null
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2018-06-17-preview",
"subscriptionId": "subid",
"resourceGroupName": "my-resource-group",
"resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2"
},
"responses": {
"201": {
},
"204": {
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"api-version": "2018-06-17-preview",
"subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af",
"resourceGroupName": "my-resource-group",
"resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2"
},
"responses": {
"200": {
"body": {
"id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722",
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"type": "",
"kind": "shared",
"location": "westus",
"properties": {
"displayName": "My New Workbook",
"userId": "userId",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}",
"category": "workbook",
"version": "ME",
"timeModified": null
},
"tags": null
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"parameters": {
"api-version": "2018-06-17-preview",
"subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af",
"resourceGroupName": "my-resource-group",
"resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
"sourceId": "/subscriptions/ad2f1a83-caac-4e21-9d2a-9ca3f87105e2/resourceGroups/Default-Web-WestUS/providers/Microsoft.Web/sites/MyTestApp-CodeLens1",
"workbookProperties": {
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"kind": "shared",
"location": "west us",
"tags": null,
"properties": {
"displayName": "Blah Blah Blah",
"userId": "userId",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}",
"category": "workbook",
"version": "ME",
"timeModified": null
}
}
},
"responses": {
"200": {
"body": {
"id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722",
"type": "",
"kind": "shared",
"location": "westus",
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"tags": null,
"properties": {
"displayName": "Blah Blah Blah",
"userId": "userId",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}",
"category": "workbook",
"version": "ME",
"timeModified": null
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"parameters": {
"api-version": "2018-06-17-preview",
"subscriptionId": "6b643656-33eb-422f-aee8-3ac145d124af",
"resourceGroupName": "my-resource-group",
"category": "workbook",
"sourceId": "/subscriptions/ad2f1a83-caac-4e21-9d2a-9ca3f87105e2/resourceGroups/Default-Web-WestUS/providers/Microsoft.Web/sites/MyTestApp-CodeLens1"
},
"responses": {
"200": {
"body": [
{
"id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722",
"type": "",
"kind": "shared",
"location": "westus",
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"tags": [],
"properties": {
"displayName": "My Workbook 1",
"userId": "userId",
"serializedData": "{\"verion\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}",
"category": "workbook",
"version": "ME",
"timeModified": null
}
},
{
"id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722",
"type": "",
"kind": "shared",
"location": "westus",
"name": "deadb33f-8bee-4d3b-a059-9be8dac93960",
"tags": ["SampleTag01", "SampleTag2"],
"properties": {
"displayName": "My Workbook 2",
"userId": "userId",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}",
"category": "workbook",
"version": "ME",
"timeModified": null
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"swagger": "2.0",
"info": {
"version": "2018-06-17-preview",
"title": "WorkbookClient",
"description": "Azure client for Workbook."
},
"host": "management.azure.com",
"schemes": [
"https"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow.",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/providers/Microsoft.Insights/operations": {
"get": {
"tags": [
"Operations"
],
"description": "Lists all of the available insights REST API operations.",
"operationId": "Operations_List",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/OperationListResult"
}
},
"default": {
"description": "Insights error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"produces": [
"application/json"
],
"consumes": [
"application/json"
]
}
}
},
"definitions": {
"ErrorResponse": {
"description": "Error response indicates Insights service is not able to process the incoming request. The reason is provided in the error message.",
"type": "object",
"properties": {
"code": {
"description": "Error code.",
"type": "string"
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string"
}
}
},
"Operation": {
"description": "CDN REST API operation",
"type": "object",
"properties": {
"name": {
"description": "Operation name: {provider}/{resource}/{operation}",
"type": "string"
},
"display": {
"description": "The object that represents the operation.",
"properties": {
"provider": {
"description": "Service provider: Microsoft.Cdn",
"type": "string"
},
"resource": {
"description": "Resource on which the operation is performed: Profile, endpoint, etc.",
"type": "string"
},
"operation": {
"description": "Operation type: Read, write, delete, etc.",
"type": "string"
}
}
}
}
},
"OperationListResult": {
"description": "Result of the request to list CDN operations. It contains a list of operations and a URL link to get the next set of results.",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Operation"
},
"description": "List of CDN operations supported by the CDN resource provider."
},
"nextLink": {
"type": "string",
"description": "URL to get the next set of operation list results if there are any."
}
}
}
},
"parameters": {
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"description": "Client Api Version."
}
}
}
Loading