From b7050b79f9027c0ff14c92a25a2840e0248f5c95 Mon Sep 17 00:00:00 2001 From: vayada Date: Sun, 24 Jan 2021 23:20:28 -0800 Subject: [PATCH] Added examples for Microsoft.Solutions 2018-06-01 for S360 item. (#12571) * Added examples for Microsoft.Solutions 2018-06-01 for S360 item. * 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 | 37 ++++++++++++ .../examples/updateApplicationById.json | 35 ++++++++++++ .../2018-06-01/managedapplications.json | 42 +++++++++++++- 8 files changed, 273 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..c1ad3fb56744 --- /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": {} + } +} 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..f1fb09280cb5 --- /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": {} + } +} 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..f356f65167ea --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplication.json @@ -0,0 +1,37 @@ +{ + "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" + } + } + } + } +} 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..673261ecdf00 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Solutions/stable/2018-06-01/examples/updateApplicationById.json @@ -0,0 +1,35 @@ +{ + "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" + } + } + } + } +} 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" } },