Skip to content

Commit

Permalink
adding new api version 2021-05-01-preview (Azure#14485)
Browse files Browse the repository at this point in the history
* 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
2 people authored and mkarmark committed Jul 20, 2021
1 parent 4e7f145 commit c151bc1
Show file tree
Hide file tree
Showing 20 changed files with 1,711 additions and 1 deletion.
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"
}
}
}
Loading

0 comments on commit c151bc1

Please sign in to comment.