Skip to content

Commit

Permalink
Dev oep microsoft.open energy platform 2021 06 01 preview (#17105)
Browse files Browse the repository at this point in the history
* New Swagger Spec File

* New Swagger Example Spec File

* New Readme Config File

* New Azure AZ Readme Config File

* New Azure CLI Readme Config File

* New Go Language Readme Config File

* New Python Language Readme Config File

* New Typescript Language Readme Config File

* New C# Language Readme Config File

* Updated swagger

* adding examples

* correcting version of api

* Go readme changed

* Changing operation id Names from oepresource to energyservices

* added id for data partition name for linter to pass

* Removing stray operationsgroupget file

* lint fix

* prettier fix

* added multiapi

* testing the SDK pipeline run

* Correcting go readme and adding SDK link

* Correcting go readme and adding SDK link

* Removing ARM schema

* Using common type for availability response and request

* removing definition

* renaming definition from OEPResources to EneryServices

* correcting energy services

* Changing properties name

* Adding v3 error response

* Adding description to Data partion Names list.

* correcting energyservices to energyservice

* adding operation list reponse

* correcting ref for operationlist

* Adding examples and prettier-fix
  • Loading branch information
komakkar authored Dec 22, 2021
1 parent 7206f4d commit 23d896b
Show file tree
Hide file tree
Showing 16 changed files with 1,039 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"api-version": "2021-06-01-preview",
"body": {
"name": "sample-name",
"type": "Microsoft.OEP/oepResource"
}
},
"responses": {
"200": {
"body": {
"nameAvailable": true,
"reason": null,
"message": null
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"parameters": {
"api-version": "2021-06-01-preview",
"subscriptionId": "0000000-0000-0000-0000-000000000001",
"resourceGroupName": "DummyResourceGroupName",
"resourceName": "DummyResourceName",
"oepResource": {
"location": "West US",
"tags": {
"additionalProps1": "additional properties"
},
"properties": {
"authAppId": "sample-id",
"dataPartitionNames": [
{
"name": "dataPartition1"
},
{
"name": "dataPartition2"
}
]
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"provisioningState": "Succeeded",
"authAppId": "sample-id",
"dataPartitionNames": [
{
"name": "dataPartition1"
},
{
"name": "dataPartition2"
}
]
},
"name": "DummyResourceName",
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.OEP/oepResource/DummyResourceName",
"type": "Microsoft.OEP/oepResource",
"location": "WestUS",
"tags": {
"additionalProps1": "additional properties"
}
}
},
"201": {
"body": {
"properties": {
"provisioningState": "Accepted",
"authAppId": "sample-id",
"dataPartitionNames": [
{
"name": "dataPartition1"
},
{
"name": "dataPartition2"
}
]
},
"name": "DummyResourceName",
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.OEP/oepResource/DummyResourceName",
"type": "Microsoft.OEP/oepResource",
"location": "WestUS",
"tags": {
"additionalProps1": "additional properties"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"subscriptionId": "0000000-0000-0000-0000-000000000001",
"resourceGroupName": "DummyResourceGroupName",
"api-version": "2021-06-01-preview",
"resourceName": "DummyResourceName"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2021-06-01-preview",
"subscriptionId": "0000000-0000-0000-0000-000000000001",
"resourceGroupName": "DummyResourceGroupName",
"resourceName": "DummyResourceName"
},
"responses": {
"200": {
"headers": {},
"body": {
"properties": {
"provisioningState": "Accepted",
"authAppId": "sample-id",
"dataPartitionNames": [
{
"name": "dataPartition1"
},
{
"name": "dataPartition2"
}
]
},
"name": "DummyResourceName",
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.OEP/oepResource/DummyResourceName",
"type": "Microsoft.OEP/oepResource",
"location": "WestUS",
"tags": {
"additionalProps1": "additional properties"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"api-version": "2021-06-01-preview",
"subscriptionId": "0000000-0000-0000-0000-000000000001",
"resourceGroupName": "DummyResourceGroupName"
},
"responses": {
"200": {
"headers": {},
"body": {
"value": [
{
"properties": {
"provisioningState": "Accepted",
"authAppId": "sample-id",
"dataPartitionNames": [
{
"name": "dataPartition1"
},
{
"name": "dataPartition2"
}
]
},
"name": "DummyResourceName",
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.OEP/oepResource/DummyResourceName",
"type": "Microsoft.OEP/oepResource",
"location": "WestUS",
"tags": {
"additionalProps1": "additional properties"
}
}
],
"nextLink": ""
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"parameters": {
"api-version": "2021-06-01-preview",
"subscriptionId": "0000000-0000-0000-0000-000000000001"
},
"responses": {
"200": {
"headers": {},
"body": {
"value": [
{
"properties": {
"provisioningState": "Accepted",
"authAppId": "sample-id",
"dataPartitionNames": [
{
"name": "dataPartition1"
},
{
"name": "dataPartition2"
}
]
},
"name": "DummyResourceName",
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.OEP/oepResource/DummyResourceName",
"type": "Microsoft.OEP/oepResource",
"location": "WestUS",
"tags": {
"additionalProps1": "additional properties"
}
}
],
"nextLink": ""
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"subscriptionId": "0000000-0000-0000-0000-000000000001",
"resourceGroupName": "DummyResourceGroupName",
"resourceName": "DummyResourceName",
"api-version": "2021-06-01-preview",
"oepPatchResource": {
"tags": {
"additionalProps1": "additional properties"
}
}
},
"responses": {
"200": {
"headers": {},
"body": {
"properties": {
"provisioningState": "Success",
"authAppId": "sample-id",
"dataPartitionNames": [
{
"name": "dataPartition1"
},
{
"name": "dataPartition2"
}
]
},
"name": "DummyResourceName",
"id": "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.OEP/oepResource/DummyResourceName",
"type": "Microsoft.OEP/oepResource",
"location": "WestUS",
"tags": {
"additionalProps1": "additional properties"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
{
"parameters": {
"api-version": "2021-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.OpenEnergyPlatform/register/action",
"isDataAction": false,
"display": {
"provider": "Microsoft.OpenEnergyPlatform",
"resource": "Microsoft.OpenEnergyPlatform",
"operation": "Register the Microsoft.OpenEnergyPlatform",
"description": "Register the subscription for Microsoft.OpenEnergyPlatform"
}
},
{
"name": "Microsoft.OpenEnergyPlatform/unregister/action",
"isDataAction": false,
"display": {
"provider": "Microsoft.OpenEnergyPlatform",
"resource": "Microsoft.OpenEnergyPlatform",
"operation": "Unregister the Microsoft.OpenEnergyPlatform",
"description": "Unregister the subscription for Microsoft.OpenEnergyPlatform"
}
},
{
"name": "Microsoft.OpenEnergyPlatform/Locations/OperationStatuses/read",
"isDataAction": false,
"display": {
"provider": "Microsoft.OpenEnergyPlatform",
"resource": "Locations/OperationStatuses",
"operation": "read_OperationStatuses",
"description": "read OperationStatuses"
}
},
{
"name": "Microsoft.OpenEnergyPlatform/Locations/OperationStatuses/write",
"isDataAction": false,
"display": {
"provider": "Microsoft.OpenEnergyPlatform",
"resource": "Locations/OperationStatuses",
"operation": "write_OperationStatuses",
"description": "write OperationStatuses"
}
},
{
"name": "Microsoft.OpenEnergyPlatform/energyServices/read",
"isDataAction": false,
"display": {
"provider": "Microsoft.OpenEnergyPlatform",
"resource": "energyServices",
"operation": "OepResources_ListByResourceGroup",
"description": "Returns list of oep resources.."
}
},
{
"name": "Microsoft.OpenEnergyPlatform/energyServices/read",
"isDataAction": false,
"display": {
"provider": "Microsoft.OpenEnergyPlatform",
"resource": "energyServices",
"operation": "OepResources_ListBySubscriptionId",
"description": "Lists a collection of oep resources under the given Azure Subscription ID."
}
},
{
"name": "Microsoft.OpenEnergyPlatform/energyServices/read",
"isDataAction": false,
"display": {
"provider": "Microsoft.OpenEnergyPlatform",
"resource": "energyServices",
"operation": "OepResources_Get",
"description": "Returns oep resource for a given name."
}
},
{
"name": "Microsoft.OpenEnergyPlatform/energyServices/write",
"isDataAction": false,
"display": {
"provider": "Microsoft.OpenEnergyPlatform",
"resource": "energyServices",
"operation": "OepResources_Create",
"description": "Method that gets called if subscribed for ResourceCreationBegin trigger."
}
},
{
"name": "Microsoft.OpenEnergyPlatform/energyServices/delete",
"isDataAction": false,
"display": {
"provider": "Microsoft.OpenEnergyPlatform",
"resource": "energyServices",
"operation": "OepResources_Delete",
"description": "Deletes oep resource"
}
},
{
"name": "Microsoft.OpenEnergyPlatform/energyServices/write",
"isDataAction": false,
"display": {
"provider": "Microsoft.OpenEnergyPlatform",
"resource": "energyServices",
"operation": "OepResources_Update",
"description": "write energyServices"
}
},
{
"name": "Microsoft.OpenEnergyPlatform/Operations/read",
"isDataAction": false,
"display": {
"provider": "Microsoft.OpenEnergyPlatform",
"resource": "Operations",
"operation": "read_Operations",
"description": "read Operations"
}
},
{
"name": "Microsoft.OpenEnergyPlatform/checkNameAvailability/action",
"isDataAction": false,
"display": {
"provider": "Microsoft.OpenEnergyPlatform",
"resource": "checkNameAvailability",
"operation": "action_checkNameAvailability",
"description": "action checkNameAvailability"
}
}
]
}
}
}
}
Loading

0 comments on commit 23d896b

Please sign in to comment.