Skip to content

Commit 34630bd

Browse files
authored
[Az.CustomProviders] Update generation tool version: autorest.powershell v3 -> v4 (Azure#27567)
1 parent b7db6ed commit 34630bd

27 files changed

+896
-107
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - CustomProviders")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/CustomProviders/CustomProviders.Autorest/README.md

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ module-version: 0.1.0
5454
title: CustomProviders
5555
subject-prefix: ''
5656

57-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
58-
use-extension:
59-
"@autorest/powershell": "3.x"
60-
6157
directive:
6258
- where:
6359
subject: CustomResourceProvider
@@ -69,29 +65,18 @@ directive:
6965
set:
7066
subject: CustomProviderAssociation
7167

72-
- where:
73-
verb: New
74-
subject: ^CustomProvider.*$
75-
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Create$
68+
- where:
69+
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
7670
remove: true
77-
7871
- where:
79-
verb: Set
80-
subject: CustomProviderAssociation
81-
variant: ^Update$|^UpdateViaIdentity$
72+
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
8273
remove: true
8374

8475
- where:
8576
verb: Set
8677
subject: ^CustomProvider$
8778
remove: true
8879

89-
- where:
90-
verb: Update
91-
subject: CustomProvider
92-
variant: ^Update$|^UpdateViaIdentity$
93-
remove: true
94-
9580
- where:
9681
verb: Set
9782
subject: CustomProviderAssociation

src/CustomProviders/CustomProviders.Autorest/docs/Az.CustomProviders.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.CustomProviders
3-
Module Guid: b98dded0-6e9a-4371-b2c6-d74464fb724b
3+
Module Guid: ada95d58-e126-4685-9380-6e88db6da852
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.customproviders
55
Help Version: 1.0.0.0
66
Locale: en-US
@@ -18,10 +18,10 @@ Gets the custom resource provider manifest.
1818
Get an association.
1919

2020
### [New-AzCustomProvider](New-AzCustomProvider.md)
21-
Creates or updates the custom resource provider.
21+
create the custom resource provider.
2222

2323
### [New-AzCustomProviderAssociation](New-AzCustomProviderAssociation.md)
24-
Create or update an association.
24+
create an association.
2525

2626
### [Remove-AzCustomProvider](Remove-AzCustomProvider.md)
2727
Deletes the custom resource provider.
@@ -30,6 +30,9 @@ Deletes the custom resource provider.
3030
Delete an association.
3131

3232
### [Update-AzCustomProvider](Update-AzCustomProvider.md)
33-
Updates an existing custom resource provider.
33+
update an existing custom resource provider.
3434
The only value that can be updated via PATCH currently is the tags.
3535

36+
### [Update-AzCustomProviderAssociation](Update-AzCustomProviderAssociation.md)
37+
update an association.
38+

src/CustomProviders/CustomProviders.Autorest/docs/Get-AzCustomProvider.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ Accept wildcard characters: False
9494
9595
### -InputObject
9696
Identity Parameter
97-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
9897
9998
```yaml
10099
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomProvidersIdentity
@@ -164,7 +163,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
164163
165164
## OUTPUTS
166165
167-
### Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ICustomRpManifest
166+
### Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomRpManifest
168167
169168
## NOTES
170169

src/CustomProviders/CustomProviders.Autorest/docs/Get-AzCustomProviderAssociation.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ Accept wildcard characters: False
8080
8181
### -InputObject
8282
Identity Parameter
83-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8483
8584
```yaml
8685
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomProvidersIdentity
@@ -133,7 +132,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
133132
134133
## OUTPUTS
135134
136-
### Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.IAssociation
135+
### Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.IAssociation
137136
138137
## NOTES
139138

src/CustomProviders/CustomProviders.Autorest/docs/New-AzCustomProvider.md

Lines changed: 56 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,34 @@ schema: 2.0.0
88
# New-AzCustomProvider
99

1010
## SYNOPSIS
11-
Creates or updates the custom resource provider.
11+
create the custom resource provider.
1212

1313
## SYNTAX
1414

15+
### CreateExpanded (Default)
1516
```
1617
New-AzCustomProvider -Name <String> -ResourceGroupName <String> -Location <String> [-SubscriptionId <String>]
1718
[-Action <ICustomRpActionRouteDefinition[]>] [-ResourceType <ICustomRpResourceTypeRouteDefinition[]>]
1819
[-Tag <Hashtable>] [-Validation <ICustomRpValidations[]>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait]
1920
[-Confirm] [-WhatIf] [<CommonParameters>]
2021
```
2122

23+
### CreateViaJsonFilePath
24+
```
25+
New-AzCustomProvider -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
26+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
27+
[<CommonParameters>]
28+
```
29+
30+
### CreateViaJsonString
31+
```
32+
New-AzCustomProvider -Name <String> -ResourceGroupName <String> -JsonString <String>
33+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
34+
[<CommonParameters>]
35+
```
36+
2237
## DESCRIPTION
23-
Creates or updates the custom resource provider.
38+
create the custom resource provider.
2439

2540
## EXAMPLES
2641

@@ -54,11 +69,10 @@ Create a custom provider, with a route for Custom provider associations.
5469

5570
### -Action
5671
A list of actions that the custom resource provider implements.
57-
To construct, see NOTES section for ACTION properties and create a hash table.
5872

5973
```yaml
60-
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ICustomRpActionRouteDefinition[]
61-
Parameter Sets: (All)
74+
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomRpActionRouteDefinition[]
75+
Parameter Sets: CreateExpanded
6276
Aliases:
6377

6478
Required: False
@@ -99,12 +113,42 @@ Accept pipeline input: False
99113
Accept wildcard characters: False
100114
```
101115
116+
### -JsonFilePath
117+
Path of Json file supplied to the Create operation
118+
119+
```yaml
120+
Type: System.String
121+
Parameter Sets: CreateViaJsonFilePath
122+
Aliases:
123+
124+
Required: True
125+
Position: Named
126+
Default value: None
127+
Accept pipeline input: False
128+
Accept wildcard characters: False
129+
```
130+
131+
### -JsonString
132+
Json string supplied to the Create operation
133+
134+
```yaml
135+
Type: System.String
136+
Parameter Sets: CreateViaJsonString
137+
Aliases:
138+
139+
Required: True
140+
Position: Named
141+
Default value: None
142+
Accept pipeline input: False
143+
Accept wildcard characters: False
144+
```
145+
102146
### -Location
103147
Resource location
104148
105149
```yaml
106150
Type: System.String
107-
Parameter Sets: (All)
151+
Parameter Sets: CreateExpanded
108152
Aliases:
109153

110154
Required: True
@@ -161,11 +205,10 @@ Accept wildcard characters: False
161205
162206
### -ResourceType
163207
A list of resource types that the custom resource provider implements.
164-
To construct, see NOTES section for RESOURCETYPE properties and create a hash table.
165208
166209
```yaml
167-
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ICustomRpResourceTypeRouteDefinition[]
168-
Parameter Sets: (All)
210+
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomRpResourceTypeRouteDefinition[]
211+
Parameter Sets: CreateExpanded
169212
Aliases:
170213

171214
Required: False
@@ -197,7 +240,7 @@ Resource tags
197240
198241
```yaml
199242
Type: System.Collections.Hashtable
200-
Parameter Sets: (All)
243+
Parameter Sets: CreateExpanded
201244
Aliases:
202245

203246
Required: False
@@ -209,11 +252,10 @@ Accept wildcard characters: False
209252
210253
### -Validation
211254
A list of validations to run on the custom resource provider's requests.
212-
To construct, see NOTES section for VALIDATION properties and create a hash table.
213255
214256
```yaml
215-
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ICustomRpValidations[]
216-
Parameter Sets: (All)
257+
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomRpValidations[]
258+
Parameter Sets: CreateExpanded
217259
Aliases:
218260

219261
Required: False
@@ -261,7 +303,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
261303
262304
## OUTPUTS
263305
264-
### Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ICustomRpManifest
306+
### Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomRpManifest
265307
266308
## NOTES
267309

src/CustomProviders/CustomProviders.Autorest/docs/New-AzCustomProviderAssociation.md

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,30 @@ schema: 2.0.0
88
# New-AzCustomProviderAssociation
99

1010
## SYNOPSIS
11-
Create or update an association.
11+
create an association.
1212

1313
## SYNTAX
1414

15+
### CreateExpanded (Default)
1516
```
1617
New-AzCustomProviderAssociation -Name <String> -Scope <String> [-TargetResourceId <String>]
1718
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
1819
```
1920

21+
### CreateViaJsonFilePath
22+
```
23+
New-AzCustomProviderAssociation -Name <String> -Scope <String> -JsonFilePath <String>
24+
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
25+
```
26+
27+
### CreateViaJsonString
28+
```
29+
New-AzCustomProviderAssociation -Name <String> -Scope <String> -JsonString <String>
30+
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
31+
```
32+
2033
## DESCRIPTION
21-
Create or update an association.
34+
create an association.
2235

2336
## EXAMPLES
2437

@@ -69,6 +82,36 @@ Accept pipeline input: False
6982
Accept wildcard characters: False
7083
```
7184
85+
### -JsonFilePath
86+
Path of Json file supplied to the Create operation
87+
88+
```yaml
89+
Type: System.String
90+
Parameter Sets: CreateViaJsonFilePath
91+
Aliases:
92+
93+
Required: True
94+
Position: Named
95+
Default value: None
96+
Accept pipeline input: False
97+
Accept wildcard characters: False
98+
```
99+
100+
### -JsonString
101+
Json string supplied to the Create operation
102+
103+
```yaml
104+
Type: System.String
105+
Parameter Sets: CreateViaJsonString
106+
Aliases:
107+
108+
Required: True
109+
Position: Named
110+
Default value: None
111+
Accept pipeline input: False
112+
Accept wildcard characters: False
113+
```
114+
72115
### -Name
73116
The name of the association.
74117
@@ -121,7 +164,7 @@ The REST resource instance of the target resource for this association.
121164
122165
```yaml
123166
Type: System.String
124-
Parameter Sets: (All)
167+
Parameter Sets: CreateExpanded
125168
Aliases:
126169

127170
Required: False
@@ -169,7 +212,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
169212
170213
## OUTPUTS
171214
172-
### Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.IAssociation
215+
### Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.IAssociation
173216
174217
## NOTES
175218

src/CustomProviders/CustomProviders.Autorest/docs/Remove-AzCustomProvider.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ Accept wildcard characters: False
8282
8383
### -InputObject
8484
Identity Parameter
85-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8685
8786
```yaml
8887
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomProvidersIdentity

src/CustomProviders/CustomProviders.Autorest/docs/Remove-AzCustomProviderAssociation.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ Accept wildcard characters: False
8282
8383
### -InputObject
8484
Identity Parameter
85-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8685
8786
```yaml
8887
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomProvidersIdentity

0 commit comments

Comments
 (0)