Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
16 changes: 0 additions & 16 deletions src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py

This file was deleted.

52 changes: 0 additions & 52 deletions src/azure-cli/azure/cli/command_modules/vm/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,32 +695,6 @@
--release-note-uri path_to_release_notes
"""

helps['sig image-definition list-shared'] = """
type: command
short-summary: List VM Image definitions in a gallery shared directly to your subscription or tenant
long-summary: List VM Image definitions in a gallery shared directly to your subscription or tenant
examples:
- name: List an image definition in a gallery shared directly to your subscription in the given location.
text: |
az sig image-definition list-shared --gallery-unique-name galleryUniqueName \\
--location myLocation
- name: List an image definition in a gallery shared directly to your tenant in the given location.
text: |
az sig image-definition list-shared --gallery-unique-name galleryUniqueName \\
--location myLocation --shared-to tenant
"""

helps['sig image-definition list-community'] = """
type: command
short-summary: List VM Image definitions in a gallery community
long-summary: List VM Image definitions in a gallery community
examples:
- name: List an image definition in a gallery community.
text: |
az sig image-definition list-community --public-gallery-name publicGalleryName \\
--location myLocation
"""

helps['sig image-version create'] = """
type: command
short-summary: create a new image version
Expand Down Expand Up @@ -862,21 +836,6 @@
--block-deletion-before-end-of-life true
"""

helps['sig image-version list-shared'] = """
type: command
short-summary: List VM Image Versions in a gallery shared directly to your subscription or tenant
long-summary: List VM Image Versions in a gallery shared directly to your subscription or tenant
examples:
- name: List image versions in a gallery shared directly to your subscription in the given location and image definition.
text: |
az sig image-version list-shared --gallery-unique-name galleryUniqueName \\
--gallery-image-definition MyImage --location myLocation
- name: List image versions in a gallery shared directly to your tenant in the given location and image definition.
text: |
az sig image-version list-shared --gallery-unique-name galleryUniqueName \\
--gallery-image-definition MyImage --location myLocation --shared-to tenant
"""

helps['sig image-version update'] = """
type: command
short-summary: update a share image version
Expand Down Expand Up @@ -941,17 +900,6 @@
--gallery-image-version 1.1.1
"""

helps['sig image-version list-community'] = """
type: command
short-summary: List VM Image Versions in a gallery community
long-summary: List VM Image Versions in a gallery community
examples:
- name: List an image versions in a gallery community.
text: |
az sig image-version list-community --public-gallery-name publicGalleryName \\
--gallery-image-definition MyImage --location myLocation
"""

helps['sig image-version wait'] = """
type: command
short-summary: wait for image version related operation
Expand Down
39 changes: 0 additions & 39 deletions src/azure-cli/azure/cli/command_modules/vm/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,6 @@ def load_arguments(self, _):
min_api='2020-12-01'
)

t_shared_to = self.get_models('SharedToValues', operation_group='shared_galleries')
shared_to_type = CLIArgumentType(
arg_type=get_enum_type(t_shared_to),
help='The query parameter to decide what shared galleries to fetch when doing listing operations. '
'If not specified, list by subscription id.'
)

marker_type = CLIArgumentType(
help='A string value that identifies the portion of the list of containers to be '
'returned with the next listing operation. The operation returns the NextMarker value within '
Expand Down Expand Up @@ -1292,14 +1285,6 @@ def load_arguments(self, _):
c.argument('features', help='A list of gallery image features. E.g. "IsSecureBootSupported=true IsMeasuredBootSupported=false"')
c.argument('architecture', arg_type=get_enum_type(self.get_models('Architecture', operation_group='gallery_images')), min_api='2021-10-01', help='CPU architecture.')

with self.argument_context('sig image-definition list-shared') as c:
c.argument('location', arg_type=get_location_type(self.cli_ctx), id_part='name')
c.argument('gallery_unique_name', type=str, help='The unique name of the Shared Gallery.',
id_part='child_name_1')
c.argument('shared_to', shared_to_type)
c.argument('marker', arg_type=marker_type)
c.argument('show_next_marker', action='store_true', help='Show nextMarker in result when specified.')

with self.argument_context('sig image-definition create') as c:
c.argument('description', help='the description of the gallery image definition')
with self.argument_context('sig image-definition update') as c:
Expand Down Expand Up @@ -1342,17 +1327,6 @@ def load_arguments(self, _):
help='Space-separated list of customer managed keys for encrypting the OS and data disks in the gallery artifact for each region. '
'Format for each edge zone: `<edge zone>,<os_des>,<lun1>,<lun1_des>,<lun2>,<lun2_des>`.')

with self.argument_context('sig image-version list-shared') as c:
c.argument('location', arg_type=get_location_type(self.cli_ctx), id_part='name')
c.argument('gallery_unique_name', type=str, help='The unique name of the Shared Gallery.',
id_part='child_name_1')
c.argument('gallery_image_name', options_list=['--gallery-image-definition', '-i'], type=str, help='The name '
'of the Shared Gallery Image Definition from which the Image Versions are to be listed.',
id_part='child_name_2')
c.argument('shared_to', shared_to_type)
c.argument('marker', arg_type=marker_type)
c.argument('show_next_marker', action='store_true', help='Show nextMarker in result when specified.')

with self.argument_context('sig image-version show') as c:
c.argument('expand', help="The expand expression to apply on the operation, e.g. 'ReplicationStatus'")

Expand Down Expand Up @@ -1396,25 +1370,12 @@ def load_arguments(self, _):
c.argument('public_gallery_name', public_gallery_name_type)
c.argument('gallery_image_name', gallery_image_name_type)

with self.argument_context('sig image-definition list-community') as c:
c.argument('location', arg_type=get_location_type(self.cli_ctx), id_part='name')
c.argument('public_gallery_name', public_gallery_name_type)
c.argument('marker', arg_type=marker_type)
c.argument('show_next_marker', action='store_true', help='Show nextMarker in result when specified.')

with self.argument_context('sig image-version show-community') as c:
c.argument('location', arg_type=get_location_type(self.cli_ctx), id_part='name')
c.argument('public_gallery_name', public_gallery_name_type)
c.argument('gallery_image_name', gallery_image_name_type)
c.argument('gallery_image_version_name', gallery_image_name_version_type)

with self.argument_context('sig image-version list-community') as c:
c.argument('location', arg_type=get_location_type(self.cli_ctx), id_part='name')
c.argument('public_gallery_name', public_gallery_name_type)
c.argument('gallery_image_name', gallery_image_name_type)
c.argument('marker', arg_type=marker_type)
c.argument('show_next_marker', action='store_true', help='Show nextMarker in result when specified.')

# endregion

with self.argument_context('vm create', min_api='2018-04-01') as c:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
from ._create import *
from ._delete import *
from ._list import *
from ._list_community import *
from ._list_shared import *
from ._show import *
from ._show_community import *
from ._show_shared import *
Expand Down
Loading