Skip to content

Commit b42305f

Browse files
authored
[Az.Communication] Update generation tool version: autorest.powershell V3 -> V4 (Azure#27736)
1 parent 6a8295e commit b42305f

30 files changed

+594
-272
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 - Communication")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.5.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.5.0")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]
27+

src/Communication/Communication.Autorest/README.md

+4-17
Original file line numberDiff line numberDiff line change
@@ -35,29 +35,16 @@ input-file:
3535
# You need to specify your swagger files here.
3636
- $(repo)/specification/communication/resource-manager/Microsoft.Communication/preview/2023-06-01-preview/CommunicationServices.json
3737

38-
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
39-
# - (this-folder)/relative-path-to-your-swagger
40-
41-
# For new RP, the version is 0.1.0
4238
module-version: 0.1.0
43-
# Normally, title is the service name
4439
title: Communication
4540
subject-prefix: $(service-name)
4641

47-
# If there are post APIs for some kinds of actions in the RP, you may need to
48-
# uncomment following line to support viaIdentity for these post APIs
49-
# identity-correction-for-post: true
50-
51-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
52-
use-extension:
53-
"@autorest/powershell": "3.x"
54-
5542
directive:
56-
# Following is two common directive which are normally required in all the RPs
57-
# 1. Remove the unexpanded parameter set
58-
# 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well
5943
- where:
60-
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
44+
variant: ^(Create|Update|Regenerate)(?!.*?(Expanded|JsonFilePath|JsonString))
45+
remove: true
46+
- where:
47+
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
6148
remove: true
6249
# Remove the set-* cmdlet
6350
- where:

src/Communication/Communication.Autorest/docs/Az.Communication.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.Communication
3-
Module Guid: 32c4dede-9b85-43d4-83ab-447e2938c400
3+
Module Guid: 669fb84c-45ab-4b4d-8d73-1f2418b8df76
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.communication
55
Help Version: 1.0.0.0
66
Locale: en-US
@@ -18,7 +18,7 @@ Get the CommunicationService and its properties.
1818
Get the access keys of the CommunicationService resource.
1919

2020
### [New-AzCommunicationService](New-AzCommunicationService.md)
21-
Create a new CommunicationService or update an existing CommunicationService.
21+
create a new CommunicationService or create an existing CommunicationService.
2222

2323
### [New-AzCommunicationServiceKey](New-AzCommunicationServiceKey.md)
2424
Regenerate CommunicationService access key.
@@ -34,5 +34,5 @@ Links an Azure Notification Hub to this communication service.
3434
Checks that the CommunicationService name is valid and is not already in use.
3535

3636
### [Update-AzCommunicationService](Update-AzCommunicationService.md)
37-
Operation to update an existing CommunicationService.
37+
update a new CommunicationService or update an existing CommunicationService.
3838

