Skip to content

Commit

Permalink
Updating to use common types and fixing Service 360 violation. (Azure…
Browse files Browse the repository at this point in the history
…#11902)

* updating to common types

* fixing prettier check error

* addressing PR feedback

* fixing prettier error

Co-authored-by: Alex Dubinkov <alexdu@microsoft.com>
Co-authored-by: Arcturus Zhang <dapzhang@microsoft.com>
  • Loading branch information
3 people authored Jan 15, 2021
1 parent fc21882 commit 0ea4943
Showing 1 changed file with 22 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
],
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ProfileNameParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
Expand All @@ -41,7 +41,7 @@
"default": {
"description": "Error response describing why the operation failed",
"schema": {
"$ref": "#/definitions/Error"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
},
Expand All @@ -66,13 +66,13 @@
],
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ProfileNameParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"in": "body",
Expand All @@ -93,7 +93,7 @@
"default": {
"description": "Error response describing why the operation failed",
"schema": {
"$ref": "#/definitions/Error"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -121,13 +121,13 @@
],
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ProfileNameParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"in": "body",
Expand All @@ -148,7 +148,7 @@
"default": {
"description": "Error response describing why the operation failed",
"schema": {
"$ref": "#/definitions/Error"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
},
Expand All @@ -172,13 +172,13 @@
],
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ProfileNameParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
Expand All @@ -191,7 +191,7 @@
"default": {
"description": "Error response describing why the operation failed",
"schema": {
"$ref": "#/definitions/Error"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
},
Expand All @@ -215,7 +215,7 @@
],
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"in": "query",
Expand All @@ -234,7 +234,7 @@
"default": {
"description": "Error response describing why the operation failed",
"schema": {
"$ref": "#/definitions/Error"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -371,7 +371,7 @@
"type": "object",
"allOf": [
{
"$ref": "#/definitions/ProxyResource"
"$ref": "#/definitions/ExtendedProxyResource"
}
],
"properties": {
Expand All @@ -383,24 +383,15 @@
}
}
},
"ProxyResource": {
"ExtendedProxyResource": {
"description": "An Azure resource.",
"type": "object",
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource"
}
],
"properties": {
"id": {
"description": "Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.",
"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
},
"systemData": {
"$ref": "#/definitions/SystemData"
}
Expand Down Expand Up @@ -458,19 +449,6 @@
"type": "string"
}
}
},
"Error": {
"description": "Unexpected Microsoft.ChangeAnalysis Resource Provider Error.",
"properties": {
"code": {
"description": "Error code.",
"type": "string"
},
"message": {
"description": "Error message.",
"type": "string"
}
}
}
},
"parameters": {
Expand All @@ -482,20 +460,6 @@
"type": "string",
"pattern": "^(?!.*-$)[^-][a-zA-Z0-9-]*$",
"x-ms-parameter-location": "method"
},
"SubscriptionIdParameter": {
"in": "path",
"name": "subscriptionId",
"description": "The Microsoft Azure subscription ID.",
"required": true,
"type": "string"
},
"ApiVersionParameter": {
"in": "query",
"name": "api-version",
"description": "The resource provider API version.",
"required": true,
"type": "string"
}
},
"securityDefinitions": {
Expand Down

0 comments on commit 0ea4943

Please sign in to comment.