diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-06-15-preview/examples/HanaInstances_Get.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-06-15-preview/examples/HanaInstances_Get.json deleted file mode 100644 index 09db97420a75..000000000000 --- a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-06-15-preview/examples/HanaInstances_Get.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "api-version": "2017-06-15-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "hanaInstanceName": "myHanaInstance" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/hanaInstances/myHanaInstance", - "name": "myHanaInstance", - "type": "Microsoft.HanaOnAzure/hanaInstances", - "location": "westus", - "tags": { - "key": "value" - }, - "properties": { - "hardwareType": "Cisco_UCS", - "hanaInstanceGenericProperties": { - "key_1": "value_1", - "key_2": "value_2", - "key_n": "value_n" - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-06-15-preview/examples/HanaInstances_List.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-06-15-preview/examples/HanaInstances_List.json deleted file mode 100644 index 39307ccf8d5a..000000000000 --- a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-06-15-preview/examples/HanaInstances_List.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "parameters": { - "api-version": "2017-06-15-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup1/providers/Microsoft.HanaOnAzure/hanaInstances/myHanaInstance1", - "name": "myHanaInstance1", - "type": "Microsoft.HanaOnAzure/hanaInstances", - "location": "westus", - "tags": { - "key": "value" - }, - "properties": { - "hardwareType": "Cisco_UCS", - "hanaInstanceGenericProperties": { - "key_1": "value_1", - "key_2": "value_2", - "key_n": "value_n" - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup2/providers/Microsoft.HanaOnAzure/hanaInstances/myHanaInstance2", - "name": "myHanaInstance2", - "type": "Microsoft.HanaOnAzure/hanaInstances", - "location": "westus", - "tags": { - "key": "value" - }, - "properties": { - "hardwareType": "Cisco_UCS", - "hanaInstanceGenericProperties": { - "key_1": "value_1", - "key_2": "value_2", - "key_n": "value_n" - } - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-06-15-preview/examples/HanaInstances_ListByResourceGroup.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-06-15-preview/examples/HanaInstances_ListByResourceGroup.json deleted file mode 100644 index d20fba5a023e..000000000000 --- a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-06-15-preview/examples/HanaInstances_ListByResourceGroup.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "api-version": "2017-06-15-preview", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/hanaInstances/myHanaInstance1", - "name": "myHanaInstance1", - "type": "Microsoft.HanaOnAzure/hanaInstances", - "location": "westus", - "tags": { - "key": "value" - }, - "properties": { - "hardwareType": "Cisco_UCS", - "hanaInstanceGenericProperties": { - "key_1": "value_1", - "key_2": "value_2", - "key_n": "value_n" - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/hanaInstances/myHanaInstance2", - "name": "myHanaInstance2", - "type": "Microsoft.HanaOnAzure/hanaInstances", - "location": "westus", - "tags": { - "key": "value" - }, - "properties": { - "hardwareType": "Cisco_UCS", - "hanaInstanceGenericProperties": { - "key_1": "value_1", - "key_2": "value_2", - "key_n": "value_n" - } - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-06-15-preview/examples/HanaOperations_List.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-06-15-preview/examples/HanaOperations_List.json deleted file mode 100644 index 9e641780564a..000000000000 --- a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-06-15-preview/examples/HanaOperations_List.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "api-version": "2017-06-15-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "HanaOp1", - "display": { - "provider": "HanaOp1ProviderName", - "resource": "HanaOp1ResourceName", - "operation": "HanaOp1OperationName", - "description": "HanaOp1Description", - "origin": "HanaOp1Origin" - } - }, - { - "name": "HanaOp2", - "display": { - "provider": "HanaOp2ProviderName", - "resource": "HanaOp2ResourceName", - "operation": "HanaOp2OperationName", - "description": "HanaOp2Description", - "origin": "HanaOp2Origin" - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-06-15-preview/hanaonazure.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-06-15-preview/hanaonazure.json deleted file mode 100644 index c3e62c3a3240..000000000000 --- a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2017-06-15-preview/hanaonazure.json +++ /dev/null @@ -1,392 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "HanaManagementClient", - "description": "The SAP HANA on Azure Management Client.", - "version": "2017-06-15-preview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/providers/Microsoft.HanaOnAzure/operations": { - "get": { - "tags": [ - "HanaOnAzure" - ], - "operationId": "Operations_List", - "description": "Gets a list of SAP HANA management operations.", - "x-ms-examples": { - "List all HANA management operations supported by HANA RP": { - "$ref": "./examples/HanaOperations_List.json" - } - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OperationList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.HanaOnAzure/hanaInstances": { - "get": { - "tags": [ - "HanaOnAzure" - ], - "operationId": "HanaInstances_List", - "summary": "Gets a list of SAP HANA instances in the specified subscription.", - "description": "Gets a list of SAP HANA instances in the specified subscription. The operations returns various properties of each SAP HANA on Azure instance.", - "x-ms-examples": { - "List all HANA instances in a subscription": { - "$ref": "./examples/HanaInstances_List.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/HanaInstancesListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/hanaInstances": { - "get": { - "tags": [ - "HanaOnAzure" - ], - "operationId": "HanaInstances_ListByResourceGroup", - "summary": "Gets a list of SAP HANA instances in the specified subscription and the resource group.", - "description": "Gets a list of SAP HANA instances in the specified subscription and the resource group. The operations returns various properties of each SAP HANA on Azure instance.", - "x-ms-examples": { - "List all HANA instances in a resource group": { - "$ref": "./examples/HanaInstances_ListByResourceGroup.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/HanaInstancesListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/hanaInstances/{hanaInstanceName}": { - "get": { - "tags": [ - "HanaOnAzure" - ], - "operationId": "HanaInstances_Get", - "summary": "Gets properties of a SAP HANA instance.", - "description": "Gets properties of a SAP HANA instance for the specified subscription, resource group, and instance name.", - "x-ms-examples": { - "Get properties of a HANA instance": { - "$ref": "./examples/HanaInstances_Get.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/HanaInstanceNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/HanaInstance" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - } - }, - "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" - }, - "location": { - "readOnly": true, - "type": "string", - "description": "Resource location" - }, - "tags": { - "readOnly": true, - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "x-ms-azure-resource": true - }, - "HanaInstancesListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/HanaInstance" - }, - "description": "The list of SAP HANA on Azure instances." - }, - "nextLink": { - "type": "string", - "description": "The URL to get the next set of HANA instances." - } - }, - "description": "The response from the List HANA Instances operation." - }, - "HanaInstance": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/HanaInstanceProperties", - "description": "HANA instance properties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "HANA instance info on Azure (ARM properties and HANA properties)" - }, - "HanaInstanceProperties": { - "properties": { - "hardwareType" : { - "readOnly": true, - "type": "string", - "enum": [ - "Cisco_UCS" - ], - "x-ms-enum": { - "name": "HanaHardwareTypeNamesEnum", - "modelAsString": true - }, - "description": "Name of the hardware type (vendor and/or thrie product name)" - }, - "hanaInstanceGenericProperties": { - "type": "object", - "description": "Properties of an SAP HANA on Azure instance. Currently an arbitrary JSON object because the RP is currently in active design and development." - } - }, - "description": "HANA instance properties" - }, - "OperationList": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "description": "List of HANA operations" - } - }, - "description": "List of HANA operations" - }, - "Operation": { - "type": "object", - "properties": { - "name": { - "readOnly": true, - "type": "string", - "description": "The name of the operation being performed on this particular object. This name should match the action name that appears in RBAC / the event service." - }, - "display": { - "$ref": "#/definitions/Display", - "description": "Displayed HANA operation information" - } - }, - "description": "HANA operation information" - }, - "Display": { - "type": "object", - "properties": { - "provider": { - "readOnly": true, - "type": "string", - "description": "The localized friendly form of the resource provider name. This form is also expected to include the publisher/company responsible. Use Title Casing. Begin with “Microsoft” for 1st party services." - }, - "resource": { - "readOnly": true, - "type": "string", - "description": "The localized friendly form of the resource type related to this action/operation. This form should match the public documentation for the resource provider. Use Title Casing. For examples, refer to the “name” section." - }, - "operation": { - "readOnly": true, - "type": "string", - "description": "The localized friendly name for the operation as shown to the user. This name should be concise (to fit in drop downs), but clear (self-documenting). Use Title Casing and include the entity/resource to which it applies." - }, - "description": { - "readOnly": true, - "type": "string", - "description": "The localized friendly description for the operation as shown to the user. This description should be thorough, yet concise. It will be used in tool-tips and detailed views." - }, - "origin": { - "readOnly": true, - "type": "string", - "description": "The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. Default value is 'user,system'" - } - }, - "description": "Detailed HANA operation information" - }, - "ErrorResponse": { - "description": "Describes the format of Error response.", - "type": "object", - "properties": { - "code": { - "description": "Error code", - "type": "string" - }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string" - } - } - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Subscription ID which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "Name of the resource group.", - "x-ms-parameter-location": "method" - }, - "HanaInstanceNameParameter": { - "name": "hanaInstanceName", - "in": "path", - "required": true, - "type": "string", - "description": "Name of the SAP HANA on Azure instance.", - "x-ms-parameter-location": "method" - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client API version." - } - } -} \ No newline at end of file diff --git a/specification/hanaonazure/resource-manager/readme.md b/specification/hanaonazure/resource-manager/readme.md index 4ab32c50b839..87124a0d34bc 100644 --- a/specification/hanaonazure/resource-manager/readme.md +++ b/specification/hanaonazure/resource-manager/readme.md @@ -42,16 +42,6 @@ input-file: - Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json ``` -### Tag: package-2017-06 - -These settings apply only when `--tag=package-2017-06` is specified on the command line. - -``` yaml $(tag) == 'package-2017-06' -input-file: -- Microsoft.HanaOnAzure/preview/2017-06-15-preview/hanaonazure.json -``` - - # Code Generation @@ -110,7 +100,6 @@ These settings apply only when `--go` is specified on the command line. ``` yaml $(go) && $(multiapi) batch: - - tag: package-2017-06 - tag: package-2017-11 ``` @@ -123,16 +112,6 @@ Please also specify `--go-sdk-folder=`. - -``` yaml $(tag) == 'package-2017-06' && $(go) -output-folder: $(go-sdk-folder)/services/hanaonazure/mgmt/2017-06-15-preview/hanaonazure -``` - - ## Java These settings apply only when `--java` is specified on the command line.