From bd753ce35db488f8be5d7fd97bbf17c6306e6f0e Mon Sep 17 00:00:00 2001 From: Ajay Sainy Date: Sat, 1 May 2021 09:14:47 -0700 Subject: [PATCH] Rp saa s master (#3687) * fixing case * using generic systemData Co-authored-by: Ajay Sainy --- .../examples/StressTestDeleteExample.json | 2 - .../examples/StressTestGetExample.json | 2 - .../StressTestListBySubscriptionExample.json | 2 - .../examples/StressTestListExample.json | 2 - .../examples/StressTestPutExample.json | 5 +- .../preview/2021-01-03-preview/spec.json | 54 ++----------------- 6 files changed, 5 insertions(+), 62 deletions(-) diff --git a/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestDeleteExample.json b/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestDeleteExample.json index ace3cf99fb98..d7f4ced2b325 100644 --- a/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestDeleteExample.json +++ b/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestDeleteExample.json @@ -11,8 +11,6 @@ "id": "72f988bf-86f1-41af-91ab-2d7cd011db47", "name": "stresstest1", "type": "Microsoft.ProviderHubDevTest/stressTests", - "location": "East US", - "tags": {}, "properties": { "firstName": "FirstName", "lastName": "lastName" diff --git a/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestGetExample.json b/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestGetExample.json index 7598506d4fb5..fa4aac3c52b7 100644 --- a/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestGetExample.json +++ b/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestGetExample.json @@ -11,8 +11,6 @@ "id": "72f988bf-86f1-41af-91ab-2d7cd011db47", "name": "stresstest1", "type": "Microsoft.ProviderHubDevTest/stressTests", - "location": "East US", - "tags": {}, "properties": { "firstName": "FirstName", "lastName": "lastName" diff --git a/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestListBySubscriptionExample.json b/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestListBySubscriptionExample.json index b3708177eb88..52e1e6949ac8 100644 --- a/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestListBySubscriptionExample.json +++ b/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestListBySubscriptionExample.json @@ -11,8 +11,6 @@ "id": "72f988bf-86f1-41af-91ab-2d7cd011db47", "name": "stresstest1", "type": "Microsoft.ProviderHubDevTest/stressTests", - "location": "East US", - "tags": {}, "properties": { "firstName": "FirstName", "lastName": "lastName" diff --git a/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestListExample.json b/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestListExample.json index 7fbbbca32863..d750723c26dc 100644 --- a/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestListExample.json +++ b/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestListExample.json @@ -12,8 +12,6 @@ "id": "72f988bf-86f1-41af-91ab-2d7cd011db47", "name": "stresstest1", "type": "Microsoft.ProviderHubDevTest/stressTests", - "location": "East US", - "tags": {}, "properties": { "firstName": "FirstName", "lastName": "lastName" diff --git a/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestPutExample.json b/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestPutExample.json index ec21e611e0ae..2995e42b7b78 100644 --- a/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestPutExample.json +++ b/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/examples/StressTestPutExample.json @@ -8,8 +8,7 @@ "properties": { "firstName": "firstname", "lastName": "lastname" - }, - "location": "eastus" + } } }, "responses": { @@ -18,8 +17,6 @@ "id": "72f988bf-86f1-41af-91ab-2d7cd011db47", "name": "stresstest1", "type": "Microsoft.ProviderHubDevTest/stressTests", - "location": "East US", - "tags": {}, "properties": { "firstName": "FirstName", "lastName": "lastName" diff --git a/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/spec.json b/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/spec.json index 60edf4adf470..04539c7fb5ce 100644 --- a/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/spec.json +++ b/specification/providerhubdevtest/resource-manager/Microsoft.ProviderHubDevTest/preview/2021-01-03-preview/spec.json @@ -273,9 +273,9 @@ "description": "An Azure resource.", "properties": { "systemData": { - "$ref": "#/definitions/SystemData", - "readOnly": true, - "description": "Read only system data" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "Read only system data" }, "id": { "description": "Azure resource Id.", @@ -463,53 +463,7 @@ "readOnly": true } } - }, - "SystemData": { - "description": "Read only system data", - "type": "object", - "readOnly": true, - "properties": { - "createdBy": { - "type": "string", - "description": "An identifier for the identity that created the resource" - }, - "createdByType": { - "$ref": "#/definitions/IdentityType", - "description": "The type of identity that created the resource" - }, - "createdAt": { - "type": "string", - "format": "date-time", - "description": "The timestamp of resource creation (UTC)" - }, - "lastModifiedBy": { - "type": "string", - "description": "An identifier for the identity that last modified the resource" - }, - "lastModifiedByType": { - "$ref": "#/definitions/IdentityType", - "description": "The type of identity that last modified the resource" - }, - "lastModifiedAt": { - "type": "string", - "format": "date-time", - "description": "The timestamp of resource last modification (UTC)" - } - }}, - "IdentityType": { - "description": "The type of identity that creates/modifies resources", - "type": "string", - "enum": [ - "User", - "Application", - "ManagedIdentity", - "Key" - ], - "x-ms-enum": { - "name": "IdentityType", - "modelAsString": true - } - } + } }, "parameters": { "SubscriptionIdParameter": {