Skip to content

Commit e71e750

Browse files
committed
Initial code changes
1 parent c114faa commit e71e750

File tree

2 files changed

+95
-2
lines changed

2 files changed

+95
-2
lines changed
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<!-- region Generated -->
2+
# Azs.ContainerRegistry.Admin
3+
This directory contains the PowerShell module for the ContainerRegistryAdmin service.
4+
5+
---
6+
## Status
7+
[![Azs.ContainerRegistry.Admin](https://img.shields.io/powershellgallery/v/Azs.ContainerRegistry.Admin.svg?style=flat-square&label=Azs.ContainerRegistry.Admin "Azs.ContainerRegistry.Admin")](https://www.powershellgallery.com/packages/Azs.ContainerRegistry.Admin/)
8+
9+
## Info
10+
- Modifiable: yes
11+
- Generated: all
12+
- Committed: yes
13+
- Packaged: yes
14+
15+
---
16+
## Detail
17+
This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.
18+
19+
## Module Requirements
20+
- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 1.6.0 or greater
21+
22+
## Authentication
23+
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
24+
25+
## Development
26+
For information on how to develop for `Azs.ContainerRegistry.Admin`, see [how-to.md](how-to.md).
27+
<!-- endregion -->
28+
29+
## Generation Requirements
30+
Use of the beta version of `autorest.powershell` generator requires the following:
31+
- [NodeJS LTS](https://nodejs.org) (10.15.x LTS preferred)
32+
- **Note**: It *will not work* with Node < 10.x. Using 11.x builds may cause issues as they may introduce instability or breaking changes.
33+
> If you want an easy way to install and update Node, [NVS - Node Version Switcher](../nodejs/installing-via-nvs.md) or [NVM - Node Version Manager](../nodejs/installing-via-nvm.md) is recommended.
34+
- [AutoRest](https://aka.ms/autorest) v3 beta <br>`npm install -g autorest@beta`<br>&nbsp;
35+
- PowerShell 6.0 or greater
36+
- If you don't have it installed, you can use the cross-platform npm package <br>`npm install -g pwsh`<br>&nbsp;
37+
- .NET Core SDK 2.0 or greater
38+
- If you don't have it installed, you can use the cross-platform npm package <br>`npm install -g dotnet-sdk-2.2`<br>&nbsp;
39+
40+
## Run Generation
41+
In this directory, run AutoRest:
42+
> `autorest`
43+
44+
---
45+
### AutoRest Configuration
46+
> see https://aka.ms/autorest
47+
48+
``` yaml
49+
require:
50+
- $(this-folder)/../readme.azurestack.md
51+
- $(repo)/specification/azsadmin/resource-manager/containerregistry/readme.azsautogen.md
52+
53+
metadata:
54+
description: 'Microsoft AzureStack PowerShell: ContainerRegistry Admin cmdlets'
55+
56+
### PSD1 metadata changes
57+
subject-prefix: ''
58+
module-version: 1.0.0
59+
service-name: ContainerRegistryAdmin
60+
61+
### File Renames
62+
### IMPORTANT - Note that the following settings are case sensitive ###
63+
module-name: Azs.ContainerRegistry.Admin
64+
csproj: Azs.ContainerRegistry.Admin.csproj
65+
psd1: Azs.ContainerRegistry.Admin.psd1
66+
psm1: Azs.ContainerRegistry.Admin.psm1
67+
```
68+
69+
### Parameter default values
70+
``` yaml
71+
directive:
72+
73+
# Add release notes
74+
- from: Azs.ContainerRegistry.Admin.nuspec
75+
where: $
76+
transform: $ = $.replace('<releaseNotes></releaseNotes>', '<releaseNotes>AzureStack Hub Admin module generated with https://github.com/Azure/autorest.powershell.</releaseNotes>');
77+
78+
# Add Az.Accounts/Az.Resources as dependencies
79+
- from: Azs.ContainerRegistry.Admin.nuspec
80+
where: $
81+
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="2.2.4" />\n <dependency id="Az.Resources" version="[1.10.0]" />');
82+
83+
# PSD1 changes for RequiredModules
84+
- from: source-file-csharp
85+
where: $
86+
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.ContainerRegistry.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.ContainerRegistry.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.2.4\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');
87+
88+
# PSD1 changes for ReleaseNotes
89+
- from: source-file-csharp
90+
where: $
91+
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}\{Indent\}\{Indent\}ReleaseNotes = \'\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}\{Indent\}\{Indent\}ReleaseNotes = \'AzureStack Hub Admin module generated with https://github.com/Azure/autorest.powershell\'\"\);' );
92+
```

src/readme.azurestack.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
``` yaml
55
azure: true
66
powershell: true
7-
branch: stackadmin2
8-
repo: https://github.com/Azure/azure-rest-api-specs/tree/$(branch)
7+
branch: release/acrchanges
8+
repo: https://github.com/msazurestackworkloads/azure-rest-api-specs/tree/$(branch)
9+
910
metadata:
1011
authors: Microsoft Corporation
1112
owners: Microsoft Corporation

0 commit comments

Comments
 (0)