Skip to content

Commit 93cb433

Browse files
authored
[Az.Confluent] Update generation tool version: autorest.powershell v3->v4 (Azure#27548)
1 parent dcccdfe commit 93cb433

16 files changed

+354
-74
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 - Confluent")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.2")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.2.2")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/Confluent/Confluent.Autorest/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ module-version: 0.2.0
5555
title: Confluent
5656
subject-prefix: $(service-name)
5757

58-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
59-
use-extension:
60-
"@autorest/powershell": "3.x"
61-
6258
directive:
6359
# New-AzConfluentMarketplaceAgreeemt has be removed, because it cand be replace by Set-AzMarketplaceTerms (Az.MarketplaceOrdering).
6460
- where:
@@ -71,9 +67,12 @@ directive:
7167
hide: true
7268
# Remove the unexpanded parameter set
7369
- where:
74-
variant: ^Create$|^CreateViaIdentityExpanded$|^CreateViaIdentity$|^Update$|^UpdateViaIdentity$
70+
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
71+
remove: true
72+
- where:
73+
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
7574
remove: true
76-
75+
7776
# Hide the Remove-AzConfluentOrganization for ask user confirmation before Remove-AzConfluentOrganization been invoken
7877
- where:
7978
verb: Remove

src/Confluent/Confluent.Autorest/docs/Az.Confluent.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.Confluent
3-
Module Guid: 957f617c-6cbe-4ea3-b46c-ab3ae8eddb3c
3+
Module Guid: 7fd2f629-040c-406d-9cab-b59bc572d6f9
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.confluent
55
Help Version: 1.0.0.0
66
Locale: en-US
@@ -18,11 +18,11 @@ List Confluent marketplace agreements in the subscription.
1818
Get the properties of a specific Organization resource.
1919

2020
### [New-AzConfluentOrganization](New-AzConfluentOrganization.md)
21-
Create Organization resource
21+
create Organization resource
2222

2323
### [Remove-AzConfluentOrganization](Remove-AzConfluentOrganization.md)
2424
Delete Organization resource
2525

2626
### [Update-AzConfluentOrganization](Update-AzConfluentOrganization.md)
27-
Update Organization resource
27+
update Organization resource
2828

src/Confluent/Confluent.Autorest/docs/Get-AzConfluentMarketplaceAgreement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
7676
7777
## OUTPUTS
7878
79-
### Microsoft.Azure.PowerShell.Cmdlets.Confluent.Models.Api20200301.IConfluentAgreementResource
79+
### Microsoft.Azure.PowerShell.Cmdlets.Confluent.Models.IConfluentAgreementResource
8080
8181
## NOTES
8282

