Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ import "@typespec/openapi";
import "@typespec/rest";
import "./models.tsp";
import "./VolumeGroup.tsp";
import "@typespec/versioning";

using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using Azure.ClientGenerator.Core;
using TypeSpec.Versioning;

namespace Microsoft.ElasticSan;
/**
Expand Down Expand Up @@ -74,6 +76,7 @@ interface Volumes {
* Optional. Specifies that the delete operation should be a permanent delete for the soft deleted volume. The value of deleteType can only be 'permanent'.
*/
@query("deleteType")
@added(Versions.v2024_07_01_preview)
deleteType?: DeleteType;
},
Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse
Expand All @@ -91,6 +94,7 @@ interface Volumes {
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@header
@clientName("accessSoftDeletedResources", "csharp") // this could be temporary because we cannot reference this parameter through ::parameter syntax.
@added(Versions.v2024_07_01_preview)
`x-ms-access-soft-deleted-resources`?: `x-ms-access-soft-deleted-resources`;
},
Response = ArmResponse<VolumeList>
Expand All @@ -100,6 +104,7 @@ interface Volumes {
/**
* Restore Soft Deleted Volumes. The volume name is obtained by using the API to list soft deleted volumes by volume group
*/
@added(Versions.v2024_07_01_preview)
@action("restore")
@tag("Restore Volumes")
op restoreVolume is ArmResourceActionAsync<Volume, void, Volume>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ import "@typespec/openapi";
import "@typespec/rest";
import "./models.tsp";
import "./ElasticSan.tsp";
import "@typespec/versioning";

using TypeSpec.Rest;
using Azure.ClientGenerator.Core;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.Versioning;

namespace Microsoft.ElasticSan;
/**
Expand Down Expand Up @@ -86,6 +88,7 @@ interface VolumeGroups {
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@header
@clientName("accessSoftDeletedResources", "csharp") // this could be temporary because we cannot reference this parameter through ::parameter syntax.
@added(Versions.v2024_07_01_preview)
`x-ms-access-soft-deleted-resources`?: `x-ms-access-soft-deleted-resources`;
},
Response = ArmResponse<VolumeGroupList>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
{
"operationId": "ElasticSans_Create",
"parameters": {
"api-version": "2025-09-01",
"elasticSanName": "elasticsanname",
"parameters": {
"location": "France Central",
"properties": {
"autoScaleProperties": {
"scaleUpProperties": {
"autoScalePolicyEnforcement": "None",
"capacityUnitScaleUpLimitTiB": 17,
"increaseCapacityUnitByTiB": 4,
"unusedSizeTiB": 24
}
},
"availabilityZones": [
"1"
],
"baseSizeTiB": 5,
"extendedCapacitySizeTiB": 25,
"publicNetworkAccess": "Enabled",
"sku": {
"name": "Premium_LRS",
"tier": "Premium"
}
},
"tags": {
"key9316": "ihndtieqibtob"
}
},
"resourceGroupName": "resourcegroupname",
"subscriptionId": "subscriptionid"
},
"title": "ElasticSans_Create_MaximumSet_Gen",
"responses": {
"200": {
"body": {
"name": "vfoatmakv",
"type": "Microsoft.ElasticSan/ElasticSans",
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
"location": "France Central",
"properties": {
"autoScaleProperties": {
"scaleUpProperties": {
"autoScalePolicyEnforcement": "None",
"capacityUnitScaleUpLimitTiB": 17,
"increaseCapacityUnitByTiB": 4,
"unusedSizeTiB": 24
}
},
"availabilityZones": [
"1"
],
"baseSizeTiB": 15,
"extendedCapacitySizeTiB": 6,
"provisioningState": "Succeeded",
"publicNetworkAccess": "Enabled",
"sku": {
"name": "Premium_LRS",
"tier": "Premium"
},
"totalIops": 22,
"totalMBps": 4,
"totalSizeTiB": 27,
"totalVolumeSizeGiB": 15,
"volumeGroupCount": 24
},
"systemData": {
"createdAt": "2023-07-03T09:59:45.919Z",
"createdBy": "otfifnrahdshqombvtg",
"createdByType": "User",
"lastModifiedAt": "2023-07-03T09:59:45.919Z",
"lastModifiedBy": "jnaxavnlhrboshtidtib",
"lastModifiedByType": "User"
},
"tags": {
"key5002": "lhag"
}
}
},
"201": {
"body": {
"name": "vfoatmakv",
"type": "Microsoft.ElasticSan/ElasticSans",
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
"location": "France Central",
"properties": {
"autoScaleProperties": {
"scaleUpProperties": {
"autoScalePolicyEnforcement": "None",
"capacityUnitScaleUpLimitTiB": 17,
"increaseCapacityUnitByTiB": 4,
"unusedSizeTiB": 24
}
},
"availabilityZones": [
"1"
],
"baseSizeTiB": 15,
"extendedCapacitySizeTiB": 6,
"provisioningState": "Succeeded",
"publicNetworkAccess": "Enabled",
"sku": {
"name": "Premium_LRS",
"tier": "Premium"
},
"totalIops": 22,
"totalMBps": 4,
"totalSizeTiB": 27,
"totalVolumeSizeGiB": 15,
"volumeGroupCount": 24
},
"systemData": {
"createdAt": "2023-07-03T09:59:45.919Z",
"createdBy": "otfifnrahdshqombvtg",
"createdByType": "User",
"lastModifiedAt": "2023-07-03T09:59:45.919Z",
"lastModifiedBy": "jnaxavnlhrboshtidtib",
"lastModifiedByType": "User"
},
"tags": {
"key5002": "lhag"
}
},
"headers": {
"location": "https://contoso.com/operationstatus"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"operationId": "ElasticSans_Create",
"parameters": {
"api-version": "2025-09-01",
"elasticSanName": "elasticsanname",
"parameters": {
"location": "France Central",
"properties": {
"baseSizeTiB": 15,
"extendedCapacitySizeTiB": 27,
"sku": {
"name": "Premium_LRS"
}
}
},
"resourceGroupName": "resourcegroupname",
"subscriptionId": "subscriptionid"
},
"title": "ElasticSans_Create_MinimumSet_Gen",
"responses": {
"200": {
"body": {
"name": "vfoatmakv",
"type": "Microsoft.ElasticSan/ElasticSans",
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
"location": "France Central",
"properties": {
"availabilityZones": [
"1"
],
"baseSizeTiB": 15,
"extendedCapacitySizeTiB": 6,
"provisioningState": "Succeeded",
"publicNetworkAccess": "Enabled",
"sku": {
"name": "Premium_LRS",
"tier": "Premium"
},
"totalIops": 22,
"totalMBps": 4,
"totalSizeTiB": 27,
"totalVolumeSizeGiB": 15,
"volumeGroupCount": 24
},
"systemData": {
"createdAt": "2023-07-03T09:59:45.919Z",
"createdBy": "otfifnrahdshqombvtg",
"createdByType": "User",
"lastModifiedAt": "2023-07-03T09:59:45.919Z",
"lastModifiedBy": "jnaxavnlhrboshtidtib",
"lastModifiedByType": "User"
},
"tags": {
"key5002": "lhag"
}
}
},
"201": {
"body": {
"name": "vfoatmakv",
"type": "Microsoft.ElasticSan/ElasticSans",
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
"location": "France Central",
"properties": {
"availabilityZones": [
"1"
],
"baseSizeTiB": 15,
"extendedCapacitySizeTiB": 6,
"provisioningState": "Succeeded",
"publicNetworkAccess": "Enabled",
"sku": {
"name": "Premium_LRS",
"tier": "Premium"
},
"totalIops": 22,
"totalMBps": 4,
"totalSizeTiB": 27,
"totalVolumeSizeGiB": 15,
"volumeGroupCount": 24
},
"systemData": {
"createdAt": "2023-07-03T09:59:45.919Z",
"createdBy": "otfifnrahdshqombvtg",
"createdByType": "User",
"lastModifiedAt": "2023-07-03T09:59:45.919Z",
"lastModifiedBy": "jnaxavnlhrboshtidtib",
"lastModifiedByType": "User"
},
"tags": {
"key5002": "lhag"
}
},
"headers": {
"location": "https://contoso.com/operationstatus"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"operationId": "ElasticSans_Delete",
"parameters": {
"api-version": "2025-09-01",
"elasticSanName": "elasticsanname",
"resourceGroupName": "resourcegroupname",
"subscriptionId": "subscriptionid"
},
"title": "ElasticSans_Delete_MaximumSet_Gen",
"responses": {
"200": {},
"202": {
"headers": {
"location": "https://contoso.com/operationstatus"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"operationId": "ElasticSans_Delete",
"parameters": {
"api-version": "2025-09-01",
"elasticSanName": "elasticsanname",
"resourceGroupName": "resourcegroupname",
"subscriptionId": "subscriptionid"
},
"title": "ElasticSans_Delete_MinimumSet_Gen",
"responses": {
"200": {},
"202": {
"headers": {
"location": "https://contoso.com/operationstatus"
}
},
"204": {}
}
}
Loading
Loading