src/Communication/Communication.Autorest/docs/Get-AzCommunicationService.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ Accept wildcard characters: False
9090
9191
### -InputObject
9292
Identity Parameter
93-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
9493
9594
```yaml
9695
Type: Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationIdentity
@@ -160,7 +159,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
160159
161160
## OUTPUTS
162161
163-
### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20230601Preview.ICommunicationServiceResource
162+
### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResource
164163
165164
## NOTES
166165

src/Communication/Communication.Autorest/docs/Get-AzCommunicationServiceKey.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
138138
139139
## OUTPUTS
140140
141-
### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20230601Preview.ICommunicationServiceKeys
141+
### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceKeys
142142
143143
## NOTES
144144

src/Communication/Communication.Autorest/docs/New-AzCommunicationService.md

+66-22
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,34 @@ schema: 2.0.0
88
# New-AzCommunicationService
99

1010
## SYNOPSIS
11-
Create a new CommunicationService or update an existing CommunicationService.
11+
create a new CommunicationService or create an existing CommunicationService.
1212

1313
## SYNTAX
1414

15+
### CreateExpanded (Default)
1516
```
1617
New-AzCommunicationService -Name <String> -ResourceGroupName <String> -Location <String>
17-
[-SubscriptionId <String>] [-DataLocation <String>] [-IdentityType <ManagedServiceIdentityType>]
18-
[-IdentityUserAssignedIdentity <Hashtable>] [-LinkedDomain <String[]>] [-Tag <Hashtable>]
19-
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
18+
[-SubscriptionId <String>] [-DataLocation <String>] [-EnableSystemAssignedIdentity]
19+
[-LinkedDomain <String[]>] [-Tag <Hashtable>] [-UserAssignedIdentity <String[]>] [-DefaultProfile <PSObject>]
20+
[-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
21+
```
22+
23+
### CreateViaJsonFilePath
24+
```
25+
New-AzCommunicationService -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
26+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
27+
[<CommonParameters>]
28+
```
29+
30+
### CreateViaJsonString
31+
```
32+
New-AzCommunicationService -Name <String> -ResourceGroupName <String> -JsonString <String>
33+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
34+
[<CommonParameters>]
2035
```
2136

2237
## DESCRIPTION
23-
Create a new CommunicationService or update an existing CommunicationService.
38+
create a new CommunicationService or create an existing CommunicationService.
2439

2540
## EXAMPLES
2641

@@ -43,7 +58,7 @@ $linkedDomains = @(
4358
"/subscriptions/653983b8-683a-427c-8c27-9e9624ce9176/resourceGroups/tcsacstest/providers/Microsoft.Communication/emailServices/tcsacstestECSps/domains/AzureManagedDomain"
4459
)
4560
46-
New-AzCommunicationService -ResourceGroupName ContosoResourceProvider -Name ContosoAcsResource2 -DataLocation UnitedStates -Location Global -LinkedDomain @linkedDomains
61+
New-AzCommunicationService -ResourceGroupName ContosoResourceProvider -Name ContosoAcsResource2 -DataLocation UnitedStates -Location Global -LinkedDomain @linkedDomains
4762
```
4863

4964
```output
@@ -76,7 +91,7 @@ The location where the communication service stores its data at rest.
7691
7792
```yaml
7893
Type: System.String
79-
Parameter Sets: (All)
94+
Parameter Sets: CreateExpanded
8095
Aliases:
8196

8297
Required: False
@@ -102,12 +117,12 @@ Accept pipeline input: False
102117
Accept wildcard characters: False
103118
```
104119
105-
### -IdentityType
106-
Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
120+
### -EnableSystemAssignedIdentity
121+
Determines whether to enable a system-assigned identity for the resource.
107122
108123
```yaml
109-
Type: Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.ManagedServiceIdentityType
110-
Parameter Sets: (All)
124+
Type: System.Management.Automation.SwitchParameter
125+
Parameter Sets: CreateExpanded
111126
Aliases:
112127

113128
Required: False
@@ -117,17 +132,30 @@ Accept pipeline input: False
117132
Accept wildcard characters: False
118133
```
119134
120-
### -IdentityUserAssignedIdentity
121-
The set of user assigned identities associated with the resource.
122-
The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
123-
The dictionary values can be empty objects ({}) in requests.
135+
### -JsonFilePath
136+
Path of Json file supplied to the Create operation
124137
125138
```yaml
126-
Type: System.Collections.Hashtable
127-
Parameter Sets: (All)
139+
Type: System.String
140+
Parameter Sets: CreateViaJsonFilePath
128141
Aliases:
129142

130-
Required: False
143+
Required: True
144+
Position: Named
145+
Default value: None
146+
Accept pipeline input: False
147+
Accept wildcard characters: False
148+
```
149+
150+
### -JsonString
151+
Json string supplied to the Create operation
152+
153+
```yaml
154+
Type: System.String
155+
Parameter Sets: CreateViaJsonString
156+
Aliases:
157+
158+
Required: True
131159
Position: Named
132160
Default value: None
133161
Accept pipeline input: False
@@ -139,7 +167,7 @@ List of email Domain resource Ids.
139167
140168
```yaml
141169
Type: System.String[]
142-
Parameter Sets: (All)
170+
Parameter Sets: CreateExpanded
143171
Aliases:
144172

145173
Required: False
@@ -154,7 +182,7 @@ The geo-location where the resource lives
154182
155183
```yaml
156184
Type: System.String
157-
Parameter Sets: (All)
185+
Parameter Sets: CreateExpanded
158186
Aliases:
159187

160188
Required: True
@@ -231,7 +259,23 @@ Resource tags.
231259
232260
```yaml
233261
Type: System.Collections.Hashtable
234-
Parameter Sets: (All)
262+
Parameter Sets: CreateExpanded
263+
Aliases:
264+
265+
Required: False
266+
Position: Named
267+
Default value: None
268+
Accept pipeline input: False
269+
Accept wildcard characters: False
270+
```
271+
272+
### -UserAssignedIdentity
273+
The array of user assigned identities associated with the resource.
274+
The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
275+
276+
```yaml
277+
Type: System.String[]
278+
Parameter Sets: CreateExpanded
235279
Aliases:
236280

237281
Required: False
@@ -279,7 +323,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
279323
280324
## OUTPUTS
281325
282-
### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20230601Preview.ICommunicationServiceResource
326+
### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResource
283327
284328
## NOTES
285329

0 commit comments

Comments
 (0)