Skip to content

[DO NOT REVIEW] [DO NOT MERGE] Fileshares 2024 01 01 preview #34351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 49 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
982ff2c
Kristian Changes
ankushbindlish2 Apr 29, 2025
f1f9c33
Fixing tsp validate errors
ankushbindlish2 Apr 29, 2025
7e4d273
Remove preflight
ankushbindlish2 Apr 29, 2025
350fe62
Merge branch 'main' into fileshares-2024-01-01-preview
ankushbindlish2 Apr 29, 2025
3b97864
Formatting
ankushbindlish2 Apr 29, 2025
071fbaa
Merge branch 'fileshares-2024-01-01-preview' of https://github.com/an…
ankushbindlish2 Apr 29, 2025
ff817fb
Update tspconfig
ankushbindlish2 Apr 29, 2025
3807471
Merge branch 'main' into fileshares-2024-01-01-preview
ankushbindlish2 Apr 29, 2025
dc6c651
Add Examples
ankushbindlish2 Apr 30, 2025
3687c5b
Merge branch 'fileshares-2024-01-01-preview' of https://github.com/an…
ankushbindlish2 Apr 30, 2025
178b1a8
revert
ankushbindlish2 Apr 30, 2025
4c58329
Merge branch 'main' into fileshares-2024-01-01-preview
ankushbindlish2 Apr 30, 2025
72b64f8
update
ankushbindlish2 Apr 30, 2025
ca73f59
Update FileShares_ListByFileShare_MaximumSet_Gen.json
ankushbindlish2 Apr 30, 2025
e1a4e5f
add examples in tsp
ankushbindlish2 Apr 30, 2025
0079600
updtae
ankushbindlish2 Apr 30, 2025
d59768c
fix examples
ankushbindlish2 Apr 30, 2025
6ce0df2
update
ankushbindlish2 Apr 30, 2025
ebe4a2b
Merge branch 'main' into fileshares-2024-01-01-preview
ankushbindlish2 Apr 30, 2025
84d0a98
Update
ankushbindlish2 Apr 30, 2025
df06874
pretty check
ankushbindlish2 May 1, 2025
2adf4cd
Merge branch 'main' into fileshares-2024-01-01-preview
ankushbindlish2 May 1, 2025
e4ebc1d
prettier
ankushbindlish2 May 1, 2025
c9dbc81
Merge branch 'fileshares-2024-01-01-preview' of https://github.com/an…
ankushbindlish2 May 1, 2025
1618e36
readme files
ankushbindlish2 May 1, 2025
8d34982
Lint-diff
ankushbindlish2 May 1, 2025
e2cc87d
Lint-diff
ankushbindlish2 May 1, 2025
604b15d
lint-diff
ankushbindlish2 May 1, 2025
3e5947c
Update readme.md
ankushbindlish2 May 1, 2025
838f698
update examples
ankushbindlish2 May 1, 2025
0a71e76
Merge branch 'main' into fileshares-2024-01-01-preview
ankushbindlish2 May 1, 2025
1a78e44
Update readme.md
ankushbindlish2 May 1, 2025
6997e1a
Update readme.md
ankushbindlish2 May 1, 2025
296753f
Update readme.md
ankushbindlish2 May 1, 2025
b28eda5
Merge branch 'main' into fileshares-2024-01-01-preview
ankushbindlish2 May 2, 2025
d2b6d4a
java sdk
ankushbindlish2 May 6, 2025
9541cbc
Merge branch 'fileshares-2024-01-01-preview' of https://github.com/an…
ankushbindlish2 May 6, 2025
e67215a
Merge branch 'main' into fileshares-2024-01-01-preview
ankushbindlish2 May 6, 2025
62b0ea8
Update client.tsp
ankushbindlish2 May 6, 2025
c8652ae
Merge branch 'fileshares-2024-01-01-preview' of https://github.com/an…
ankushbindlish2 May 6, 2025
1369b97
Merge branch 'main' into fileshares-2024-01-01-preview
ankushbindlish2 May 6, 2025
adf6543
Remove Languages from ReadMe https://aka.ms/azsdk/spec-gen-sdk-config
ankushbindlish2 May 6, 2025
9994e08
Merge branch 'main' into fileshares-2024-01-01-preview
ankushbindlish2 May 6, 2025
259b0f8
Update readme.md
ankushbindlish2 May 6, 2025
1bd65de
Merge branch 'fileshares-2024-01-01-preview' of https://github.com/an…
ankushbindlish2 May 6, 2025
23e3408
Update client.tsp
ankushbindlish2 May 8, 2025
8667255
Update client.tsp
ankushbindlish2 May 8, 2025
4540928
Update client.tsp
ankushbindlish2 May 8, 2025
7076d9c
Merge branch 'main' into fileshares-2024-01-01-preview
ankushbindlish2 May 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions specification/fileshares/FileShares.Management/client.tsp
Original file line number Diff line number Diff line change
@@ -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");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be renamed to OperationInfo

Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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": {}
}
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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": {}
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
Loading