-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create new resource provider hpcworkbench (#3997)
* Create new resource provider hpcworkbench * Add readme * Update readme * Hpcworkbench updates * Update readme * Update hpcworkbench * update readme * Update other readme files * Update readme * Update readme * update hpc workbench * Update hpc workbench * Update swagger * Update hpc workbench * Update hpc workbench * update hpcworkbench * Update hpcworkbench to include instance only * Update hpc workbench instance * Update missing type * update resource with system data * Update hpc workbench errors * update hpcworkbench * add only put operation * fix avacado * remove trailing comma * update hpc workbench * update hpc workbench * fix hpcworkbench * update hpcworkbench * hpcworkbench * update hpc workbench * fix hpcworkbench * update hpcworkbench * update hpc workbench * Update instances and hpc workbench * put instances * update hpc workbench * update put instances' * update put instances * put instances * update hpc workbench * update hpc workbench * hpcworkbench * update hpc workbench * update hpcworkbench * update hpc workbench * update hpcworkbench * update hpcworkbench * hpcworkbench * fix prettier Co-authored-by: Ruoxuan Wang <[email protected]>
- Loading branch information
1 parent
070336d
commit c8ec6e7
Showing
8 changed files
with
461 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...nch/resource-manager/Microsoft.HpcWorkbench/preview/2021-04-01/examples/PutInstances.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,24 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "0000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "resourceGroup", | ||
"api-version": "2021-04-01", | ||
"instance": { | ||
"properties": { | ||
"id": "0000000-0000-0000-0000-000000000001", | ||
"name": "testinstance", | ||
"type": "Microsoft.Hpcworkbench/instances", | ||
"location": "Central US", | ||
"tags": {}, | ||
"description": "this is a sample description" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"properties": {} | ||
} | ||
} | ||
} | ||
} |
285 changes: 285 additions & 0 deletions
285
...hpcworkbench/resource-manager/Microsoft.HpcWorkbench/preview/2021-04-01/hpcworkbench.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,285 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Microsoft.HpcWorkbench", | ||
"description": "Microsoft.HpcWorkbench resource provider OpenAPI Spec", | ||
"version": "2021-04-01" | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"security": [ | ||
{ | ||
"azure_auth": [ | ||
"user_impersonation" | ||
] | ||
} | ||
], | ||
"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.HpcWorkbench/operations": { | ||
"get": { | ||
"tags": [ | ||
"Operations" | ||
], | ||
"operationId": "Operations_List", | ||
"description": "Lists Operations.", | ||
"produces": [ | ||
"application/json" | ||
], | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Success" | ||
}, | ||
"default": { | ||
"description": "Default Error Response", | ||
"schema": { | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/providers/Microsoft.HpcWorkbench/instances": { | ||
"put": { | ||
"tags": [ | ||
"Instances" | ||
], | ||
"operationId": "instances_CreateOrUpdate", | ||
"description": "Creates or updates the specified instance.", | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"in": "body", | ||
"description": "instance body", | ||
"name": "body", | ||
"schema": { | ||
"$ref": "#/definitions/Instance" | ||
} | ||
} | ||
], | ||
"responses": { | ||
"201": { | ||
"description": "Success", | ||
"schema": { | ||
"$ref": "#/definitions/Instance" | ||
} | ||
}, | ||
"default": { | ||
"description": "Default Error Response", | ||
"schema": { | ||
"$ref": "#/definitions/ErrorResponse" | ||
} | ||
} | ||
}, | ||
"x-ms-long-running-operation": true, | ||
"x-ms-long-running-operation-options": { | ||
"final-state-via": "azure-async-operation" | ||
}, | ||
"x-ms-examples": { | ||
"Put Instance": { | ||
"$ref": "./examples/PutInstances.json" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"ArmId": { | ||
"description": "Structure that represents the components of an ARM Resource Identifier.", | ||
"type": "string" | ||
}, | ||
"AzureRegion": { | ||
"description": "Handles Azure Region strings by parsing either key (e.g eastus) or friendly name (e.g. East US).", | ||
"type": "string" | ||
}, | ||
"ErrorDetail": { | ||
"type": "object", | ||
"description": "The error detail.", | ||
"properties": { | ||
"code": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "The error code." | ||
}, | ||
"message": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "The error message." | ||
}, | ||
"target": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "The error target." | ||
}, | ||
"details": { | ||
"readOnly": true, | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ErrorDetail" | ||
}, | ||
"description": "The error details." | ||
}, | ||
"additionalInfo": { | ||
"readOnly": true, | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ErrorAdditionalInfo" | ||
}, | ||
"description": "The error additional info." | ||
} | ||
} | ||
}, | ||
"ErrorResponse": { | ||
"type": "object", | ||
"title": "Error response", | ||
"description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).", | ||
"properties": { | ||
"error": { | ||
"description": "The error object.", | ||
"$ref": "#/definitions/ErrorDetail" | ||
} | ||
} | ||
}, | ||
"ErrorAdditionalInfo": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "The additional info type." | ||
}, | ||
"info": { | ||
"readOnly": true, | ||
"type": "object", | ||
"description": "The additional info." | ||
} | ||
}, | ||
"description": "The resource management error additional info." | ||
}, | ||
"Resource": { | ||
"type": "object", | ||
"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": { | ||
"type": "string", | ||
"description": "Resource location." | ||
}, | ||
"tags": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"description": "Resource tags." | ||
}, | ||
"systemData": { | ||
"description": "system data", | ||
"title": "system data", | ||
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" | ||
} | ||
}, | ||
"description": "Common resource representation.", | ||
"x-ms-azure-resource": true | ||
}, | ||
"InstancePropertiesFormat": { | ||
"type": "object", | ||
"properties": { | ||
"sku": { | ||
"type": "string", | ||
"description": "Sku of the instance." | ||
}, | ||
"environment": { | ||
"type": "string", | ||
"description": "Environment of the instance." | ||
} | ||
}, | ||
"description": "Instance properties." | ||
}, | ||
"Instance": { | ||
"type": "object", | ||
"properties": { | ||
"properties": { | ||
"x-ms-client-flatten": true, | ||
"$ref": "#/definitions/InstancePropertiesFormat", | ||
"description": "Nat Gateway properties." | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/Resource" | ||
} | ||
], | ||
"description": "Instance resource" | ||
}, | ||
"InstanceListResult": { | ||
"type": "object", | ||
"properties": { | ||
"value": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/Instance" | ||
}, | ||
"description": "A list of Instances that exists in a resource group." | ||
}, | ||
"nextLink": { | ||
"type": "string", | ||
"description": "The URL to get the next set of results." | ||
} | ||
}, | ||
"description": "Response for ListInstances API service call." | ||
} | ||
}, | ||
"tags": [ | ||
{ | ||
"name": "Instances", | ||
"description": "API Methods for interacting with HPC Workbench instances." | ||
} | ||
] | ||
} |
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 @@ | ||
## CLI Common Settings for all the command line tools |
15 changes: 15 additions & 0 deletions
15
specification/hpcworkbench/resource-manager/readme.csharp.md
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,15 @@ | ||
## C# | ||
|
||
These settings apply only when `--csharp` is specified on the command line. | ||
Please also specify `--csharp-sdks-folder=<path to "SDKs" directory of your azure-sdk-for-net clone>`. | ||
|
||
```yaml $(csharp) | ||
csharp: | ||
azure-arm: true | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
payload-flattening-threshold: 1 | ||
clear-output-folder: true | ||
client-side-validation: false | ||
namespace: Microsoft.HpcWorkbench | ||
output-folder: $(csharp-sdks-folder)/hpcworkbench/management/Microsoft.HpcWorkbench/GeneratedProtocol | ||
``` |
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,16 @@ | ||
## Go | ||
|
||
These settings apply only when `--go` is specified on the command line. | ||
|
||
```yaml $(go) | ||
go: | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
namespace: hpcworkbench | ||
clear-output-folder: true | ||
``` | ||
### Go multi-api | ||
``` yaml $(go) && $(multiapi) | ||
batch: | ||
- tag: package-2021-03-01-preview |
Oops, something went wrong.