src/Confluent/Confluent.Autorest/docs/Get-AzConfluentOrganization.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ Accept wildcard characters: False
122122
123123
### -InputObject
124124
Identity Parameter
125-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
126125
127126
```yaml
128127
Type: Microsoft.Azure.PowerShell.Cmdlets.Confluent.Models.IConfluentIdentity
@@ -190,7 +189,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
190189
191190
## OUTPUTS
192191
193-
### Microsoft.Azure.PowerShell.Cmdlets.Confluent.Models.Api20200301.IOrganizationResource
192+
### Microsoft.Azure.PowerShell.Cmdlets.Confluent.Models.IOrganizationResource
194193
195194
## NOTES
196195

src/Confluent/Confluent.Autorest/docs/New-AzConfluentOrganization.md

Lines changed: 58 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ schema: 2.0.0
88
# New-AzConfluentOrganization
99

1010
## SYNOPSIS
11-
Create Organization resource
11+
create Organization resource
1212

1313
## SYNTAX
1414

15+
### CreateExpanded (Default)
1516
```
1617
New-AzConfluentOrganization -Name <String> -ResourceGroupName <String> [-SubscriptionId <String>]
1718
[-Location <String>] [-OfferDetailId <String>] [-OfferDetailPlanId <String>] [-OfferDetailPlanName <String>]
@@ -20,8 +21,22 @@ New-AzConfluentOrganization -Name <String> -ResourceGroupName <String> [-Subscri
2021
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
2122
```
2223

24+
### CreateViaJsonFilePath
25+
```
26+
New-AzConfluentOrganization -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
27+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
28+
[<CommonParameters>]
29+
```
30+
31+
### CreateViaJsonString
32+
```
33+
New-AzConfluentOrganization -Name <String> -ResourceGroupName <String> -JsonString <String>
34+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
35+
[<CommonParameters>]
36+
```
37+
2338
## DESCRIPTION
24-
Create Organization resource
39+
create Organization resource
2540

2641
## EXAMPLES
2742

@@ -71,12 +86,42 @@ Accept pipeline input: False
7186
Accept wildcard characters: False
7287
```
7388
89+
### -JsonFilePath
90+
Path of Json file supplied to the Create operation
91+
92+
```yaml
93+
Type: System.String
94+
Parameter Sets: CreateViaJsonFilePath
95+
Aliases:
96+
97+
Required: True
98+
Position: Named
99+
Default value: None
100+
Accept pipeline input: False
101+
Accept wildcard characters: False
102+
```
103+
104+
### -JsonString
105+
Json string supplied to the Create operation
106+
107+
```yaml
108+
Type: System.String
109+
Parameter Sets: CreateViaJsonString
110+
Aliases:
111+
112+
Required: True
113+
Position: Named
114+
Default value: None
115+
Accept pipeline input: False
116+
Accept wildcard characters: False
117+
```
118+
74119
### -Location
75120
Location of Organization resource
76121
77122
```yaml
78123
Type: System.String
79-
Parameter Sets: (All)
124+
Parameter Sets: CreateExpanded
80125
Aliases:
81126

82127
Required: False
@@ -121,7 +166,7 @@ Offer Id
121166
122167
```yaml
123168
Type: System.String
124-
Parameter Sets: (All)
169+
Parameter Sets: CreateExpanded
125170
Aliases:
126171

127172
Required: False
@@ -136,7 +181,7 @@ Offer Plan Id
136181
137182
```yaml
138183
Type: System.String
139-
Parameter Sets: (All)
184+
Parameter Sets: CreateExpanded
140185
Aliases:
141186

142187
Required: False
@@ -151,7 +196,7 @@ Offer Plan Name
151196
152197
```yaml
153198
Type: System.String
154-
Parameter Sets: (All)
199+
Parameter Sets: CreateExpanded
155200
Aliases:
156201

157202
Required: False
@@ -166,7 +211,7 @@ Publisher Id
166211
167212
```yaml
168213
Type: System.String
169-
Parameter Sets: (All)
214+
Parameter Sets: CreateExpanded
170215
Aliases:
171216

172217
Required: False
@@ -181,7 +226,7 @@ Offer Plan Term unit
181226
182227
```yaml
183228
Type: System.String
184-
Parameter Sets: (All)
229+
Parameter Sets: CreateExpanded
185230
Aliases:
186231

187232
Required: False
@@ -226,7 +271,7 @@ Organization resource tags
226271
227272
```yaml
228273
Type: System.Collections.Hashtable
229-
Parameter Sets: (All)
274+
Parameter Sets: CreateExpanded
230275
Aliases:
231276

232277
Required: False
@@ -241,7 +286,7 @@ Email address
241286
242287
```yaml
243288
Type: System.String
244-
Parameter Sets: (All)
289+
Parameter Sets: CreateExpanded
245290
Aliases:
246291

247292
Required: False
@@ -256,7 +301,7 @@ First name
256301
257302
```yaml
258303
Type: System.String
259-
Parameter Sets: (All)
304+
Parameter Sets: CreateExpanded
260305
Aliases:
261306

262307
Required: False
@@ -271,7 +316,7 @@ Last name
271316
272317
```yaml
273318
Type: System.String
274-
Parameter Sets: (All)
319+
Parameter Sets: CreateExpanded
275320
Aliases:
276321

277322
Required: False
@@ -319,7 +364,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
319364
320365
## OUTPUTS
321366
322-
### Microsoft.Azure.PowerShell.Cmdlets.Confluent.Models.Api20200301.IOrganizationResource
367+
### Microsoft.Azure.PowerShell.Cmdlets.Confluent.Models.IOrganizationResource
323368
324369
## NOTES
325370

src/Confluent/Confluent.Autorest/docs/Update-AzConfluentOrganization.md

Lines changed: 49 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Update-AzConfluentOrganization
99

1010
## SYNOPSIS
11-
Update Organization resource
11+
update Organization resource
1212

1313
## SYNTAX
1414

@@ -24,8 +24,20 @@ Update-AzConfluentOrganization -InputObject <IConfluentIdentity> [-Tag <Hashtabl
2424
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
2525
```
2626

27+
### UpdateViaJsonFilePath
28+
```
29+
Update-AzConfluentOrganization -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
30+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
31+
```
32+
33+
### UpdateViaJsonString
34+
```
35+
Update-AzConfluentOrganization -Name <String> -ResourceGroupName <String> -JsonString <String>
36+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
37+
```
38+
2739
## DESCRIPTION
28-
Update Organization resource
40+
update Organization resource
2941

3042
## EXAMPLES
3143

@@ -75,7 +87,6 @@ Accept wildcard characters: False
7587
7688
### -InputObject
7789
Identity Parameter
78-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
7990
8091
```yaml
8192
Type: Microsoft.Azure.PowerShell.Cmdlets.Confluent.Models.IConfluentIdentity
@@ -89,12 +100,42 @@ Accept pipeline input: True (ByValue)
89100
Accept wildcard characters: False
90101
```
91102
103+
### -JsonFilePath
104+
Path of Json file supplied to the Update operation
105+
106+
```yaml
107+
Type: System.String
108+
Parameter Sets: UpdateViaJsonFilePath
109+
Aliases:
110+
111+
Required: True
112+
Position: Named
113+
Default value: None
114+
Accept pipeline input: False
115+
Accept wildcard characters: False
116+
```
117+
118+
### -JsonString
119+
Json string supplied to the Update operation
120+
121+
```yaml
122+
Type: System.String
123+
Parameter Sets: UpdateViaJsonString
124+
Aliases:
125+
126+
Required: True
127+
Position: Named
128+
Default value: None
129+
Accept pipeline input: False
130+
Accept wildcard characters: False
131+
```
132+
92133
### -Name
93134
Organization resource name
94135
95136
```yaml
96137
Type: System.String
97-
Parameter Sets: UpdateExpanded
138+
Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString
98139
Aliases: OrganizationName
99140

100141
Required: True
@@ -109,7 +150,7 @@ Resource group name
109150
110151
```yaml
111152
Type: System.String
112-
Parameter Sets: UpdateExpanded
153+
Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString
113154
Aliases:
114155

115156
Required: True
@@ -124,7 +165,7 @@ Microsoft Azure subscription id
124165
125166
```yaml
126167
Type: System.String
127-
Parameter Sets: UpdateExpanded
168+
Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString
128169
Aliases:
129170

130171
Required: False
@@ -139,7 +180,7 @@ ARM resource tags
139180
140181
```yaml
141182
Type: System.Collections.Hashtable
142-
Parameter Sets: (All)
183+
Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded
143184
Aliases:
144185

145186
Required: False
@@ -189,7 +230,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
189230
190231
## OUTPUTS
191232
192-
### Microsoft.Azure.PowerShell.Cmdlets.Confluent.Models.Api20200301.IOrganizationResource
233+
### Microsoft.Azure.PowerShell.Cmdlets.Confluent.Models.IOrganizationResource
193234
194235
## NOTES
195236
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "4c003972-dd8b-4556-87ac-973a49f638fd"
2+
"generate_Id": "9e1969f8-9c98-49c1-9f5b-482164d7261b"
33
}

0 commit comments

Comments
 (0)