Skip to content

[Az.Communication] Update generation tool version: autorest.powershell V3 -> V4 #27550

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// 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 - Communication")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.4.2")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.4.2")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
21 changes: 4 additions & 17 deletions src/Communication/Communication.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,16 @@ input-file:
# You need to specify your swagger files here.
- $(repo)/specification/communication/resource-manager/Microsoft.Communication/preview/2023-06-01-preview/CommunicationServices.json

# 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: Communication
subject-prefix: $(service-name)

# If there are post APIs for some kinds of actions in the RP, you may need to
# uncomment following line to support viaIdentity for these post APIs
# identity-correction-for-post: true

# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
"@autorest/powershell": "3.x"

directive:
# Following is two common directive which are normally required in all the RPs
# 1. Remove the unexpanded parameter set
# 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well
- where:
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
variant: ^(Create|Update|Regenerate|Link)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$|^RegenerateViaIdentity$|^RegenerateViaIdentityExpanded$
remove: true
# Remove the set-* cmdlet
- where:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.Communication
Module Guid: 32c4dede-9b85-43d4-83ab-447e2938c400
Module Guid: 669fb84c-45ab-4b4d-8d73-1f2418b8df76
Download Help Link: https://learn.microsoft.com/powershell/module/az.communication
Help Version: 1.0.0.0
Locale: en-US
Expand All @@ -18,7 +18,7 @@ Get the CommunicationService and its properties.
Get the access keys of the CommunicationService resource.

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

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

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

Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationIdentity
Expand Down Expand Up @@ -160,7 +159,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20230601Preview.ICommunicationServiceResource
### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResource

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20230601Preview.ICommunicationServiceKeys
### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceKeys

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,34 @@ schema: 2.0.0
# New-AzCommunicationService

## SYNOPSIS
Create a new CommunicationService or update an existing CommunicationService.
create a new CommunicationService or create an existing CommunicationService.

## SYNTAX

### CreateExpanded (Default)
```
New-AzCommunicationService -Name <String> -ResourceGroupName <String> -Location <String>
[-SubscriptionId <String>] [-DataLocation <String>] [-IdentityType <ManagedServiceIdentityType>]
[-IdentityUserAssignedIdentity <Hashtable>] [-LinkedDomain <String[]>] [-Tag <Hashtable>]
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
[-SubscriptionId <String>] [-DataLocation <String>] [-EnableSystemAssignedIdentity]
[-LinkedDomain <String[]>] [-Tag <Hashtable>] [-UserAssignedIdentity <String[]>] [-DefaultProfile <PSObject>]
[-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
```

### CreateViaJsonFilePath
```
New-AzCommunicationService -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
[<CommonParameters>]
```

### CreateViaJsonString
```
New-AzCommunicationService -Name <String> -ResourceGroupName <String> -JsonString <String>
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
[<CommonParameters>]
```

## DESCRIPTION
Create a new CommunicationService or update an existing CommunicationService.
create a new CommunicationService or create an existing CommunicationService.

## EXAMPLES

Expand Down Expand Up @@ -76,7 +91,7 @@ The location where the communication service stores its data at rest.

```yaml
Type: System.String
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand All @@ -102,12 +117,12 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -IdentityType
Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
### -EnableSystemAssignedIdentity
Determines whether to enable a system-assigned identity for the resource.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.ManagedServiceIdentityType
Parameter Sets: (All)
Type: System.Management.Automation.SwitchParameter
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand All @@ -117,17 +132,30 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -IdentityUserAssignedIdentity
The set of user assigned identities associated with the resource.
The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
The dictionary values can be empty objects ({}) in requests.
### -JsonFilePath
Path of Json file supplied to the Create operation

```yaml
Type: System.Collections.Hashtable
Parameter Sets: (All)
Type: System.String
Parameter Sets: CreateViaJsonFilePath
Aliases:

Required: False
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -JsonString
Json string supplied to the Create operation

```yaml
Type: System.String
Parameter Sets: CreateViaJsonString
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Expand All @@ -139,7 +167,7 @@ List of email Domain resource Ids.

```yaml
Type: System.String[]
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand All @@ -154,7 +182,7 @@ The geo-location where the resource lives

```yaml
Type: System.String
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: True
Expand Down Expand Up @@ -231,7 +259,23 @@ Resource tags.

```yaml
Type: System.Collections.Hashtable
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -UserAssignedIdentity
The array of user assigned identities associated with the resource.
The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'

```yaml
Type: System.String[]
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand Down Expand Up @@ -279,7 +323,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20230601Preview.ICommunicationServiceResource
### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResource

## NOTES

Expand Down
Loading
Loading