From 8f39ba5c8ef285bf650bcd1870eeda89cecc34fe Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Fri, 22 Jan 2021 11:38:53 -0800 Subject: [PATCH 1/2] Added examples for Microsoft.Solutions 2018-06-01 for S360 item. --- .../createOrUpdateApplicationById.json | 57 +++++++++++++++++++ .../examples/deleteApplication.json | 12 ++++ .../examples/deleteApplicationById.json | 10 ++++ .../examples/getApplicationById.json | 30 ++++++++++ .../listApplicationsBySubscription.json | 51 +++++++++++++++++ .../examples/updateApplication.json | 38 +++++++++++++ .../examples/updateApplicationById.json | 36 ++++++++++++ .../2018-06-01/managedapplications.json | 42 +++++++++++++- 8 files changed, 275 insertions(+), 1 deletion(-) create mode 100644 specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationById.json create mode 100644 specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json create mode 100644 specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json create mode 100644 specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json create mode 100644 specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsBySubscription.json create mode 100644 specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json create mode 100644 specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationById.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationById.json new file mode 100644 index 000000000000..71d06101e915 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/createOrUpdateApplicationById.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "applicationId": "myApplicationId", + "api-version": "2018-06-01", + "parameters": { + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "location": "East US 2", + "kind": "ServiceCatalog" + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json new file mode 100644 index 000000000000..32fce0c65b7e --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-06-01" + }, + "responses": { + "204": {}, + "202": {} + } + } \ No newline at end of file diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json new file mode 100644 index 000000000000..12c91133f472 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "applicationId": "myApplicationId", + "api-version": "2018-06-01" + }, + "responses": { + "204": {}, + "202": {} + } + } \ No newline at end of file diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json new file mode 100644 index 000000000000..10109822f0e7 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/getApplicationById.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "applicationId": "myApplicationId", + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + }, + "404": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsBySubscription.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsBySubscription.json new file mode 100644 index 000000000000..447651b364f0 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/listApplicationsBySubscription.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "subid", + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "location": "East US 2", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + }, + { + "name": "myManagedApplication2", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication2", + "type": "Microsoft.Solutions/applications", + "location": "West US", + "managedBy": null, + "tags": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json new file mode 100644 index 000000000000..913b358ebfd6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-06-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } + } + \ No newline at end of file diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json new file mode 100644 index 000000000000..d8393cebb502 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "applicationId": "myApplicationId", + "api-version": "2018-06-01", + "parameters": { + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" + }, + "kind": "ServiceCatalog" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" + } + } + } + } + } + \ No newline at end of file diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json index 2653ec9878f1..783627c1c356 100644 --- a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/managedapplications.json @@ -127,6 +127,11 @@ ], "operationId": "Applications_Delete", "description": "Deletes the managed application.", + "x-ms-examples": { + "Deletes a managed application": { + "$ref": "./examples/deleteApplication.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -245,6 +250,11 @@ ], "operationId": "Applications_Update", "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Updates a managed application": { + "$ref": "./examples/updateApplication.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -359,6 +369,11 @@ ], "operationId": "ApplicationDefinitions_Delete", "description": "Deletes the managed application definition.", + "x-ms-examples": { + "Deletes a managed application": { + "$ref": "./examples/deleteApplicationDefinition.json" + } + }, "parameters": [ { "name": "resourceGroupName", @@ -580,6 +595,11 @@ ], "operationId": "Applications_ListBySubscription", "description": "Gets all the applications within a subscription.", + "x-ms-examples": { + "Lists applications by subscription": { + "$ref": "./examples/listApplicationsBySubscription.json" + } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -614,6 +634,11 @@ ], "operationId": "Applications_GetById", "description": "Gets the managed application.", + "x-ms-examples": { + "Get application by id": { + "$ref": "./examples/getApplicationById.json" + } + }, "parameters": [ { "name": "applicationId", @@ -651,6 +676,11 @@ ], "operationId": "Applications_DeleteById", "description": "Deletes the managed application.", + "x-ms-examples": { + "Delete application by id": { + "$ref": "./examples/deleteApplicationById.json" + } + }, "parameters": [ { "name": "applicationId", @@ -686,6 +716,11 @@ ], "operationId": "Applications_CreateOrUpdateById", "description": "Creates a new managed application.", + "x-ms-examples": { + "Create or update application by id": { + "$ref": "./examples/createOrUpdateApplicationById.json" + } + }, "parameters": [ { "name": "applicationId", @@ -736,6 +771,11 @@ ], "operationId": "Applications_UpdateById", "description": "Updates an existing managed application. The only value that can be updated via PATCH currently is the tags.", + "x-ms-examples": { + "Update application by id": { + "$ref": "./examples/updateApplicationById.json" + } + }, "parameters": [ { "name": "applicationId", @@ -839,7 +879,7 @@ "operationId": "ApplicationDefinitions_DeleteById", "description": "Deletes the managed application definition.", "x-ms-examples": { - "Get managed application definition": { + "Delete application definition": { "$ref": "./examples/deleteApplicationDefinition.json" } }, From e87290f512c8c17de25c89286364c502fa8b01d9 Mon Sep 17 00:00:00 2001 From: Varun Kumar Yadav Date: Fri, 22 Jan 2021 11:52:25 -0800 Subject: [PATCH 2/2] Added examples for Microsoft.Solutions 2018-06-01 for S360 item. --- .../examples/deleteApplication.json | 22 +++++------ .../examples/deleteApplicationById.json | 18 ++++----- .../examples/updateApplication.json | 39 +++++++++---------- .../examples/updateApplicationById.json | 39 +++++++++---------- 4 files changed, 58 insertions(+), 60 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json index 32fce0c65b7e..c1ad3fb56744 100644 --- a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplication.json @@ -1,12 +1,12 @@ { - "parameters": { - "subscriptionId": "subid", - "resourceGroupName": "rg", - "applicationName": "myManagedApplication", - "api-version": "2018-06-01" - }, - "responses": { - "204": {}, - "202": {} - } - } \ No newline at end of file + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "applicationName": "myManagedApplication", + "api-version": "2018-06-01" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json index 12c91133f472..f1fb09280cb5 100644 --- a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/deleteApplicationById.json @@ -1,10 +1,10 @@ { - "parameters": { - "applicationId": "myApplicationId", - "api-version": "2018-06-01" - }, - "responses": { - "204": {}, - "202": {} - } - } \ No newline at end of file + "parameters": { + "applicationId": "myApplicationId", + "api-version": "2018-06-01" + }, + "responses": { + "204": {}, + "202": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json index 913b358ebfd6..f356f65167ea 100644 --- a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json @@ -12,27 +12,26 @@ "kind": "ServiceCatalog" } }, - "responses": { - "200": { - "headers": {}, - "body": { - "name": "myManagedApplication", - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", - "type": "Microsoft.Solutions/applications", - "managedBy": null, - "plan": null, - "identity": null, - "kind": "ServiceCatalog", - "sku": null, - "properties": { - "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", - "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", - "outputs": null, - "parameters": null, - "provisioningState": "Created" - } + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" } } } } - \ No newline at end of file +} diff --git a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json index d8393cebb502..673261ecdf00 100644 --- a/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json @@ -10,27 +10,26 @@ "kind": "ServiceCatalog" } }, - "responses": { - "200": { - "headers": {}, - "body": { - "name": "myManagedApplication", - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", - "type": "Microsoft.Solutions/applications", - "managedBy": null, - "plan": null, - "identity": null, - "kind": "ServiceCatalog", - "sku": null, - "properties": { - "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", - "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", - "outputs": null, - "parameters": null, - "provisioningState": "Created" - } + "responses": { + "200": { + "headers": {}, + "body": { + "name": "myManagedApplication", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applications/myManagedApplication", + "type": "Microsoft.Solutions/applications", + "managedBy": null, + "plan": null, + "identity": null, + "kind": "ServiceCatalog", + "sku": null, + "properties": { + "applicationDefinitionId": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Solutions/applicationDefinitions/myAppDef", + "managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", + "outputs": null, + "parameters": null, + "provisioningState": "Created" } } } } - \ No newline at end of file +}