Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate ConnectedMachine from generation to release-2024-10-08 #26166

Merged
merged 2 commits into from
Sep 24, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -1860,6 +1860,9 @@
</ViewSelectedBy>
<TableControl>
<TableHeaders>
<TableColumnHeader>
<Label>BillingEndDate</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>BillingStartDate</Label>
</TableColumnHeader>
Expand All @@ -1879,6 +1882,9 @@
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>BillingEndDate</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>BillingStartDate</PropertyName>
</TableColumnItem>
Expand Down Expand Up @@ -3327,6 +3333,9 @@
<TableColumnHeader>
<Label>AssessmentMode</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>EnableHotpatching</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>PatchMode</Label>
</TableColumnHeader>
Expand All @@ -3337,6 +3346,9 @@
<TableColumnItem>
<PropertyName>AssessmentMode</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>EnableHotpatching</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>PatchMode</PropertyName>
</TableColumnItem>
Expand All @@ -3345,6 +3357,28 @@
</TableRowEntries>
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.PatchSettingsStatus</Name>
<ViewSelectedBy>
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.PatchSettingsStatus#Multiple</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
<TableColumnHeader>
<Label>HotpatchEnablementStatus</Label>
</TableColumnHeader>
</TableHeaders>
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>HotpatchEnablementStatus</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
</TableControl>
</View>
<View>
<Name>Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.PrivateEndpointConnection</Name>
<ViewSelectedBy>
Expand Down Expand Up @@ -3702,6 +3736,9 @@
</ViewSelectedBy>
<TableControl>
<TableHeaders>
<TableColumnHeader>
<Label>BillingEndDate</Label>
</TableColumnHeader>
<TableColumnHeader>
<Label>BillingStartDate</Label>
</TableColumnHeader>
Expand All @@ -3721,6 +3758,9 @@
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>BillingEndDate</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>BillingStartDate</PropertyName>
</TableColumnItem>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@{
GUID = '259a0542-8329-4b9e-8f72-dab0efc583e9'
RootModule = './Az.ConnectedMachine.psm1'
ModuleVersion = '0.5.0'
ModuleVersion = '0.1.0'
CompatiblePSEditions = 'Core', 'Desktop'
Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'
Expand Down
24 changes: 15 additions & 9 deletions src/ConnectedMachine/ConnectedMachine.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,20 @@ In this directory, run AutoRest:
> see https://aka.ms/autorest
``` yaml
commit: 9c51b17f1c544eea0f6a67c01a6b763995521f52
commit: 2e5be0e72597c6fc8d438f20e38087d900c16427
require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
- $(repo)/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-03-31-preview/HybridCompute.json
- $(repo)/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-03-31-preview/privateLinkScopes.json
- $(repo)/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-05-20-preview/HybridCompute.json
- $(repo)/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-05-20-preview/privateLinkScopes.json

module-version: 0.5.0
module-version: 0.1.0
title: ConnectedMachine
subject-prefix: 'Connected'
# becasue autorest.powershell is unable to transform IdentityType as the best practice design if it uses managed identity
# we hide the original cmdlet and custom it under /custom folder
disable-transform-identity-type-for-operation:
- Machines_Update

directive:
- from: swagger-document
Expand Down Expand Up @@ -333,6 +337,7 @@ directive:
- where:
subject: Gateway
remove: true
# Remove when this API version is added
- where:
subject: Setting
remove: true
Expand Down Expand Up @@ -362,12 +367,13 @@ directive:
verb: Invoke
remove: true

# Removing non-expand commands
# becasue autorest.powershell is unable to transform IdentityType as the best practice design if it uses managed identity
# we hide the original cmdlet and custom it under /custom folder
- where:
subject: MachinePatch
variant: ^(Install)(?!.*?Expanded|JsonFilePath|JsonString)
remove: true
subject: Machine
verb: Update
hide: true

# Completers
- where:
parameter-name: Location
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "licenses",
"apiVersion": "2024-03-31-preview",
"apiVersion": "2024-05-20-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "locations/publishers/extensionTypes/versions",
"apiVersion": "2024-03-31-preview",
"apiVersion": "2024-05-20-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "machines/extensions",
"apiVersion": "2024-03-31-preview",
"apiVersion": "2024-05-20-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "machines/runCommands",
"apiVersion": "2024-03-31-preview",
"apiVersion": "2024-05-20-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "machines",
"apiVersion": "2024-03-31-preview",
"apiVersion": "2024-05-20-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "privateLinkScopes/networkSecurityPerimeterConfigurations",
"apiVersion": "2024-03-31-preview",
"apiVersion": "2024-05-20-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "privateLinkScopes",
"apiVersion": "2024-03-31-preview",
"apiVersion": "2024-05-20-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
Expand Down
Loading