Skip to content

Commit d680a0d

Browse files
Aman-Jain-14Aman Jain
andauthored
[amlfs] Add az amlfs import/az amlfs auto-export commands (#8851)
* [StorageCache] BREAKING CHANGE: Add az amlfs import/az amlfs auto-export extension commandlets * Adding release notes, updating version and revising code owners --------- Co-authored-by: Aman Jain <[email protected]>
1 parent 83e4e4e commit d680a0d

33 files changed

+20752
-758
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,3 +331,5 @@
331331
/src/vme/ @caoyihua
332332

333333
/src/carbon/ @itiinani
334+
335+
/src/amlfs/ @Aman-Jain-14 @amajai @mawhite @brpanask @tibanyas

src/amlfs/HISTORY.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Release History
44
===============
55

6+
1.1.0
7+
+++++
8+
Added: az amlfs import create/update/list/show/delete commands for importing data from Blob Storage to AMLFS
9+
Added: az amlfs auto-export create/update/list/show/delete commands for automatically exporting data from AMLFS to Blob Storage
10+
611
1.0.0
712
++++++
8-
* Initial release.
13+
* Initial release.

src/amlfs/azext_amlfs/aaz/latest/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44
#
55
# Code generated by aaz-dev-tools
66
# --------------------------------------------------------------------------------------------
7+
8+
# pylint: skip-file
9+
# flake8: noqa
10+

src/amlfs/azext_amlfs/aaz/latest/amlfs/__cmd_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"amlfs",
1616
)
1717
class __CMDGroup(AAZCommandGroup):
18-
"""Manage lustre file system
18+
"""This is an extension to Azure CLI to manage Amlfs resources.
1919
"""
2020
pass
2121

src/amlfs/azext_amlfs/aaz/latest/amlfs/_create.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def content(self):
310310
typ=AAZObjectType,
311311
typ_kwargs={"flags": {"required": True, "client_flatten": True}}
312312
)
313-
_builder.set_prop("identity", AAZObjectType, ".identity")
313+
_builder.set_prop("identity", AAZIdentityObjectType, ".identity")
314314
_builder.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}})
315315
_builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}})
316316
_builder.set_prop("sku", AAZObjectType)
@@ -397,7 +397,7 @@ def _build_schema_on_200_201(cls):
397397
_schema_on_200_201.id = AAZStrType(
398398
flags={"read_only": True},
399399
)
400-
_schema_on_200_201.identity = AAZObjectType()
400+
_schema_on_200_201.identity = AAZIdentityObjectType()
401401
_schema_on_200_201.location = AAZStrType(
402402
flags={"required": True},
403403
)

src/amlfs/azext_amlfs/aaz/latest/amlfs/_list.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class List(AAZCommand):
2929
]
3030
}
3131

32+
AZ_SUPPORT_PAGINATION = True
33+
3234
def _handler(self, command_args):
3335
super()._handler(command_args)
3436
return self.build_paging(self._execute_operations, self._output)
@@ -155,7 +157,7 @@ def _build_schema_on_200(cls):
155157
_element.id = AAZStrType(
156158
flags={"read_only": True},
157159
)
158-
_element.identity = AAZObjectType()
160+
_element.identity = AAZIdentityObjectType()
159161
_element.location = AAZStrType(
160162
flags={"required": True},
161163
)
@@ -481,7 +483,7 @@ def _build_schema_on_200(cls):
481483
_element.id = AAZStrType(
482484
flags={"read_only": True},
483485
)
484-
_element.identity = AAZObjectType()
486+
_element.identity = AAZIdentityObjectType()
485487
_element.location = AAZStrType(
486488
flags={"required": True},
487489
)

src/amlfs/azext_amlfs/aaz/latest/amlfs/_show.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def _build_schema_on_200(cls):
161161
_schema_on_200.id = AAZStrType(
162162
flags={"read_only": True},
163163
)
164-
_schema_on_200.identity = AAZObjectType()
164+
_schema_on_200.identity = AAZIdentityObjectType()
165165
_schema_on_200.location = AAZStrType(
166166
flags={"required": True},
167167
)

src/amlfs/azext_amlfs/aaz/latest/amlfs/_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def _build_schema_aml_filesystem_read(cls, _schema):
432432
aml_filesystem_read.id = AAZStrType(
433433
flags={"read_only": True},
434434
)
435-
aml_filesystem_read.identity = AAZObjectType()
435+
aml_filesystem_read.identity = AAZIdentityObjectType()
436436
aml_filesystem_read.location = AAZStrType(
437437
flags={"required": True},
438438
)

src/amlfs/azext_amlfs/aaz/latest/amlfs/_wait.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def _build_schema_on_200(cls):
157157
_schema_on_200.id = AAZStrType(
158158
flags={"read_only": True},
159159
)
160-
_schema_on_200.identity = AAZObjectType()
160+
_schema_on_200.identity = AAZIdentityObjectType()
161161
_schema_on_200.location = AAZStrType(
162162
flags={"required": True},
163163
)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# --------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
#
5+
# Code generated by aaz-dev-tools
6+
# --------------------------------------------------------------------------------------------
7+
8+
# pylint: skip-file
9+
# flake8: noqa
10+
11+
from azure.cli.core.aaz import *
12+
13+
14+
@register_command_group(
15+
"amlfs auto-export",
16+
)
17+
class __CMDGroup(AAZCommandGroup):
18+
"""Manage Auto Export Job
19+
"""
20+
pass
21+
22+
23+
__all__ = ["__CMDGroup"]

0 commit comments

Comments
 (0)