-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified rule to check proxy resources, with adding more top level pr…
…operties to the check tracked resouces (#769)
- Loading branch information
1 parent
6b44e59
commit 90c5153
Showing
4 changed files
with
411 additions
and
25 deletions.
There are no files selected for viewing
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
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
166 changes: 166 additions & 0 deletions
166
packages/rulesets/src/native/tests/resources/arm-resource-properties-bag-proxy-resource.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,166 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Microsoft Azure Redis Cache Management API", | ||
"description": "Some cool documentation.", | ||
"version": "2014-04-01-preview" | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"basePath": "/", | ||
"produces": [ | ||
"application/json" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"paths": { | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{name}/Res": { | ||
"get": { | ||
"tags": [ | ||
"Redis" | ||
], | ||
"operationId": "Redis_get", | ||
"description": "gets a Redis cache.", | ||
"parameters": [ | ||
{ | ||
"name": "name", | ||
"type": "string", | ||
"required": true, | ||
"description": "redis cache to get", | ||
"in": "path" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "the resource", | ||
"schema": { | ||
"$ref": "#/definitions/TempResource" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{name}": { | ||
"patch": { | ||
"tags": [ | ||
"Redis" | ||
], | ||
"operationId": "Redis_update", | ||
"description": "gets a Redis cache.", | ||
"parameters": [ | ||
{ | ||
"name": "tag", | ||
"type": "string", | ||
"required": true, | ||
"description": "tag to update" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "the resource patched", | ||
"schema": { | ||
"$ref": "#/definitions/TempResource" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/operations": { | ||
"get": { | ||
"summary": "Lists all foo.", | ||
"description": "foo", | ||
"operationId": "Operations_List", | ||
"parameters": [ | ||
{ | ||
"name": "limit", | ||
"type": "string", | ||
"description": "foo" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/OperationsListResult" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"Resource": { | ||
"description": "The Resource model definition.", | ||
"properties": { | ||
"id": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "Resource Id" | ||
}, | ||
"name": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "Resource name" | ||
}, | ||
"type": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "Resource type" | ||
} | ||
}, | ||
"x-ms-azure-resource": true | ||
}, | ||
"TempResource": { | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/Resource" | ||
} | ||
], | ||
"description": "temporary resource", | ||
"properties": { | ||
"prop0": { | ||
"type": "string" | ||
}, | ||
"properties": { | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "some dummy name" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"OperationsListResult": { | ||
"description": "List of operations", | ||
"properties": { | ||
"value": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"description": "List of Operations" | ||
} | ||
} | ||
} | ||
}, | ||
"parameters": { | ||
"SubscriptionIdParamterer": { | ||
"name": "subscriptionId", | ||
"in": "path", | ||
"description": "Subscription ID.", | ||
"required": true, | ||
"type": "string" | ||
}, | ||
"ApiVersionParameter": { | ||
"name": "apiVersion", | ||
"in": "path", | ||
"description": "API ID.", | ||
"required": true, | ||
"type": "string" | ||
} | ||
} | ||
} |
Oops, something went wrong.