Skip to content

Commit

Permalink
Wandisco.Fusion Add 2021-05-01-preview API (Refactoring of 2021-02-01…
Browse files Browse the repository at this point in the history
…-preview) (#4228)

* Copy of 2021-02-01-preview to 2021-05-01-preview

* Introduced Wandisco.Fusion 2021-05-01-preview API.

This is a refactoring of 2021-02-01-preview, but remains
functionally equivalent.

* Addressed Avocado errors from Azure pipeline for Wandisco.Fusion.

* Wandisco.Fusion syncing swagger definitions
  • Loading branch information
dafunker authored Sep 13, 2021
1 parent f6b2074 commit 6c7bc1e
Show file tree
Hide file tree
Showing 101 changed files with 10,901 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
{
"swagger": "2.0",
"info": {
"title": "WANDisco Fusion",
"description": "WANDisco Fusion",
"version": "2021-05-01-preview"
},
"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": {},
"definitions": {
"TagsUpdate": {
"description": "Resource tags",
"type": "object",
"properties": {
"tags": {
"description": "resource tags.",
"type": "object",
"readOnly": false,
"additionalProperties": {
"type": "string"
}
}
}
},
"FrpResource": {
"description": "An Azure resource.",
"type": "object",
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Resource"
}
],
"properties": {
"location": {
"description": "Location of the resource.",
"type": "string",
"readOnly": false,
"x-ms-mutability": [
"read",
"create"
]
},
"tags": {
"description": "resource tags.",
"type": "object",
"readOnly": false,
"additionalProperties": {
"type": "string"
}
},
"systemData": {
"title": "SystemData",
"description": "System metadata for Resource",
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData",
"readOnly": true
}
},
"x-ms-azure-resource": true
},
"FrpProxyResource": {
"title": "Proxy resource type",
"description": "An azure proxy resource",
"type": "object",
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource"
}
],
"properties": {
"systemData": {
"title": "SystemData",
"description": "System metadata for Resource",
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData",
"readOnly": true
}
},
"x-ms-azure-resource": true
},
"Allowance": {
"description": "The remaining allowance included as part of any plan for a resource",
"type": "object",
"properties": {
"remainingData": {
"description": "The number of MBs remaining",
"type": "integer",
"format": "int64",
"readOnly": true
}
}
},
"ProvisioningState": {
"type": "string",
"description": "The possible Provisioning States",
"enum": [
"Accepted",
"Canceled",
"Succeeded",
"Failed",
"Deleting",
"NotSpecified"
],
"x-ms-enum": {
"name": "ProvisioningState",
"modelAsString": false
},
"readOnly": true
},
"Plan": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "A user defined name of the 3rd Party Artifact that is being procured."
},
"publisher": {
"type": "string",
"description": "The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic"
},
"product": {
"type": "string",
"description": "The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. "
},
"promotionCode": {
"type": "string",
"description": "A publisher provided promotion code as provisioned in Data Market for the said product/artifact."
},
"version": {
"type": "string",
"description": "The version of the desired product/artifact."
}
},
"description": "Plan for the resource.",
"required": [
"name",
"publisher",
"product"
]
}
},
"parameters": {
"SubscriptionIdParameter": {
"name": "subscriptionId",
"in": "path",
"required": true,
"type": "string",
"description": "The Azure subscription ID."
},
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"description": "Client Api Version."
},
"ResourceGroupNameParameter": {
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the resource group.",
"x-ms-parameter-location": "method"
},
"LocationNameParameter": {
"name": "locationName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the location",
"x-ms-parameter-location": "method"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "fusionGroupTestRG",
"fusionGroupName": "fusionGroupName",
"api-version": "2021-05-01-preview",
"azureZoneName": "azureZoneCreate",
"azureZone": {
"location": "East US",
"properties": {
"virtualNetworkId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/fusionGroupTestRG/providers/Microsoft.Network/virtualNetworks/my-vnet",
"subnet": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/DEV/providers/Microsoft.Network/virtualNetworks/my-vnet/subnets/azureZoneSub",
"vmSize": "Small",
"storageAccountId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/fusionGroupTestRG/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
"storageAccessKey": "azureStorageAccessKey",
"storageContainer": "azureZoneStorageContainer"
},
"tags": {
"tagKey1": "TagValue1"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/fusionGroupTestRG/providers/Wandisco.Fusion/fusionGroups/fusionGroupName/azureZones/azureZoneName",
"name": "azureZoneCreate",
"properties": {
"virtualNetworkId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/fusionGroupTestRG/providers/Microsoft.Network/virtualNetworks/my-vnet",
"subnet": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/DEV/providers/Microsoft.Network/virtualNetworks/my-vnet/subnets/azureZoneSub",
"vmSize": "Small",
"storageAccountId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/fusionGroupTestRG/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
"storageContainer": "azureZoneStorageContainer",
"provisioningState": "Accepted"
},
"location": "East US",
"type": "Wandisco.Fusion/fusionGroups/azureZones",
"tags": {
"tagKey1": "TagValue1"
},
"systemData": {
"createdBy": "00000000-1111-2222-3333-444444444444",
"createdByType": "User",
"createdAt": "2021-01-13T18:40:37.4690314Z",
"lastModifiedBy": "00000000-1111-2222-3333-444444444444",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-01-13T18:40:37.4690314Z"
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/fusionGroupTestRG/providers/Wandisco.Fusion/fusionGroups/fusionGroupName/azureZones/azureZoneName",
"name": "azureZoneCreate",
"properties": {
"virtualNetworkId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/fusionGroupTestRG/providers/Microsoft.Network/virtualNetworks/my-vnet",
"subnet": "azureZoneSub",
"vmSize": "Small",
"storageAccountId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/fusionGroupTestRG/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
"storageContainer": "azureZoneStorageContainer",
"provisioningState": "Accepted"
},
"location": "East US",
"type": "Wandisco.Fusion/fusionGroups/azureZones",
"tags": {
"tagKey1": "TagValue1"
},
"systemData": {
"createdBy": "00000000-1111-2222-3333-444444444444",
"createdByType": "User",
"createdAt": "2021-01-13T18:40:37.4690314Z",
"lastModifiedBy": "00000000-1111-2222-3333-444444444444",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-01-13T18:40:37.4690314Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "fusionGroupTestRG",
"fusionGroupName": "fusionGroupName",
"api-version": "2021-05-01-preview",
"azureZoneName": "azureZoneCreate",
"azureZone": {
"location": "East US",
"properties": {
"virtualNetworkId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/fusionGroupTestRG/providers/Microsoft.Network/virtualNetworks/my-vnet",
"subnet": "azureZoneSub",
"vmSize": "Small",
"storageAccountId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/fusionGroupTestRG/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
"storageAccessKey": "azureStorageAccessKey",
"storageContainer": "azureZoneStorageContainer",
"nodeCount": 3
},
"tags": {
"tagKey1": "TagValue1"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/fusionGroupTestRG/providers/Wandisco.Fusion/fusionGroups/fusionGroupName/azureZones/azureZoneName",
"name": "azureZoneCreate",
"properties": {
"virtualNetworkId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/fusionGroupTestRG/providers/Microsoft.Network/virtualNetworks/my-vnet",
"subnet": "azureZoneSub",
"vmSize": "Small",
"storageAccountId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/fusionGroupTestRG/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
"storageContainer": "azureZoneStorageContainer",
"nodeCount": 3,
"provisioningState": "Succeeded"
},
"location": "East US",
"type": "Wandisco.Fusion/fusionGroups/azureZones",
"tags": {
"tagKey1": "TagValue1"
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/fusionGroupTestRG/providers/Wandisco.Fusion/fusionGroups/fusionGroupName/azureZones/azureZoneName",
"name": "azureZoneCreate",
"properties": {
"virtualNetworkId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/fusionGroupTestRG/providers/Microsoft.Network/virtualNetworks/my-vnet",
"subnet": "azureZoneSub",
"vmSize": "Small",
"storageAccountId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/fusionGroupTestRG/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
"storageContainer": "azureZoneStorageContainer",
"nodeCount": 3,
"provisioningState": "Accepted"
},
"location": "East US",
"type": "Wandisco.Fusion/fusionGroups/azureZones",
"tags": {
"tagKey1": "TagValue1"
}
}
}
}
}
Loading

0 comments on commit 6c7bc1e

Please sign in to comment.