-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Added swagger spec for Microsoft.DynamicsTelemetry preview #5161
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1668147
Added swagger spec for Microsoft.DynamicsTelemetry preview
v-ilseka e3d7299
host changed
v-ilseka 0e2f59e
Fix Operations_List
v-ilseka 50b9456
Update dynamicstelemetry.json
v-ilseka 1e55e5e
"No Content" response added
v-ilseka e6777ac
change blobduration data type to "date-time"
v-ilseka e6f1c41
Changed blobDuration format to "format":"duration"
v-ilseka 2070c97
add 204 response to the sample
v-ilseka de12b69
fix validation error
v-ilseka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
142 changes: 142 additions & 0 deletions
142
...ry/resource-manager/Microsoft.DynamicsTelemetry/preview/2019-01-24/dynamicstelemetry.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
{ | ||
"swagger": "2.0", | ||
"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" | ||
} | ||
} | ||
}, | ||
"info": { | ||
"title": "Dynamics Telemetry", | ||
"version": "2019-01-24" | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"paths": { | ||
"/providers/Microsoft.DynamicsTelemetry/operations": { | ||
"get": { | ||
"tags": [ | ||
"Operations" | ||
], | ||
"operationId": "Operations_List", | ||
"produces": [ | ||
"application/json" | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/OperationList" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this a pageable operation? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
No |
||
} | ||
}, | ||
"204": { | ||
"description": "No Content" | ||
} | ||
}, | ||
"x-ms-examples": { | ||
"List Operations": { | ||
"$ref": "./examples/Operations_List.json" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"OperationList": { | ||
"type": "array", | ||
"description": "List of supported operations.", | ||
"items": { | ||
"$ref": "#/definitions/Operation" | ||
} | ||
}, | ||
"Operation": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": [ | ||
"isDataAction" | ||
], | ||
"properties": { | ||
"origin": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"display": { | ||
"$ref": "#/definitions/Display" | ||
}, | ||
"properties": { | ||
"$ref": "#/definitions/Properties" | ||
}, | ||
"isDataAction": { | ||
v-ilseka marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"type": "boolean" | ||
} | ||
} | ||
}, | ||
"Display": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"provider": { | ||
"type": "string" | ||
}, | ||
"resource": { | ||
"type": "string" | ||
}, | ||
"operation": { | ||
"type": "string" | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"publisher": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"Properties": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"serviceSpecification": { | ||
"$ref": "#/definitions/ServiceSpecification" | ||
} | ||
} | ||
}, | ||
"ServiceSpecification": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"logSpecifications": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/LogSpecification" | ||
} | ||
} | ||
} | ||
}, | ||
"LogSpecification": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"displayName": { | ||
"type": "string" | ||
}, | ||
"blobDuration": { | ||
"type": "string", | ||
"format": "duration" | ||
} | ||
} | ||
} | ||
} | ||
} |
95 changes: 95 additions & 0 deletions
95
...urce-manager/Microsoft.DynamicsTelemetry/preview/2019-01-24/examples/Operations_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2019-01-24" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": [{ | ||
"origin": "system", | ||
"name": "microsoft.dynamicstelemetry/tenants/providers/Microsoft.Insights/logDefinitions/read", | ||
"display": { | ||
"provider": "Microsoft Dynamics Telemetry", | ||
"resource": "Log definition", | ||
"operation": "Read tenants log definitions", | ||
"description": "Gets the available logs for tenants" | ||
}, | ||
"properties": {}, | ||
"isDataAction": false | ||
}, | ||
{ | ||
"origin": "system", | ||
"name": "microsoft.dynamicstelemetry/tenants/providers/Microsoft.Insights/diagnosticSettings/read", | ||
"display": { | ||
"provider": "Microsoft Dynamics Telemetry", | ||
"resource": "tenants", | ||
"operation": "Read diagnostic setting", | ||
"description": "Gets the diagnostic setting for the resource" | ||
}, | ||
"isDataAction": false | ||
}, | ||
{ | ||
"origin": "system", | ||
"name": "microsoft.dynamicstelemetry/tenants/providers/Microsoft.Insights/diagnosticSettings/write", | ||
"display": { | ||
"provider": "Microsoft Dynamics Telemetry", | ||
"resource": "tenants", | ||
"operation": "Write diagnostic setting", | ||
"description": "Creates or updates the diagnostic setting for the resource" | ||
}, | ||
"isDataAction": false | ||
}, | ||
{ | ||
"name": "microsoft.dynamicstelemetry/diagnosticsettings/write", | ||
"display": { | ||
"provider": "Microsoft Monitoring Insights", | ||
"resource": "Diagnostic settings", | ||
"operation": "Diagnostic settings write", | ||
"description": "Writing a diagnostic setting", | ||
"publisher": "Microsoft" | ||
}, | ||
"properties": {}, | ||
"isDataAction": false | ||
}, | ||
{ | ||
"name": "microsoft.dynamicstelemetry/diagnosticsettings/read", | ||
"display": { | ||
"provider": "Microsoft Monitoring Insights", | ||
"resource": "Diagnostic settings", | ||
"operation": "Diagnostic settings read", | ||
"description": "Reading a diagnostic setting", | ||
"publisher": "Microsoft" | ||
}, | ||
"properties": {}, | ||
"isDataAction": false | ||
}, | ||
{ | ||
"name": "microsoft.dynamicstelemetry/diagnosticsettings/delete", | ||
"display": { | ||
"provider": "Microsoft Monitoring Insights", | ||
"resource": "Diagnostic settings", | ||
"operation": "Diagnostic settings delete", | ||
"description": "Deleting a diagnostic setting", | ||
"publisher": "Microsoft" | ||
}, | ||
"properties": {}, | ||
"isDataAction": false | ||
}, | ||
{ | ||
"name": "microsoft.dynamicstelemetry/diagnosticsettingscategories/read", | ||
"display": { | ||
"provider": "Microsoft Monitoring Insights", | ||
"resource": "Diagnostic settings categories", | ||
"operation": "Diagnostic settings categories read", | ||
"description": "Reading a diagnostic setting categories", | ||
"publisher": "Microsoft" | ||
}, | ||
"properties": {}, | ||
"isDataAction": false | ||
} | ||
] | ||
|
||
}, | ||
"204": { | ||
} | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consumes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you mean - does the Operations action consumes some parameters - then no.
Otherwise please clarify your question.
Kind regards.