Skip to content

Commit 874e02e

Browse files
committed
file share 2025-06-01-preview, add the other commands
1 parent 8f5038b commit 874e02e

13 files changed

Lines changed: 343 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _file-share check-name-availability_
2+
3+
Implements local CheckNameAvailability operations
4+
5+
## Versions
6+
7+
### [2025-06-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5maWxlc2hhcmVzL2xvY2F0aW9ucy97fS9jaGVja25hbWVhdmFpbGFiaWxpdHk=/2025-06-01-preview.xml) **Preview**
8+
9+
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.fileshares/locations/{}/checknameavailability 2025-06-01-preview -->
10+
11+
#### examples
12+
13+
- Check Name Availability for File Shares
14+
```bash
15+
file-share check-name-availability --location dpplbglogsvzrbbeo --name fvykqbgmd --type kcyswj
16+
```

Commands/file-share/_get-limit.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _file-share get-limit_
2+
3+
Get file shares limits.
4+
5+
## Versions
6+
7+
### [2025-06-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5maWxlc2hhcmVzL2xvY2F0aW9ucy97fS9nZXRsaW1pdHM=/2025-06-01-preview.xml) **Preview**
8+
9+
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.fileshares/locations/{}/getlimits 2025-06-01-preview -->
10+
11+
#### examples
12+
13+
- File Share Get Limits
14+
```bash
15+
file-share get-limit --location dpplbglogsvzrbbeo
16+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _file-share get-provisioning-recommendation_
2+
3+
Get file shares provisioning parameters recommendation.
4+
5+
## Versions
6+
7+
### [2025-06-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5maWxlc2hhcmVzL2xvY2F0aW9ucy97fS9nZXRwcm92aXNpb25pbmdyZWNvbW1lbmRhdGlvbg==/2025-06-01-preview.xml) **Preview**
8+
9+
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.fileshares/locations/{}/getprovisioningrecommendation 2025-06-01-preview -->
10+
11+
#### examples
12+
13+
- File Share Get Provisioning Recommendation
14+
```bash
15+
file-share get-provisioning-recommendation --location dpplbglogsvzrbbeo --provisioned-storage-gib 7
16+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# [Command] _file-share get-usage-data_
2+
3+
Get file shares usage data.
4+
5+
## Versions
6+
7+
### [2025-06-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5maWxlc2hhcmVzL2xvY2F0aW9ucy97fS9nZXR1c2FnZWRhdGE=/2025-06-01-preview.xml) **Preview**
8+
9+
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.fileshares/locations/{}/getusagedata 2025-06-01-preview -->
10+
11+
#### examples
12+
13+
- File Share Get Usage Data
14+
```bash
15+
file-share get-usage-data --location dpplbglogsvzrbbeo
16+
```

Commands/file-share/readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,24 @@ Manage File Share
99

1010
## Commands
1111

12+
- [check-name-availability](/Commands/file-share/_check-name-availability.md)
13+
: Implements local CheckNameAvailability operations
14+
1215
- [create](/Commands/file-share/_create.md)
1316
: Create a file share.
1417

1518
- [delete](/Commands/file-share/_delete.md)
1619
: Delete a FileShare
1720

