From 8f85db54064e6c14d651d10a048e9ff6d56e745d Mon Sep 17 00:00:00 2001 From: "RuiJun Hu (MSFT)" Date: Tue, 14 Jan 2025 14:26:30 +0800 Subject: [PATCH] export sig share update --- Commands/sig/readme.md | 3 + Commands/sig/share/_update.md | 9 ++ Commands/sig/share/readme.md | 8 ++ Commands/tree.json | 33 +++++ .../2023-07-03.json | 1 + .../2023-07-03.xml | 131 ++++++++++++++++++ 6 files changed, 185 insertions(+) create mode 100644 Commands/sig/share/_update.md create mode 100644 Commands/sig/share/readme.md create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fS9zaGFyZQ==/2023-07-03.json create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fS9zaGFyZQ==/2023-07-03.xml diff --git a/Commands/sig/readme.md b/Commands/sig/readme.md index a29e37f49..085aab06e 100644 --- a/Commands/sig/readme.md +++ b/Commands/sig/readme.md @@ -13,6 +13,9 @@ Manage shared image gallery. - [image-version](/Commands/sig/image-version/readme.md) : Manage shared gallery image version with VM +- [share](/Commands/sig/share/readme.md) +: Manage gallery sharing profile. + ## Commands - [create](/Commands/sig/_create.md) diff --git a/Commands/sig/share/_update.md b/Commands/sig/share/_update.md new file mode 100644 index 000000000..9537b49b4 --- /dev/null +++ b/Commands/sig/share/_update.md @@ -0,0 +1,9 @@ +# [Command] _sig share update_ + +Update sharing profile of a gallery. + +## Versions + +### [2023-07-03](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fS9zaGFyZQ==/2023-07-03.xml) **Stable** + + diff --git a/Commands/sig/share/readme.md b/Commands/sig/share/readme.md new file mode 100644 index 000000000..daacf9b3d --- /dev/null +++ b/Commands/sig/share/readme.md @@ -0,0 +1,8 @@ +# [Group] _sig share_ + +Manage gallery sharing profile. + +## Commands + +- [update](/Commands/sig/share/_update.md) +: Update sharing profile of a gallery. diff --git a/Commands/tree.json b/Commands/tree.json index 762f99b65..fd9c3cf9d 100644 --- a/Commands/tree.json +++ b/Commands/tree.json @@ -214674,6 +214674,39 @@ "sig", "image-version" ] + }, + "share": { + "commands": { + "update": { + "help": { + "short": "Update sharing profile of a gallery." + }, + "names": [ + "sig", + "share", + "update" + ], + "versions": [ + { + "name": "2023-07-03", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{}/share", + "plane": "mgmt-plane", + "version": "2023-07-03" + } + ] + } + ] + } + }, + "help": { + "short": "Manage gallery sharing profile." + }, + "names": [ + "sig", + "share" + ] } }, "commands": { diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fS9zaGFyZQ==/2023-07-03.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fS9zaGFyZQ==/2023-07-03.json new file mode 100644 index 000000000..847225008 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fS9zaGFyZQ==/2023-07-03.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{}/share", "version": "2023-07-03", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9nYWxsZXJpZXMve2dhbGxlcnlOYW1lfS9zaGFyZQ==/V/MjAyMy0wNy0wMw=="}], "commandGroups": [{"name": "sig share", "commands": [{"name": "update", "version": "2023-07-03", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{}/share", "version": "2023-07-03", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9nYWxsZXJpZXMve2dhbGxlcnlOYW1lfS9zaGFyZQ==/V/MjAyMy0wNy0wMw=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.galleryName", "options": ["r", "gallery-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Shared Image Gallery."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "SharingUpdate", "args": [{"type": "array", "var": "$sharingUpdate.groups", "options": ["groups"], "group": "SharingUpdate", "help": {"short": "A list of sharing profile groups."}, "item": {"type": "object", "args": [{"type": "array", "var": "$sharingUpdate.groups[].ids", "options": ["ids"], "help": {"short": "A list of subscription/tenant ids the gallery is aimed to be shared to."}, "item": {"type": "string"}}, {"type": "string", "var": "$sharingUpdate.groups[].type", "options": ["type"], "help": {"short": "This property allows you to specify the type of sharing group. Possible values are: **Subscriptions,** **AADTenants.**"}, "enum": {"items": [{"name": "AADTenants", "value": "AADTenants"}, {"name": "Subscriptions", "value": "Subscriptions"}]}}]}}, {"type": "string", "var": "$sharingUpdate.operationType", "options": ["operation-type"], "required": true, "group": "SharingUpdate", "help": {"short": "Specify the operation type of gallery sharing update. Possible values are: Add, Remove, Reset, EnableCommunity."}, "enum": {"items": [{"name": "Add", "value": "Add"}, {"name": "EnableCommunity", "value": "EnableCommunity"}, {"name": "Remove", "value": "Remove"}, {"name": "Reset", "value": "Reset"}]}}]}], "operations": [{"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "GallerySharingProfile_Update", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "galleryName", "arg": "$Path.galleryName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2023-07-03"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"schema": {"type": "object", "name": "sharingUpdate", "required": true, "props": [{"type": "array", "name": "groups", "arg": "$sharingUpdate.groups", "item": {"type": "object", "props": [{"type": "array", "name": "ids", "arg": "$sharingUpdate.groups[].ids", "item": {"type": "string"}}, {"type": "string", "name": "type", "arg": "$sharingUpdate.groups[].type", "enum": {"items": [{"value": "AADTenants"}, {"value": "Subscriptions"}]}}]}}, {"type": "string", "name": "operationType", "arg": "$sharingUpdate.operationType", "required": true, "enum": {"items": [{"value": "Add"}, {"value": "EnableCommunity"}, {"value": "Remove"}, {"value": "Reset"}]}}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "array", "name": "groups", "item": {"type": "object", "props": [{"type": "array", "name": "ids", "item": {"type": "string"}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AADTenants"}, {"value": "Subscriptions"}]}}]}}, {"type": "string", "name": "operationType", "required": true, "enum": {"items": [{"value": "Add"}, {"value": "EnableCommunity"}, {"value": "Remove"}, {"value": "Reset"}]}}], "cls": "SharingUpdate_read"}}}}, {"statusCode": [202], "body": {"json": {"var": "$Instance", "schema": {"type": "@SharingUpdate_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fS9zaGFyZQ==/2023-07-03.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fS9zaGFyZQ==/2023-07-03.xml new file mode 100644 index 000000000..dfc6dedc4 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fS9zaGFyZQ==/2023-07-03.xml @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +