diff --git a/specification/fileshares/FileShares.Management/client.tsp b/specification/fileshares/FileShares.Management/client.tsp new file mode 100644 index 000000000000..1206e96e5689 --- /dev/null +++ b/specification/fileshares/FileShares.Management/client.tsp @@ -0,0 +1,14 @@ +import "./main.tsp"; +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +using Azure.ResourceManager.Foundations; + +@@clientName(Microsoft.FileShares, "FileSharesManagementClient", "java"); + +@@clientName(CheckNameAvailabilityResponse, + "CheckNameAvailabilityResult", + "csharp" +); + +@@clientName(Azure.ResourceManager.CommonTypes.Operation, "Info", "csharp"); diff --git a/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_CheckNameAvailability_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_CheckNameAvailability_MaximumSet_Gen.json new file mode 100644 index 000000000000..84efb6f77e85 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_CheckNameAvailability_MaximumSet_Gen.json @@ -0,0 +1,22 @@ +{ + "title": "FileShares_CheckNameAvailability_MaximumSet", + "operationId": "FileShares_CheckNameAvailability", + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "44EEA578-10B8-4489-8B60-2F8BA982F1E2", + "location": "westus", + "body": { + "name": "mqlepzvhxzskylkwdxbmxcemtbyvh", + "type": "qoqvzhhkxgfr" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "reason": "Invalid", + "message": "lssnd" + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_CheckNameAvailability_MinimumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_CheckNameAvailability_MinimumSet_Gen.json new file mode 100644 index 000000000000..79e6dbe98ebc --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_CheckNameAvailability_MinimumSet_Gen.json @@ -0,0 +1,15 @@ +{ + "title": "FileShares_CheckNameAvailability_MinimumSet", + "operationId": "FileShares_CheckNameAvailability", + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "44EEA578-10B8-4489-8B60-2F8BA982F1E2", + "location": "westus", + "body": {} + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_CreateOrUpdate_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_CreateOrUpdate_MaximumSet_Gen.json new file mode 100644 index 000000000000..d5adfb736d3b --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_CreateOrUpdate_MaximumSet_Gen.json @@ -0,0 +1,128 @@ +{ + "title": "FileShares_CreateOrUpdate_MaximumSet", + "operationId": "FileShares_CreateOrUpdate", + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "44EEA578-10B8-4489-8B60-2F8BA982F1E2", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare", + "resource": { + "properties": { + "shareName": "testfileshare", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 80013, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [ + { + "id": "szgchxzvtnnmgmxwrblakajghfxt" + } + ] + } + }, + "tags": { + "key3533": "tagValue" + }, + "location": "ijgwtizkwlhftlkpisezexdrkrffy" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "shareName": "testfileshare", + "hostName": "fs-vlp5bkznznf0dkb4z.z16.file.storage.azure.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 80013, + "provisionedIOPerSec": 16293, + "provisionedThroughputMiBPerSec": 6721016643, + "includedBurstIOPerSec": 65925, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [ + { + "id": "szgchxzvtnnmgmxwrblakajghfxt" + } + ] + }, + "provisioningState": "Succeeded" + }, + "tags": { + "key3533": "tagValue" + }, + "location": "ijgwtizkwlhftlkpisezexdrkrffy", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/ankushb-pe-fs-01", + "name": "testfileshare", + "type": "Microsoft.FileShares/fileShares", + "systemData": { + "createdBy": "testuser", + "createdByType": "User", + "createdAt": "2025-04-29T23:32:13.130Z", + "lastModifiedBy": "kjn", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:32:13.131Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "shareName": "testfileshare", + "hostName": "fs-vlp5bkznznf0dkb4z.z16.file.storage.azure.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 80013, + "provisionedIOPerSec": 16293, + "provisionedThroughputMiBPerSec": 6721016643, + "includedBurstIOPerSec": 65925, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [ + { + "id": "szgchxzvtnnmgmxwrblakajghfxt" + } + ] + }, + "provisioningState": "Succeeded" + }, + "tags": { + "key3533": "tagValue" + }, + "location": "ijgwtizkwlhftlkpisezexdrkrffy", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/ankushb-pe-fs-01", + "name": "testfileshare", + "type": "Microsoft.FileShares/fileShares", + "systemData": { + "createdBy": "testuser", + "createdByType": "User", + "createdAt": "2025-04-29T23:32:13.130Z", + "lastModifiedBy": "kjn", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:32:13.131Z" + } + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_Delete_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..d727e4727dd2 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_Delete_MaximumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "FileShares_Delete_MaximumSet", + "operationId": "FileShares_Delete", + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "44EEA578-10B8-4489-8B60-2F8BA982F1E2", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_Get_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..34ec354c6321 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_Get_MaximumSet_Gen.json @@ -0,0 +1,56 @@ +{ + "title": "FileShares_Get_MaximumSet", + "operationId": "FileShares_Get", + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "44EEA578-10B8-4489-8B60-2F8BA982F1E2", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare" + }, + "responses": { + "200": { + "body": { + "properties": { + "shareName": "testfileshare", + "hostName": "fs-vlp5bkznznf0dkb4z.z16.file.storage.azure.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 80013, + "provisionedIOPerSec": 16293, + "provisionedThroughputMiBPerSec": 6721016643, + "includedBurstIOPerSec": 65925, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [ + { + "id": "szgchxzvtnnmgmxwrblakajghfxt" + } + ] + }, + "provisioningState": "Succeeded" + }, + "tags": { + "key3533": "tagValue" + }, + "location": "ijgwtizkwlhftlkpisezexdrkrffy", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare", + "name": "testfileshare", + "type": "Microsoft.FileShares/fileShares", + "systemData": { + "createdBy": "testuser", + "createdByType": "User", + "createdAt": "2025-04-29T23:32:13.130Z", + "lastModifiedBy": "kjn", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:32:13.131Z" + } + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_ListByParent_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_ListByParent_MaximumSet_Gen.json new file mode 100644 index 000000000000..491e2b0d78a3 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_ListByParent_MaximumSet_Gen.json @@ -0,0 +1,60 @@ +{ + "title": "FileShares_ListByParent_MaximumSet", + "operationId": "FileShares_ListByParent", + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "44EEA578-10B8-4489-8B60-2F8BA982F1E2", + "resourceGroupName": "rgfileshares" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "shareName": "testfileshare", + "hostName": "fs-vlp5bkznznf0dkb4z.z16.file.storage.azure.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 80013, + "provisionedIOPerSec": 16293, + "provisionedThroughputMiBPerSec": 6721016643, + "includedBurstIOPerSec": 65925, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [ + { + "id": "szgchxzvtnnmgmxwrblakajghfxt" + } + ] + }, + "provisioningState": "Succeeded" + }, + "tags": { + "key3533": "tagValue" + }, + "location": "ijgwtizkwlhftlkpisezexdrkrffy", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/ankushb-pe-fs-01", + "name": "testfileshare", + "type": "Microsoft.FileShares/fileShares", + "systemData": { + "createdBy": "testuser", + "createdByType": "User", + "createdAt": "2025-04-29T23:32:13.130Z", + "lastModifiedBy": "kjn", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:32:13.131Z" + } + } + ], + "nextLink": "https://microsoft.com/avr" + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_ListBySubscription_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_ListBySubscription_MaximumSet_Gen.json new file mode 100644 index 000000000000..4be799036de8 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_ListBySubscription_MaximumSet_Gen.json @@ -0,0 +1,59 @@ +{ + "title": "FileShares_ListBySubscription_MaximumSet", + "operationId": "FileShares_ListBySubscription", + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "44EEA578-10B8-4489-8B60-2F8BA982F1E2" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "shareName": "testfileshare", + "hostName": "fs-vlp5bkznznf0dkb4z.z16.file.storage.azure.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 80013, + "provisionedIOPerSec": 16293, + "provisionedThroughputMiBPerSec": 6721016643, + "includedBurstIOPerSec": 65925, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [ + { + "id": "szgchxzvtnnmgmxwrblakajghfxt" + } + ] + }, + "provisioningState": "Succeeded" + }, + "tags": { + "key3533": "tagValue" + }, + "location": "ijgwtizkwlhftlkpisezexdrkrffy", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/ankushb-pe-fs-01", + "name": "testfileshare", + "type": "Microsoft.FileShares/fileShares", + "systemData": { + "createdBy": "testuser", + "createdByType": "User", + "createdAt": "2025-04-29T23:32:13.130Z", + "lastModifiedBy": "kjn", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:32:13.131Z" + } + } + ], + "nextLink": "https://microsoft.com/avr" + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_Update_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..3a64564d1061 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/FileShares_Update_MaximumSet_Gen.json @@ -0,0 +1,79 @@ +{ + "title": "FileShares_Update_MaximumSet", + "operationId": "FileShares_Update", + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "44EEA578-10B8-4489-8B60-2F8BA982F1E2", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare", + "properties": { + "tags": { + "key6101": "mhepchqjsdawlcxhgvjydc" + }, + "properties": { + "provisionedStorageGiB": 41436, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [ + { + "id": "szgchxzvtnnmgmxwrblakajghfxt" + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "shareName": "testfileshare", + "hostName": "fs-vlp5bkznznf0dkb4z.z16.file.storage.azure.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 80013, + "provisionedIOPerSec": 16293, + "provisionedThroughputMiBPerSec": 6721016643, + "includedBurstIOPerSec": 65925, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [ + { + "id": "szgchxzvtnnmgmxwrblakajghfxt" + } + ] + }, + "provisioningState": "Succeeded" + }, + "tags": { + "key3533": "tagValue" + }, + "location": "ijgwtizkwlhftlkpisezexdrkrffy", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/ankushb-pe-fs-01", + "name": "testfileshare", + "type": "Microsoft.FileShares/fileShares", + "systemData": { + "createdBy": "testuser", + "createdByType": "User", + "createdAt": "2025-04-29T23:32:13.130Z", + "lastModifiedBy": "kjn", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:32:13.131Z" + } + } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/Operations_List_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/Operations_List_MaximumSet_Gen.json new file mode 100644 index 000000000000..65a525da0563 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/Operations_List_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List_MaximumSet", + "operationId": "Operations_List", + "parameters": { + "api-version": "2023-01-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nsxqqomffobcddziwcekyvbju", + "isDataAction": true, + "display": { + "provider": "dvkwtyqkctwacj", + "resource": "grhibsxs", + "operation": "dwdyvvieltcdmxmpwmqma", + "description": "fctthiwppwombnbxfiwsoobmwjks" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "https://microsoft.com/ah" + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/Operations_List_MinimumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/Operations_List_MinimumSet_Gen.json new file mode 100644 index 000000000000..2da186c9c768 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2023-01-01-preview/Operations_List_MinimumSet_Gen.json @@ -0,0 +1,12 @@ +{ + "title": "Operations_List_MinimumSet", + "operationId": "Operations_List", + "parameters": { + "api-version": "2023-01-01-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_CheckNameAvailability_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_CheckNameAvailability_MaximumSet_Gen.json new file mode 100644 index 000000000000..a54a1b5ff14e --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_CheckNameAvailability_MaximumSet_Gen.json @@ -0,0 +1,22 @@ +{ + "title": "FileShares_CheckNameAvailability_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_CheckNameAvailability", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "location": "westus", + "body": { + "name": "vmwdhkiwetidjwivkh", + "type": "akrkqjmn" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "reason": "Invalid", + "message": "lmqlk" + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_CheckNameAvailability_MinimumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_CheckNameAvailability_MinimumSet_Gen.json new file mode 100644 index 000000000000..11e4d2788620 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_CheckNameAvailability_MinimumSet_Gen.json @@ -0,0 +1,15 @@ +{ + "title": "FileShares_CheckNameAvailability_MaximumSet_Gen - generated by [MinimumSet] rule", + "operationId": "FileShares_CheckNameAvailability", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "location": "westus", + "body": {} + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_CreateOrUpdateFileShareSnapshot_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_CreateOrUpdateFileShareSnapshot_MaximumSet_Gen.json new file mode 100644 index 000000000000..a0543a227a6a --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_CreateOrUpdateFileShareSnapshot_MaximumSet_Gen.json @@ -0,0 +1,66 @@ +{ + "title": "FileShares_CreateOrUpdateFileShareSnapshot_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_CreateOrUpdateFileShareSnapshot", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare", + "name": "testfilesharesnapshot", + "resource": { + "properties": { + "metadata": { + "key5497": "xxznaauato" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "snapshotTime": "pc", + "initiatorId": "nckiqfg", + "metadata": { + "key5497": "xxznaauato" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare/fileShareSnapshots/testfilesharesnapshot", + "name": "nneoakpugzjbalgyieeyz", + "type": "fmqfludbm", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + }, + "201": { + "body": { + "properties": { + "snapshotTime": "pc", + "initiatorId": "nckiqfg", + "metadata": { + "key5497": "xxznaauato" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare/fileShareSnapshots/testfilesharesnapshot", + "name": "nneoakpugzjbalgyieeyz", + "type": "fmqfludbm", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_CreateOrUpdate_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_CreateOrUpdate_MaximumSet_Gen.json new file mode 100644 index 000000000000..d34564700b46 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_CreateOrUpdate_MaximumSet_Gen.json @@ -0,0 +1,185 @@ +{ + "title": "FileShares_CreateOrUpdate_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_CreateOrUpdate", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare", + "resource": { + "properties": { + "mountName": "kyujsrfk", + "mediaTier": "SSD", + "redundancy": "Local", + "protocol": "NFS", + "provisionedStorageGiB": 15, + "provisionedIOPerSec": 29, + "provisionedThroughputMiBPerSec": 25, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicAccessProperties": { + "allowedSubnets": [ + "pvjhqlnqfiubvbfcggthlpy" + ] + }, + "publicNetworkAccess": "Enabled" + }, + "tags": { + "key1961": "p" + }, + "location": "xrrekltkvmzdinob" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "mountName": "kyujsrfk", + "hostName": "kivhbjhhzdiycggwbawziu", + "mediaTier": "SSD", + "redundancy": "Local", + "protocol": "NFS", + "provisionedStorageGiB": 15, + "provisionedStorageNextAllowedDowngrade": "2025-04-29T23:26:28.149Z", + "provisionedIOPerSec": 29, + "provisionedIOPerSecNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "provisionedThroughputMiBPerSec": 25, + "provisionedThroughputNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "includedBurstIOPerSec": 89085, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicAccessProperties": { + "allowedSubnets": [ + "pvjhqlnqfiubvbfcggthlpy" + ] + }, + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "privateEndpointConnections": [ + { + "properties": { + "groupIds": [ + "fileshares" + ], + "privateEndpoint": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "nhata", + "actionsRequired": "seyoojnwbtmcegqbsvpsofboc" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.FileShares/fileShares/testresourcename/privateEndpointConnections/privateEndpointConnectionName", + "name": "ukgsebzwjbtporzza", + "type": "oyfdiyedpaykrg", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + ] + }, + "tags": { + "key1961": "p" + }, + "location": "xrrekltkvmzdinob", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare", + "name": "lwvxc", + "type": "etietawcvvuzkvfrqsdlxfgavxv", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "mountName": "kyujsrfk", + "hostName": "kivhbjhhzdiycggwbawziu", + "mediaTier": "SSD", + "redundancy": "Local", + "protocol": "NFS", + "provisionedStorageGiB": 15, + "provisionedStorageNextAllowedDowngrade": "2025-04-29T23:26:28.149Z", + "provisionedIOPerSec": 29, + "provisionedIOPerSecNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "provisionedThroughputMiBPerSec": 25, + "provisionedThroughputNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "includedBurstIOPerSec": 89085, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicAccessProperties": { + "allowedSubnets": [ + "pvjhqlnqfiubvbfcggthlpy" + ] + }, + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "privateEndpointConnections": [ + { + "properties": { + "groupIds": [ + "fileshares" + ], + "privateEndpoint": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "nhata", + "actionsRequired": "seyoojnwbtmcegqbsvpsofboc" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.FileShares/fileShares/testresourcename/privateEndpointConnections/privateEndpointConnectionName", + "name": "ukgsebzwjbtporzza", + "type": "oyfdiyedpaykrg", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + ] + }, + "tags": { + "key1961": "p" + }, + "location": "xrrekltkvmzdinob", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare", + "name": "lwvxc", + "type": "etietawcvvuzkvfrqsdlxfgavxv", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_DeleteFileShareSnapshot_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_DeleteFileShareSnapshot_MaximumSet_Gen.json new file mode 100644 index 000000000000..68ceee6ecc75 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_DeleteFileShareSnapshot_MaximumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "title": "FileShares_DeleteFileShareSnapshot_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_DeleteFileShareSnapshot", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare", + "name": "testfilesharesnapshot" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_Delete_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..8c088fdddda1 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_Delete_MaximumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "FileShares_Delete_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_Delete", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_GetFileShareSnapshot_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_GetFileShareSnapshot_MaximumSet_Gen.json new file mode 100644 index 000000000000..52ffa7523974 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_GetFileShareSnapshot_MaximumSet_Gen.json @@ -0,0 +1,36 @@ +{ + "title": "FileShares_GetFileShareSnapshot_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_GetFileShareSnapshot", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare", + "name": "testfilesharesnapshot" + }, + "responses": { + "200": { + "body": { + "properties": { + "snapshotTime": "pc", + "initiatorId": "nckiqfg", + "metadata": { + "key5497": "xxznaauato" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare/fileShareSnapshots/testfilesharesnapshot", + "name": "nneoakpugzjbalgyieeyz", + "type": "fmqfludbm", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_Get_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..043bb341d753 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_Get_MaximumSet_Gen.json @@ -0,0 +1,85 @@ +{ + "title": "FileShares_Get_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_Get", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare" + }, + "responses": { + "200": { + "body": { + "properties": { + "mountName": "kyujsrfk", + "hostName": "kivhbjhhzdiycggwbawziu", + "mediaTier": "SSD", + "redundancy": "Local", + "protocol": "NFS", + "provisionedStorageGiB": 15, + "provisionedStorageNextAllowedDowngrade": "2025-04-29T23:26:28.149Z", + "provisionedIOPerSec": 29, + "provisionedIOPerSecNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "provisionedThroughputMiBPerSec": 25, + "provisionedThroughputNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "includedBurstIOPerSec": 89085, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicAccessProperties": { + "allowedSubnets": [ + "pvjhqlnqfiubvbfcggthlpy" + ] + }, + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "privateEndpointConnections": [ + { + "properties": { + "groupIds": [ + "fileshares" + ], + "privateEndpoint": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "nhata", + "actionsRequired": "seyoojnwbtmcegqbsvpsofboc" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.FileShares/fileShares/testresourcename/privateEndpointConnections/privateEndpointConnectionName", + "name": "ukgsebzwjbtporzza", + "type": "oyfdiyedpaykrg", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + ] + }, + "tags": { + "key1961": "p" + }, + "location": "xrrekltkvmzdinob", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare", + "name": "lwvxc", + "type": "etietawcvvuzkvfrqsdlxfgavxv", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_ListByFileShare_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_ListByFileShare_MaximumSet_Gen.json new file mode 100644 index 000000000000..514758072efa --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_ListByFileShare_MaximumSet_Gen.json @@ -0,0 +1,40 @@ +{ + "title": "FileShares_ListByFileShare_MaximumSet", + "operationId": "FileShares_ListByFileShare", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "09A2620A-99C9-4A63-A89E-AB06AA59A998", + "resourceGroupName": "rgfileshares", + "resourceName": "testfilesharesnapshot" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "snapshotTime": "tey", + "initiatorId": "i", + "metadata": { + "key2374": "enznkeuacgnsdlcgcg" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare/fileShareSnapshots/testfilesharesnapshot", + "name": "fhjirzquakiktrsyqmfubedzowe", + "type": "dkksokbqykeajfh", + "systemData": { + "createdBy": "smrgywfkjcxlor", + "createdByType": "User", + "createdAt": "2025-04-30T15:00:13.612Z", + "lastModifiedBy": "dkduwnwucpvqd", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-30T15:00:13.612Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_ListByParent_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_ListByParent_MaximumSet_Gen.json new file mode 100644 index 000000000000..8ad2f29c9bcd --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_ListByParent_MaximumSet_Gen.json @@ -0,0 +1,89 @@ +{ + "title": "FileShares_ListByParent_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_ListByParent", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "resourceGroupName": "rgfileshares" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "mountName": "kyujsrfk", + "hostName": "kivhbjhhzdiycggwbawziu", + "mediaTier": "SSD", + "redundancy": "Local", + "protocol": "NFS", + "provisionedStorageGiB": 15, + "provisionedStorageNextAllowedDowngrade": "2025-04-29T23:26:28.149Z", + "provisionedIOPerSec": 29, + "provisionedIOPerSecNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "provisionedThroughputMiBPerSec": 25, + "provisionedThroughputNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "includedBurstIOPerSec": 89085, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicAccessProperties": { + "allowedSubnets": [ + "pvjhqlnqfiubvbfcggthlpy" + ] + }, + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "privateEndpointConnections": [ + { + "properties": { + "groupIds": [ + "fileshares" + ], + "privateEndpoint": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "nhata", + "actionsRequired": "seyoojnwbtmcegqbsvpsofboc" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.FileShares/fileShares/testresourcename/privateEndpointConnections/privateEndpointConnectionName", + "name": "ukgsebzwjbtporzza", + "type": "oyfdiyedpaykrg", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + ] + }, + "tags": { + "key1961": "p" + }, + "location": "xrrekltkvmzdinob", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare", + "name": "lwvxc", + "type": "etietawcvvuzkvfrqsdlxfgavxv", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_ListBySubscription_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_ListBySubscription_MaximumSet_Gen.json new file mode 100644 index 000000000000..0ee87c9a26ab --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_ListBySubscription_MaximumSet_Gen.json @@ -0,0 +1,88 @@ +{ + "title": "FileShares_ListBySubscription_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_ListBySubscription", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "mountName": "kyujsrfk", + "hostName": "kivhbjhhzdiycggwbawziu", + "mediaTier": "SSD", + "redundancy": "Local", + "protocol": "NFS", + "provisionedStorageGiB": 15, + "provisionedStorageNextAllowedDowngrade": "2025-04-29T23:26:28.149Z", + "provisionedIOPerSec": 29, + "provisionedIOPerSecNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "provisionedThroughputMiBPerSec": 25, + "provisionedThroughputNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "includedBurstIOPerSec": 89085, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicAccessProperties": { + "allowedSubnets": [ + "pvjhqlnqfiubvbfcggthlpy" + ] + }, + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "privateEndpointConnections": [ + { + "properties": { + "groupIds": [ + "fileshares" + ], + "privateEndpoint": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "nhata", + "actionsRequired": "seyoojnwbtmcegqbsvpsofboc" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.FileShares/fileShares/testresourcename/privateEndpointConnections/privateEndpointConnectionName", + "name": "ukgsebzwjbtporzza", + "type": "oyfdiyedpaykrg", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + ] + }, + "tags": { + "key1961": "p" + }, + "location": "xrrekltkvmzdinob", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare", + "name": "lwvxc", + "type": "etietawcvvuzkvfrqsdlxfgavxv", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_UpdateFileShareSnapshot_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_UpdateFileShareSnapshot_MaximumSet_Gen.json new file mode 100644 index 000000000000..6ccdbdab6d20 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_UpdateFileShareSnapshot_MaximumSet_Gen.json @@ -0,0 +1,48 @@ +{ + "title": "FileShares_UpdateFileShareSnapshot_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_UpdateFileShareSnapshot", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare", + "name": "testfilesharesnapshot", + "properties": { + "properties": { + "metadata": { + "key5497": "xxznaauato" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "snapshotTime": "pc", + "initiatorId": "nckiqfg", + "metadata": { + "key5497": "xxznaauato" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare/fileShareSnapshots/testfilesharesnapshot", + "name": "nneoakpugzjbalgyieeyz", + "type": "fmqfludbm", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_Update_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..3c884672f202 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/FileShares_Update_MaximumSet_Gen.json @@ -0,0 +1,109 @@ +{ + "title": "FileShares_Update_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_Update", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare", + "properties": { + "tags": { + "key9986": "aq" + }, + "properties": { + "provisionedStorageGiB": 20, + "provisionedIOPerSec": 19, + "provisionedThroughputMiBPerSec": 27, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicAccessProperties": { + "allowedSubnets": [ + "pvjhqlnqfiubvbfcggthlpy" + ] + }, + "publicNetworkAccess": "Enabled" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "mountName": "kyujsrfk", + "hostName": "kivhbjhhzdiycggwbawziu", + "mediaTier": "SSD", + "redundancy": "Local", + "protocol": "NFS", + "provisionedStorageGiB": 15, + "provisionedStorageNextAllowedDowngrade": "2025-04-29T23:26:28.149Z", + "provisionedIOPerSec": 29, + "provisionedIOPerSecNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "provisionedThroughputMiBPerSec": 25, + "provisionedThroughputNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "includedBurstIOPerSec": 89085, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicAccessProperties": { + "allowedSubnets": [ + "pvjhqlnqfiubvbfcggthlpy" + ] + }, + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "privateEndpointConnections": [ + { + "properties": { + "groupIds": [ + "fileshares" + ], + "privateEndpoint": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "nhata", + "actionsRequired": "seyoojnwbtmcegqbsvpsofboc" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.FileShares/fileShares/testresourcename/privateEndpointConnections/privateEndpointConnectionName", + "name": "ukgsebzwjbtporzza", + "type": "oyfdiyedpaykrg", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + ] + }, + "tags": { + "key1961": "p" + }, + "location": "xrrekltkvmzdinob", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare", + "name": "lwvxc", + "type": "etietawcvvuzkvfrqsdlxfgavxv", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/Operations_List_MaximumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/Operations_List_MaximumSet_Gen.json new file mode 100644 index 000000000000..307a6eff07c3 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/Operations_List_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-01-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "gcjjmydos", + "isDataAction": true, + "display": { + "provider": "nsqnbaulllonxnirum", + "resource": "tuonwgf", + "operation": "bdintjqtti", + "description": "mqziugbyjrwaqthvh" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/Operations_List_MinimumSet_Gen.json b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/Operations_List_MinimumSet_Gen.json new file mode 100644 index 000000000000..83ccdbaef100 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/2024-01-01-preview/Operations_List_MinimumSet_Gen.json @@ -0,0 +1,12 @@ +{ + "title": "Operations_List_MaximumSet_Gen - generated by [MinimumSet] rule", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-01-01-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/FileShares_Create.json b/specification/fileshares/FileShares.Management/examples/FileShares_Create.json new file mode 100644 index 000000000000..31f3f703c206 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/FileShares_Create.json @@ -0,0 +1,105 @@ +{ + "parameters": { + "subscriptionId": "0590b445-524e-4caa-9870-2e2461d23434", + "resourceGroupName": "fiddler-mfs-rg", + "fileShareName": "fiddler-test-fs-resource", + "resource": { + "properties": { + "shareName": "mfs-fileshare", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 100, + "nfsProtocolProperties": { + "rootSquash": "RootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [] + } + }, + "tags": { + "Owner": "fiddlerowner" + }, + "location": "southcentralus" + }, + "api-version": "2023-01-01-preview" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "15bb4657-0074-4345-b310-a95ff90866ab", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + }, + "body": { + "properties": { + "shareName": "mfs-fileshare", + "hostName": "mfsplfhfr4l44r4vchjb.file.preprod.core.windows.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 500, + "provisionedIOPerSec": 102400, + "provisionedThroughputMiBPerSec": 204850, + "includedBurstIOPerSec": 10000, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "RootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [] + } + }, + "tags": { + "Owner": "updatedowner" + }, + "location": "southcentralus", + "id": "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/resourceGroups/fiddler-mfs-rg/providers/Microsoft.FileShares/fileShares/fiddler-test-fs-resource", + "name": "fiddler-test-fs-resource", + "type": "Microsoft.FileShares/fileShares" + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://api-dogfood.resources.windows-int.net/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/providers/Microsoft.FileShares/locations/southcentralus/partitions/Workflow/operations/7bbb2f4d-8e01-4d0f-a463-8aac1c4ec2ce?api-version=2023-01-01-preview", + "Location": "https://api-dogfood.resources.windows-int.net/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/providers/Microsoft.FileShares/locations/southcentralus/partitions/Workflow/operationresults/7bbb2f4d-8e01-4d0f-a463-8aac1c4ec2ce?api-version=2023-01-01-preview", + "Retry-After": "5", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + }, + "body": { + "properties": { + "shareName": "mfs-fileshare", + "hostName": "mfsplfhfr4l44r4vchjb.file.preprod.core.windows.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 500, + "provisionedIOPerSec": 102400, + "provisionedThroughputMiBPerSec": 204850, + "includedBurstIOPerSec": 10000, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "RootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [] + }, + "provisioningState": "Succeeded" + }, + "tags": { + "Owner": "updatedowner" + }, + "location": "southcentralus", + "id": "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/resourceGroups/fiddler-mfs-rg/providers/Microsoft.FileShares/fileShares/fiddler-test-fs-resource", + "name": "fiddler-test-fs-resource", + "type": "Microsoft.FileShares/fileShares" + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/FileShares_Delete.json b/specification/fileshares/FileShares.Management/examples/FileShares_Delete.json new file mode 100644 index 000000000000..b12a0ef68ee1 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/FileShares_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "0590b445-524e-4caa-9870-2e2461d23434", + "resourceGroupName": "fiddler-mfs-rg", + "fileShareName": "fiddler-test-fs-resource", + "api-version": "2023-01-01-preview" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "https://api-dogfood.resources.windows-int.net/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/providers/Microsoft.FileShares/locations/southcentralus/partitions/Workflow/operations/7bbb2f4d-8e01-4d0f-a463-8aac1c4ec2ce?api-version=2023-01-01-preview", + "Location": "https://api-dogfood.resources.windows-int.net/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/providers/Microsoft.FileShares/locations/southcentralus/partitions/Workflow/operationresults/7bbb2f4d-8e01-4d0f-a463-8aac1c4ec2ce?api-version=2023-01-01-preview", + "Retry-After": "5", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } + }, + "204": {} + } +} diff --git a/specification/fileshares/FileShares.Management/examples/FileShares_Get.json b/specification/fileshares/FileShares.Management/examples/FileShares_Get.json new file mode 100644 index 000000000000..33b2ff39a8e6 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/FileShares_Get.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "0590b445-524e-4caa-9870-2e2461d23434", + "resourceGroupName": "fiddler-mfs-rg", + "fileShareName": "fiddler-test-fs-resource", + "api-version": "2023-01-01-preview" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "15bb4657-0074-4345-b310-a95ff90866ab", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + }, + "body": { + "properties": { + "shareName": "mfs-fileshare", + "hostName": "mfsplfhfr4l44r4vchjb.file.preprod.core.windows.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 500, + "provisionedIOPerSec": 102400, + "provisionedThroughputMiBPerSec": 204850, + "includedBurstIOPerSec": 10000, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "RootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [] + } + }, + "tags": { + "Owner": "updatedowner" + }, + "location": "southcentralus", + "id": "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/resourceGroups/fiddler-mfs-rg/providers/Microsoft.FileShares/fileShares/fiddler-test-fs-resource", + "name": "fiddler-test-fs-resource", + "type": "Microsoft.FileShares/fileShares" + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/FileShares_ListByResourceGroup.json b/specification/fileshares/FileShares.Management/examples/FileShares_ListByResourceGroup.json new file mode 100644 index 000000000000..9a51b36af54c --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/FileShares_ListByResourceGroup.json @@ -0,0 +1,97 @@ +{ + "parameters": { + "subscriptionId": "0590b445-524e-4caa-9870-2e2461d23434", + "resourceGroupName": "fiddler-mfs-rg", + "api-version": "2023-01-01-preview" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + }, + "body": { + "value": [ + { + "properties": { + "shareName": "mfs-fileshare1", + "hostName": "mfsplfhfr4l44r4vchjb.file.preprod.core.windows.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 500, + "provisionedIOPerSec": 100000, + "provisionedThroughputMiBPerSec": 204850, + "includedBurstIOPerSec": 10000, + "maxBurstIOPerSecCredits": 332640000, + "nfsProtocolProperties": { + "rootSquash": "RootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [] + } + }, + "location": "southcentralus", + "id": "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/resourceGroups/fiddler-mfs-rg/providers/Microsoft.FileShares/fileShares/fiddler-test-fs-resource1", + "name": "fiddler-test-fs-resource1", + "type": "Microsoft.FileShares/fileShares" + }, + { + "properties": { + "shareName": "mfs-fileshare2", + "hostName": "mfsplfhfr4l44r4vchjc.file.preprod.core.windows.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 500, + "provisionedIOPerSec": 100000, + "provisionedThroughputMiBPerSec": 204850, + "includedBurstIOPerSec": 10000, + "maxBurstIOPerSecCredits": 332640000, + "nfsProtocolProperties": { + "rootSquash": "RootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [] + } + }, + "location": "southcentralus", + "id": "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/resourceGroups/fiddler-mfs-rg/providers/Microsoft.FileShares/fileShares/fiddler-test-fs-resource2", + "name": "fiddler-test-fs-resource2", + "type": "Microsoft.FileShares/fileShares" + }, + { + "properties": { + "shareName": "mfs-fileshare3", + "hostName": "mfsplfhfr4l44r4vchjd.file.preprod.core.windows.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 500, + "provisionedIOPerSec": 100000, + "provisionedThroughputMiBPerSec": 204850, + "includedBurstIOPerSec": 10000, + "maxBurstIOPerSecCredits": 332640000, + "nfsProtocolProperties": { + "rootSquash": "RootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [] + } + }, + "location": "southcentralus", + "id": "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/resourceGroups/fiddler-mfs-rg/providers/Microsoft.FileShares/fileShares/fiddler-test-fs-resource3", + "name": "fiddler-test-fs-resource3", + "type": "Microsoft.FileShares/fileShares" + } + ] + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/FileShares_ListBySubscription.json b/specification/fileshares/FileShares.Management/examples/FileShares_ListBySubscription.json new file mode 100644 index 000000000000..88a7bec614ba --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/FileShares_ListBySubscription.json @@ -0,0 +1,96 @@ +{ + "parameters": { + "subscriptionId": "0590b445-524e-4caa-9870-2e2461d23434", + "api-version": "2023-01-01-preview" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + }, + "body": { + "value": [ + { + "properties": { + "shareName": "mfs-fileshare1", + "hostName": "mfsplfhfr4l44r4vchjb.file.preprod.core.windows.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 500, + "provisionedIOPerSec": 100000, + "provisionedThroughputMiBPerSec": 204850, + "includedBurstIOPerSec": 10000, + "maxBurstIOPerSecCredits": 332640000, + "nfsProtocolProperties": { + "rootSquash": "RootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [] + } + }, + "location": "southcentralus", + "id": "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/resourceGroups/fiddler-mfs-rg/providers/Microsoft.FileShares/fileShares/fiddler-test-fs-resource1", + "name": "fiddler-test-fs-resource1", + "type": "Microsoft.FileShares/fileShares" + }, + { + "properties": { + "shareName": "mfs-fileshare2", + "hostName": "mfsplfhfr4l44r4vchjc.file.preprod.core.windows.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 500, + "provisionedIOPerSec": 100000, + "provisionedThroughputMiBPerSec": 204850, + "includedBurstIOPerSec": 10000, + "maxBurstIOPerSecCredits": 332640000, + "nfsProtocolProperties": { + "rootSquash": "RootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [] + } + }, + "location": "southcentralus", + "id": "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/resourceGroups/fiddler-mfs-rg/providers/Microsoft.FileShares/fileShares/fiddler-test-fs-resource2", + "name": "fiddler-test-fs-resource2", + "type": "Microsoft.FileShares/fileShares" + }, + { + "properties": { + "shareName": "mfs-fileshare3", + "hostName": "mfsplfhfr4l44r4vchjd.file.preprod.core.windows.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 500, + "provisionedIOPerSec": 100000, + "provisionedThroughputMiBPerSec": 204850, + "includedBurstIOPerSec": 10000, + "maxBurstIOPerSecCredits": 332640000, + "nfsProtocolProperties": { + "rootSquash": "RootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [] + } + }, + "location": "southcentralus", + "id": "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/resourceGroups/fiddler-mfs-rg/providers/Microsoft.FileShares/fileShares/fiddler-test-fs-resource3", + "name": "fiddler-test-fs-resource3", + "type": "Microsoft.FileShares/fileShares" + } + ] + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/FileShares_Update.json b/specification/fileshares/FileShares.Management/examples/FileShares_Update.json new file mode 100644 index 000000000000..98589c0f7f69 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/FileShares_Update.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "0590b445-524e-4caa-9870-2e2461d23434", + "resourceGroupName": "fiddler-mfs-rg", + "fileShareName": "fiddler-test-fs-resource", + "properties": { + "properties": { + "provisionedStorageGiB": 500, + "nfsProtocolProperties": { + "rootSquash": "RootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [] + } + }, + "tags": { + "Owner": "updatedowner" + } + }, + "api-version": "2023-01-01-preview" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "15bb4657-0074-4345-b310-a95ff90866ab", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + }, + "body": { + "properties": { + "shareName": "mfs-fileshare", + "hostName": "mfsplfhfr4l44r4vchjb.file.preprod.core.windows.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 500, + "provisionedIOPerSec": 102400, + "provisionedThroughputMiBPerSec": 204850, + "includedBurstIOPerSec": 10000, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "RootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [] + } + }, + "tags": { + "Owner": "updatedowner" + }, + "location": "southcentralus", + "id": "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/resourceGroups/fiddler-mfs-rg/providers/Microsoft.FileShares/fileShares/fiddler-test-fs-resource", + "name": "fiddler-test-fs-resource", + "type": "Microsoft.FileShares/fileShares" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://api-dogfood.resources.windows-int.net/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/providers/Microsoft.FileShares/locations/southcentralus/partitions/Workflow/operations/7bbb2f4d-8e01-4d0f-a463-8aac1c4ec2ce?api-version=2023-01-01-preview", + "Location": "https://api-dogfood.resources.windows-int.net/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/providers/Microsoft.FileShares/locations/southcentralus/partitions/Workflow/operationresults/7bbb2f4d-8e01-4d0f-a463-8aac1c4ec2ce?api-version=2023-01-01-preview", + "Retry-After": "5", + "x-ms-request-id": "74e55a4d-1c6f-46de-9a8d-278e53a47403", + "x-ms-correlation-request-id": "d166ca76-dad2-49df-b409-d2acfd42d730" + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/LocationOperationStatus_Get.json b/specification/fileshares/FileShares.Management/examples/LocationOperationStatus_Get.json new file mode 100644 index 000000000000..e8cc562ce161 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/LocationOperationStatus_Get.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "52b8da2f-61e0-4a1f-8dde-336911f367fb", + "location": "southcentralus", + "partitionId": "Workflow", + "operationId": "7bbb2f4d-8e01-4d0f-a463-8aac1c4ec2ce", + "api-version": "2023-01-01-preview" + }, + "responses": { + "200": { + "headers": { + "x-ms-request-id": "0f1c5680-92a5-47ce-992e-2edeb9d0f9ba", + "x-ms-correlation-request-id": "0f1c5680-92a5-47ce-992e-2edeb9d0f9ba0" + }, + "body": { + "id": "/subscriptions/0590b445-524e-4caa-9870-2e2461d23434/providers/Microsoft.FileShares/locations/southcentralus/partitions/Workflow/operations/7bbb2f4d-8e01-4d0f-a463-8aac1c4ec2ce", + "name": "7bbb2f4d-8e01-4d0f-a463-8aac1c4ec2ce", + "status": "Initial", + "startTime": "2023-07-11T16:36:48.5390254+00:00", + "error": {} + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/examples/Operations_List.json b/specification/fileshares/FileShares.Management/examples/Operations_List.json new file mode 100644 index 000000000000..8be64146c692 --- /dev/null +++ b/specification/fileshares/FileShares.Management/examples/Operations_List.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "api-version": "2023-01-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.FileShares/register/action", + "display": { + "provider": "Microsoft.FileShares", + "resource": "File Shares Provider", + "operation": "Registers the File Shares Provider", + "description": "Registers the subscription for the File Shares Provider" + }, + "origin": "user" + }, + { + "name": "Microsoft.FileShares/unregister/action", + "display": { + "provider": "Microsoft.FileShares", + "resource": "File Shares Provider", + "operation": "Unregisters the File Shares Provider", + "description": "Unregisters the subscription for the File Shares Provider" + }, + "origin": "user" + }, + { + "name": "Microsoft.FileShares/operations/read", + "display": { + "provider": "Microsoft.FileShares", + "resource": "Supported Operations", + "operation": "Gets the Supported Operations", + "description": "Gets a list of the Supported Operations" + }, + "origin": "user" + }, + { + "name": "Microsoft.FileShares/fileShares/read", + "display": { + "provider": "Microsoft.FileShares", + "resource": "File Shares", + "operation": "Read File Shares", + "description": "Read any File Shares" + }, + "origin": "user" + }, + { + "name": "Microsoft.FileShares/fileShares/write", + "display": { + "provider": "Microsoft.FileShares", + "resource": "File Shares", + "operation": "Create or Update File Shares", + "description": "Create or Update any File Shares" + }, + "origin": "user" + }, + { + "name": "Microsoft.FileShares/fileShares/delete", + "display": { + "provider": "Microsoft.FileShares", + "resource": "File Shares", + "operation": "Delete File Shares", + "description": "Delete any File Shares" + }, + "origin": "user" + }, + { + "name": "Microsoft.FileShares/azureAsyncOperation/read", + "display": { + "provider": "Microsoft.FileShares", + "resource": "Azure Async Operations", + "operation": "Read Azure Async Operations", + "description": "Read any Azure Async Operations" + }, + "origin": "user" + } + ] + } + } + } +} diff --git a/specification/fileshares/FileShares.Management/fileshares.tsp b/specification/fileshares/FileShares.Management/fileshares.tsp new file mode 100644 index 000000000000..c7646ef3dcff --- /dev/null +++ b/specification/fileshares/FileShares.Management/fileshares.tsp @@ -0,0 +1,462 @@ +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; +using Azure.Core; +using Azure.ResourceManager; +using Azure.ResourceManager.Foundations; +using OpenAPI; + +@armProviderNamespace +@service(#{ title: "Microsoft.FileShares" }) +@doc("Azure File Shares Resource Provider API.") +@versioned(Microsoft.FileShares.Versions) +namespace Microsoft.FileShares; + +@doc("Service versions") +enum Versions { + @useDependency(Azure.Core.Versions.v1_0_Preview_2) + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @useDependency(Azure.ResourceManager.CommonTypes.Versions.v6) + @armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v6) + @doc("Version 2023-01-01-preview") + v2023_01_01_preview: "2023-01-01-preview", + + @useDependency(Azure.Core.Versions.v1_0_Preview_2) + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @useDependency(Azure.ResourceManager.CommonTypes.Versions.v6) + @armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v6) + @doc("Version 2024-01-01-preview") + v2024_01_01_preview: "2024-01-01-preview", +} + +@doc("File share resource") +model FileShare is Azure.ResourceManager.TrackedResource { + @doc("The resource name of the file share, as seen by the administrator through Azure Resource Manager.") + @pattern("^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$") + @key("resourceName") + @path + @segment("fileShares") + name: string; +} + +#suppress "@azure-tools/typespec-azure-core/no-enum" "Already in previous protocol version" +@renamedFrom(Versions.v2024_01_01_preview, "Tier") +@doc("Media Tier enum.") +enum MediaTier { + SSD, +} + +#suppress "@azure-tools/typespec-azure-core/no-enum" "Already in previous protocol version" +@doc("Redundancy enum.") +enum Redundancy { + Local, + Zone, +} + +#suppress "@azure-tools/typespec-azure-core/no-enum" "Already in previous protocol version" +@doc("Protocol enum.") +enum Protocol { + NFS, +} + +#suppress "@azure-tools/typespec-azure-core/no-enum" "Already in previous protocol version" +@doc("Share root squash enum.") +enum ShareRootSquash { + NoRootSquash, + RootSquash, + AllSquash, +} + +// Important Technicalities: TypeSpec and ARM have different mindset wrt PUT/PATCH modeling. +// For ARM - PATCH contract is a replica of PUT contract, which can repeat any member +// from it and RP is responsible to maintain immutability guarantees. +// +// TypeSpec authors separate PUT model from PATCH model. It is done automagically - PATCH model is built from resource properties with Lifecycle.Update visibility. +// It turns PATCH contract into a different class, members of which are a subset of PUT contract, and are all exclusively mutable. +// +// This divide doesn't seem to have good solution, so it is a problem #1. +// Newer version of TypeSpec compiler have @parameterVisibility operation attribute +// that is supposed to be applied over ArmCustomPatch-type of operations to make all involved fields +// visible, but my experiments with it are not yielding desired outcome. +// +// In addition we have a problem #2 - our action framework currently support only 1:1 mapping between unified model and its versioned counterpart. +// That is, for a given API version - single Unified Model corresponds to a single Protocol Contract. +// Therefore, that protocol contract will be used in both PUT and PATCH scenarios, and has to be coded up appropriately. +// +// Consequences: +// - We still apply visibility attributes to benefit from OpenAPI spec correctness and documentation. +// - We must mark members optional, if we don't - generated contracts will have "Required.Always" JSON attributes on those members which will make it impossible to accept differential PATCH payloads. +// - Server side would rely on runtime ValidatePutResource/ValidatePatchResource execution for guaranteeing correctness of incoming payloads, rather than just trusting JSON deserialization. +@doc("File share properties") +model FileShareProperties { + @renamedFrom(Versions.v2024_01_01_preview, "shareName") + @visibility(Lifecycle.Create, Lifecycle.Read) + @doc("The name of the file share as seen by the end user when mounting the share, such as in a URI or UNC format in their operating system.") + mountName?: string; + + @visibility(Lifecycle.Read) + @doc("The host name of the file share.") + hostName?: string; + + @renamedFrom(Versions.v2024_01_01_preview, "tier") + @visibility(Lifecycle.Create, Lifecycle.Read) + @doc("The storage media tier of the file share.") + mediaTier?: MediaTier; + + @visibility(Lifecycle.Create, Lifecycle.Read) + @doc("The chosen redundancy level of the file share.") + redundancy?: Redundancy; + + @visibility(Lifecycle.Create, Lifecycle.Read) + @doc("The file sharing protocol for this file share.") + @typeChangedFrom(Versions.v2024_01_01_preview, Protocol[]) + @renamedFrom(Versions.v2024_01_01_preview, "protocols") + protocol?: Protocol; + + #suppress "@azure-tools/typespec-azure-core/casing-style" + @removed(Versions.v2024_01_01_preview) + @renamedFrom(Versions.v2024_01_01_preview, "provisionedStorageGiB") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @minValue(0) + @maxValue(102400) + @doc("The provisioned storage size of the share in GiB (1 GiB is 1024^3 bytes or 1073741824 bytes). A component of the file share's bill is the provisioned storage, regardless of the amount of used storage.") + provisionedStorageGiBOld: int32; + + @added(Versions.v2024_01_01_preview) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @doc("The provisioned storage size of the share in GiB (1 GiB is 1024^3 bytes or 1073741824 bytes). A component of the file share's bill is the provisioned storage, regardless of the amount of used storage.") + provisionedStorageGiB?: int32; + + @visibility(Lifecycle.Read) + @added(Versions.v2024_01_01_preview) + @doc("A date/time value that specifies when the provisioned storage for the file share is permitted to be reduced.") + provisionedStorageNextAllowedDowngrade?: utcDateTime; + + #suppress "@azure-tools/typespec-azure-core/casing-style" + @removed(Versions.v2024_01_01_preview) + @renamedFrom(Versions.v2024_01_01_preview, "provisionedIOPerSec") + @visibility(Lifecycle.Read) + @minValue(0) + @maxValue(102400) + @doc("The provisioned IO / sec of the share. A component of the file share's bill is the provisioned IOPS, regardless of the amount of used IO. In 2023-01-01-preview, this is a computed value.") + provisionedIOPerSecOld?: int32; + + #suppress "@azure-tools/typespec-azure-core/casing-style" + @added(Versions.v2024_01_01_preview) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @doc("The provisioned IO / sec of the share.") + provisionedIOPerSec?: int32; + + #suppress "@azure-tools/typespec-azure-core/casing-style" + @visibility(Lifecycle.Read) + @added(Versions.v2024_01_01_preview) + @doc("A date/time value that specifies when the provisioned IOPS for the file share is permitted to be reduced.") + provisionedIOPerSecNextAllowedDowngrade?: utcDateTime; + + // See + // https://teams.microsoft.com/l/message/19:906c1efbbec54dc8949ac736633e6bdf@thread.skype/1723528633538?tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47&groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&parentMessageId=1723528633538&teamName=Azure%20SDK&channelName=TypeSpec%20Discussion&createdTime=1723528633538 + // https://azure.github.io/typespec-azure/docs/next/troubleshoot/versioning_operation_template_changes + #suppress "@azure-tools/typespec-azure-core/casing-style" + @removed(Versions.v2024_01_01_preview) + @renamedFrom(Versions.v2024_01_01_preview, "provisionedThroughputMiBPerSec") + @visibility(Lifecycle.Read) + @minValue(0) + @maxValue(10737418240) + @doc("The provisioned throughput / sec of the share. In 2023-01-01-preview, this is a computed value.") + provisionedThroughputMiBPerSecOld?: int64; + + #suppress "@azure-tools/typespec-azure-core/casing-style" + @added(Versions.v2024_01_01_preview) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @doc("The provisioned throughput / sec of the share.") + @typeChangedFrom(Versions.v2024_01_01_preview, int64) + provisionedThroughputMiBPerSec?: int32; + + #suppress "@azure-tools/typespec-azure-core/casing-style" + @added(Versions.v2024_01_01_preview) + @visibility(Lifecycle.Read) + @doc("A date/time value that specifies when the provisioned throughput for the file share is permitted to be reduced.") + provisionedThroughputNextAllowedDowngrade?: utcDateTime; + + #suppress "@azure-tools/typespec-azure-core/casing-style" + @visibility(Lifecycle.Read) + @minValue(3000) + @doc("Burst IOPS are extra buffer IOPS enabling you to consume more than your provisioned IOPS for a short period of time, depending on the burst credits available for your share.") + includedBurstIOPerSec?: int32; + + #suppress "@azure-tools/typespec-azure-core/casing-style" + @visibility(Lifecycle.Read) + @minValue(0) + @doc("Max burst IOPS credits shows the maximum number of burst credits the share can have at the current IOPS provisioning level.") + maxBurstIOPerSecCredits?: int64; + + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @doc("Protocol settings specific NFS.") + nfsProtocolProperties?: NfsProtocolProperties; + + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @doc("The set of properties for control public access.") + @renamedFrom(Versions.v2024_01_01_preview, "publicEndpointNetworkRuleSet") + publicAccessProperties?: PublicAccessProperties; + + @visibility(Lifecycle.Read) + @doc("The status of the last operation.") + provisioningState?: FileShareProvisioningState; + + @added(Versions.v2024_01_01_preview) + @doc("Gets or sets allow or disallow public network access to azure managed file share") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + publicNetworkAccess?: PublicNetworkAccess; + + /** + * List of private endpoint connections associated with the azure managed file share. + */ + @added(Versions.v2024_01_01_preview) + @visibility(Lifecycle.Read) + @doc("The list of associated private endpoint connections.") + privateEndpointConnections?: PrivateEndpointConnection[]; +} + +@doc("Azure Async Operation") +model AzureAsyncOperation { + /** Fully qualified ID for the async operation. */ + @doc("The resource path from GET operation.") + id?: Azure.Core.armResourceIdentifier; + + @doc("The operation id.") + name?: string; + + @doc("The status of the operation: | Succeeded | Failed | Canceled") + status: string; + + @doc("The start time of the operation.") + startTime?: utcDateTime; + + @doc("The end time of the operation.") + endTime?: utcDateTime; + + @doc("The percentage completed of the operation.") + @minValue(0.0) + @maxValue(100.0) + percentComplete?: float64; + + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "existing API" + #suppress "@azure-tools/typespec-azure-core/bad-record-type" "Not all values are strings in this dictionary." + @doc("Custom operation properties, populated only for a successful operation.") + properties?: Record; + + @doc("Operation error.") + error?: ErrorDetail; +} + +#deprecated "Deprecating 202 for PUT requests. Use 201 instead." +@doc("ARM create operation completed successfully.") +model ArmCreatedResponseWithAzureAsyncOperationHeader + extends ArmAcceptedResponse { + @doc("Response with a long running operation status follow up link.") + @pollingLocation + @header("Azure-AsyncOperation") + @visibility(Lifecycle.Read) + operationLocation: ResourceLocation>; +} + +@doc("A virtual network rule for the public endpoint.") +model VirtualNetworkRule { + @doc("The resource ID of a subnet.") + id: string; +} + +@doc("The set of properties for control public access.") +@renamedFrom(Versions.v2024_01_01_preview, "PublicEndpointNetworkRuleSet") +model PublicAccessProperties { + @doc("The allowed set of subnets when access is restricted.") + @renamedFrom(Versions.v2024_01_01_preview, "virtualNetworkRules") + @typeChangedFrom(Versions.v2024_01_01_preview, VirtualNetworkRule[]) + allowedSubnets?: string[]; +} + +@doc("Properties specific to the NFS protocol.") +model NfsProtocolProperties { + // Unless the user has explicitly set the root squash property, the default + // value is NoRootSquash. + @doc("Root squash defines how root users on clients are mapped to the NFS share.") + rootSquash?: ShareRootSquash; +} + +@lroStatus +@doc("The status of the last operation.") +union FileShareProvisioningState { + string, + Azure.ResourceManager.ResourceProvisioningState, + + @doc("The operation is provisioning.") + Provisioning: "Provisioning", + + @doc("The operation is updating.") + Updating: "Updating", + + @doc("The operation is deleting.") + Deleting: "Deleting", + + @doc("The operation is accepted.") + Accepted: "Accepted", +} + +@armResourceOperations +interface FileShares { + get is ArmResourceRead>; + + @doc("Create or update a file share.") + createOrUpdate is ArmResourceCreateOrReplaceAsync< + FileShare, + BaseParameters, + ArmAsyncOperationHeader & Azure.Core.Foundations.RetryAfterHeader + >; + + /** + * Update a FileShare + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "For backward compatibility" + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchAsync< + FileShare, + ResourceUpdateModel, + BaseParameters + >; + + delete is ArmResourceDeleteWithoutOkAsync< + FileShare, + BaseParameters + >; + + listBySubscription is ArmListBySubscription; + + listByParent is ArmResourceListByParent< + FileShare, + BaseParameters, + "", + "" + >; + + checkNameAvailability is checkLocalNameAvailability; + + @added(Versions.v2024_01_01_preview) + getFileShareSnapshot is ArmResourceRead< + FileShareSnapshot, + BaseParameters + >; + + @added(Versions.v2024_01_01_preview) + @doc("Create a FileShareSnapshot.") + createOrUpdateFileShareSnapshot is ArmResourceCreateOrReplaceSync< + FileShareSnapshot, + BaseParameters + >; + + @added(Versions.v2024_01_01_preview) + @doc("Update a FileShareSnapshot.") + updateFileShareSnapshot is ArmCustomPatchAsync< + FileShareSnapshot, + ResourceUpdateModel, + BaseParameters + >; + + @added(Versions.v2024_01_01_preview) + @doc("Delete a FileShareSnapshot.") + deleteFileShareSnapshot is ArmResourceDeleteWithoutOkAsync< + FileShareSnapshot, + BaseParameters + >; + + @added(Versions.v2024_01_01_preview) + @doc("List FileShareSnapshot by FileShare.") + listByFileShare is ArmResourceListByParent< + FileShareSnapshot, + BaseParameters, + "", + "" + >; +} + +@added(Versions.v2024_01_01_preview) +@doc("Extension Resource Action Scope") +@armVirtualResource +@extensionResource +model ExtensionResourceActionScope { + @doc("Symbolic name of scope") + @path + @visibility(Lifecycle.Read) + @key + @segment("extensionresource") + name: string; +} + +interface Operations { + // This operation was pulled from "extends Azure.ResourceManager.Operations" so that a @doc description can + // be added to generate a description in swagger. Primarily done to satisfy lint in azure-rest-api-specs-pr repo. + @tag("Operations") + @autoRoute + @armResourceList(OperationListResult) + @doc("List the operations for the provider") + @segment("operations") + @get + list( + ...ApiVersionParameter, + + @path + @segment("providers") + @doc("The provider namespace (this parameter will not show up in operations).") + provider: "Microsoft.ThisWillBeReplaced", + ): ArmResponse | ErrorResponse; +} + +@doc("State of the public network access.") +union PublicNetworkAccess { + string, + + @doc("The public network access is enabled") + Enabled: "Enabled", + + @doc("The public network access is disabled") + Disabled: "Disabled", +} + +@added(Versions.v2024_01_01_preview) +@doc("FileShareSnapshot resource") +@parentResource(FileShare) +model FileShareSnapshot + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = FileShareSnapshot, + KeyName = "name", + NamePattern = "^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$", + SegmentName = "fileShareSnapshots" + >; +} + +@doc("FileShareSnapshot properties") +@added(Versions.v2024_01_01_preview) +model FileShareSnapshotProperties { + // The FileShareSnapshot time of the file share FileShareSnapshot. + #suppress "@azure-tools/typespec-azure-core/casing-style" + @visibility(Lifecycle.Read) + @doc("The FileShareSnapshot time in UTC in string representation") + snapshotTime?: string; + + @visibility(Lifecycle.Read) + @doc("The initiator of the FileShareSnapshot") + initiatorId?: string; + + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "only string value are expected." + @doc("The metadata") + metadata?: Record; + + @visibility(Lifecycle.Read) + @doc("The status of the last operation.") + provisioningState?: FileShareProvisioningState; +} diff --git a/specification/fileshares/FileShares.Management/main.tsp b/specification/fileshares/FileShares.Management/main.tsp new file mode 100644 index 000000000000..ba5c8040ad72 --- /dev/null +++ b/specification/fileshares/FileShares.Management/main.tsp @@ -0,0 +1 @@ +import "./fileshares.tsp"; diff --git a/specification/fileshares/FileShares.Management/tspconfig.yaml b/specification/fileshares/FileShares.Management/tspconfig.yaml new file mode 100644 index 000000000000..5f196f7c003c --- /dev/null +++ b/specification/fileshares/FileShares.Management/tspconfig.yaml @@ -0,0 +1,48 @@ +parameters: + "service-dir": + default: "sdk/fileshares" +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + use-read-only-status-schema: true + emitter-output-dir: "{project-root}/.." + azure-resource-provider-folder: "resource-manager" + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/fileshares.json" + "@azure-tools/typespec-csharp": + flavor: azure + package-dir: "Azure.ResourceManager.Fileshares" + clear-output-folder: true + model-namespace: true + namespace: "{package-dir}" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-fileshares" + namespace: "azure.mgmt.fileshares" + generate-test: true + generate-sample: true + flavor: "azure" + "@azure-tools/typespec-java": + package-dir: "azure-resourcemanager-fileshares" + namespace: "com.azure.resourcemanager.fileshares" + service-name: "File Shares" + flavor: azure + "@azure-tools/typespec-ts": + package-dir: "arm-fileshares" + is-modular-library: true + flavor: "azure" + experimental-extensible-enums: true + package-details: + name: "@azure/arm-fileshares" + "@azure-tools/typespec-go": + service-dir: "sdk/resourcemanager/fileshares" + package-dir: "armfileshares" + module: "github.com/Azure/azure-sdk-for-go/{service-dir}/{package-dir}" + fix-const-stuttering: true + flavor: "azure" + generate-samples: true + generate-fakes: true + head-as-boolean: true + inject-spans: true +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/fileshares/cspell.yaml b/specification/fileshares/cspell.yaml new file mode 100644 index 000000000000..3944e85de61c --- /dev/null +++ b/specification/fileshares/cspell.yaml @@ -0,0 +1,6 @@ +import: + - ../../cspell.yaml +words: + - beureng + - myfileshare + - euap \ No newline at end of file diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_CheckNameAvailability_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_CheckNameAvailability_MaximumSet_Gen.json new file mode 100644 index 000000000000..84efb6f77e85 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_CheckNameAvailability_MaximumSet_Gen.json @@ -0,0 +1,22 @@ +{ + "title": "FileShares_CheckNameAvailability_MaximumSet", + "operationId": "FileShares_CheckNameAvailability", + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "44EEA578-10B8-4489-8B60-2F8BA982F1E2", + "location": "westus", + "body": { + "name": "mqlepzvhxzskylkwdxbmxcemtbyvh", + "type": "qoqvzhhkxgfr" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "reason": "Invalid", + "message": "lssnd" + } + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_CheckNameAvailability_MinimumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_CheckNameAvailability_MinimumSet_Gen.json new file mode 100644 index 000000000000..79e6dbe98ebc --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_CheckNameAvailability_MinimumSet_Gen.json @@ -0,0 +1,15 @@ +{ + "title": "FileShares_CheckNameAvailability_MinimumSet", + "operationId": "FileShares_CheckNameAvailability", + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "44EEA578-10B8-4489-8B60-2F8BA982F1E2", + "location": "westus", + "body": {} + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_CreateOrUpdate_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_CreateOrUpdate_MaximumSet_Gen.json new file mode 100644 index 000000000000..d5adfb736d3b --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_CreateOrUpdate_MaximumSet_Gen.json @@ -0,0 +1,128 @@ +{ + "title": "FileShares_CreateOrUpdate_MaximumSet", + "operationId": "FileShares_CreateOrUpdate", + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "44EEA578-10B8-4489-8B60-2F8BA982F1E2", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare", + "resource": { + "properties": { + "shareName": "testfileshare", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 80013, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [ + { + "id": "szgchxzvtnnmgmxwrblakajghfxt" + } + ] + } + }, + "tags": { + "key3533": "tagValue" + }, + "location": "ijgwtizkwlhftlkpisezexdrkrffy" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "shareName": "testfileshare", + "hostName": "fs-vlp5bkznznf0dkb4z.z16.file.storage.azure.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 80013, + "provisionedIOPerSec": 16293, + "provisionedThroughputMiBPerSec": 6721016643, + "includedBurstIOPerSec": 65925, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [ + { + "id": "szgchxzvtnnmgmxwrblakajghfxt" + } + ] + }, + "provisioningState": "Succeeded" + }, + "tags": { + "key3533": "tagValue" + }, + "location": "ijgwtizkwlhftlkpisezexdrkrffy", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/ankushb-pe-fs-01", + "name": "testfileshare", + "type": "Microsoft.FileShares/fileShares", + "systemData": { + "createdBy": "testuser", + "createdByType": "User", + "createdAt": "2025-04-29T23:32:13.130Z", + "lastModifiedBy": "kjn", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:32:13.131Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "shareName": "testfileshare", + "hostName": "fs-vlp5bkznznf0dkb4z.z16.file.storage.azure.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 80013, + "provisionedIOPerSec": 16293, + "provisionedThroughputMiBPerSec": 6721016643, + "includedBurstIOPerSec": 65925, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [ + { + "id": "szgchxzvtnnmgmxwrblakajghfxt" + } + ] + }, + "provisioningState": "Succeeded" + }, + "tags": { + "key3533": "tagValue" + }, + "location": "ijgwtizkwlhftlkpisezexdrkrffy", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/ankushb-pe-fs-01", + "name": "testfileshare", + "type": "Microsoft.FileShares/fileShares", + "systemData": { + "createdBy": "testuser", + "createdByType": "User", + "createdAt": "2025-04-29T23:32:13.130Z", + "lastModifiedBy": "kjn", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:32:13.131Z" + } + } + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_Delete_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..d727e4727dd2 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_Delete_MaximumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "FileShares_Delete_MaximumSet", + "operationId": "FileShares_Delete", + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "44EEA578-10B8-4489-8B60-2F8BA982F1E2", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_Get_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..34ec354c6321 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_Get_MaximumSet_Gen.json @@ -0,0 +1,56 @@ +{ + "title": "FileShares_Get_MaximumSet", + "operationId": "FileShares_Get", + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "44EEA578-10B8-4489-8B60-2F8BA982F1E2", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare" + }, + "responses": { + "200": { + "body": { + "properties": { + "shareName": "testfileshare", + "hostName": "fs-vlp5bkznznf0dkb4z.z16.file.storage.azure.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 80013, + "provisionedIOPerSec": 16293, + "provisionedThroughputMiBPerSec": 6721016643, + "includedBurstIOPerSec": 65925, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [ + { + "id": "szgchxzvtnnmgmxwrblakajghfxt" + } + ] + }, + "provisioningState": "Succeeded" + }, + "tags": { + "key3533": "tagValue" + }, + "location": "ijgwtizkwlhftlkpisezexdrkrffy", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare", + "name": "testfileshare", + "type": "Microsoft.FileShares/fileShares", + "systemData": { + "createdBy": "testuser", + "createdByType": "User", + "createdAt": "2025-04-29T23:32:13.130Z", + "lastModifiedBy": "kjn", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:32:13.131Z" + } + } + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_ListByParent_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_ListByParent_MaximumSet_Gen.json new file mode 100644 index 000000000000..491e2b0d78a3 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_ListByParent_MaximumSet_Gen.json @@ -0,0 +1,60 @@ +{ + "title": "FileShares_ListByParent_MaximumSet", + "operationId": "FileShares_ListByParent", + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "44EEA578-10B8-4489-8B60-2F8BA982F1E2", + "resourceGroupName": "rgfileshares" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "shareName": "testfileshare", + "hostName": "fs-vlp5bkznznf0dkb4z.z16.file.storage.azure.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 80013, + "provisionedIOPerSec": 16293, + "provisionedThroughputMiBPerSec": 6721016643, + "includedBurstIOPerSec": 65925, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [ + { + "id": "szgchxzvtnnmgmxwrblakajghfxt" + } + ] + }, + "provisioningState": "Succeeded" + }, + "tags": { + "key3533": "tagValue" + }, + "location": "ijgwtizkwlhftlkpisezexdrkrffy", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/ankushb-pe-fs-01", + "name": "testfileshare", + "type": "Microsoft.FileShares/fileShares", + "systemData": { + "createdBy": "testuser", + "createdByType": "User", + "createdAt": "2025-04-29T23:32:13.130Z", + "lastModifiedBy": "kjn", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:32:13.131Z" + } + } + ], + "nextLink": "https://microsoft.com/avr" + } + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_ListBySubscription_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_ListBySubscription_MaximumSet_Gen.json new file mode 100644 index 000000000000..4be799036de8 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_ListBySubscription_MaximumSet_Gen.json @@ -0,0 +1,59 @@ +{ + "title": "FileShares_ListBySubscription_MaximumSet", + "operationId": "FileShares_ListBySubscription", + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "44EEA578-10B8-4489-8B60-2F8BA982F1E2" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "shareName": "testfileshare", + "hostName": "fs-vlp5bkznznf0dkb4z.z16.file.storage.azure.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 80013, + "provisionedIOPerSec": 16293, + "provisionedThroughputMiBPerSec": 6721016643, + "includedBurstIOPerSec": 65925, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [ + { + "id": "szgchxzvtnnmgmxwrblakajghfxt" + } + ] + }, + "provisioningState": "Succeeded" + }, + "tags": { + "key3533": "tagValue" + }, + "location": "ijgwtizkwlhftlkpisezexdrkrffy", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/ankushb-pe-fs-01", + "name": "testfileshare", + "type": "Microsoft.FileShares/fileShares", + "systemData": { + "createdBy": "testuser", + "createdByType": "User", + "createdAt": "2025-04-29T23:32:13.130Z", + "lastModifiedBy": "kjn", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:32:13.131Z" + } + } + ], + "nextLink": "https://microsoft.com/avr" + } + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_Update_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..3a64564d1061 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/FileShares_Update_MaximumSet_Gen.json @@ -0,0 +1,79 @@ +{ + "title": "FileShares_Update_MaximumSet", + "operationId": "FileShares_Update", + "parameters": { + "api-version": "2023-01-01-preview", + "subscriptionId": "44EEA578-10B8-4489-8B60-2F8BA982F1E2", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare", + "properties": { + "tags": { + "key6101": "mhepchqjsdawlcxhgvjydc" + }, + "properties": { + "provisionedStorageGiB": 41436, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [ + { + "id": "szgchxzvtnnmgmxwrblakajghfxt" + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "shareName": "testfileshare", + "hostName": "fs-vlp5bkznznf0dkb4z.z16.file.storage.azure.net", + "tier": "SSD", + "redundancy": "Local", + "protocols": [ + "NFS" + ], + "provisionedStorageGiB": 80013, + "provisionedIOPerSec": 16293, + "provisionedThroughputMiBPerSec": 6721016643, + "includedBurstIOPerSec": 65925, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicEndpointNetworkRuleSet": { + "virtualNetworkRules": [ + { + "id": "szgchxzvtnnmgmxwrblakajghfxt" + } + ] + }, + "provisioningState": "Succeeded" + }, + "tags": { + "key3533": "tagValue" + }, + "location": "ijgwtizkwlhftlkpisezexdrkrffy", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/ankushb-pe-fs-01", + "name": "testfileshare", + "type": "Microsoft.FileShares/fileShares", + "systemData": { + "createdBy": "testuser", + "createdByType": "User", + "createdAt": "2025-04-29T23:32:13.130Z", + "lastModifiedBy": "kjn", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:32:13.131Z" + } + } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/Operations_List_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/Operations_List_MaximumSet_Gen.json new file mode 100644 index 000000000000..65a525da0563 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/Operations_List_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List_MaximumSet", + "operationId": "Operations_List", + "parameters": { + "api-version": "2023-01-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "nsxqqomffobcddziwcekyvbju", + "isDataAction": true, + "display": { + "provider": "dvkwtyqkctwacj", + "resource": "grhibsxs", + "operation": "dwdyvvieltcdmxmpwmqma", + "description": "fctthiwppwombnbxfiwsoobmwjks" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "https://microsoft.com/ah" + } + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/Operations_List_MinimumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/Operations_List_MinimumSet_Gen.json new file mode 100644 index 000000000000..2da186c9c768 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/examples/Operations_List_MinimumSet_Gen.json @@ -0,0 +1,12 @@ +{ + "title": "Operations_List_MinimumSet", + "operationId": "Operations_List", + "parameters": { + "api-version": "2023-01-01-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/fileshares.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/fileshares.json new file mode 100644 index 000000000000..d572e0f348c6 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2023-01-01-preview/fileshares.json @@ -0,0 +1,892 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.FileShares", + "version": "2023-01-01-preview", + "description": "Azure File Shares Resource Provider API.", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "FileShares" + }, + { + "name": "Operations" + } + ], + "paths": { + "/providers/Microsoft.FileShares/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_List_MaximumSet": { + "$ref": "./examples/Operations_List_MaximumSet_Gen.json" + }, + "Operations_List_MinimumSet": { + "$ref": "./examples/Operations_List_MinimumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.FileShares/fileShares": { + "get": { + "operationId": "FileShares_ListBySubscription", + "tags": [ + "FileShares" + ], + "description": "List FileShare resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/FileShareListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_ListBySubscription_MaximumSet": { + "$ref": "./examples/FileShares_ListBySubscription_MaximumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.FileShares/locations/{location}/checkNameAvailability": { + "post": { + "operationId": "FileShares_CheckNameAvailability", + "tags": [ + "FileShares" + ], + "description": "Implements local CheckNameAvailability operations", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/LocationParameter" + }, + { + "name": "body", + "in": "body", + "description": "The CheckAvailability request", + "required": true, + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/CheckNameAvailabilityRequest" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/CheckNameAvailabilityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_CheckNameAvailability_MaximumSet": { + "$ref": "./examples/FileShares_CheckNameAvailability_MaximumSet_Gen.json" + }, + "FileShares_CheckNameAvailability_MinimumSet": { + "$ref": "./examples/FileShares_CheckNameAvailability_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.FileShares/fileShares": { + "get": { + "operationId": "FileShares_ListByParent", + "tags": [ + "FileShares" + ], + "description": "List FileShare resources by resource group", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/FileShareListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_ListByParent_MaximumSet": { + "$ref": "./examples/FileShares_ListByParent_MaximumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.FileShares/fileShares/{resourceName}": { + "get": { + "operationId": "FileShares_Get", + "tags": [ + "FileShares" + ], + "description": "Get a FileShare", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceName", + "in": "path", + "description": "The resource name of the file share, as seen by the administrator through Azure Resource Manager.", + "required": true, + "type": "string", + "pattern": "^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/FileShare" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_Get_MaximumSet": { + "$ref": "./examples/FileShares_Get_MaximumSet_Gen.json" + } + } + }, + "put": { + "operationId": "FileShares_CreateOrUpdate", + "tags": [ + "FileShares" + ], + "description": "Create or update a file share.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceName", + "in": "path", + "description": "The resource name of the file share, as seen by the administrator through Azure Resource Manager.", + "required": true, + "type": "string", + "pattern": "^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/FileShare" + } + } + ], + "responses": { + "200": { + "description": "Resource 'FileShare' update operation succeeded", + "schema": { + "$ref": "#/definitions/FileShare" + } + }, + "201": { + "description": "Resource 'FileShare' create operation succeeded", + "schema": { + "$ref": "#/definitions/FileShare" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_CreateOrUpdate_MaximumSet": { + "$ref": "./examples/FileShares_CreateOrUpdate_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "FileShares_Update", + "tags": [ + "FileShares" + ], + "description": "Update a FileShare", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceName", + "in": "path", + "description": "The resource name of the file share, as seen by the administrator through Azure Resource Manager.", + "required": true, + "type": "string", + "pattern": "^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/FileShareUpdate" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/FileShare" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_Update_MaximumSet": { + "$ref": "./examples/FileShares_Update_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "FileShares_Delete", + "tags": [ + "FileShares" + ], + "description": "Delete a FileShare", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceName", + "in": "path", + "description": "The resource name of the file share, as seen by the administrator through Azure Resource Manager.", + "required": true, + "type": "string", + "pattern": "^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_Delete_MaximumSet": { + "$ref": "./examples/FileShares_Delete_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "AzureAsyncOperation": { + "type": "object", + "description": "Azure Async Operation", + "properties": { + "id": { + "type": "string", + "format": "arm-id", + "description": "The resource path from GET operation." + }, + "name": { + "type": "string", + "description": "The operation id." + }, + "status": { + "type": "string", + "description": "The status of the operation: | Succeeded | Failed | Canceled" + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the operation." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The end time of the operation." + }, + "percentComplete": { + "type": "number", + "format": "double", + "description": "The percentage completed of the operation.", + "minimum": 0, + "maximum": 100 + }, + "properties": { + "type": "object", + "description": "Custom operation properties, populated only for a successful operation.", + "additionalProperties": {} + }, + "error": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorDetail", + "description": "Operation error." + } + }, + "required": [ + "status" + ] + }, + "FileShare": { + "type": "object", + "description": "File share resource", + "properties": { + "properties": { + "$ref": "#/definitions/FileShareProperties", + "description": "The resource-specific properties for this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/TrackedResource" + } + ] + }, + "FileShareListResult": { + "type": "object", + "description": "The response of a FileShare list operation.", + "properties": { + "value": { + "type": "array", + "description": "The FileShare items on this page", + "items": { + "$ref": "#/definitions/FileShare" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "FileShareProperties": { + "type": "object", + "description": "File share properties", + "properties": { + "shareName": { + "type": "string", + "description": "The name of the file share as seen by the end user when mounting the share, such as in a URI or UNC format in their operating system.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "hostName": { + "type": "string", + "description": "The host name of the file share.", + "readOnly": true + }, + "tier": { + "$ref": "#/definitions/Tier", + "description": "The storage media tier of the file share.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "redundancy": { + "$ref": "#/definitions/Redundancy", + "description": "The chosen redundancy level of the file share.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "protocols": { + "type": "array", + "description": "The file sharing protocol for this file share.", + "items": { + "$ref": "#/definitions/Protocol" + }, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "provisionedStorageGiB": { + "type": "integer", + "format": "int32", + "description": "The provisioned storage size of the share in GiB (1 GiB is 1024^3 bytes or 1073741824 bytes). A component of the file share's bill is the provisioned storage, regardless of the amount of used storage.", + "minimum": 0, + "maximum": 102400, + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "provisionedIOPerSec": { + "type": "integer", + "format": "int32", + "description": "The provisioned IO / sec of the share. A component of the file share's bill is the provisioned IOPS, regardless of the amount of used IO. In 2023-01-01-preview, this is a computed value.", + "minimum": 0, + "maximum": 102400, + "readOnly": true + }, + "provisionedThroughputMiBPerSec": { + "type": "integer", + "format": "int64", + "description": "The provisioned throughput / sec of the share. In 2023-01-01-preview, this is a computed value.", + "minimum": 0, + "maximum": 10737418240, + "readOnly": true + }, + "includedBurstIOPerSec": { + "type": "integer", + "format": "int32", + "description": "Burst IOPS are extra buffer IOPS enabling you to consume more than your provisioned IOPS for a short period of time, depending on the burst credits available for your share.", + "minimum": 3000, + "readOnly": true + }, + "maxBurstIOPerSecCredits": { + "type": "integer", + "format": "int64", + "description": "Max burst IOPS credits shows the maximum number of burst credits the share can have at the current IOPS provisioning level.", + "minimum": 0, + "readOnly": true + }, + "nfsProtocolProperties": { + "$ref": "#/definitions/NfsProtocolProperties", + "description": "Protocol settings specific NFS.", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "publicEndpointNetworkRuleSet": { + "$ref": "#/definitions/PublicEndpointNetworkRuleSet", + "description": "The set of properties for control public access.", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "provisioningState": { + "$ref": "#/definitions/FileShareProvisioningState", + "description": "The status of the last operation.", + "readOnly": true + } + }, + "required": [ + "provisionedStorageGiB" + ] + }, + "FileShareProvisioningState": { + "type": "string", + "description": "The status of the last operation.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Provisioning", + "Updating", + "Deleting", + "Accepted" + ], + "x-ms-enum": { + "name": "FileShareProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + }, + { + "name": "Provisioning", + "value": "Provisioning", + "description": "The operation is provisioning." + }, + { + "name": "Updating", + "value": "Updating", + "description": "The operation is updating." + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "The operation is deleting." + }, + { + "name": "Accepted", + "value": "Accepted", + "description": "The operation is accepted." + } + ] + }, + "readOnly": true + }, + "FileShareUpdate": { + "type": "object", + "description": "The type used for update operations of the FileShare.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/FileShareUpdateProperties", + "description": "The resource-specific properties for this resource." + } + } + }, + "FileShareUpdateProperties": { + "type": "object", + "description": "The updatable properties of the FileShare.", + "properties": { + "provisionedStorageGiB": { + "type": "integer", + "format": "int32", + "description": "The provisioned storage size of the share in GiB (1 GiB is 1024^3 bytes or 1073741824 bytes). A component of the file share's bill is the provisioned storage, regardless of the amount of used storage.", + "minimum": 0, + "maximum": 102400, + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "nfsProtocolProperties": { + "$ref": "#/definitions/NfsProtocolProperties", + "description": "Protocol settings specific NFS.", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "publicEndpointNetworkRuleSet": { + "$ref": "#/definitions/PublicEndpointNetworkRuleSet", + "description": "The set of properties for control public access.", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + } + } + }, + "NfsProtocolProperties": { + "type": "object", + "description": "Properties specific to the NFS protocol.", + "properties": { + "rootSquash": { + "$ref": "#/definitions/ShareRootSquash", + "description": "Root squash defines how root users on clients are mapped to the NFS share." + } + } + }, + "Protocol": { + "type": "string", + "description": "Protocol enum.", + "enum": [ + "NFS" + ], + "x-ms-enum": { + "name": "Protocol", + "modelAsString": false + } + }, + "PublicEndpointNetworkRuleSet": { + "type": "object", + "description": "The set of properties for control public access.", + "properties": { + "virtualNetworkRules": { + "type": "array", + "description": "The allowed set of subnets when access is restricted.", + "items": { + "$ref": "#/definitions/VirtualNetworkRule" + } + } + } + }, + "PublicNetworkAccess": { + "type": "string", + "description": "State of the public network access.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "The public network access is enabled" + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "The public network access is disabled" + } + ] + } + }, + "Redundancy": { + "type": "string", + "description": "Redundancy enum.", + "enum": [ + "Local", + "Zone" + ], + "x-ms-enum": { + "name": "Redundancy", + "modelAsString": false + } + }, + "ShareRootSquash": { + "type": "string", + "description": "Share root squash enum.", + "enum": [ + "NoRootSquash", + "RootSquash", + "AllSquash" + ], + "x-ms-enum": { + "name": "ShareRootSquash", + "modelAsString": false + } + }, + "Tier": { + "type": "string", + "description": "Media Tier enum.", + "enum": [ + "SSD" + ], + "x-ms-enum": { + "name": "Tier", + "modelAsString": false + } + }, + "VirtualNetworkRule": { + "type": "object", + "description": "A virtual network rule for the public endpoint.", + "properties": { + "id": { + "type": "string", + "description": "The resource ID of a subnet." + } + }, + "required": [ + "id" + ] + } + }, + "parameters": {} +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_CheckNameAvailability_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_CheckNameAvailability_MaximumSet_Gen.json new file mode 100644 index 000000000000..a54a1b5ff14e --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_CheckNameAvailability_MaximumSet_Gen.json @@ -0,0 +1,22 @@ +{ + "title": "FileShares_CheckNameAvailability_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_CheckNameAvailability", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "location": "westus", + "body": { + "name": "vmwdhkiwetidjwivkh", + "type": "akrkqjmn" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "reason": "Invalid", + "message": "lmqlk" + } + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_CheckNameAvailability_MinimumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_CheckNameAvailability_MinimumSet_Gen.json new file mode 100644 index 000000000000..11e4d2788620 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_CheckNameAvailability_MinimumSet_Gen.json @@ -0,0 +1,15 @@ +{ + "title": "FileShares_CheckNameAvailability_MaximumSet_Gen - generated by [MinimumSet] rule", + "operationId": "FileShares_CheckNameAvailability", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "location": "westus", + "body": {} + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_CreateOrUpdateFileShareSnapshot_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_CreateOrUpdateFileShareSnapshot_MaximumSet_Gen.json new file mode 100644 index 000000000000..a0543a227a6a --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_CreateOrUpdateFileShareSnapshot_MaximumSet_Gen.json @@ -0,0 +1,66 @@ +{ + "title": "FileShares_CreateOrUpdateFileShareSnapshot_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_CreateOrUpdateFileShareSnapshot", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare", + "name": "testfilesharesnapshot", + "resource": { + "properties": { + "metadata": { + "key5497": "xxznaauato" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "snapshotTime": "pc", + "initiatorId": "nckiqfg", + "metadata": { + "key5497": "xxznaauato" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare/fileShareSnapshots/testfilesharesnapshot", + "name": "nneoakpugzjbalgyieeyz", + "type": "fmqfludbm", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + }, + "201": { + "body": { + "properties": { + "snapshotTime": "pc", + "initiatorId": "nckiqfg", + "metadata": { + "key5497": "xxznaauato" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare/fileShareSnapshots/testfilesharesnapshot", + "name": "nneoakpugzjbalgyieeyz", + "type": "fmqfludbm", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_CreateOrUpdate_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_CreateOrUpdate_MaximumSet_Gen.json new file mode 100644 index 000000000000..d34564700b46 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_CreateOrUpdate_MaximumSet_Gen.json @@ -0,0 +1,185 @@ +{ + "title": "FileShares_CreateOrUpdate_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_CreateOrUpdate", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare", + "resource": { + "properties": { + "mountName": "kyujsrfk", + "mediaTier": "SSD", + "redundancy": "Local", + "protocol": "NFS", + "provisionedStorageGiB": 15, + "provisionedIOPerSec": 29, + "provisionedThroughputMiBPerSec": 25, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicAccessProperties": { + "allowedSubnets": [ + "pvjhqlnqfiubvbfcggthlpy" + ] + }, + "publicNetworkAccess": "Enabled" + }, + "tags": { + "key1961": "p" + }, + "location": "xrrekltkvmzdinob" + } + }, + "responses": { + "200": { + "body": { + "properties": { + "mountName": "kyujsrfk", + "hostName": "kivhbjhhzdiycggwbawziu", + "mediaTier": "SSD", + "redundancy": "Local", + "protocol": "NFS", + "provisionedStorageGiB": 15, + "provisionedStorageNextAllowedDowngrade": "2025-04-29T23:26:28.149Z", + "provisionedIOPerSec": 29, + "provisionedIOPerSecNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "provisionedThroughputMiBPerSec": 25, + "provisionedThroughputNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "includedBurstIOPerSec": 89085, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicAccessProperties": { + "allowedSubnets": [ + "pvjhqlnqfiubvbfcggthlpy" + ] + }, + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "privateEndpointConnections": [ + { + "properties": { + "groupIds": [ + "fileshares" + ], + "privateEndpoint": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "nhata", + "actionsRequired": "seyoojnwbtmcegqbsvpsofboc" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.FileShares/fileShares/testresourcename/privateEndpointConnections/privateEndpointConnectionName", + "name": "ukgsebzwjbtporzza", + "type": "oyfdiyedpaykrg", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + ] + }, + "tags": { + "key1961": "p" + }, + "location": "xrrekltkvmzdinob", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare", + "name": "lwvxc", + "type": "etietawcvvuzkvfrqsdlxfgavxv", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + }, + "201": { + "headers": { + "Azure-AsyncOperation": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "mountName": "kyujsrfk", + "hostName": "kivhbjhhzdiycggwbawziu", + "mediaTier": "SSD", + "redundancy": "Local", + "protocol": "NFS", + "provisionedStorageGiB": 15, + "provisionedStorageNextAllowedDowngrade": "2025-04-29T23:26:28.149Z", + "provisionedIOPerSec": 29, + "provisionedIOPerSecNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "provisionedThroughputMiBPerSec": 25, + "provisionedThroughputNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "includedBurstIOPerSec": 89085, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicAccessProperties": { + "allowedSubnets": [ + "pvjhqlnqfiubvbfcggthlpy" + ] + }, + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "privateEndpointConnections": [ + { + "properties": { + "groupIds": [ + "fileshares" + ], + "privateEndpoint": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "nhata", + "actionsRequired": "seyoojnwbtmcegqbsvpsofboc" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.FileShares/fileShares/testresourcename/privateEndpointConnections/privateEndpointConnectionName", + "name": "ukgsebzwjbtporzza", + "type": "oyfdiyedpaykrg", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + ] + }, + "tags": { + "key1961": "p" + }, + "location": "xrrekltkvmzdinob", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare", + "name": "lwvxc", + "type": "etietawcvvuzkvfrqsdlxfgavxv", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_DeleteFileShareSnapshot_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_DeleteFileShareSnapshot_MaximumSet_Gen.json new file mode 100644 index 000000000000..68ceee6ecc75 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_DeleteFileShareSnapshot_MaximumSet_Gen.json @@ -0,0 +1,19 @@ +{ + "title": "FileShares_DeleteFileShareSnapshot_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_DeleteFileShareSnapshot", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare", + "name": "testfilesharesnapshot" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_Delete_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_Delete_MaximumSet_Gen.json new file mode 100644 index 000000000000..8c088fdddda1 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_Delete_MaximumSet_Gen.json @@ -0,0 +1,18 @@ +{ + "title": "FileShares_Delete_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_Delete", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare" + }, + "responses": { + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + }, + "204": {} + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_GetFileShareSnapshot_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_GetFileShareSnapshot_MaximumSet_Gen.json new file mode 100644 index 000000000000..52ffa7523974 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_GetFileShareSnapshot_MaximumSet_Gen.json @@ -0,0 +1,36 @@ +{ + "title": "FileShares_GetFileShareSnapshot_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_GetFileShareSnapshot", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare", + "name": "testfilesharesnapshot" + }, + "responses": { + "200": { + "body": { + "properties": { + "snapshotTime": "pc", + "initiatorId": "nckiqfg", + "metadata": { + "key5497": "xxznaauato" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare/fileShareSnapshots/testfilesharesnapshot", + "name": "nneoakpugzjbalgyieeyz", + "type": "fmqfludbm", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_Get_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_Get_MaximumSet_Gen.json new file mode 100644 index 000000000000..043bb341d753 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_Get_MaximumSet_Gen.json @@ -0,0 +1,85 @@ +{ + "title": "FileShares_Get_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_Get", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare" + }, + "responses": { + "200": { + "body": { + "properties": { + "mountName": "kyujsrfk", + "hostName": "kivhbjhhzdiycggwbawziu", + "mediaTier": "SSD", + "redundancy": "Local", + "protocol": "NFS", + "provisionedStorageGiB": 15, + "provisionedStorageNextAllowedDowngrade": "2025-04-29T23:26:28.149Z", + "provisionedIOPerSec": 29, + "provisionedIOPerSecNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "provisionedThroughputMiBPerSec": 25, + "provisionedThroughputNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "includedBurstIOPerSec": 89085, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicAccessProperties": { + "allowedSubnets": [ + "pvjhqlnqfiubvbfcggthlpy" + ] + }, + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "privateEndpointConnections": [ + { + "properties": { + "groupIds": [ + "fileshares" + ], + "privateEndpoint": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "nhata", + "actionsRequired": "seyoojnwbtmcegqbsvpsofboc" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.FileShares/fileShares/testresourcename/privateEndpointConnections/privateEndpointConnectionName", + "name": "ukgsebzwjbtporzza", + "type": "oyfdiyedpaykrg", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + ] + }, + "tags": { + "key1961": "p" + }, + "location": "xrrekltkvmzdinob", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare", + "name": "lwvxc", + "type": "etietawcvvuzkvfrqsdlxfgavxv", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_ListByFileShare_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_ListByFileShare_MaximumSet_Gen.json new file mode 100644 index 000000000000..514758072efa --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_ListByFileShare_MaximumSet_Gen.json @@ -0,0 +1,40 @@ +{ + "title": "FileShares_ListByFileShare_MaximumSet", + "operationId": "FileShares_ListByFileShare", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "09A2620A-99C9-4A63-A89E-AB06AA59A998", + "resourceGroupName": "rgfileshares", + "resourceName": "testfilesharesnapshot" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "snapshotTime": "tey", + "initiatorId": "i", + "metadata": { + "key2374": "enznkeuacgnsdlcgcg" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare/fileShareSnapshots/testfilesharesnapshot", + "name": "fhjirzquakiktrsyqmfubedzowe", + "type": "dkksokbqykeajfh", + "systemData": { + "createdBy": "smrgywfkjcxlor", + "createdByType": "User", + "createdAt": "2025-04-30T15:00:13.612Z", + "lastModifiedBy": "dkduwnwucpvqd", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-30T15:00:13.612Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_ListByParent_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_ListByParent_MaximumSet_Gen.json new file mode 100644 index 000000000000..8ad2f29c9bcd --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_ListByParent_MaximumSet_Gen.json @@ -0,0 +1,89 @@ +{ + "title": "FileShares_ListByParent_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_ListByParent", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "resourceGroupName": "rgfileshares" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "mountName": "kyujsrfk", + "hostName": "kivhbjhhzdiycggwbawziu", + "mediaTier": "SSD", + "redundancy": "Local", + "protocol": "NFS", + "provisionedStorageGiB": 15, + "provisionedStorageNextAllowedDowngrade": "2025-04-29T23:26:28.149Z", + "provisionedIOPerSec": 29, + "provisionedIOPerSecNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "provisionedThroughputMiBPerSec": 25, + "provisionedThroughputNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "includedBurstIOPerSec": 89085, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicAccessProperties": { + "allowedSubnets": [ + "pvjhqlnqfiubvbfcggthlpy" + ] + }, + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "privateEndpointConnections": [ + { + "properties": { + "groupIds": [ + "fileshares" + ], + "privateEndpoint": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "nhata", + "actionsRequired": "seyoojnwbtmcegqbsvpsofboc" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.FileShares/fileShares/testresourcename/privateEndpointConnections/privateEndpointConnectionName", + "name": "ukgsebzwjbtporzza", + "type": "oyfdiyedpaykrg", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + ] + }, + "tags": { + "key1961": "p" + }, + "location": "xrrekltkvmzdinob", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare", + "name": "lwvxc", + "type": "etietawcvvuzkvfrqsdlxfgavxv", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_ListBySubscription_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_ListBySubscription_MaximumSet_Gen.json new file mode 100644 index 000000000000..0ee87c9a26ab --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_ListBySubscription_MaximumSet_Gen.json @@ -0,0 +1,88 @@ +{ + "title": "FileShares_ListBySubscription_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_ListBySubscription", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "mountName": "kyujsrfk", + "hostName": "kivhbjhhzdiycggwbawziu", + "mediaTier": "SSD", + "redundancy": "Local", + "protocol": "NFS", + "provisionedStorageGiB": 15, + "provisionedStorageNextAllowedDowngrade": "2025-04-29T23:26:28.149Z", + "provisionedIOPerSec": 29, + "provisionedIOPerSecNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "provisionedThroughputMiBPerSec": 25, + "provisionedThroughputNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "includedBurstIOPerSec": 89085, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicAccessProperties": { + "allowedSubnets": [ + "pvjhqlnqfiubvbfcggthlpy" + ] + }, + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "privateEndpointConnections": [ + { + "properties": { + "groupIds": [ + "fileshares" + ], + "privateEndpoint": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "nhata", + "actionsRequired": "seyoojnwbtmcegqbsvpsofboc" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.FileShares/fileShares/testresourcename/privateEndpointConnections/privateEndpointConnectionName", + "name": "ukgsebzwjbtporzza", + "type": "oyfdiyedpaykrg", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + ] + }, + "tags": { + "key1961": "p" + }, + "location": "xrrekltkvmzdinob", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare", + "name": "lwvxc", + "type": "etietawcvvuzkvfrqsdlxfgavxv", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_UpdateFileShareSnapshot_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_UpdateFileShareSnapshot_MaximumSet_Gen.json new file mode 100644 index 000000000000..6ccdbdab6d20 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_UpdateFileShareSnapshot_MaximumSet_Gen.json @@ -0,0 +1,48 @@ +{ + "title": "FileShares_UpdateFileShareSnapshot_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_UpdateFileShareSnapshot", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare", + "name": "testfilesharesnapshot", + "properties": { + "properties": { + "metadata": { + "key5497": "xxznaauato" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "snapshotTime": "pc", + "initiatorId": "nckiqfg", + "metadata": { + "key5497": "xxznaauato" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare/fileShareSnapshots/testfilesharesnapshot", + "name": "nneoakpugzjbalgyieeyz", + "type": "fmqfludbm", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_Update_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_Update_MaximumSet_Gen.json new file mode 100644 index 000000000000..3c884672f202 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/FileShares_Update_MaximumSet_Gen.json @@ -0,0 +1,109 @@ +{ + "title": "FileShares_Update_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "FileShares_Update", + "parameters": { + "api-version": "2024-01-01-preview", + "subscriptionId": "AD98EFD8-D1E9-4F38-A862-E066114E49EE", + "resourceGroupName": "rgfileshares", + "resourceName": "testfileshare", + "properties": { + "tags": { + "key9986": "aq" + }, + "properties": { + "provisionedStorageGiB": 20, + "provisionedIOPerSec": 19, + "provisionedThroughputMiBPerSec": 27, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicAccessProperties": { + "allowedSubnets": [ + "pvjhqlnqfiubvbfcggthlpy" + ] + }, + "publicNetworkAccess": "Enabled" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "mountName": "kyujsrfk", + "hostName": "kivhbjhhzdiycggwbawziu", + "mediaTier": "SSD", + "redundancy": "Local", + "protocol": "NFS", + "provisionedStorageGiB": 15, + "provisionedStorageNextAllowedDowngrade": "2025-04-29T23:26:28.149Z", + "provisionedIOPerSec": 29, + "provisionedIOPerSecNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "provisionedThroughputMiBPerSec": 25, + "provisionedThroughputNextAllowedDowngrade": "2025-04-29T23:26:28.150Z", + "includedBurstIOPerSec": 89085, + "maxBurstIOPerSecCredits": 0, + "nfsProtocolProperties": { + "rootSquash": "NoRootSquash" + }, + "publicAccessProperties": { + "allowedSubnets": [ + "pvjhqlnqfiubvbfcggthlpy" + ] + }, + "provisioningState": "Succeeded", + "publicNetworkAccess": "Enabled", + "privateEndpointConnections": [ + { + "properties": { + "groupIds": [ + "fileshares" + ], + "privateEndpoint": { + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "nhata", + "actionsRequired": "seyoojnwbtmcegqbsvpsofboc" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.FileShares/fileShares/testresourcename/privateEndpointConnections/privateEndpointConnectionName", + "name": "ukgsebzwjbtporzza", + "type": "oyfdiyedpaykrg", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + ] + }, + "tags": { + "key1961": "p" + }, + "location": "xrrekltkvmzdinob", + "id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg1Network/providers/Microsoft.FileShares/fileShares/testfileshare", + "name": "lwvxc", + "type": "etietawcvvuzkvfrqsdlxfgavxv", + "systemData": { + "createdBy": "qh", + "createdByType": "User", + "createdAt": "2025-04-29T23:26:28.151Z", + "lastModifiedBy": "uqmcadaewfdikvhqkwl", + "lastModifiedByType": "User", + "lastModifiedAt": "2025-04-29T23:26:28.152Z" + } + } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/Operations_List_MaximumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/Operations_List_MaximumSet_Gen.json new file mode 100644 index 000000000000..307a6eff07c3 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/Operations_List_MaximumSet_Gen.json @@ -0,0 +1,28 @@ +{ + "title": "Operations_List_MaximumSet_Gen - generated by [MaximumSet] rule", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-01-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "gcjjmydos", + "isDataAction": true, + "display": { + "provider": "nsqnbaulllonxnirum", + "resource": "tuonwgf", + "operation": "bdintjqtti", + "description": "mqziugbyjrwaqthvh" + }, + "origin": "user", + "actionType": "Internal" + } + ], + "nextLink": "https://microsoft.com/a" + } + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/Operations_List_MinimumSet_Gen.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/Operations_List_MinimumSet_Gen.json new file mode 100644 index 000000000000..83ccdbaef100 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/examples/Operations_List_MinimumSet_Gen.json @@ -0,0 +1,12 @@ +{ + "title": "Operations_List_MaximumSet_Gen - generated by [MinimumSet] rule", + "operationId": "Operations_List", + "parameters": { + "api-version": "2024-01-01-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/fileshares.json b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/fileshares.json new file mode 100644 index 000000000000..05676546edf2 --- /dev/null +++ b/specification/fileshares/resource-manager/Microsoft.FileShares/preview/2024-01-01-preview/fileshares.json @@ -0,0 +1,1372 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft.FileShares", + "version": "2024-01-01-preview", + "description": "Azure File Shares Resource Provider API.", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "FileShares" + }, + { + "name": "Operations" + } + ], + "paths": { + "/providers/Microsoft.FileShares/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_List_MaximumSet_Gen - generated by [MaximumSet] rule": { + "$ref": "./examples/Operations_List_MaximumSet_Gen.json" + }, + "Operations_List_MaximumSet_Gen - generated by [MinimumSet] rule": { + "$ref": "./examples/Operations_List_MinimumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.FileShares/fileShares": { + "get": { + "operationId": "FileShares_ListBySubscription", + "tags": [ + "FileShares" + ], + "description": "List FileShare resources by subscription ID", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/FileShareListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_ListBySubscription_MaximumSet_Gen - generated by [MaximumSet] rule": { + "$ref": "./examples/FileShares_ListBySubscription_MaximumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.FileShares/locations/{location}/checkNameAvailability": { + "post": { + "operationId": "FileShares_CheckNameAvailability", + "tags": [ + "FileShares" + ], + "description": "Implements local CheckNameAvailability operations", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/LocationParameter" + }, + { + "name": "body", + "in": "body", + "description": "The CheckAvailability request", + "required": true, + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/CheckNameAvailabilityRequest" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/CheckNameAvailabilityResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_CheckNameAvailability_MaximumSet_Gen - generated by [MaximumSet] rule": { + "$ref": "./examples/FileShares_CheckNameAvailability_MaximumSet_Gen.json" + }, + "FileShares_CheckNameAvailability_MaximumSet_Gen - generated by [MinimumSet] rule": { + "$ref": "./examples/FileShares_CheckNameAvailability_MinimumSet_Gen.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.FileShares/fileShares": { + "get": { + "operationId": "FileShares_ListByParent", + "tags": [ + "FileShares" + ], + "description": "List FileShare resources by resource group", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/FileShareListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_ListByParent_MaximumSet_Gen - generated by [MaximumSet] rule": { + "$ref": "./examples/FileShares_ListByParent_MaximumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.FileShares/fileShares/{resourceName}": { + "get": { + "operationId": "FileShares_Get", + "tags": [ + "FileShares" + ], + "description": "Get a FileShare", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceName", + "in": "path", + "description": "The resource name of the file share, as seen by the administrator through Azure Resource Manager.", + "required": true, + "type": "string", + "pattern": "^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/FileShare" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_Get_MaximumSet_Gen - generated by [MaximumSet] rule": { + "$ref": "./examples/FileShares_Get_MaximumSet_Gen.json" + } + } + }, + "put": { + "operationId": "FileShares_CreateOrUpdate", + "tags": [ + "FileShares" + ], + "description": "Create or update a file share.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceName", + "in": "path", + "description": "The resource name of the file share, as seen by the administrator through Azure Resource Manager.", + "required": true, + "type": "string", + "pattern": "^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/FileShare" + } + } + ], + "responses": { + "200": { + "description": "Resource 'FileShare' update operation succeeded", + "schema": { + "$ref": "#/definitions/FileShare" + } + }, + "201": { + "description": "Resource 'FileShare' create operation succeeded", + "schema": { + "$ref": "#/definitions/FileShare" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_CreateOrUpdate_MaximumSet_Gen - generated by [MaximumSet] rule": { + "$ref": "./examples/FileShares_CreateOrUpdate_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "FileShares_Update", + "tags": [ + "FileShares" + ], + "description": "Update a FileShare", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceName", + "in": "path", + "description": "The resource name of the file share, as seen by the administrator through Azure Resource Manager.", + "required": true, + "type": "string", + "pattern": "^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/FileShareUpdate" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/FileShare" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_Update_MaximumSet_Gen - generated by [MaximumSet] rule": { + "$ref": "./examples/FileShares_Update_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "FileShares_Delete", + "tags": [ + "FileShares" + ], + "description": "Delete a FileShare", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceName", + "in": "path", + "description": "The resource name of the file share, as seen by the administrator through Azure Resource Manager.", + "required": true, + "type": "string", + "pattern": "^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_Delete_MaximumSet_Gen - generated by [MaximumSet] rule": { + "$ref": "./examples/FileShares_Delete_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.FileShares/fileShares/{resourceName}/fileShareSnapshots": { + "get": { + "operationId": "FileShares_ListByFileShare", + "tags": [ + "FileShares" + ], + "description": "List FileShareSnapshot by FileShare.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceName", + "in": "path", + "description": "The resource name of the file share, as seen by the administrator through Azure Resource Manager.", + "required": true, + "type": "string", + "pattern": "^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/FileShareSnapshotListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_ListByFileShare_MaximumSet": { + "$ref": "./examples/FileShares_ListByFileShare_MaximumSet_Gen.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.FileShares/fileShares/{resourceName}/fileShareSnapshots/{name}": { + "get": { + "operationId": "FileShares_GetFileShareSnapshot", + "tags": [ + "FileShares" + ], + "description": "Get a FileShareSnapshot", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceName", + "in": "path", + "description": "The resource name of the file share, as seen by the administrator through Azure Resource Manager.", + "required": true, + "type": "string", + "pattern": "^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$" + }, + { + "name": "name", + "in": "path", + "description": "The name of the FileShareSnapshot", + "required": true, + "type": "string", + "pattern": "^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/FileShareSnapshot" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_GetFileShareSnapshot_MaximumSet_Gen - generated by [MaximumSet] rule": { + "$ref": "./examples/FileShares_GetFileShareSnapshot_MaximumSet_Gen.json" + } + } + }, + "put": { + "operationId": "FileShares_CreateOrUpdateFileShareSnapshot", + "tags": [ + "FileShares" + ], + "description": "Create a FileShareSnapshot.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceName", + "in": "path", + "description": "The resource name of the file share, as seen by the administrator through Azure Resource Manager.", + "required": true, + "type": "string", + "pattern": "^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$" + }, + { + "name": "name", + "in": "path", + "description": "The name of the FileShareSnapshot", + "required": true, + "type": "string", + "pattern": "^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/FileShareSnapshot" + } + } + ], + "responses": { + "200": { + "description": "Resource 'FileShareSnapshot' update operation succeeded", + "schema": { + "$ref": "#/definitions/FileShareSnapshot" + } + }, + "201": { + "description": "Resource 'FileShareSnapshot' create operation succeeded", + "schema": { + "$ref": "#/definitions/FileShareSnapshot" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_CreateOrUpdateFileShareSnapshot_MaximumSet_Gen - generated by [MaximumSet] rule": { + "$ref": "./examples/FileShares_CreateOrUpdateFileShareSnapshot_MaximumSet_Gen.json" + } + } + }, + "patch": { + "operationId": "FileShares_UpdateFileShareSnapshot", + "tags": [ + "FileShares" + ], + "description": "Update a FileShareSnapshot.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceName", + "in": "path", + "description": "The resource name of the file share, as seen by the administrator through Azure Resource Manager.", + "required": true, + "type": "string", + "pattern": "^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$" + }, + { + "name": "name", + "in": "path", + "description": "The name of the FileShareSnapshot", + "required": true, + "type": "string", + "pattern": "^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/FileShareSnapshotUpdate" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/FileShareSnapshot" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_UpdateFileShareSnapshot_MaximumSet_Gen - generated by [MaximumSet] rule": { + "$ref": "./examples/FileShares_UpdateFileShareSnapshot_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "FileShares_DeleteFileShareSnapshot", + "tags": [ + "FileShares" + ], + "description": "Delete a FileShareSnapshot.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceName", + "in": "path", + "description": "The resource name of the file share, as seen by the administrator through Azure Resource Manager.", + "required": true, + "type": "string", + "pattern": "^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$" + }, + { + "name": "name", + "in": "path", + "description": "The name of the FileShareSnapshot", + "required": true, + "type": "string", + "pattern": "^([a-z]|[0-9])([a-z]|[0-9]|(-(?!-))){1,61}([a-z]|[0-9])$" + } + ], + "responses": { + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "204": { + "description": "Resource does not exist." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "FileShares_DeleteFileShareSnapshot_MaximumSet_Gen - generated by [MaximumSet] rule": { + "$ref": "./examples/FileShares_DeleteFileShareSnapshot_MaximumSet_Gen.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "AzureAsyncOperation": { + "type": "object", + "description": "Azure Async Operation", + "properties": { + "id": { + "type": "string", + "format": "arm-id", + "description": "The resource path from GET operation." + }, + "name": { + "type": "string", + "description": "The operation id." + }, + "status": { + "type": "string", + "description": "The status of the operation: | Succeeded | Failed | Canceled" + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "The start time of the operation." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "The end time of the operation." + }, + "percentComplete": { + "type": "number", + "format": "double", + "description": "The percentage completed of the operation.", + "minimum": 0, + "maximum": 100 + }, + "properties": { + "type": "object", + "description": "Custom operation properties, populated only for a successful operation.", + "additionalProperties": {} + }, + "error": { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorDetail", + "description": "Operation error." + } + }, + "required": [ + "status" + ] + }, + "ExtensionResourceActionScope": { + "type": "object", + "description": "Extension Resource Action Scope", + "properties": { + "name": { + "type": "string", + "description": "Symbolic name of scope", + "readOnly": true + } + }, + "required": [ + "name" + ] + }, + "FileShare": { + "type": "object", + "description": "File share resource", + "properties": { + "properties": { + "$ref": "#/definitions/FileShareProperties", + "description": "The resource-specific properties for this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/TrackedResource" + } + ] + }, + "FileShareListResult": { + "type": "object", + "description": "The response of a FileShare list operation.", + "properties": { + "value": { + "type": "array", + "description": "The FileShare items on this page", + "items": { + "$ref": "#/definitions/FileShare" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "FileShareProperties": { + "type": "object", + "description": "File share properties", + "properties": { + "mountName": { + "type": "string", + "description": "The name of the file share as seen by the end user when mounting the share, such as in a URI or UNC format in their operating system.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "hostName": { + "type": "string", + "description": "The host name of the file share.", + "readOnly": true + }, + "mediaTier": { + "$ref": "#/definitions/MediaTier", + "description": "The storage media tier of the file share.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "redundancy": { + "$ref": "#/definitions/Redundancy", + "description": "The chosen redundancy level of the file share.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "protocol": { + "$ref": "#/definitions/Protocol", + "description": "The file sharing protocol for this file share.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "provisionedStorageGiB": { + "type": "integer", + "format": "int32", + "description": "The provisioned storage size of the share in GiB (1 GiB is 1024^3 bytes or 1073741824 bytes). A component of the file share's bill is the provisioned storage, regardless of the amount of used storage.", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "provisionedStorageNextAllowedDowngrade": { + "type": "string", + "format": "date-time", + "description": "A date/time value that specifies when the provisioned storage for the file share is permitted to be reduced.", + "readOnly": true + }, + "provisionedIOPerSec": { + "type": "integer", + "format": "int32", + "description": "The provisioned IO / sec of the share.", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "provisionedIOPerSecNextAllowedDowngrade": { + "type": "string", + "format": "date-time", + "description": "A date/time value that specifies when the provisioned IOPS for the file share is permitted to be reduced.", + "readOnly": true + }, + "provisionedThroughputMiBPerSec": { + "type": "integer", + "format": "int32", + "description": "The provisioned throughput / sec of the share.", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "provisionedThroughputNextAllowedDowngrade": { + "type": "string", + "format": "date-time", + "description": "A date/time value that specifies when the provisioned throughput for the file share is permitted to be reduced.", + "readOnly": true + }, + "includedBurstIOPerSec": { + "type": "integer", + "format": "int32", + "description": "Burst IOPS are extra buffer IOPS enabling you to consume more than your provisioned IOPS for a short period of time, depending on the burst credits available for your share.", + "minimum": 3000, + "readOnly": true + }, + "maxBurstIOPerSecCredits": { + "type": "integer", + "format": "int64", + "description": "Max burst IOPS credits shows the maximum number of burst credits the share can have at the current IOPS provisioning level.", + "minimum": 0, + "readOnly": true + }, + "nfsProtocolProperties": { + "$ref": "#/definitions/NfsProtocolProperties", + "description": "Protocol settings specific NFS.", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "publicAccessProperties": { + "$ref": "#/definitions/PublicAccessProperties", + "description": "The set of properties for control public access.", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "provisioningState": { + "$ref": "#/definitions/FileShareProvisioningState", + "description": "The status of the last operation.", + "readOnly": true + }, + "publicNetworkAccess": { + "$ref": "#/definitions/PublicNetworkAccess", + "description": "Gets or sets allow or disallow public network access to azure managed file share", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "privateEndpointConnections": { + "type": "array", + "description": "The list of associated private endpoint connections.", + "items": { + "$ref": "../../../../../common-types/resource-management/v6/privatelinks.json#/definitions/PrivateEndpointConnection" + }, + "readOnly": true + } + } + }, + "FileShareProvisioningState": { + "type": "string", + "description": "The status of the last operation.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Provisioning", + "Updating", + "Deleting", + "Accepted" + ], + "x-ms-enum": { + "name": "FileShareProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + }, + { + "name": "Provisioning", + "value": "Provisioning", + "description": "The operation is provisioning." + }, + { + "name": "Updating", + "value": "Updating", + "description": "The operation is updating." + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "The operation is deleting." + }, + { + "name": "Accepted", + "value": "Accepted", + "description": "The operation is accepted." + } + ] + }, + "readOnly": true + }, + "FileShareSnapshot": { + "type": "object", + "description": "FileShareSnapshot resource", + "properties": { + "properties": { + "$ref": "#/definitions/FileShareSnapshotProperties", + "description": "The resource-specific properties for this resource." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource" + } + ] + }, + "FileShareSnapshotListResult": { + "type": "object", + "description": "The response of a FileShareSnapshot list operation.", + "properties": { + "value": { + "type": "array", + "description": "The FileShareSnapshot items on this page", + "items": { + "$ref": "#/definitions/FileShareSnapshot" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "FileShareSnapshotProperties": { + "type": "object", + "description": "FileShareSnapshot properties", + "properties": { + "snapshotTime": { + "type": "string", + "description": "The FileShareSnapshot time in UTC in string representation", + "readOnly": true + }, + "initiatorId": { + "type": "string", + "description": "The initiator of the FileShareSnapshot", + "readOnly": true + }, + "metadata": { + "type": "object", + "description": "The metadata", + "additionalProperties": { + "type": "string" + } + }, + "provisioningState": { + "$ref": "#/definitions/FileShareProvisioningState", + "description": "The status of the last operation.", + "readOnly": true + } + } + }, + "FileShareSnapshotUpdate": { + "type": "object", + "description": "The type used for update operations of the FileShareSnapshot.", + "properties": { + "properties": { + "$ref": "#/definitions/FileShareSnapshotUpdateProperties", + "description": "The resource-specific properties for this resource." + } + } + }, + "FileShareSnapshotUpdateProperties": { + "type": "object", + "description": "The updatable properties of the FileShareSnapshot.", + "properties": { + "metadata": { + "type": "object", + "description": "The metadata", + "additionalProperties": { + "type": "string" + } + } + } + }, + "FileShareUpdate": { + "type": "object", + "description": "The type used for update operations of the FileShare.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/FileShareUpdateProperties", + "description": "The resource-specific properties for this resource." + } + } + }, + "FileShareUpdateProperties": { + "type": "object", + "description": "The updatable properties of the FileShare.", + "properties": { + "provisionedStorageGiB": { + "type": "integer", + "format": "int32", + "description": "The provisioned storage size of the share in GiB (1 GiB is 1024^3 bytes or 1073741824 bytes). A component of the file share's bill is the provisioned storage, regardless of the amount of used storage.", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "provisionedIOPerSec": { + "type": "integer", + "format": "int32", + "description": "The provisioned IO / sec of the share.", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "provisionedThroughputMiBPerSec": { + "type": "integer", + "format": "int32", + "description": "The provisioned throughput / sec of the share.", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "nfsProtocolProperties": { + "$ref": "#/definitions/NfsProtocolProperties", + "description": "Protocol settings specific NFS.", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "publicAccessProperties": { + "$ref": "#/definitions/PublicAccessProperties", + "description": "The set of properties for control public access.", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + }, + "publicNetworkAccess": { + "$ref": "#/definitions/PublicNetworkAccess", + "description": "Gets or sets allow or disallow public network access to azure managed file share", + "x-ms-mutability": [ + "read", + "update", + "create" + ] + } + } + }, + "MediaTier": { + "type": "string", + "description": "Media Tier enum.", + "enum": [ + "SSD" + ], + "x-ms-enum": { + "name": "MediaTier", + "modelAsString": false + } + }, + "NfsProtocolProperties": { + "type": "object", + "description": "Properties specific to the NFS protocol.", + "properties": { + "rootSquash": { + "$ref": "#/definitions/ShareRootSquash", + "description": "Root squash defines how root users on clients are mapped to the NFS share." + } + } + }, + "Protocol": { + "type": "string", + "description": "Protocol enum.", + "enum": [ + "NFS" + ], + "x-ms-enum": { + "name": "Protocol", + "modelAsString": false + } + }, + "PublicAccessProperties": { + "type": "object", + "description": "The set of properties for control public access.", + "properties": { + "allowedSubnets": { + "type": "array", + "description": "The allowed set of subnets when access is restricted.", + "items": { + "type": "string" + } + } + } + }, + "PublicNetworkAccess": { + "type": "string", + "description": "State of the public network access.", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "The public network access is enabled" + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "The public network access is disabled" + } + ] + } + }, + "Redundancy": { + "type": "string", + "description": "Redundancy enum.", + "enum": [ + "Local", + "Zone" + ], + "x-ms-enum": { + "name": "Redundancy", + "modelAsString": false + } + }, + "ShareRootSquash": { + "type": "string", + "description": "Share root squash enum.", + "enum": [ + "NoRootSquash", + "RootSquash", + "AllSquash" + ], + "x-ms-enum": { + "name": "ShareRootSquash", + "modelAsString": false + } + }, + "VirtualNetworkRule": { + "type": "object", + "description": "A virtual network rule for the public endpoint.", + "properties": { + "id": { + "type": "string", + "description": "The resource ID of a subnet." + } + }, + "required": [ + "id" + ] + } + }, + "parameters": {} +} diff --git a/specification/fileshares/resource-manager/readme.az.md b/specification/fileshares/resource-manager/readme.az.md new file mode 100644 index 000000000000..7a3469a9cd97 --- /dev/null +++ b/specification/fileshares/resource-manager/readme.az.md @@ -0,0 +1,28 @@ +## AZ + +These settings apply only when `--az` is specified on the command line. + +For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage. + +``` yaml $(az) && $(target-mode) != 'core' +az: + extensions: fileshares + namespace: azure.mgmt.fileshares + package-name: azure-mgmt-fileshares +az-output-folder: $(azure-cli-extension-folder)/src/fileshares +python-sdk-output-folder: "$(az-output-folder)/azext_fileshares/vendored_sdks/fileshares" +# add additional configuration here specific for Azure CLI +# refer to the faq.md for more details +``` + + + +This is for command modules that already in azure cli main repo. +``` yaml $(az) && $(target-mode) == 'core' +az: + extensions: fileshares + namespace: azure.mgmt.fileshares + package-name: azure-mgmt-fileshares +az-output-folder: $(azure-cli-folder)/src/azure-cli/azure/cli/command_modules/fileshares +python-sdk-output-folder: "$(az-output-folder)/vendored_sdks/fileshares" +``` \ No newline at end of file diff --git a/specification/fileshares/resource-manager/readme.cli.md b/specification/fileshares/resource-manager/readme.cli.md new file mode 100644 index 000000000000..c6cf6ad37ea4 --- /dev/null +++ b/specification/fileshares/resource-manager/readme.cli.md @@ -0,0 +1 @@ +## CLI Common Settings for all the command line tools \ No newline at end of file diff --git a/specification/fileshares/resource-manager/readme.csharp.md b/specification/fileshares/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..b959ca754e05 --- /dev/null +++ b/specification/fileshares/resource-manager/readme.csharp.md @@ -0,0 +1,15 @@ +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```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.FileShares + output-folder: $(csharp-sdks-folder)/fileshares/management/Microsoft.FileShares/GeneratedProtocol +``` diff --git a/specification/fileshares/resource-manager/readme.go.md b/specification/fileshares/resource-manager/readme.go.md new file mode 100644 index 000000000000..d2cff10d6a8b --- /dev/null +++ b/specification/fileshares/resource-manager/readme.go.md @@ -0,0 +1,11 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) && $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +module-name: sdk/resourcemanager/fileshares/armfileshares +module: github.com/Azure/azure-sdk-for-go/$(module-name) +output-folder: $(go-sdk-folder)/$(module-name) +``` diff --git a/specification/fileshares/resource-manager/readme.java.md b/specification/fileshares/resource-manager/readme.java.md new file mode 100644 index 000000000000..2d52ba747239 --- /dev/null +++ b/specification/fileshares/resource-manager/readme.java.md @@ -0,0 +1,8 @@ +## Java + +These settings apply only when `--java` is specified on the command line. + +```yaml $(java) +service-name: FileShares +client-flattened-annotation-target: disabled +``` diff --git a/specification/fileshares/resource-manager/readme.md b/specification/fileshares/resource-manager/readme.md new file mode 100644 index 000000000000..fdf067b3ba6f --- /dev/null +++ b/specification/fileshares/resource-manager/readme.md @@ -0,0 +1,69 @@ +# Azure API Center + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for Azure API Center. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the Azure API Center. + +``` yaml +openapi-type: arm +openapi-subtype: providerHub +tag: package-2024-01-01-preview +``` + +### Tag: package-2024-01-01-preview + +These settings apply only when `--tag=package-2024-01-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2024-01-01-preview' +input-file: + - Microsoft.FileShares/preview/2024-01-01-preview/fileshares.json +``` + +### Tag: package-2023-01-01-preview + +These settings apply only when `--tag=package-2023-01-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2023-01-01-preview' +input-file: + - Microsoft.FileShares/preview/2023-01-01-preview/fileshares.json +``` + +### Suppression + +``` yaml +directive: + - suppress: PreviewVersionOverOneYear + reason: We are still due to go public preview in next quarter. + - suppress: AvoidAdditionalProperties + reason: 1. These are created as part of Record and properties constructs. + - suppress: OperationIdNounVerb + reason: FileShare is both in parent and child resource. + where: + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.FileShares/fileShares/{resourceName}/fileShareSnapshots"].get.operationId + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.FileShares/fileShares/{resourceName}/fileShareSnapshots/{name}"].put.operationId + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.FileShares/fileShares/{resourceName}/fileShareSnapshots/{name}"].get.operationId + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.FileShares/fileShares/{resourceName}/fileShareSnapshots/{name}"].delete.operationId + - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.FileShares/fileShares/{resourceName}/fileShareSnapshots/{name}"].patch.operationId +``` + +--- diff --git a/specification/fileshares/resource-manager/readme.python.md b/specification/fileshares/resource-manager/readme.python.md new file mode 100644 index 000000000000..063657ca6d72 --- /dev/null +++ b/specification/fileshares/resource-manager/readme.python.md @@ -0,0 +1,19 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(python) +title: FileSharesMgmtClient +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-fileshares +namespace: azure.mgmt.fileshares +package-version: 1.0.0b1 +clear-output-folder: true +``` + +``` yaml $(python) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/fileshares/azure-mgmt-fileshares/azure/mgmt/fileshares +``` diff --git a/specification/fileshares/resource-manager/readme.typescript.md b/specification/fileshares/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..feb5ab6fb62f --- /dev/null +++ b/specification/fileshares/resource-manager/readme.typescript.md @@ -0,0 +1,14 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +``` yaml $(typescript) +typescript: + azure-arm: true + package-name: "@azure/arm-fileshares" + output-folder: "$(typescript-sdks-folder)/sdk/fileshares/arm-fileshares" + payload-flattening-threshold: 1 + clear-output-folder: true + generate-metadata: true +```