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

fix-monitor-modelerfour-issue-in-sdk-generation #15785

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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 @@ -47,7 +47,7 @@
},
"parameters": [
{
"$ref": "#/parameters/ResourceGroupNameParameter"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ActionGroupNameParameter"
Expand Down Expand Up @@ -84,7 +84,7 @@
"default": {
"description": "An error occurred and the action group could not be created or updated.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
Expand All @@ -99,7 +99,7 @@
},
"parameters": [
{
"$ref": "#/parameters/ResourceGroupNameParameter"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ActionGroupNameParameter"
Expand All @@ -121,7 +121,7 @@
"default": {
"description": "An error occurred and the action group could not be retrieved. 404: The action group does not exist.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
Expand All @@ -136,7 +136,7 @@
},
"parameters": [
{
"$ref": "#/parameters/ResourceGroupNameParameter"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ActionGroupNameParameter"
Expand All @@ -158,7 +158,7 @@
"default": {
"description": "An error occurred and the action group could not be deleted.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
Expand All @@ -171,7 +171,7 @@
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ActionGroupNameParameter"
Expand All @@ -193,7 +193,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
},
"200": {
Expand Down Expand Up @@ -240,7 +240,7 @@
"default": {
"description": "An error occurred and the list of action groups could not be retrieved.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
Expand All @@ -260,7 +260,7 @@
},
"parameters": [
{
"$ref": "#/parameters/ResourceGroupNameParameter"
"$ref":"../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
Expand All @@ -279,7 +279,7 @@
"default": {
"description": "An error occurred and the list of action groups could not be retrieved.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
Expand All @@ -296,7 +296,7 @@
},
"parameters": [
{
"$ref": "#/parameters/ResourceGroupNameParameter"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ActionGroupNameParameter"
Expand Down Expand Up @@ -327,67 +327,19 @@
"default": {
"description": "An error occurred and the receiver could not be enabled, e.g.: 404: The action group was not found or no matching receiver was found in the action group.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
}
}
},
"definitions": {
"AzureResource": {
"properties": {
"id": {
"type": "string",
"readOnly": true,
"description": "Azure resource Id"
},
"name": {
"type": "string",
"readOnly": true,
"description": "Azure resource name"
},
"type": {
"type": "string",
"readOnly": true,
"description": "Azure resource type"
},
"kind": {
"type": "string",
"readOnly": true,
"description": "Azure resource kind"
},
"identity": {
"type": "string",
"readOnly": true,
"description": "Azure resource identity"
},
"location": {
"type": "string",
"description": "Resource location",
"x-ms-mutability": [
"create",
"read"
]
},
"tags": {
"additionalProperties": {
"type": "string"
},
"description": "Resource tags"
}
},
"required": [
"location"
],
"x-ms-azure-resource": true,
"description": "An azure resource object"
},
"ActionGroupResource": {
"description": "An action group resource.",
"allOf": [
{
"$ref": "#/definitions/AzureResource"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource"
}
],
"properties": {
Expand Down Expand Up @@ -796,20 +748,6 @@
"receiverName"
]
},
"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"
}
}
},
"ActionGroupPatchBody": {
"description": "An action group object for the body of patch operations.",
"properties": {
Expand Down Expand Up @@ -838,14 +776,6 @@
}
},
"parameters": {
"ResourceGroupNameParameter": {
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group.",
"x-ms-parameter-location": "method"
},
"ActionGroupNameParameter": {
"name": "actionGroupName",
"in": "path",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"default": {
"description": "An error occurred and the Activity Log Alert rule could not be created or updated.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
Expand Down Expand Up @@ -128,7 +128,7 @@
"default": {
"description": "An error occurred and the Activity Log Alert rule could not be retrieved.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
Expand Down Expand Up @@ -165,7 +165,7 @@
"default": {
"description": "An error occurred and the Activity Log Alert rule could not be deleted.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
Expand Down Expand Up @@ -211,7 +211,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
Expand Down Expand Up @@ -247,7 +247,7 @@
"default": {
"description": "An error occurred and the list of Activity Log Alert rules could not be retrieved.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
Expand Down Expand Up @@ -286,57 +286,19 @@
"default": {
"description": "An error occurred and the list of Activity Log Alert rules could not be retrieved.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
}
}
},
"definitions": {
"AzureResource": {
"description": "An Azure resource object.",
"x-ms-azure-resource": true,
"type": "object",
"properties": {
"id": {
"description": "The resource Id.",
"type": "string",
"readOnly": true
},
"name": {
"description": "The name of the resource.",
"type": "string",
"readOnly": true
},
"type": {
"description": "The type of the resource.",
"type": "string",
"readOnly": true
},
"location": {
"description": "The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be 'global'.",
"type": "string",
"default": "global",
"x-ms-mutability": [
"read",
"create"
]
},
"tags": {
"description": "The tags of the resource.",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"ActivityLogAlertResource": {
"description": "An Activity Log Alert rule resource.",
"allOf": [
{
"$ref": "#/definitions/AzureResource"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource"
}
],
"properties": {
Expand Down Expand Up @@ -461,12 +423,12 @@
"description": "The list of the Action Groups.",
"type": "array",
"items": {
"$ref": "#/definitions/ActionGroup"
"$ref": "#/definitions/ActionGroupV2"
}
}
}
},
"ActionGroup": {
"ActionGroupV2": {
"description": "A pointer to an Azure Action Group.",
"properties": {
"actionGroupId": {
Expand Down Expand Up @@ -509,22 +471,6 @@
"default": true
}
}
},
"ErrorResponse": {
"description": "The error response.",
"type": "object",
"properties": {
"code": {
"description": "The error code.",
"type": "string",
"readOnly": true
},
"message": {
"description": "The error message indicating why the operation failed.",
"type": "string",
"readOnly": true
}
}
}
},
"parameters": {
Expand Down
Loading