21+
- [get-limit](/Commands/file-share/_get-limit.md)
22+
: Get file shares limits.
23+
24+
- [get-provisioning-recommendation](/Commands/file-share/_get-provisioning-recommendation.md)
25+
: Get file shares provisioning parameters recommendation.
26+
27+
- [get-usage-data](/Commands/file-share/_get-usage-data.md)
28+
: Get file shares usage data.
29+
1830
- [list](/Commands/file-share/_list.md)
1931
: List FileShare resources by subscription ID
2032

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/providers/microsoft.fileshares/locations/{}/checknameavailability", "version": "2025-06-01-preview", "swagger": "mgmt-plane/fileshares/ResourceProviders/Microsoft.FileShares/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkZpbGVTaGFyZXMvbG9jYXRpb25zL3tsb2NhdGlvbn0vY2hlY2tOYW1lQXZhaWxhYmlsaXR5/V/MjAyNS0wNi0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "file-share", "commands": [{"name": "check-name-availability", "version": "2025-06-01-preview", "resources": [{"id": "/subscriptions/{}/providers/microsoft.fileshares/locations/{}/checknameavailability", "version": "2025-06-01-preview", "swagger": "mgmt-plane/fileshares/ResourceProviders/Microsoft.FileShares/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkZpbGVTaGFyZXMvbG9jYXRpb25zL3tsb2NhdGlvbn0vY2hlY2tOYW1lQXZhaWxhYmlsaXR5/V/MjAyNS0wNi0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceLocation", "var": "$Path.location", "options": ["l", "location"], "required": true, "idPart": "name"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Body", "args": [{"type": "string", "var": "$body.name", "options": ["name"], "group": "Body", "help": {"short": "The name of the resource for which availability needs to be checked."}}, {"type": "string", "var": "$body.type", "options": ["type"], "group": "Body", "help": {"short": "The resource type."}}]}], "operations": [{"operationId": "FileShares_CheckNameAvailability", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.FileShares/locations/{location}/checkNameAvailability", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "location", "arg": "$Path.location", "required": true, "format": {"minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-06-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "body", "required": true, "props": [{"type": "string", "name": "name", "arg": "$body.name"}, {"type": "string", "name": "type", "arg": "$body.type"}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "message"}, {"type": "boolean", "name": "nameAvailable"}, {"type": "string", "name": "reason", "enum": {"items": [{"value": "AlreadyExists"}, {"value": "Invalid"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<CodeGen plane="mgmt-plane">
3+
<resource id="/subscriptions/{}/providers/microsoft.fileshares/locations/{}/checknameavailability" version="2025-06-01-preview" swagger="mgmt-plane/fileshares/ResourceProviders/Microsoft.FileShares/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkZpbGVTaGFyZXMvbG9jYXRpb25zL3tsb2NhdGlvbn0vY2hlY2tOYW1lQXZhaWxhYmlsaXR5/V/MjAyNS0wNi0wMS1wcmV2aWV3"/>
4+
<commandGroup name="file-share">
5+
<command name="check-name-availability" version="2025-06-01-preview" confirmation="">
6+
<resource id="/subscriptions/{}/providers/microsoft.fileshares/locations/{}/checknameavailability" version="2025-06-01-preview" swagger="mgmt-plane/fileshares/ResourceProviders/Microsoft.FileShares/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkZpbGVTaGFyZXMvbG9jYXRpb25zL3tsb2NhdGlvbn0vY2hlY2tOYW1lQXZhaWxhYmlsaXR5/V/MjAyNS0wNi0wMS1wcmV2aWV3"/>
7+
<argGroup name="">
8+
<arg type="ResourceLocation" var="$Path.location" options="location l" required="True" idPart="name"/>
9+
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
10+
</argGroup>
11+
<argGroup name="Body">
12+
<arg type="string" var="$body.name" options="name" group="Body">
13+
<help short="The name of the resource for which availability needs to be checked."/>
14+
</arg>
15+
<arg type="string" var="$body.type" options="type" group="Body">
16+
<help short="The resource type."/>
17+
</arg>
18+
</argGroup>
19+
<operation operationId="FileShares_CheckNameAvailability">
20+
<http path="/subscriptions/{subscriptionId}/providers/Microsoft.FileShares/locations/{location}/checkNameAvailability">
21+
<request method="post">
22+
<path>
23+
<param type="string" name="location" arg="$Path.location" required="True">
24+
<format minLength="1"/>
25+
</param>
26+
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
27+
</path>
28+
<query>
29+
<const readOnly="True" const="True" type="string" name="api-version" required="True">
30+
<default value="&quot;2025-06-01-preview&quot;"/>
31+
<format minLength="1"/>
32+
</const>
33+
</query>
34+
<body>
35+
<json>
36+
<schema type="object" name="body" required="True" clientFlatten="True">
37+
<prop type="string" name="name" arg="$body.name"/>
38+
<prop type="string" name="type" arg="$body.type"/>
39+
</schema>
40+
</json>
41+
</body>
42+
</request>
43+
<response statusCode="200">
44+
<body>
45+
<json var="$Instance">
46+
<schema type="object">
47+
<prop type="string" name="message"/>
48+
<prop type="boolean" name="nameAvailable"/>
49+
<prop type="string" name="reason">
50+
<enum>
51+
<item value="&quot;AlreadyExists&quot;"/>
52+
<item value="&quot;Invalid&quot;"/>
53+
</enum>
54+
</prop>
55+
</schema>
56+
</json>
57+
</body>
58+
</response>
59+
<response isError="True">
60+
<body>
61+
<json>
62+
<schema type="@MgmtErrorFormat"/>
63+
</json>
64+
</body>
65+
</response>
66+
</http>
67+
</operation>
68+
<output type="object" ref="$Instance" clientFlatten="True"/>
69+
</command>
70+
</commandGroup>
71+
</CodeGen>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/providers/microsoft.fileshares/locations/{}/getusagedata", "version": "2025-06-01-preview", "swagger": "mgmt-plane/fileshares/ResourceProviders/Microsoft.FileShares/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkZpbGVTaGFyZXMvbG9jYXRpb25zL3tsb2NhdGlvbn0vZ2V0VXNhZ2VEYXRh/V/MjAyNS0wNi0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "file-share", "commands": [{"name": "get-usage-data", "version": "2025-06-01-preview", "resources": [{"id": "/subscriptions/{}/providers/microsoft.fileshares/locations/{}/getusagedata", "version": "2025-06-01-preview", "swagger": "mgmt-plane/fileshares/ResourceProviders/Microsoft.FileShares/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkZpbGVTaGFyZXMvbG9jYXRpb25zL3tsb2NhdGlvbn0vZ2V0VXNhZ2VEYXRh/V/MjAyNS0wNi0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceLocation", "var": "$Path.location", "options": ["l", "location"], "required": true, "idPart": "name"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "FileShare_GetUsageData", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.FileShares/locations/{location}/getUsageData", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "location", "arg": "$Path.location", "required": true, "format": {"minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-06-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "object", "name": "properties", "required": true, "props": [{"type": "object", "name": "liveShares", "required": true, "props": [{"type": "integer32", "name": "fileShareCount", "required": true}]}]}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<CodeGen plane="mgmt-plane">
3+
<resource id="/subscriptions/{}/providers/microsoft.fileshares/locations/{}/getusagedata" version="2025-06-01-preview" swagger="mgmt-plane/fileshares/ResourceProviders/Microsoft.FileShares/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkZpbGVTaGFyZXMvbG9jYXRpb25zL3tsb2NhdGlvbn0vZ2V0VXNhZ2VEYXRh/V/MjAyNS0wNi0wMS1wcmV2aWV3"/>
4+
<commandGroup name="file-share">
5+
<command name="get-usage-data" version="2025-06-01-preview" confirmation="">
6+
<resource id="/subscriptions/{}/providers/microsoft.fileshares/locations/{}/getusagedata" version="2025-06-01-preview" swagger="mgmt-plane/fileshares/ResourceProviders/Microsoft.FileShares/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkZpbGVTaGFyZXMvbG9jYXRpb25zL3tsb2NhdGlvbn0vZ2V0VXNhZ2VEYXRh/V/MjAyNS0wNi0wMS1wcmV2aWV3"/>
7+
<argGroup name="">
8+
<arg type="ResourceLocation" var="$Path.location" options="location l" required="True" idPart="name"/>
9+
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
10+
</argGroup>
11+
<operation operationId="FileShare_GetUsageData">
12+
<http path="/subscriptions/{subscriptionId}/providers/Microsoft.FileShares/locations/{location}/getUsageData">
13+
<request method="post">
14+
<path>
15+
<param type="string" name="location" arg="$Path.location" required="True">
16+
<format minLength="1"/>
17+
</param>
18+
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
19+
</path>
20+
<query>
21+
<const readOnly="True" const="True" type="string" name="api-version" required="True">
22+
<default value="&quot;2025-06-01-preview&quot;"/>
23+
<format minLength="1"/>
24+
</const>
25+
</query>
26+
</request>
27+
<response statusCode="200">
28+
<body>
29+
<json var="$Instance">
30+
<schema type="object">
31+
<prop type="object" name="properties" required="True">
32+
<prop type="object" name="liveShares" required="True">
33+
<prop type="integer32" name="fileShareCount" required="True"/>
34+
</prop>
35+
</prop>
36+
</schema>
37+
</json>
38+
</body>
39+
</response>
40+
<response isError="True">
41+
<body>
42+
<json>
43+
<schema type="@MgmtErrorFormat"/>
44+
</json>
45+
</body>
46+
</response>
47+
</http>
48+
</operation>
49+
<output type="object" ref="$Instance" clientFlatten="True"/>
50+
</command>
51+
</commandGroup>
52+
</CodeGen>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/providers/microsoft.fileshares/locations/{}/getlimits", "version": "2025-06-01-preview", "swagger": "mgmt-plane/fileshares/ResourceProviders/Microsoft.FileShares/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkZpbGVTaGFyZXMvbG9jYXRpb25zL3tsb2NhdGlvbn0vZ2V0TGltaXRz/V/MjAyNS0wNi0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "file-share", "commands": [{"name": "get-limit", "version": "2025-06-01-preview", "resources": [{"id": "/subscriptions/{}/providers/microsoft.fileshares/locations/{}/getlimits", "version": "2025-06-01-preview", "swagger": "mgmt-plane/fileshares/ResourceProviders/Microsoft.FileShares/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkZpbGVTaGFyZXMvbG9jYXRpb25zL3tsb2NhdGlvbn0vZ2V0TGltaXRz/V/MjAyNS0wNi0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceLocation", "var": "$Path.location", "options": ["l", "location"], "required": true, "idPart": "name"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "FileShare_GetLimits", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.FileShares/locations/{location}/getLimits", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "location", "arg": "$Path.location", "required": true, "format": {"minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-06-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "object", "name": "properties", "required": true, "props": [{"type": "object", "name": "limits", "required": true, "props": [{"type": "integer32", "name": "maxFileSharePrivateEndpointConnections", "required": true}, {"type": "integer32", "name": "maxFileShareSnapshots", "required": true}, {"type": "integer32", "name": "maxFileShareSubnets", "required": true}, {"type": "integer32", "name": "maxFileShares", "required": true}, {"type": "integer32", "name": "maxProvisionedIOPerSec", "required": true}, {"type": "integer32", "name": "maxProvisionedStorageGiB", "required": true}, {"type": "integer32", "name": "maxProvisionedThroughputMiBPerSec", "required": true}, {"type": "integer32", "name": "minProvisionedIOPerSec", "required": true}, {"type": "integer32", "name": "minProvisionedStorageGiB", "required": true}, {"type": "integer32", "name": "minProvisionedThroughputMiBPerSec", "required": true}]}, {"type": "object", "name": "provisioningConstants", "required": true, "props": [{"type": "integer32", "name": "baseIOPerSec", "required": true}, {"type": "integer32", "name": "baseThroughputMiBPerSec", "required": true}, {"type": "float64", "name": "scalarIOPerSec", "required": true}, {"type": "float64", "name": "scalarThroughputMiBPerSec", "required": true}]}]}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]}

0 commit comments

Comments
 (0)