Skip to content
Open
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 src/Site/Site.Autorest/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
16 changes: 16 additions & 0 deletions src/Site/Site.Autorest/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
bin
obj
.vs
generated
internal
exports
tools
test/*-TestResults.xml
license.txt
/*.ps1
/*.psd1
/*.ps1xml
/*.psm1
/*.snk
/*.csproj
/*.nuspec
29 changes: 29 additions & 0 deletions src/Site/Site.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an ""AS IS"" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
// is regenerated.

using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Site")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]



173 changes: 173 additions & 0 deletions src/Site/Site.Autorest/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
<!-- region Generated -->
# Az.Site
This directory contains the PowerShell module for the Site 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.Site`, see [how-to.md](how-to.md).
<!-- endregion -->

<!-- region Generated -->
# Az.Site
This directory contains the PowerShell module for the Site service.

### AutoRest Configuration
> see https://aka.ms/autorest

``` yaml
require:
# readme.azure.noprofile.md is the common configuration file
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
# You need to specify your swagger files here.
- $(repo)/specification/edge/resource-manager/Microsoft.Edge/sites/stable/2025-06-01/sites.json

commit: 3d1eea900f369f1a655c9bbb4fff4bf4657a7d75
# 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-swagger

# For new RP, the version is 0.1.0
module-version: 0.1.0
# Normally, title is the service name
title: Site
inlining-threshold: 50

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|CreateViaIdentity|CreateViaIdentityExpanded|UpdateViaIdentity)(?!.*?(Expanded|JsonFilePath|JsonString))
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

# Hide ALL scope-specific cmdlets to allow custom unified cmdlets
- where:
subject: SitesBySubscription
hide: true
- where:
subject: SitesByServiceGroup
hide: true

# Hide ALL base resource group scope cmdlets (our custom unified cmdlets replace them)
- where:
verb: Get
subject: Site
hide: true
- where:
verb: New
subject: Site
hide: true
- where:
verb: Remove
subject: Site
hide: true
- where:
verb: Update
subject: Site
hide: true

# Parameter customizations for better user experience
- where:
parameter-name: Label
set:
parameter-name: Labels

# Remove SiteAddress prefix from address-related parameters
- where:
parameter-name: SiteAddressCity
set:
parameter-name: City

- where:
parameter-name: SiteAddressCountry
set:
parameter-name: Country

- where:
parameter-name: SiteAddressPostalCode
set:
parameter-name: PostalCode

- where:
parameter-name: SiteAddressStateOrProvince
set:
parameter-name: StateOrProvince

- where:
parameter-name: SiteAddressStreetAddress1
set:
parameter-name: StreetAddress1

- where:
parameter-name: SiteAddressStreetAddress2
set:
parameter-name: StreetAddress2

- where:
property-name: Label
set:
property-name: Labels

# Remove Address prefix from address-related properties
- where:
property-name: AddressCity
set:
property-name: City

- where:
property-name: AddressCountry
set:
property-name: Country

- where:
property-name: AddressPostalCode
set:
property-name: PostalCode

- where:
property-name: AddressStateOrProvince
set:
property-name: StateOrProvince

- where:
property-name: AddressStreetAddress1
set:
property-name: StreetAddress1

- where:
property-name: AddressStreetAddress2
set:
property-name: StreetAddress2

- where:
parameter-name: SiteName
set:
alias: Name

```
17 changes: 17 additions & 0 deletions src/Site/Site.Autorest/custom/Az.Site.custom.psm1
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# region Generated
# Load the private module dll
$null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.Site.private.dll')

# Load the internal module
$internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.Site.internal.psm1'
if(Test-Path $internalModulePath) {
$null = Import-Module -Name $internalModulePath
}

# Export nothing to clear implicit exports
Export-ModuleMember

# Export script cmdlets
Get-ChildItem -Path $PSScriptRoot -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
Export-ModuleMember -Function (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot) -Alias (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot -AsAlias)
# endregion
Loading