Skip to content

Commit 9a4c4c6

Browse files
azdev lint fix
1 parent 6658495 commit 9a4c4c6

31 files changed

Lines changed: 92 additions & 26 deletions

src/purestorageblock/azext_purestorageblock/aaz/latest/purestorageblock/__cmd_group.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
@register_command_group(
1515
"purestorageblock",
16-
is_preview=True,
1716
)
1817
class __CMDGroup(AAZCommandGroup):
1918
"""Manage Pure Storage Block Resources

src/purestorageblock/azext_purestorageblock/aaz/latest/purestorageblock/reservation/_create.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
)
1818
class Create(AAZCommand):
1919
"""Create a reservation
20+
21+
:example: Reservations_Create
22+
az purestorageblock reservation create --resource-group rgpurestorage --reservation-name storagePoolname --marketplace "{subscription-status:PendingFulfillmentStart,offer-details:{publisher-id:vejockfhoavaqjvhtwvctdnaefvw,offer-id:efojrbphbimq,plan-id:caj,plan-name:lvvzchm,term-unit:ose,term-id:ucyvzkedohfjazifxweylhnbcmeza}}" --user "{first-name:bucysqbbclhwxrzig,last-name:fnsvxlop,email-address:abc@example.com,upn:ekqbqgpdylggddusuiifrnjcwiefay,phone-number:jglihtgsacdxocc,company-details:{company-name:nrndfzmrakk,address:{address-line1:f,address-line2:gycfosmknj,city:qxzhxjoatyuajoljfkd,state:dnusygshfvmebpmcjsd,country:nuexbknolfphlfguyzq,postal-code:yjzqichkfffbdtcswzolmrl}}}" --tags "{key1110:euhfdmtfpucwurtu}" --location jynnbjysbc
2023
"""
2124

2225
_aaz_info = {

src/purestorageblock/azext_purestorageblock/aaz/latest/purestorageblock/reservation/_delete.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
)
1919
class Delete(AAZCommand):
2020
"""Delete a reservation
21+
22+
:example: Reservations_Delete
23+
az purestorageblock reservation delete --resource-group rgpurestorage --reservation-name storagePoolname
2124
"""
2225

2326
_aaz_info = {

src/purestorageblock/azext_purestorageblock/aaz/latest/purestorageblock/reservation/_get_billing_report.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
)
1818
class GetBillingReport(AAZCommand):
1919
"""Provides a summarized report along with actions for resources billed via given reservation
20+
21+
:example: Reservations_GetBillingReport_MaximumSet
22+
az purestorageblock reservation get-billing-report --resource-group rgpurestorage --reservation-name reservationname
2023
"""
2124

2225
_aaz_info = {

src/purestorageblock/azext_purestorageblock/aaz/latest/purestorageblock/reservation/_get_billing_status.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
)
1818
class GetBillingStatus(AAZCommand):
1919
"""Provides various statistics about resources billed via given reservation.
20+
21+
:example: Reservations_GetBillingStatus_MaximumSet
22+
az purestorageblock reservation get-billing-status --resource-group rgpurestorage --reservation-name reservationname
2023
"""
2124

2225
_aaz_info = {

src/purestorageblock/azext_purestorageblock/aaz/latest/purestorageblock/reservation/_get_resource_limit.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
)
1818
class GetResourceLimit(AAZCommand):
1919
"""Limits constraining certain resource properties.
20+
21+
:example: Reservations_GetResourceLimits
22+
az purestorageblock reservation get-resource-limit --resource-group rgpurestorage --reservation-name storagePoolname
2023
"""
2124

2225
_aaz_info = {

src/purestorageblock/azext_purestorageblock/aaz/latest/purestorageblock/reservation/_list.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
)
1818
class List(AAZCommand):
1919
"""List reservations by Azure subscription ID
20+
21+
:example: Reservations_ListBySubscription
22+
az purestorageblock reservation list
2023
"""
2124

2225
_aaz_info = {

src/purestorageblock/azext_purestorageblock/aaz/latest/purestorageblock/reservation/_show.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
)
1818
class Show(AAZCommand):
1919
"""Get a reservation
20+
21+
:example: Reservations_Get
22+
az purestorageblock reservation show --resource-group rgpurestorage --reservation-name storagePoolname
2023
"""
2124

2225
_aaz_info = {

src/purestorageblock/azext_purestorageblock/aaz/latest/purestorageblock/storage_pool/__cmd_group.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
@register_command_group(
1515
"purestorageblock storage-pool",
16-
is_preview=True,
1716
)
1817
class __CMDGroup(AAZCommandGroup):
1918
"""Manage Storage Pool

src/purestorageblock/azext_purestorageblock/aaz/latest/purestorageblock/storage_pool/_create.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
)
1818
class Create(AAZCommand):
1919
"""Create a storage pool
20+
21+
:example: StoragePools_Create
22+
az purestorageblock storage-pool create --resource-group rgpurestorage --storage-pool-name storagePoolname --availability-zone vknyl --vnet-injection "{subnet-id:tnlctolrxdvnkjiphlrdxq,vnet-id:zbumtytyqwewjcyckwqchiypshv}" --provisioned-bandwidth 17 --reservation-id xiowoxnbtcotutcmmrofvgdi --type None --user-assigned-identities "{key4211:{}}" --tags "{key7593:vsyiygyurvwlfaezpuqu}" --location lonlc
2023
"""
2124

2225
_aaz_info = {
@@ -84,13 +87,13 @@ def _build_arguments_schema(cls, *args, **kwargs):
8487
arg_group="Properties",
8588
help="Azure Availability Zone the Pool is located in",
8689
)
87-
_args_schema.provisioned_bandwidth_mb_per_sec = AAZIntArg(
88-
options=["--provisioned-bandwidth-mb-per-sec"],
90+
_args_schema.provisioned_bandwidth = AAZIntArg(
91+
options=["--provisioned-bandwidth"],
8992
arg_group="Properties",
9093
help="Total bandwidth provisioned for the pool, in MB/s",
9194
)
92-
_args_schema.reservation_resource_id = AAZStrArg(
93-
options=["--reservation-resource-id"],
95+
_args_schema.reservation_id = AAZStrArg(
96+
options=["--reservation-id"],
9497
arg_group="Properties",
9598
help="Azure resource ID of the Pure Storage Cloud service (reservation resource) this storage pool belongs to",
9699
)
@@ -256,8 +259,8 @@ def content(self):
256259
properties = _builder.get(".properties")
257260
if properties is not None:
258261
properties.set_prop("availabilityZone", AAZStrType, ".availability_zone", typ_kwargs={"flags": {"required": True}})
259-
properties.set_prop("provisionedBandwidthMbPerSec", AAZIntType, ".provisioned_bandwidth_mb_per_sec", typ_kwargs={"flags": {"required": True}})
260-
properties.set_prop("reservationResourceId", AAZStrType, ".reservation_resource_id", typ_kwargs={"flags": {"required": True}})
262+
properties.set_prop("provisionedBandwidthMbPerSec", AAZIntType, ".provisioned_bandwidth", typ_kwargs={"flags": {"required": True}})
263+
properties.set_prop("reservationResourceId", AAZStrType, ".reservation_id", typ_kwargs={"flags": {"required": True}})
261264
properties.set_prop("vnetInjection", AAZObjectType, ".vnet_injection", typ_kwargs={"flags": {"required": True}})
262265

263266
vnet_injection = _builder.get(".properties.vnetInjection")

0 commit comments

Comments
 (0)