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

[Az.HybridConnectivity] Codegen HybridConnectivity Module #26961

Draft
wants to merge 4 commits into
base: generation
Choose a base branch
from
Draft
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,4 @@ launchSettings.json
/tools/Modules/tmp
/tools/Az/Az.psm1
/Azure.PowerShell.sln
src/HybridConnectivity/HybridConnectivity.Autorest/test/localEnv.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
18 changes: 18 additions & 0 deletions src/HybridConnectivity/HybridConnectivity.Autorest/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
bin
obj
.vs
generated
internal
exports
tools
custom/*.psm1
custom/autogen-model-cmdlets
test/*-TestResults.xml
license.txt
/*.ps1
/*.psd1
/*.ps1xml
/*.psm1
/*.snk
/*.csproj
/*.nuspec
74 changes: 74 additions & 0 deletions src/HybridConnectivity/HybridConnectivity.Autorest/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!-- region Generated -->
# Az.HybridConnectivity
This directory contains the PowerShell module for the HybridConnectivity service.

---
## Info
- Modifiable: yes
- Generated: all
- Committed: yes
- Packaged: yes

---
## Detail
This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.

## Module Requirements
- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater

## Authentication
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.

## Development
For information on how to develop for `Az.HybridConnectivity`, see [how-to.md](how-to.md).
<!-- endregion -->

### AutoRest Configuration
> see https://aka.ms/autorest
```yaml
# pin the swagger version by using the commit id instead of branch name
commit: 9a8af2acfafc4d7a23eff41b859d2d332f51b0bc

require:
# readme.azure.noprofile.md is the common configuration file
- $(this-folder)/../../readme.azure.noprofile.md
- $(repo)/specification/hybridconnectivity/resource-manager/readme.md

# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
# - (this-folder)/relative-path-to-your-local-readme.md

try-require:
- $(repo)/specification/hybridconnectivity/resource-manager/readme.powershell.md

# For new RP, the version is 0.1.0
module-version: 0.1.0
# Normally, title is the service name
title: HybridConnectivity
subject-prefix: HybridConnectivity

# The next three configurations are exclusive to v3, and in v4, they are activated by default. If you are still using v3, please uncomment them.
# identity-correction-for-post: true
# resourcegroup-append: true
# nested-object-to-string: true

directive:
# Following are common directives which are normally required in all the RPs
# 1. Remove the unexpanded parameter set
# 2. For New-* cmdlets, ViaIdentity is not required
# Following two directives are v4 specific
- where:
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
variant: ^CreateViaIdentity.*$
remove: true
# Follow directive is v3 specific. If you are using v3, uncomment following directive and comments out two directives above
#- where:
# variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
# remove: true

# Remove the set-* cmdlet
- where:
verb: Set
remove: true
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"resourceType": "endpoints/serviceConfigurations",
"apiVersion": "2024-12-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.hybridconnectivity"
},
"commands": [
{
"name": "Get-AzHybridConnectivityServiceConfiguration",
"description": "Gets the details about the service to the resource.",
"path": "/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/serviceConfigurations/{serviceConfigurationName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.hybridconnectivity/get-azhybridconnectivityserviceconfiguration"
},
"parameterSets": [
{
"parameters": [
"-EndpointName <String>",
"-Name <String>",
"-ResourceUri <String>"
]
}
]
},
"examples": [
{
"description": "Gets the details about the service to the resource.",
"parameters": [
{
"name": "-EndpointName",
"value": "[Path.endpointName]"
},
{
"name": "-Name",
"value": "[Path.serviceConfigurationName]"
},
{
"name": "-ResourceUri",
"value": "[Path.resourceUri]"
}
]
}
]
},
{
"name": "Remove-AzHybridConnectivityServiceConfiguration",
"description": "Deletes the service details to the target resource.",
"path": "/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/serviceConfigurations/{serviceConfigurationName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.hybridconnectivity/remove-azhybridconnectivityserviceconfiguration"
},
"parameterSets": [
{
"parameters": [
"-EndpointName <String>",
"-Name <String>",
"-ResourceUri <String>"
]
}
]
},
"examples": [
{
"description": "Deletes the service details to the target resource.",
"parameters": [
{
"name": "-EndpointName",
"value": "[Path.endpointName]"
},
{
"name": "-Name",
"value": "[Path.serviceConfigurationName]"
},
{
"name": "-ResourceUri",
"value": "[Path.resourceUri]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"resourceType": "endpoints",
"apiVersion": "2024-12-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.hybridconnectivity"
},
"commands": [
{
"name": "Get-AzHybridConnectivityEndpoint",
"description": "Gets the endpoint to the resource.",
"path": "/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.hybridconnectivity/get-azhybridconnectivityendpoint"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-ResourceUri <String>"
]
}
]
},
"examples": [
{
"description": "Gets the endpoint to the resource.",
"parameters": [
{
"name": "-Name",
"value": "[Path.endpointName]"
},
{
"name": "-ResourceUri",
"value": "[Path.resourceUri]"
}
]
}
]
},
{
"name": "Remove-AzHybridConnectivityEndpoint",
"description": "Deletes the endpoint access to the target resource.",
"path": "/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.hybridconnectivity/remove-azhybridconnectivityendpoint"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-ResourceUri <String>"
]
}
]
},
"examples": [
{
"description": "Deletes the endpoint access to the target resource.",
"parameters": [
{
"name": "-Name",
"value": "[Path.endpointName]"
},
{
"name": "-ResourceUri",
"value": "[Path.resourceUri]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
{
"resourceType": "publicCloudConnectors",
"apiVersion": "2024-12-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.hybridconnectivity"
},
"commands": [
{
"name": "Get-AzHybridConnectivityPublicCloudConnector",
"description": "Get a PublicCloudConnector",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridConnectivity/publicCloudConnectors/{publicCloudConnector}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.hybridconnectivity/get-azhybridconnectivitypubliccloudconnector"
},
"parameterSets": [
{
"parameters": [
"-PublicCloudConnector <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String[]>]"
]
}
]
},
"examples": [
{
"description": "Get a PublicCloudConnector",
"parameters": [
{
"name": "-PublicCloudConnector",
"value": "[Path.publicCloudConnector]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
},
{
"name": "Remove-AzHybridConnectivityPublicCloudConnector",
"description": "Delete a PublicCloudConnector",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridConnectivity/publicCloudConnectors/{publicCloudConnector}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.hybridconnectivity/remove-azhybridconnectivitypubliccloudconnector"
},
"parameterSets": [
{
"parameters": [
"-PublicCloudConnector <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String>]"
]
}
]
},
"examples": [
{
"description": "Delete a PublicCloudConnector",
"parameters": [
{
"name": "-PublicCloudConnector",
"value": "[Path.publicCloudConnector]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
},
{
"name": "Test-AzHybridConnectivityPublicCloudConnectorPermission",
"description": "A long-running resource action.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridConnectivity/publicCloudConnectors/{publicCloudConnector}/testPermissions",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.hybridconnectivity/test-azhybridconnectivitypubliccloudconnectorpermission"
},
"parameterSets": [
{
"parameters": [
"-PublicCloudConnector <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String>]"
]
}
]
},
"examples": [
{
"description": "A long-running resource action.",
"parameters": [
{
"name": "-PublicCloudConnector",
"value": "[Path.publicCloudConnector]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
}
]
}
Loading
Loading