forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding new api version 2021-05-01-preview (Azure#14485)
* adding new api version 2021-05-01-preview * Addng missing bracket * Fix formatting * Formatting * Fix fields * Fix merge conflicts and systemData * Fix prettier * Fix systemData * Fix pr comments from ARM team. * Fix tab * Address ARM PR comment round 2 * Fix systemData and revert 2017-05-01-preview mistake * Fix location in samples * fix prettier * Fix type lint errors * Type fix * One last missing object type * Revert ErrorResponse change as it's breaking change Co-authored-by: Phoenix He <tih@microsoft.com>
- Loading branch information
1 parent
41306c2
commit 9e0a7ba
Showing
20 changed files
with
1,711 additions
and
1 deletion.
There are no files selected for viewing
214 changes: 214 additions & 0 deletions
214
...ager/Microsoft.Insights/preview/2021-05-01-preview/diagnosticsSettingsCategories_API.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,214 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "MonitorManagementClient", | ||
"x-ms-code-generation-settings": { | ||
"name": "MonitorManagementClient" | ||
}, | ||
"version": "2021-05-01-preview" | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"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": { | ||
"/{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories/{name}": { | ||
"get": { | ||
"tags": [ | ||
"DiagnosticSettingsCategories" | ||
], | ||
"operationId": "DiagnosticSettingsCategory_Get", | ||
"description": "Gets the diagnostic settings category for the specified resource.", | ||
"parameters": [ | ||
{ | ||
"$ref": "#/parameters/ResourceUriParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/NameParameter" | ||
} | ||
], | ||
"responses": { | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
}, | ||
"200": { | ||
"description": "Successful request to get more information about diagnostic setting category", | ||
"schema": { | ||
"$ref": "#/definitions/DiagnosticSettingsCategoryResource" | ||
} | ||
} | ||
}, | ||
"x-ms-examples": { | ||
"Gets the diagnostic setting": { | ||
"$ref": "./examples/getDiagnosticSettingsCategory.json" | ||
} | ||
} | ||
} | ||
}, | ||
"/{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories": { | ||
"get": { | ||
"tags": [ | ||
"DiagnosticSettingsCategories" | ||
], | ||
"operationId": "DiagnosticSettingsCategory_List", | ||
"description": "Lists the diagnostic settings categories for the specified resource.", | ||
"parameters": [ | ||
{ | ||
"$ref": "#/parameters/ResourceUriParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
}, | ||
"200": { | ||
"description": "Successful request to get more information about diagnostic setting category", | ||
"schema": { | ||
"$ref": "#/definitions/DiagnosticSettingsCategoryResourceCollection" | ||
} | ||
} | ||
}, | ||
"x-ms-pageable": { | ||
"nextLinkName": null | ||
}, | ||
"x-ms-examples": { | ||
"Gets the diagnostic setting": { | ||
"$ref": "./examples/listDiagnosticSettingsCategories.json" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"DiagnosticSettingsCategory": { | ||
"type": "object", | ||
"readOnly": true, | ||
"properties": { | ||
"categoryType": { | ||
"enum": [ | ||
"Metrics", | ||
"Logs" | ||
], | ||
"type": "string", | ||
"x-ms-enum": { | ||
"name": "categoryType", | ||
"modelAsString": true | ||
}, | ||
"x-nullable": false, | ||
"description": "The type of the diagnostic settings category." | ||
}, | ||
"categoryGroups": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"description": "the collection of what category groups are supported." | ||
} | ||
}, | ||
"description": "The diagnostic settings Category." | ||
}, | ||
"DiagnosticSettingsCategoryResource": { | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" | ||
} | ||
], | ||
"properties": { | ||
"properties": { | ||
"x-ms-client-flatten": true, | ||
"$ref": "#/definitions/DiagnosticSettingsCategory", | ||
"description": "The properties of a Diagnostic Settings Category." | ||
}, | ||
"systemData": { | ||
"readOnly": true, | ||
"description": "The system metadata related to this resource.", | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" | ||
} | ||
}, | ||
"description": "The diagnostic settings category resource." | ||
}, | ||
"DiagnosticSettingsCategoryResourceCollection": { | ||
"type": "object", | ||
"properties": { | ||
"value": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/DiagnosticSettingsCategoryResource" | ||
}, | ||
"description": "The collection of diagnostic settings category resources." | ||
} | ||
}, | ||
"description": "Represents a collection of diagnostic setting category resources." | ||
}, | ||
"ErrorResponse": { | ||
"description": "Describes the format of Error response.", | ||
"type": "object", | ||
"properties": { | ||
"code": { | ||
"description": "Error code", | ||
"type": "string" | ||
}, | ||
"message": { | ||
"description": "Error message indicating why the operation failed.", | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"parameters": { | ||
"ResourceUriParameter": { | ||
"name": "resourceUri", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"description": "The identifier of the resource.", | ||
"x-ms-parameter-location": "method", | ||
"x-ms-skip-url-encoding": true | ||
}, | ||
"NameParameter": { | ||
"name": "name", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"description": "The name of the diagnostic setting.", | ||
"x-ms-parameter-location": "method" | ||
} | ||
} | ||
} |
Oops, something went wrong.