Skip to content
Draft

Test #29082

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 @@ -20,7 +20,7 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - NetworkCloud")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.2.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.2.0")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.0.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("2.0.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
31 changes: 29 additions & 2 deletions src/NetworkCloud/NetworkCloud.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ For information on how to develop for `Az.NetworkCloud`, see [how-to.md](how-to.
```yaml
# pin the swagger version by using the commit id instead of branch name : https://github.com/Azure/azure-rest-api-specs/
# the 2025-02-01 stable in a commit: 08973141b0d31a7e75d4dc43a5224a1814a0994f
commit: 08973141b0d31a7e75d4dc43a5224a1814a0994f
commit: ccd751d5bf9d1457426de7fe6d857a4cfe890cd5
require:
# readme.azure.noprofile.md is the common configuration file
- $(this-folder)/../../readme.azure.noprofile.md
- $(repo)/specification/networkcloud/resource-manager/readme.md
input-file:
# You need to specify your swagger files here.
- $(repo)/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-02-01/networkcloud.json
# - $(repo)/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2025-09-01/networkcloud.json
- C:\Users\bernardpan\Desktop\work\azure-rest-api-specs\specification\networkcloud\resource-manager\Microsoft.NetworkCloud\stable\2025-09-01\networkcloud.json

# For new RP, the version is 0.1.0
module-version: 0.1.0
Expand All @@ -45,8 +46,34 @@ title: NetworkCloud
service-name: NetworkCloud
subject-prefix: NetworkCloud

disable-transform-identity-type-for-operation:
- ClusterManagers_Update
- Clusters_Update
- VirtualMachines_Update

directive:
# Fix model definition line break replacement issue
# - from: swagger-document
# where: $.definitions.Cluster.properties.identity
# transform: $['ref'] = "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity"

# - from: swagger-document
# where: $.definitions.ClusterManager.properties.identity
# transform: $['ref'] = "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity"
# - from: swagger-document
# where: $.definitions.ClusterManagerPatchParameters.properties.identity
# transform: $['ref'] = "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity"
# - from: swagger-document
# where: $.definitions.ClusterPatchParameters.properties.identity
# transform: $['ref'] = "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity"
# - from: swagger-document
# where: $.definitions.VirtualMachine.properties.identity
# transform: $['ref'] = "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity"
# - from: swagger-document
# where: $.definitions.VirtualMachinePatchParameters.properties.identity
# transform: $['ref'] = "../../../../../common-types/resource-management/v5/managedidentity.json#/definitions/ManagedServiceIdentity"


- from: swagger-document
where: $.definitions.L3NetworkProperties.properties.ipv4ConnectedPrefix
transform: $['description'] = 'The IPV4 prefix (CIDR) assigned to this L3 network. Required when the IP allocation type is IPV4 or DualStack.'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "bareMetalMachines",
"apiVersion": "2025-02-01",
"apiVersion": "2025-09-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.networkcloud"
},
Expand All @@ -14,6 +14,13 @@
"url": "https://learn.microsoft.com/powershell/module/az.networkcloud/get-aznetworkcloudbaremetalmachine"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String[]>]"
]
},
{
"parameters": [
"-Name <String>",
Expand All @@ -24,6 +31,23 @@
]
},
"examples": [
{
"description": "Get properties of the provided bare metal machine.",
"parameters": [
{
"name": "-Name",
"value": "[Path.bareMetalMachineName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
},
{
"description": "Get properties of the provided bare metal machine.",
"parameters": [
Expand Down Expand Up @@ -52,6 +76,13 @@
"url": "https://learn.microsoft.com/powershell/module/az.networkcloud/invoke-aznetworkcloudbaremetalmachinereimage"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String>]"
]
},
{
"parameters": [
"-Name <String>",
Expand All @@ -62,6 +93,23 @@
]
},
"examples": [
{
"description": "Reimage the provided bare metal machine.",
"parameters": [
{
"name": "-Name",
"value": "[Path.bareMetalMachineName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
},
{
"description": "Reimage the provided bare metal machine.",
"parameters": [
Expand Down Expand Up @@ -90,6 +138,13 @@
"url": "https://learn.microsoft.com/powershell/module/az.networkcloud/invoke-aznetworkcloudbaremetalmachineuncordon"
},
"parameterSets": [
{
"parameters": [
"-BareMetalMachineName <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String>]"
]
},
{
"parameters": [
"-BareMetalMachineName <String>",
Expand All @@ -100,6 +155,23 @@
]
},
"examples": [
{
"description": "Uncordon the provided bare metal machine's Kubernetes node.",
"parameters": [
{
"name": "-BareMetalMachineName",
"value": "[Path.bareMetalMachineName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
},
{
"description": "Uncordon the provided bare metal machine's Kubernetes node.",
"parameters": [
Expand Down Expand Up @@ -128,6 +200,13 @@
"url": "https://learn.microsoft.com/powershell/module/az.networkcloud/restart-aznetworkcloudbaremetalmachine"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String>]"
]
},
{
"parameters": [
"-Name <String>",
Expand All @@ -138,6 +217,23 @@
]
},
"examples": [
{
"description": "Restart the provided bare metal machine.",
"parameters": [
{
"name": "-Name",
"value": "[Path.bareMetalMachineName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
},
{
"description": "Restart the provided bare metal machine.",
"parameters": [
Expand Down Expand Up @@ -166,6 +262,13 @@
"url": "https://learn.microsoft.com/powershell/module/az.networkcloud/start-aznetworkcloudbaremetalmachine"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String>]"
]
},
{
"parameters": [
"-Name <String>",
Expand All @@ -176,6 +279,23 @@
]
},
"examples": [
{
"description": "Start the provided bare metal machine.",
"parameters": [
{
"name": "-Name",
"value": "[Path.bareMetalMachineName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
},
{
"description": "Start the provided bare metal machine.",
"parameters": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "cloudServicesNetworks",
"apiVersion": "2025-02-01",
"apiVersion": "2025-09-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.networkcloud"
},
Expand All @@ -14,6 +14,13 @@
"url": "https://learn.microsoft.com/powershell/module/az.networkcloud/get-aznetworkcloudservicesnetwork"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String[]>]"
]
},
{
"parameters": [
"-Name <String>",
Expand All @@ -24,6 +31,23 @@
]
},
"examples": [
{
"description": "Get properties of the provided cloud services network.",
"parameters": [
{
"name": "-Name",
"value": "[Path.cloudServicesNetworkName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
},
{
"description": "Get properties of the provided cloud services network.",
"parameters": [
Expand Down Expand Up @@ -52,6 +76,13 @@
"url": "https://learn.microsoft.com/powershell/module/az.networkcloud/remove-aznetworkcloudservicesnetwork"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String>]"
]
},
{
"parameters": [
"-Name <String>",
Expand All @@ -62,6 +93,23 @@
]
},
"examples": [
{
"description": "Delete the provided cloud services network.",
"parameters": [
{
"name": "-Name",
"value": "[Path.cloudServicesNetworkName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
},
{
"description": "Delete the provided cloud services network.",
"parameters": [
Expand Down
Loading
Loading