From 9ec526632749e8fff13951e2f2c4aa1d7556c6c8 Mon Sep 17 00:00:00 2001 From: "azure-pipelines[bot]" <36771401+azure-pipelines[bot]@users.noreply.github.com> Date: Mon, 14 Oct 2024 20:04:55 +0800 Subject: [PATCH] Migrate Communication from generation to main (#26245) * Move Communication to main * Update ChangeLog.md * Update ChangeLog.md --------- Co-authored-by: azure-powershell-bot <65331932+azure-powershell-bot@users.noreply.github.com> Co-authored-by: NanxiangLiu <33285578+Nickcandy@users.noreply.github.com> --- .../Communication/Az.Communication.psd1 | 12 +- src/Communication/Communication/ChangeLog.md | 3 + .../Communication/help/Az.Communication.md | 6 +- .../help/Get-AzCommunicationService.md | 23 ++- .../help/Get-AzCommunicationServiceKey.md | 17 +- .../Communication/help/Get-AzEmailService.md | 23 ++- .../help/Get-AzEmailServiceDomain.md | 23 ++- .../help/Get-AzEmailServiceSenderUsername.md | 25 ++- .../Get-AzEmailServicedataEmailSendResult.md | 21 ++- ...zEmailServiceInitiateDomainVerification.md | 31 +++- .../help/New-AzCommunicationService.md | 17 +- .../help/New-AzCommunicationServiceKey.md | 23 ++- .../Communication/help/New-AzEmailService.md | 25 ++- .../help/New-AzEmailServiceDomain.md | 29 +++- .../help/New-AzEmailServiceSenderUsername.md | 33 +++- .../help/Remove-AzCommunicationService.md | 19 ++- .../help/Remove-AzEmailService.md | 19 ++- .../help/Remove-AzEmailServiceDomain.md | 21 ++- .../Remove-AzEmailServiceSenderUsername.md | 23 ++- .../help/Send-AzEmailServicedataEmail.md | 41 ++++- ...t-AzCommunicationServiceNotificationHub.md | 19 ++- .../Stop-AzEmailServiceDomainVerification.md | 31 +++- ...-AzCommunicationServiceNameAvailability.md | 17 +- .../help/Update-AzCommunicationService.md | 19 ++- .../help/Update-AzEmailService.md | 23 ++- .../help/Update-AzEmailServiceDomain.md | 27 ++- .../Update-AzEmailServiceSenderUsername.md | 27 ++- .../EmailService.Autorest/build-module.ps1 | 25 ++- .../exports/New-AzEmailService.ps1 | 4 +- .../exports/New-AzEmailServiceDomain.ps1 | 4 +- .../New-AzEmailServiceSenderUsername.ps1 | 4 +- .../exports/ProxyCmdletDefinitions.ps1 | 12 +- .../generated/api/EmailService.cs | 12 +- .../NewAzEmailServiceDomain_CreateExpanded.cs | 4 +- ...iceDomain_CreateViaIdentityEmailService.cs | 4 +- ...n_CreateViaIdentityEmailServiceExpanded.cs | 4 +- ...mailServiceDomain_CreateViaJsonFilePath.cs | 4 +- ...zEmailServiceDomain_CreateViaJsonString.cs | 4 +- ...ailServiceSenderUsername_CreateExpanded.cs | 4 +- ...eSenderUsername_CreateViaIdentityDomain.cs | 4 +- ...sername_CreateViaIdentityDomainExpanded.cs | 4 +- ...rUsername_CreateViaIdentityEmailService.cs | 4 +- ...e_CreateViaIdentityEmailServiceExpanded.cs | 4 +- ...iceSenderUsername_CreateViaJsonFilePath.cs | 4 +- ...rviceSenderUsername_CreateViaJsonString.cs | 4 +- .../NewAzEmailService_CreateExpanded.cs | 4 +- ...NewAzEmailService_CreateViaJsonFilePath.cs | 4 +- .../NewAzEmailService_CreateViaJsonString.cs | 4 +- .../help/Az.EmailService.md | 6 +- .../help/New-AzEmailService.md | 4 +- .../help/New-AzEmailServiceDomain.md | 4 +- .../help/New-AzEmailServiceSenderUsername.md | 4 +- .../Az.EmailServicedata.format.ps1xml | 6 + .../EmailServicedata.Autorest/README.md | 4 +- .../build-module.ps1 | 25 ++- .../examples/Send-AzEmailServicedataEmail.md | 14 +- .../exports/ProxyCmdletDefinitions.ps1 | 22 ++- .../exports/Send-AzEmailServicedataEmail.ps1 | 22 ++- .../generated/api/EmailServicedata.cs | 20 +-- .../api/Models/EmailAttachment.PowerShell.cs | 8 + .../generated/api/Models/EmailAttachment.cs | 20 +++ .../api/Models/EmailAttachment.json.cs | 2 + .../generated/api/Models/EmailMessage.cs | 11 +- ...etAzEmailServicedataEmailSendResult_Get.cs | 2 +- ...rvicedataEmailSendResult_GetViaIdentity.cs | 2 +- .../SendAzEmailServicedataEmail_Send.cs | 2 +- ...endAzEmailServicedataEmail_SendExpanded.cs | 9 +- ...ailServicedataEmail_SendViaJsonFilePath.cs | 2 +- ...EmailServicedataEmail_SendViaJsonString.cs | 2 +- .../help/Send-AzEmailServicedataEmail.md | 16 +- ...lServicedataEmailSendResult.Recording.json | 160 +++++++++--------- ...end-AzEmailServicedataEmail.Recording.json | 157 +++++++---------- .../Send-AzEmailServicedataEmail.Tests.ps1 | 49 ++++-- .../EmailServicedata.Autorest/test/env.json | 22 +-- .../test/inline-attachment.jpg | Bin 0 -> 21734 bytes .../test/localEnv.json | 20 +-- 76 files changed, 903 insertions(+), 430 deletions(-) create mode 100644 src/Communication/EmailServicedata.Autorest/test/inline-attachment.jpg diff --git a/src/Communication/Communication/Az.Communication.psd1 b/src/Communication/Communication/Az.Communication.psd1 index b0144a9fa397..aa75bed90074 100644 --- a/src/Communication/Communication/Az.Communication.psd1 +++ b/src/Communication/Communication/Az.Communication.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 7/31/2024 +# Generated on: 10/9/2024 # @{ @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '3.0.3'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '3.0.4'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Communication.Autorest/bin/Az.Communication.private.dll', @@ -59,10 +59,10 @@ RequiredAssemblies = 'Communication.Autorest/bin/Az.Communication.private.dll', 'EmailServicedata.Autorest/bin/Az.EmailServicedata.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = 'Communication.Autorest/Az.Communication.format.ps1xml', @@ -116,7 +116,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','Communication' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Communication' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -144,7 +144,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/Communication/Communication/ChangeLog.md b/src/Communication/Communication/ChangeLog.md index d0c710589ec5..4fa646d1fd27 100644 --- a/src/Communication/Communication/ChangeLog.md +++ b/src/Communication/Communication/ChangeLog.md @@ -18,6 +18,9 @@ - Additional information about change #1 --> ## Upcoming Release +* Added support for inline attachments in the send mail operation. + - This update introduced a new property in the EmailAttachment object called contentId, which serves as a unique identifier in the HTML content. + - The contentId property should be referenced in the HTML body of the email for inline rendering. ## Version 0.4.0 * Added dataplane cmdlets: diff --git a/src/Communication/Communication/help/Az.Communication.md b/src/Communication/Communication/help/Az.Communication.md index 3d5e9c45b488..4662a79bf9da 100644 --- a/src/Communication/Communication/help/Az.Communication.md +++ b/src/Communication/Communication/help/Az.Communication.md @@ -40,13 +40,13 @@ Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time. ### [New-AzEmailService](New-AzEmailService.md) -Create a new EmailService or update an existing EmailService. +create a new EmailService or create an existing EmailService. ### [New-AzEmailServiceDomain](New-AzEmailServiceDomain.md) -Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. +Add a new Domains resource under the parent EmailService resource or create an existing Domains resource. ### [New-AzEmailServiceSenderUsername](New-AzEmailServiceSenderUsername.md) -Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. +Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource. ### [Remove-AzCommunicationService](Remove-AzCommunicationService.md) Operation to delete a CommunicationService. diff --git a/src/Communication/Communication/help/Get-AzCommunicationService.md b/src/Communication/Communication/help/Get-AzCommunicationService.md index 26f7cb4a7ff4..c5f36bb4f308 100644 --- a/src/Communication/Communication/help/Get-AzCommunicationService.md +++ b/src/Communication/Communication/help/Get-AzCommunicationService.md @@ -15,25 +15,25 @@ Get the CommunicationService and its properties. ### List (Default) ``` Get-AzCommunicationService [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzCommunicationService -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### List1 ``` Get-AzCommunicationService -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzCommunicationService -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -120,6 +120,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/Get-AzCommunicationServiceKey.md b/src/Communication/Communication/help/Get-AzCommunicationServiceKey.md index c77e594c7f19..f0ece91690d6 100644 --- a/src/Communication/Communication/help/Get-AzCommunicationServiceKey.md +++ b/src/Communication/Communication/help/Get-AzCommunicationServiceKey.md @@ -14,7 +14,7 @@ Get the access keys of the CommunicationService resource. ``` Get-AzCommunicationServiceKey -CommunicationServiceName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -69,6 +69,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/Get-AzEmailService.md b/src/Communication/Communication/help/Get-AzEmailService.md index bd12f35c790e..80769e24c830 100644 --- a/src/Communication/Communication/help/Get-AzEmailService.md +++ b/src/Communication/Communication/help/Get-AzEmailService.md @@ -15,25 +15,25 @@ Get the EmailService and its properties. ### List (Default) ``` Get-AzEmailService [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzEmailService -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### List1 ``` Get-AzEmailService -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzEmailService -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -131,6 +131,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/Get-AzEmailServiceDomain.md b/src/Communication/Communication/help/Get-AzEmailServiceDomain.md index 420f8b1fb5c2..50f717c1515c 100644 --- a/src/Communication/Communication/help/Get-AzEmailServiceDomain.md +++ b/src/Communication/Communication/help/Get-AzEmailServiceDomain.md @@ -15,26 +15,26 @@ Get the Domains resource and its properties. ### List (Default) ``` Get-AzEmailServiceDomain -EmailServiceName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzEmailServiceDomain -EmailServiceName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityEmailService ``` Get-AzEmailServiceDomain -Name -EmailServiceInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzEmailServiceDomain -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -179,6 +179,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/Get-AzEmailServiceSenderUsername.md b/src/Communication/Communication/help/Get-AzEmailServiceSenderUsername.md index bc6c22ca3d23..88a817df8ef7 100644 --- a/src/Communication/Communication/help/Get-AzEmailServiceSenderUsername.md +++ b/src/Communication/Communication/help/Get-AzEmailServiceSenderUsername.md @@ -15,7 +15,7 @@ Get a valid sender username for a domains resource. ### List (Default) ``` Get-AzEmailServiceSenderUsername -DomainName -EmailServiceName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -23,26 +23,26 @@ Get-AzEmailServiceSenderUsername -DomainName -EmailServiceName ``` Get-AzEmailServiceSenderUsername -DomainName -SenderUsername -EmailServiceInputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzEmailServiceSenderUsername -DomainName -EmailServiceName -ResourceGroupName -SenderUsername [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentityDomain ``` Get-AzEmailServiceSenderUsername -SenderUsername -DomainInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzEmailServiceSenderUsername -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -183,6 +183,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/Get-AzEmailServicedataEmailSendResult.md b/src/Communication/Communication/help/Get-AzEmailServicedataEmailSendResult.md index a1c811676667..0575c713f5df 100644 --- a/src/Communication/Communication/help/Get-AzEmailServicedataEmailSendResult.md +++ b/src/Communication/Communication/help/Get-AzEmailServicedataEmailSendResult.md @@ -15,13 +15,13 @@ Gets the status of the email send operation. ### Get (Default) ``` Get-AzEmailServicedataEmailSendResult -Endpoint -OperationId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzEmailServicedataEmailSendResult -Endpoint -InputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -67,7 +67,7 @@ Accept wildcard characters: False ``` ### -Endpoint -The communication resource, for example `https://my-resource.communication.azure.com` +The communication resource, for example https://my-resource.communication.azure.com ```yaml Type: System.String @@ -111,6 +111,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Communication/Communication/help/Invoke-AzEmailServiceInitiateDomainVerification.md b/src/Communication/Communication/help/Invoke-AzEmailServiceInitiateDomainVerification.md index 0296849efaad..1f11ee6f04ef 100644 --- a/src/Communication/Communication/help/Invoke-AzEmailServiceInitiateDomainVerification.md +++ b/src/Communication/Communication/help/Invoke-AzEmailServiceInitiateDomainVerification.md @@ -16,35 +16,35 @@ Initiate verification of DNS record. ``` Invoke-AzEmailServiceInitiateDomainVerification -DomainName -EmailServiceName -ResourceGroupName [-SubscriptionId ] -VerificationType [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InitiateViaJsonString ``` Invoke-AzEmailServiceInitiateDomainVerification -DomainName -EmailServiceName -ResourceGroupName [-SubscriptionId ] -JsonString [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InitiateViaJsonFilePath ``` Invoke-AzEmailServiceInitiateDomainVerification -DomainName -EmailServiceName -ResourceGroupName [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InitiateViaIdentityEmailServiceExpanded ``` Invoke-AzEmailServiceInitiateDomainVerification -DomainName -EmailServiceInputObject -VerificationType [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InitiateViaIdentityEmailService ``` Invoke-AzEmailServiceInitiateDomainVerification -DomainName -EmailServiceInputObject -Parameter - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -52,14 +52,14 @@ Invoke-AzEmailServiceInitiateDomainVerification -DomainName ``` Invoke-AzEmailServiceInitiateDomainVerification -DomainName -EmailServiceName -ResourceGroupName [-SubscriptionId ] -Parameter - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InitiateViaIdentityExpanded ``` Invoke-AzEmailServiceInitiateDomainVerification -InputObject -VerificationType - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -67,7 +67,7 @@ Invoke-AzEmailServiceInitiateDomainVerification -InputObject -Parameter [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -235,6 +235,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/New-AzCommunicationService.md b/src/Communication/Communication/help/New-AzCommunicationService.md index 38b7be1f3d4b..9c831b7d83fb 100644 --- a/src/Communication/Communication/help/New-AzCommunicationService.md +++ b/src/Communication/Communication/help/New-AzCommunicationService.md @@ -16,7 +16,7 @@ Create a new CommunicationService or update an existing CommunicationService. New-AzCommunicationService -Name -ResourceGroupName [-SubscriptionId ] -Location [-DataLocation ] [-IdentityType ] [-IdentityUserAssignedIdentity ] [-LinkedDomain ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -195,6 +195,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/New-AzCommunicationServiceKey.md b/src/Communication/Communication/help/New-AzCommunicationServiceKey.md index 22d3fc4745f0..228ad2d6f60f 100644 --- a/src/Communication/Communication/help/New-AzCommunicationServiceKey.md +++ b/src/Communication/Communication/help/New-AzCommunicationServiceKey.md @@ -17,26 +17,26 @@ PrimaryKey and SecondaryKey cannot be regenerated at the same time. ``` New-AzCommunicationServiceKey -CommunicationServiceName -ResourceGroupName [-SubscriptionId ] [-KeyType ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### Regenerate ``` New-AzCommunicationServiceKey -CommunicationServiceName -ResourceGroupName [-SubscriptionId ] -Parameter [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### RegenerateViaIdentityExpanded ``` New-AzCommunicationServiceKey -InputObject [-KeyType ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### RegenerateViaIdentity ``` New-AzCommunicationServiceKey -InputObject -Parameter - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -152,6 +152,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/New-AzEmailService.md b/src/Communication/Communication/help/New-AzEmailService.md index 86d553f73c6f..be3a6240bcbb 100644 --- a/src/Communication/Communication/help/New-AzEmailService.md +++ b/src/Communication/Communication/help/New-AzEmailService.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzEmailService ## SYNOPSIS -Create a new EmailService or update an existing EmailService. +create a new EmailService or create an existing EmailService. ## SYNTAX @@ -16,25 +16,25 @@ Create a new EmailService or update an existing EmailService. ``` New-AzEmailService -Name -ResourceGroupName [-SubscriptionId ] [-Location ] [-DataLocation ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonFilePath ``` New-AzEmailService -Name -ResourceGroupName [-SubscriptionId ] -JsonFilePath - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonString ``` New-AzEmailService -Name -ResourceGroupName [-SubscriptionId ] -JsonString - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Create a new EmailService or update an existing EmailService. +create a new EmailService or create an existing EmailService. ## EXAMPLES @@ -186,6 +186,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/New-AzEmailServiceDomain.md b/src/Communication/Communication/help/New-AzEmailServiceDomain.md index 63299fd031c6..a1bd9b672bbc 100644 --- a/src/Communication/Communication/help/New-AzEmailServiceDomain.md +++ b/src/Communication/Communication/help/New-AzEmailServiceDomain.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzEmailServiceDomain ## SYNOPSIS -Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. +Add a new Domains resource under the parent EmailService resource or create an existing Domains resource. ## SYNTAX @@ -17,28 +17,28 @@ Add a new Domains resource under the parent EmailService resource or update an e New-AzEmailServiceDomain -Name -EmailServiceName -ResourceGroupName [-SubscriptionId ] [-Location ] [-DomainManagement ] [-Tag ] [-UserEngagementTracking ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonString ``` New-AzEmailServiceDomain -Name -EmailServiceName -ResourceGroupName [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonFilePath ``` New-AzEmailServiceDomain -Name -EmailServiceName -ResourceGroupName [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityEmailServiceExpanded ``` New-AzEmailServiceDomain -Name -EmailServiceInputObject [-Location ] [-DomainManagement ] [-Tag ] [-UserEngagementTracking ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -46,11 +46,11 @@ New-AzEmailServiceDomain -Name -EmailServiceInputObject -EmailServiceInputObject -Parameter [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. +Add a new Domains resource under the parent EmailService resource or create an existing Domains resource. ## EXAMPLES @@ -330,6 +330,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/New-AzEmailServiceSenderUsername.md b/src/Communication/Communication/help/New-AzEmailServiceSenderUsername.md index 38f852bc7819..47bbd4d8afc5 100644 --- a/src/Communication/Communication/help/New-AzEmailServiceSenderUsername.md +++ b/src/Communication/Communication/help/New-AzEmailServiceSenderUsername.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzEmailServiceSenderUsername ## SYNOPSIS -Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. +Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource. ## SYNTAX @@ -16,53 +16,53 @@ Add a new SenderUsername resource under the parent Domains resource or update an ``` New-AzEmailServiceSenderUsername -SenderUsername -DomainName -EmailServiceName -ResourceGroupName [-SubscriptionId ] [-DisplayName ] [-Username ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonString ``` New-AzEmailServiceSenderUsername -SenderUsername -DomainName -EmailServiceName -ResourceGroupName [-SubscriptionId ] -JsonString [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonFilePath ``` New-AzEmailServiceSenderUsername -SenderUsername -DomainName -EmailServiceName -ResourceGroupName [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityEmailServiceExpanded ``` New-AzEmailServiceSenderUsername -SenderUsername -DomainName -EmailServiceInputObject [-DisplayName ] [-Username ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityEmailService ``` New-AzEmailServiceSenderUsername -SenderUsername -DomainName -EmailServiceInputObject -Parameter - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityDomainExpanded ``` New-AzEmailServiceSenderUsername -SenderUsername -DomainInputObject - [-DisplayName ] [-Username ] [-DefaultProfile ] + [-DisplayName ] [-Username ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityDomain ``` New-AzEmailServiceSenderUsername -SenderUsername -DomainInputObject - -Parameter [-DefaultProfile ] + -Parameter [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. +Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource. ## EXAMPLES @@ -254,6 +254,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/Remove-AzCommunicationService.md b/src/Communication/Communication/help/Remove-AzCommunicationService.md index 8c14a8b76b3d..ad7db2d3551a 100644 --- a/src/Communication/Communication/help/Remove-AzCommunicationService.md +++ b/src/Communication/Communication/help/Remove-AzCommunicationService.md @@ -15,14 +15,14 @@ Operation to delete a CommunicationService. ### Delete (Default) ``` Remove-AzCommunicationService -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzCommunicationService -InputObject [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -131,6 +131,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/Remove-AzEmailService.md b/src/Communication/Communication/help/Remove-AzEmailService.md index 991bfbb3281c..4fee6816a08c 100644 --- a/src/Communication/Communication/help/Remove-AzEmailService.md +++ b/src/Communication/Communication/help/Remove-AzEmailService.md @@ -15,14 +15,14 @@ Operation to delete a EmailService. ### Delete (Default) ``` Remove-AzEmailService -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzEmailService -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -130,6 +130,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/Remove-AzEmailServiceDomain.md b/src/Communication/Communication/help/Remove-AzEmailServiceDomain.md index 6593db810770..5982d8d61117 100644 --- a/src/Communication/Communication/help/Remove-AzEmailServiceDomain.md +++ b/src/Communication/Communication/help/Remove-AzEmailServiceDomain.md @@ -16,20 +16,20 @@ Operation to delete a Domains resource. ``` Remove-AzEmailServiceDomain -EmailServiceName -Name -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityEmailService ``` Remove-AzEmailServiceDomain -Name -EmailServiceInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzEmailServiceDomain -InputObject [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -174,6 +174,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/Remove-AzEmailServiceSenderUsername.md b/src/Communication/Communication/help/Remove-AzEmailServiceSenderUsername.md index 5ab9c5b62925..489c43a3460d 100644 --- a/src/Communication/Communication/help/Remove-AzEmailServiceSenderUsername.md +++ b/src/Communication/Communication/help/Remove-AzEmailServiceSenderUsername.md @@ -16,27 +16,27 @@ Operation to delete a SenderUsernames resource. ``` Remove-AzEmailServiceSenderUsername -DomainName -EmailServiceName -ResourceGroupName -SenderUsername [-SubscriptionId ] [-DefaultProfile ] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityEmailService ``` Remove-AzEmailServiceSenderUsername -DomainName -SenderUsername -EmailServiceInputObject [-DefaultProfile ] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityDomain ``` Remove-AzEmailServiceSenderUsername -SenderUsername -DomainInputObject - [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzEmailServiceSenderUsername -InputObject [-DefaultProfile ] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -166,6 +166,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/Send-AzEmailServicedataEmail.md b/src/Communication/Communication/help/Send-AzEmailServicedataEmail.md index b0a90cc11d92..df02fb0b8a60 100644 --- a/src/Communication/Communication/help/Send-AzEmailServicedataEmail.md +++ b/src/Communication/Communication/help/Send-AzEmailServicedataEmail.md @@ -15,7 +15,7 @@ Queues an email message to be sent to one or more recipients ### Send (Default) ``` Send-AzEmailServicedataEmail -Endpoint [-ClientRequestId ] [-OperationId ] - -Message [-DefaultProfile ] [-AsJob] [-NoWait] + -Message [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -26,20 +26,20 @@ Send-AzEmailServicedataEmail -Endpoint [-ClientRequestId ] [-Op [-Attachment ] [-ContentHtml ] [-ContentPlainText ] [-Header ] [-RecipientBcc ] [-RecipientCc ] [-ReplyTo ] [-UserEngagementTrackingDisabled] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### SendViaJsonFilePath ``` Send-AzEmailServicedataEmail -Endpoint [-ClientRequestId ] [-OperationId ] - -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### SendViaJsonString ``` Send-AzEmailServicedataEmail -Endpoint [-ClientRequestId ] [-OperationId ] - -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -94,13 +94,21 @@ $emailRecipientTo = @( } ) -$fileBytes = [System.IO.File]::ReadAllBytes("") +$fileBytes1 = [System.IO.File]::ReadAllBytes("") + +$fileBytes2 = [System.IO.File]::ReadAllBytes("") $emailAttachment = @( @{ - ContentInBase64 = $fileBytes + ContentInBase64 = $fileBytes1 ContentType = "" Name = "" + }, + @{ + ContentInBase64 = $fileBytes2 + ContentType = "image/png" + Name = "" + contentId = "" } ) @@ -136,7 +144,7 @@ $message = @{ RecipientTo = @($emailRecipientTo) # Array of email address objects SenderAddress = 'info@contoso.com' Attachment = @($emailAttachment) # Array of attachments - ContentHtml = "Enter title

This is the first email from ACS - HTML

" + ContentHtml = "Enter titleCompany Logo

This is the first email from ACS - HTML

" ContentPlainText = "This is the first email from ACS - HTML" Header = $headers # Importance = high/medium/low or X-Priority = 2/3/4 RecipientBcc = @($emailRecipientBcc) # Array of email address objects @@ -181,7 +189,7 @@ Accept wildcard characters: False ### -Attachment List of attachments. -Please note that we limit the total size of an email request (which includes attachments) to 10MB. +Please note that we limit the total size of an email request (which includes both regular and inline attachments) to 10MB. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailAttachment[] @@ -272,7 +280,7 @@ Accept wildcard characters: False ``` ### -Endpoint -The communication resource, for example `https://my-resource.communication.azure.com` +The communication resource, for example https://my-resource.communication.azure.com ```yaml Type: System.String @@ -377,6 +385,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RecipientBcc Email BCC recipients diff --git a/src/Communication/Communication/help/Set-AzCommunicationServiceNotificationHub.md b/src/Communication/Communication/help/Set-AzCommunicationServiceNotificationHub.md index 056778f0a599..0372bf5d55b0 100644 --- a/src/Communication/Communication/help/Set-AzCommunicationServiceNotificationHub.md +++ b/src/Communication/Communication/help/Set-AzCommunicationServiceNotificationHub.md @@ -16,14 +16,14 @@ Links an Azure Notification Hub to this communication service. ``` Set-AzCommunicationServiceNotificationHub -CommunicationServiceName -ResourceGroupName [-SubscriptionId ] -ConnectionString -NotificationHubResourceId - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### Link ``` Set-AzCommunicationServiceNotificationHub -CommunicationServiceName -ResourceGroupName [-SubscriptionId ] -LinkNotificationHubParameter - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -117,6 +117,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/Stop-AzEmailServiceDomainVerification.md b/src/Communication/Communication/help/Stop-AzEmailServiceDomainVerification.md index efcfcb1c6e7c..4450fe4f402b 100644 --- a/src/Communication/Communication/help/Stop-AzEmailServiceDomainVerification.md +++ b/src/Communication/Communication/help/Stop-AzEmailServiceDomainVerification.md @@ -16,56 +16,56 @@ Cancel verification of DNS record. ``` Stop-AzEmailServiceDomainVerification -DomainName -EmailServiceName -ResourceGroupName [-SubscriptionId ] -VerificationType [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CancelViaJsonString ``` Stop-AzEmailServiceDomainVerification -DomainName -EmailServiceName -ResourceGroupName [-SubscriptionId ] -JsonString [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CancelViaJsonFilePath ``` Stop-AzEmailServiceDomainVerification -DomainName -EmailServiceName -ResourceGroupName [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CancelViaIdentityEmailServiceExpanded ``` Stop-AzEmailServiceDomainVerification -DomainName -EmailServiceInputObject -VerificationType [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CancelViaIdentityEmailService ``` Stop-AzEmailServiceDomainVerification -DomainName -EmailServiceInputObject -Parameter [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### Cancel ``` Stop-AzEmailServiceDomainVerification -DomainName -EmailServiceName -ResourceGroupName [-SubscriptionId ] -Parameter - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CancelViaIdentityExpanded ``` Stop-AzEmailServiceDomainVerification -InputObject -VerificationType - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CancelViaIdentity ``` Stop-AzEmailServiceDomainVerification -InputObject -Parameter - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -234,6 +234,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/Test-AzCommunicationServiceNameAvailability.md b/src/Communication/Communication/help/Test-AzCommunicationServiceNameAvailability.md index 0cc250080435..f5ce0b887de4 100644 --- a/src/Communication/Communication/help/Test-AzCommunicationServiceNameAvailability.md +++ b/src/Communication/Communication/help/Test-AzCommunicationServiceNameAvailability.md @@ -14,7 +14,7 @@ Checks that the CommunicationService name is valid and is not already in use. ``` Test-AzCommunicationServiceNameAvailability [-SubscriptionId ] -Name - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -81,6 +81,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. The value must be an UUID. diff --git a/src/Communication/Communication/help/Update-AzCommunicationService.md b/src/Communication/Communication/help/Update-AzCommunicationService.md index f6678390489d..9975bac6d064 100644 --- a/src/Communication/Communication/help/Update-AzCommunicationService.md +++ b/src/Communication/Communication/help/Update-AzCommunicationService.md @@ -17,7 +17,7 @@ Operation to update an existing CommunicationService. Update-AzCommunicationService -Name -ResourceGroupName [-SubscriptionId ] [-IdentityType ] [-IdentityUserAssignedIdentity ] [-LinkedDomain ] [-Tag ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded @@ -25,7 +25,7 @@ Update-AzCommunicationService -Name -ResourceGroupName [-Subsc Update-AzCommunicationService -InputObject [-IdentityType ] [-IdentityUserAssignedIdentity ] [-LinkedDomain ] [-Tag ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -159,6 +159,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/Update-AzEmailService.md b/src/Communication/Communication/help/Update-AzEmailService.md index a1a7bc94e8c2..499d5b6c24f1 100644 --- a/src/Communication/Communication/help/Update-AzEmailService.md +++ b/src/Communication/Communication/help/Update-AzEmailService.md @@ -15,28 +15,28 @@ Operation to update an existing EmailService. ### UpdateExpanded (Default) ``` Update-AzEmailService -Name -ResourceGroupName [-SubscriptionId ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaJsonString ``` Update-AzEmailService -Name -ResourceGroupName [-SubscriptionId ] - -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaJsonFilePath ``` Update-AzEmailService -Name -ResourceGroupName [-SubscriptionId ] - -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzEmailService -InputObject [-Tag ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -179,6 +179,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/Update-AzEmailServiceDomain.md b/src/Communication/Communication/help/Update-AzEmailServiceDomain.md index 375082fa855e..8b4e75eefdfe 100644 --- a/src/Communication/Communication/help/Update-AzEmailServiceDomain.md +++ b/src/Communication/Communication/help/Update-AzEmailServiceDomain.md @@ -16,42 +16,42 @@ Operation to update an existing Domains resource. ``` Update-AzEmailServiceDomain -EmailServiceName -Name -ResourceGroupName [-SubscriptionId ] [-Tag ] [-UserEngagementTracking ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaJsonString ``` Update-AzEmailServiceDomain -EmailServiceName -Name -ResourceGroupName [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaJsonFilePath ``` Update-AzEmailServiceDomain -EmailServiceName -Name -ResourceGroupName [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityEmailServiceExpanded ``` Update-AzEmailServiceDomain -Name -EmailServiceInputObject [-Tag ] [-UserEngagementTracking ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityEmailService ``` Update-AzEmailServiceDomain -Name -EmailServiceInputObject -Parameter [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzEmailServiceDomain -InputObject [-Tag ] [-UserEngagementTracking ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -322,6 +322,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/Communication/help/Update-AzEmailServiceSenderUsername.md b/src/Communication/Communication/help/Update-AzEmailServiceSenderUsername.md index bf499d4386e3..a708ce264bc5 100644 --- a/src/Communication/Communication/help/Update-AzEmailServiceSenderUsername.md +++ b/src/Communication/Communication/help/Update-AzEmailServiceSenderUsername.md @@ -16,41 +16,41 @@ Add a new SenderUsername resource under the parent Domains resource or update an ``` Update-AzEmailServiceSenderUsername -DomainName -EmailServiceName -ResourceGroupName -SenderUsername [-SubscriptionId ] [-DisplayName ] [-Username ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityEmailServiceExpanded ``` Update-AzEmailServiceSenderUsername -DomainName -SenderUsername -EmailServiceInputObject [-DisplayName ] [-Username ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityEmailService ``` Update-AzEmailServiceSenderUsername -DomainName -SenderUsername -EmailServiceInputObject -Parameter - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityDomainExpanded ``` Update-AzEmailServiceSenderUsername -SenderUsername -DomainInputObject - [-DisplayName ] [-Username ] [-DefaultProfile ] + [-DisplayName ] [-Username ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityDomain ``` Update-AzEmailServiceSenderUsername -SenderUsername -DomainInputObject - -Parameter [-DefaultProfile ] + -Parameter [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzEmailServiceSenderUsername -InputObject [-DisplayName ] - [-Username ] [-DefaultProfile ] [-WhatIf] [-Confirm] + [-Username ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -232,6 +232,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Communication/EmailService.Autorest/build-module.ps1 b/src/Communication/EmailService.Autorest/build-module.ps1 index faea08e5f6a5..f3a32572ae73 100644 --- a/src/Communication/EmailService.Autorest/build-module.ps1 +++ b/src/Communication/EmailService.Autorest/build-module.ps1 @@ -75,6 +75,8 @@ if(-not $NotIsolated -and -not $Debugger) { $binFolder = Join-Path $PSScriptRoot 'bin' $objFolder = Join-Path $PSScriptRoot 'obj' +$isAzure = [System.Convert]::ToBoolean('true') + if(-not $Debugger) { Write-Host -ForegroundColor Green 'Cleaning build folders...' $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path $binFolder, $objFolder @@ -97,6 +99,24 @@ if(-not $Debugger) { $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path (Join-Path $binFolder 'Debug'), (Join-Path $binFolder 'Release') } +if ($isAzure -And 'Properties/AssemblyInfo.cs') { + $assemblyInfoPath = Join-Path $PSScriptRoot 'Properties/AssemblyInfo.cs' + $header = '// 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.' + $content = $header + [Environment]::NewLine + [Environment]::NewLine + (Get-Content $assemblyInfoPath -Raw) + $content | Set-Content $assemblyInfoPath -Force +} + $dll = Join-Path $PSScriptRoot 'bin\Az.EmailService.private.dll' if(-not (Test-Path $dll)) { Write-Error "Unable to find output assembly in '$binFolder'." @@ -151,7 +171,7 @@ if($NoDocs) { $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue } $null = New-Item -ItemType Directory -Force -Path $docsFolder - $addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true') + $addComplexInterfaceInfo = !$isAzure Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo } @@ -186,5 +206,4 @@ if (-not $DisableAfterBuildTasks){ } } - -Write-Host -ForegroundColor Green '-------------Done-------------' +Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/Communication/EmailService.Autorest/exports/New-AzEmailService.ps1 b/src/Communication/EmailService.Autorest/exports/New-AzEmailService.ps1 index 51e5b716f5a3..0bea118f8bf4 100644 --- a/src/Communication/EmailService.Autorest/exports/New-AzEmailService.ps1 +++ b/src/Communication/EmailService.Autorest/exports/New-AzEmailService.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create a new EmailService or update an existing EmailService. +create a new EmailService or create an existing EmailService. .Description -Create a new EmailService or update an existing EmailService. +create a new EmailService or create an existing EmailService. .Example New-AzEmailService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -DataLocation "United States" diff --git a/src/Communication/EmailService.Autorest/exports/New-AzEmailServiceDomain.ps1 b/src/Communication/EmailService.Autorest/exports/New-AzEmailServiceDomain.ps1 index f8e0aeab0e04..ecbe58bbf9ad 100644 --- a/src/Communication/EmailService.Autorest/exports/New-AzEmailServiceDomain.ps1 +++ b/src/Communication/EmailService.Autorest/exports/New-AzEmailServiceDomain.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. +Add a new Domains resource under the parent EmailService resource or create an existing Domains resource. .Description -Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. +Add a new Domains resource under the parent EmailService resource or create an existing Domains resource. .Example New-AzEmailServiceDomain -Name testcustomdomain2.net -EmailServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -DomainManagement CustomerManaged .Example diff --git a/src/Communication/EmailService.Autorest/exports/New-AzEmailServiceSenderUsername.ps1 b/src/Communication/EmailService.Autorest/exports/New-AzEmailServiceSenderUsername.ps1 index de2e7e5dc157..eebc1af47fff 100644 --- a/src/Communication/EmailService.Autorest/exports/New-AzEmailServiceSenderUsername.ps1 +++ b/src/Communication/EmailService.Autorest/exports/New-AzEmailServiceSenderUsername.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. +Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource. .Description -Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. +Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource. .Example New-AzEmailServiceSenderUsername -SenderUsername test -Username test -DomainName testcustomdomain2.net -EmailServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 .Example diff --git a/src/Communication/EmailService.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/Communication/EmailService.Autorest/exports/ProxyCmdletDefinitions.ps1 index 46a0da0a024b..a101dd519566 100644 --- a/src/Communication/EmailService.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/Communication/EmailService.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -973,9 +973,9 @@ end { <# .Synopsis -Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. +Add a new Domains resource under the parent EmailService resource or create an existing Domains resource. .Description -Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. +Add a new Domains resource under the parent EmailService resource or create an existing Domains resource. .Example New-AzEmailServiceDomain -Name testcustomdomain2.net -EmailServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -DomainManagement CustomerManaged .Example @@ -1261,9 +1261,9 @@ end { <# .Synopsis -Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. +Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource. .Description -Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. +Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource. .Example New-AzEmailServiceSenderUsername -SenderUsername test -Username test -DomainName testcustomdomain2.net -EmailServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 .Example @@ -1542,9 +1542,9 @@ end { <# .Synopsis -Create a new EmailService or update an existing EmailService. +create a new EmailService or create an existing EmailService. .Description -Create a new EmailService or update an existing EmailService. +create a new EmailService or create an existing EmailService. .Example New-AzEmailService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -DataLocation "United States" diff --git a/src/Communication/EmailService.Autorest/generated/api/EmailService.cs b/src/Communication/EmailService.Autorest/generated/api/EmailService.cs index bcf81505c0bb..acf4af4a7b49 100644 --- a/src/Communication/EmailService.Autorest/generated/api/EmailService.cs +++ b/src/Communication/EmailService.Autorest/generated/api/EmailService.cs @@ -2965,7 +2965,7 @@ public partial class EmailService } } - /// Update a new EmailService or update an existing EmailService. + /// update a new EmailService or update an existing EmailService. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the EmailService resource. @@ -3014,7 +3014,7 @@ public partial class EmailService } } - /// Update a new EmailService or update an existing EmailService. + /// update a new EmailService or update an existing EmailService. /// /// Parameters for the create or update operation /// a delegate that is called when the remote service returns 200 (OK). @@ -3073,7 +3073,7 @@ public partial class EmailService } } - /// Update a new EmailService or update an existing EmailService. + /// update a new EmailService or update an existing EmailService. /// /// Parameters for the create or update operation /// an instance that will receive events. @@ -3130,7 +3130,7 @@ public partial class EmailService } } - /// Update a new EmailService or update an existing EmailService. + /// update a new EmailService or update an existing EmailService. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the EmailService resource. @@ -3178,7 +3178,7 @@ public partial class EmailService } } - /// Update a new EmailService or update an existing EmailService. + /// update a new EmailService or update an existing EmailService. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the EmailService resource. @@ -3224,7 +3224,7 @@ public partial class EmailService } } - /// Update a new EmailService or update an existing EmailService. + /// update a new EmailService or update an existing EmailService. /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the EmailService resource. diff --git a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateExpanded.cs b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateExpanded.cs index dd4786662664..a669e0041840 100644 --- a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateExpanded.cs +++ b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateExpanded.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets using System; /// - /// Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. + /// Add a new Domains resource under the parent EmailService resource or create an existing Domains resource. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzEmailServiceDomain_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new Domains resource under the parent EmailService resource or update an existing Domains resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new Domains resource under the parent EmailService resource or create an existing Domains resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}", ApiVersion = "2023-06-01-preview")] public partial class NewAzEmailServiceDomain_CreateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaIdentityEmailService.cs b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaIdentityEmailService.cs index fe50c7f61179..575f1008793f 100644 --- a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaIdentityEmailService.cs +++ b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaIdentityEmailService.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets using System; /// - /// Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. + /// Add a new Domains resource under the parent EmailService resource or create an existing Domains resource. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzEmailServiceDomain_CreateViaIdentityEmailService", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new Domains resource under the parent EmailService resource or update an existing Domains resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new Domains resource under the parent EmailService resource or create an existing Domains resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}", ApiVersion = "2023-06-01-preview")] public partial class NewAzEmailServiceDomain_CreateViaIdentityEmailService : global::System.Management.Automation.PSCmdlet, diff --git a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaIdentityEmailServiceExpanded.cs b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaIdentityEmailServiceExpanded.cs index 1b543581301e..1fbdc13166b2 100644 --- a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaIdentityEmailServiceExpanded.cs +++ b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaIdentityEmailServiceExpanded.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets using System; /// - /// Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. + /// Add a new Domains resource under the parent EmailService resource or create an existing Domains resource. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzEmailServiceDomain_CreateViaIdentityEmailServiceExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new Domains resource under the parent EmailService resource or update an existing Domains resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new Domains resource under the parent EmailService resource or create an existing Domains resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}", ApiVersion = "2023-06-01-preview")] public partial class NewAzEmailServiceDomain_CreateViaIdentityEmailServiceExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaJsonFilePath.cs b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaJsonFilePath.cs index a7247e18747e..89602c8c3215 100644 --- a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaJsonFilePath.cs +++ b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaJsonFilePath.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets using System; /// - /// Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. + /// Add a new Domains resource under the parent EmailService resource or create an existing Domains resource. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzEmailServiceDomain_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new Domains resource under the parent EmailService resource or update an existing Domains resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new Domains resource under the parent EmailService resource or create an existing Domains resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}", ApiVersion = "2023-06-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.NotSuggestDefaultParameterSet] diff --git a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaJsonString.cs b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaJsonString.cs index 4225151650b2..02720a66feda 100644 --- a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaJsonString.cs +++ b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceDomain_CreateViaJsonString.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets using System; /// - /// Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. + /// Add a new Domains resource under the parent EmailService resource or create an existing Domains resource. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzEmailServiceDomain_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IDomainResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new Domains resource under the parent EmailService resource or update an existing Domains resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new Domains resource under the parent EmailService resource or create an existing Domains resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}", ApiVersion = "2023-06-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.NotSuggestDefaultParameterSet] diff --git a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateExpanded.cs b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateExpanded.cs index 7bd98a95c83d..0c9faab18977 100644 --- a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateExpanded.cs +++ b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateExpanded.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets using System; /// - /// Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. + /// Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzEmailServiceSenderUsername_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernameResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}", ApiVersion = "2023-06-01-preview")] public partial class NewAzEmailServiceSenderUsername_CreateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaIdentityDomain.cs b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaIdentityDomain.cs index 5b3fb4921e2a..b1bb2ab8cadf 100644 --- a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaIdentityDomain.cs +++ b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaIdentityDomain.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets using System; /// - /// Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. + /// Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzEmailServiceSenderUsername_CreateViaIdentityDomain", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernameResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}", ApiVersion = "2023-06-01-preview")] public partial class NewAzEmailServiceSenderUsername_CreateViaIdentityDomain : global::System.Management.Automation.PSCmdlet, diff --git a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaIdentityDomainExpanded.cs b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaIdentityDomainExpanded.cs index e9e88f197c7d..c3d7fcb6919b 100644 --- a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaIdentityDomainExpanded.cs +++ b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaIdentityDomainExpanded.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets using System; /// - /// Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. + /// Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzEmailServiceSenderUsername_CreateViaIdentityDomainExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernameResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}", ApiVersion = "2023-06-01-preview")] public partial class NewAzEmailServiceSenderUsername_CreateViaIdentityDomainExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaIdentityEmailService.cs b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaIdentityEmailService.cs index 494169b068aa..50c40034e9ec 100644 --- a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaIdentityEmailService.cs +++ b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaIdentityEmailService.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets using System; /// - /// Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. + /// Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzEmailServiceSenderUsername_CreateViaIdentityEmailService", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernameResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}", ApiVersion = "2023-06-01-preview")] public partial class NewAzEmailServiceSenderUsername_CreateViaIdentityEmailService : global::System.Management.Automation.PSCmdlet, diff --git a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaIdentityEmailServiceExpanded.cs b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaIdentityEmailServiceExpanded.cs index 3215efe1fdd3..28b89fb0e2f9 100644 --- a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaIdentityEmailServiceExpanded.cs +++ b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaIdentityEmailServiceExpanded.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets using System; /// - /// Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. + /// Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzEmailServiceSenderUsername_CreateViaIdentityEmailServiceExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernameResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}", ApiVersion = "2023-06-01-preview")] public partial class NewAzEmailServiceSenderUsername_CreateViaIdentityEmailServiceExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaJsonFilePath.cs b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaJsonFilePath.cs index ad5ae8d66e11..33ee00ec4e49 100644 --- a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaJsonFilePath.cs +++ b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaJsonFilePath.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets using System; /// - /// Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. + /// Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzEmailServiceSenderUsername_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernameResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}", ApiVersion = "2023-06-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.NotSuggestDefaultParameterSet] diff --git a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaJsonString.cs b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaJsonString.cs index 8ba47fe7daf7..e0520d901c2a 100644 --- a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaJsonString.cs +++ b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailServiceSenderUsername_CreateViaJsonString.cs @@ -11,14 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets using System; /// - /// Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. + /// Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzEmailServiceSenderUsername_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.ISenderUsernameResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}", ApiVersion = "2023-06-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.NotSuggestDefaultParameterSet] diff --git a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateExpanded.cs b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateExpanded.cs index 75a617054879..81ec2f14b732 100644 --- a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateExpanded.cs +++ b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Cmdlets; using System; - /// Create a new EmailService or update an existing EmailService. + /// create a new EmailService or create an existing EmailService. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzEmailService_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServiceResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Create a new EmailService or update an existing EmailService.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"create a new EmailService or create an existing EmailService.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}", ApiVersion = "2023-06-01-preview")] public partial class NewAzEmailService_CreateExpanded : global::System.Management.Automation.PSCmdlet, diff --git a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateViaJsonFilePath.cs b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateViaJsonFilePath.cs index ffc86f00cd97..cbe611c31c31 100644 --- a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateViaJsonFilePath.cs +++ b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateViaJsonFilePath.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Cmdlets; using System; - /// Create a new EmailService or update an existing EmailService. + /// create a new EmailService or create an existing EmailService. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzEmailService_CreateViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServiceResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Create a new EmailService or update an existing EmailService.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"create a new EmailService or create an existing EmailService.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}", ApiVersion = "2023-06-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.NotSuggestDefaultParameterSet] diff --git a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateViaJsonString.cs b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateViaJsonString.cs index 6c7a3a361908..b0867592d58f 100644 --- a/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateViaJsonString.cs +++ b/src/Communication/EmailService.Autorest/generated/cmdlets/NewAzEmailService_CreateViaJsonString.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailService.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.EmailService.Runtime.Cmdlets; using System; - /// Create a new EmailService or update an existing EmailService. + /// create a new EmailService or create an existing EmailService. /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzEmailService_CreateViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailService.Models.IEmailServiceResource))] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"Create a new EmailService or update an existing EmailService.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Description(@"create a new EmailService or create an existing EmailService.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}", ApiVersion = "2023-06-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailService.NotSuggestDefaultParameterSet] diff --git a/src/Communication/EmailService.Autorest/help/Az.EmailService.md b/src/Communication/EmailService.Autorest/help/Az.EmailService.md index 1ecf576cc3aa..e913b067b417 100644 --- a/src/Communication/EmailService.Autorest/help/Az.EmailService.md +++ b/src/Communication/EmailService.Autorest/help/Az.EmailService.md @@ -24,13 +24,13 @@ Get a valid sender username for a domains resource. Initiate verification of DNS record. ### [New-AzEmailService](New-AzEmailService.md) -Create a new EmailService or update an existing EmailService. +create a new EmailService or create an existing EmailService. ### [New-AzEmailServiceDomain](New-AzEmailServiceDomain.md) -Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. +Add a new Domains resource under the parent EmailService resource or create an existing Domains resource. ### [New-AzEmailServiceSenderUsername](New-AzEmailServiceSenderUsername.md) -Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. +Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource. ### [Remove-AzEmailService](Remove-AzEmailService.md) Operation to delete a EmailService. diff --git a/src/Communication/EmailService.Autorest/help/New-AzEmailService.md b/src/Communication/EmailService.Autorest/help/New-AzEmailService.md index b7e527b61c0e..62662c215794 100644 --- a/src/Communication/EmailService.Autorest/help/New-AzEmailService.md +++ b/src/Communication/EmailService.Autorest/help/New-AzEmailService.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzEmailService ## SYNOPSIS -Create a new EmailService or update an existing EmailService. +create a new EmailService or create an existing EmailService. ## SYNTAX @@ -33,7 +33,7 @@ New-AzEmailService -Name -ResourceGroupName -JsonString -Name -ResourceGrou ``` ## DESCRIPTION -Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. +Add a new Domains resource under the parent EmailService resource or create an existing Domains resource. ## EXAMPLES diff --git a/src/Communication/EmailService.Autorest/help/New-AzEmailServiceSenderUsername.md b/src/Communication/EmailService.Autorest/help/New-AzEmailServiceSenderUsername.md index d0bba41eaa67..1699515364c1 100644 --- a/src/Communication/EmailService.Autorest/help/New-AzEmailServiceSenderUsername.md +++ b/src/Communication/EmailService.Autorest/help/New-AzEmailServiceSenderUsername.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzEmailServiceSenderUsername ## SYNOPSIS -Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. +Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource. ## SYNTAX @@ -61,7 +61,7 @@ New-AzEmailServiceSenderUsername -DomainName -EmailServiceName ``` ## DESCRIPTION -Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. +Add a new SenderUsername resource under the parent Domains resource or create an existing SenderUsername resource. ## EXAMPLES diff --git a/src/Communication/EmailServicedata.Autorest/Az.EmailServicedata.format.ps1xml b/src/Communication/EmailServicedata.Autorest/Az.EmailServicedata.format.ps1xml index 904a13ef8639..539e17df09d8 100644 --- a/src/Communication/EmailServicedata.Autorest/Az.EmailServicedata.format.ps1xml +++ b/src/Communication/EmailServicedata.Autorest/Az.EmailServicedata.format.ps1xml @@ -36,6 +36,9 @@ + + + @@ -49,6 +52,9 @@ + + ContentId + ContentInBase64 diff --git a/src/Communication/EmailServicedata.Autorest/README.md b/src/Communication/EmailServicedata.Autorest/README.md index 7d4468c315fb..fdf322861fac 100644 --- a/src/Communication/EmailServicedata.Autorest/README.md +++ b/src/Communication/EmailServicedata.Autorest/README.md @@ -27,13 +27,13 @@ For information on how to develop for `Az.EmailServicedata`, see [how-to.md](how > see https://aka.ms/autorest ``` yaml -commit: 512e966e15cd8e6ffd756279971c478702f4e19e +commit: 8276d8bcb5787b2c11b9281751eb8a305db56476 require: # readme.azure.noprofile.md is the common configuration file - $(this-folder)/../../readme.azure.noprofile.md input-file: # You need to specify your swagger files here. - - $(repo)/specification/communication/data-plane/Email/stable/2023-03-31/CommunicationServicesEmail.json + - $(repo)/specification/communication/data-plane/Email/preview/2024-07-01-preview/CommunicationServicesEmail.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 diff --git a/src/Communication/EmailServicedata.Autorest/build-module.ps1 b/src/Communication/EmailServicedata.Autorest/build-module.ps1 index bf01b5fc2e5d..08fda3682ffc 100644 --- a/src/Communication/EmailServicedata.Autorest/build-module.ps1 +++ b/src/Communication/EmailServicedata.Autorest/build-module.ps1 @@ -75,6 +75,8 @@ if(-not $NotIsolated -and -not $Debugger) { $binFolder = Join-Path $PSScriptRoot 'bin' $objFolder = Join-Path $PSScriptRoot 'obj' +$isAzure = [System.Convert]::ToBoolean('true') + if(-not $Debugger) { Write-Host -ForegroundColor Green 'Cleaning build folders...' $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path $binFolder, $objFolder @@ -97,6 +99,24 @@ if(-not $Debugger) { $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path (Join-Path $binFolder 'Debug'), (Join-Path $binFolder 'Release') } +if ($isAzure -And 'Properties/AssemblyInfo.cs') { + $assemblyInfoPath = Join-Path $PSScriptRoot 'Properties/AssemblyInfo.cs' + $header = '// 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.' + $content = $header + [Environment]::NewLine + [Environment]::NewLine + (Get-Content $assemblyInfoPath -Raw) + $content | Set-Content $assemblyInfoPath -Force +} + $dll = Join-Path $PSScriptRoot 'bin\Az.EmailServicedata.private.dll' if(-not (Test-Path $dll)) { Write-Error "Unable to find output assembly in '$binFolder'." @@ -151,7 +171,7 @@ if($NoDocs) { $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue } $null = New-Item -ItemType Directory -Force -Path $docsFolder - $addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true') + $addComplexInterfaceInfo = !$isAzure Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo } @@ -186,5 +206,4 @@ if (-not $DisableAfterBuildTasks){ } } - -Write-Host -ForegroundColor Green '-------------Done-------------' +Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/Communication/EmailServicedata.Autorest/examples/Send-AzEmailServicedataEmail.md b/src/Communication/EmailServicedata.Autorest/examples/Send-AzEmailServicedataEmail.md index aad5cbf9560e..6d25357509e5 100644 --- a/src/Communication/EmailServicedata.Autorest/examples/Send-AzEmailServicedataEmail.md +++ b/src/Communication/EmailServicedata.Autorest/examples/Send-AzEmailServicedataEmail.md @@ -45,13 +45,21 @@ $emailRecipientTo = @( } ) -$fileBytes = [System.IO.File]::ReadAllBytes("") +$fileBytes1 = [System.IO.File]::ReadAllBytes("") + +$fileBytes2 = [System.IO.File]::ReadAllBytes("") $emailAttachment = @( @{ - ContentInBase64 = $fileBytes + ContentInBase64 = $fileBytes1 ContentType = "" Name = "" + }, + @{ + ContentInBase64 = $fileBytes2 + ContentType = "image/png" + Name = "" + contentId = "" } ) @@ -87,7 +95,7 @@ $message = @{ RecipientTo = @($emailRecipientTo) # Array of email address objects SenderAddress = 'info@contoso.com' Attachment = @($emailAttachment) # Array of attachments - ContentHtml = "Enter title

This is the first email from ACS - HTML

" + ContentHtml = "Enter titleCompany Logo

This is the first email from ACS - HTML

" ContentPlainText = "This is the first email from ACS - HTML" Header = $headers # Importance = high/medium/low or X-Priority = 2/3/4 RecipientBcc = @($emailRecipientBcc) # Array of email address objects diff --git a/src/Communication/EmailServicedata.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/Communication/EmailServicedata.Autorest/exports/ProxyCmdletDefinitions.ps1 index 7077e7e6c062..22b05727db01 100644 --- a/src/Communication/EmailServicedata.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/Communication/EmailServicedata.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -221,13 +221,21 @@ $emailRecipientTo = @( } ) -$fileBytes = [System.IO.File]::ReadAllBytes("") +$fileBytes1 = [System.IO.File]::ReadAllBytes("") + +$fileBytes2 = [System.IO.File]::ReadAllBytes("") $emailAttachment = @( @{ - ContentInBase64 = $fileBytes + ContentInBase64 = $fileBytes1 ContentType = "" Name = "" + }, + @{ + ContentInBase64 = $fileBytes2 + ContentType = "image/png" + Name = "" + contentId = "" } ) @@ -263,7 +271,7 @@ $message = @{ RecipientTo = @($emailRecipientTo) # Array of email address objects SenderAddress = 'info@contoso.com' Attachment = @($emailAttachment) # Array of attachments - ContentHtml = "Enter title

This is the first email from ACS - HTML

" + ContentHtml = "Enter titleCompany Logo

This is the first email from ACS - HTML

" ContentPlainText = "This is the first email from ACS - HTML" Header = $headers # Importance = high/medium/low or X-Priority = 2/3/4 RecipientBcc = @($emailRecipientBcc) # Array of email address objects @@ -283,19 +291,21 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -ATTACHMENT : List of attachments. Please note that we limit the total size of an email request (which includes attachments) to 10MB. +ATTACHMENT : List of attachments. Please note that we limit the total size of an email request (which includes both regular and inline attachments) to 10MB. ContentInBase64 : Base64 encoded contents of the attachment ContentType : MIME type of the content being attached. Name : Name of the attachment + [ContentId ]: Unique identifier (CID) to reference an inline attachment. MESSAGE : Message payload for sending an email ContentSubject : Subject of the email message RecipientTo >: Email To recipients SenderAddress : Sender email address from a verified domain. - [Attachment >]: List of attachments. Please note that we limit the total size of an email request (which includes attachments) to 10MB. + [Attachment >]: List of attachments. Please note that we limit the total size of an email request (which includes both regular and inline attachments) to 10MB. ContentInBase64 : Base64 encoded contents of the attachment ContentType : MIME type of the content being attached. Name : Name of the attachment + [ContentId ]: Unique identifier (CID) to reference an inline attachment. [ContentHtml ]: Html version of the email message. [ContentPlainText ]: Plain text version of the email message. [Header ]: Custom email headers to be passed. @@ -378,7 +388,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailAttachment[]] # List of attachments. - # Please note that we limit the total size of an email request (which includes attachments) to 10MB. + # Please note that we limit the total size of an email request (which includes both regular and inline attachments) to 10MB. ${Attachment}, [Parameter(ParameterSetName='SendExpanded')] diff --git a/src/Communication/EmailServicedata.Autorest/exports/Send-AzEmailServicedataEmail.ps1 b/src/Communication/EmailServicedata.Autorest/exports/Send-AzEmailServicedataEmail.ps1 index e902d48cc6b9..050d868174d0 100644 --- a/src/Communication/EmailServicedata.Autorest/exports/Send-AzEmailServicedataEmail.ps1 +++ b/src/Communication/EmailServicedata.Autorest/exports/Send-AzEmailServicedataEmail.ps1 @@ -48,13 +48,21 @@ $emailRecipientTo = @( } ) -$fileBytes = [System.IO.File]::ReadAllBytes("") +$fileBytes1 = [System.IO.File]::ReadAllBytes("") + +$fileBytes2 = [System.IO.File]::ReadAllBytes("") $emailAttachment = @( @{ - ContentInBase64 = $fileBytes + ContentInBase64 = $fileBytes1 ContentType = "" Name = "" + }, + @{ + ContentInBase64 = $fileBytes2 + ContentType = "image/png" + Name = "" + contentId = "" } ) @@ -90,7 +98,7 @@ $message = @{ RecipientTo = @($emailRecipientTo) # Array of email address objects SenderAddress = 'info@contoso.com' Attachment = @($emailAttachment) # Array of attachments - ContentHtml = "Enter title

This is the first email from ACS - HTML

" + ContentHtml = "Enter titleCompany Logo

This is the first email from ACS - HTML

" ContentPlainText = "This is the first email from ACS - HTML" Header = $headers # Importance = high/medium/low or X-Priority = 2/3/4 RecipientBcc = @($emailRecipientBcc) # Array of email address objects @@ -110,19 +118,21 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -ATTACHMENT : List of attachments. Please note that we limit the total size of an email request (which includes attachments) to 10MB. +ATTACHMENT : List of attachments. Please note that we limit the total size of an email request (which includes both regular and inline attachments) to 10MB. ContentInBase64 : Base64 encoded contents of the attachment ContentType : MIME type of the content being attached. Name : Name of the attachment + [ContentId ]: Unique identifier (CID) to reference an inline attachment. MESSAGE : Message payload for sending an email ContentSubject : Subject of the email message RecipientTo >: Email To recipients SenderAddress : Sender email address from a verified domain. - [Attachment >]: List of attachments. Please note that we limit the total size of an email request (which includes attachments) to 10MB. + [Attachment >]: List of attachments. Please note that we limit the total size of an email request (which includes both regular and inline attachments) to 10MB. ContentInBase64 : Base64 encoded contents of the attachment ContentType : MIME type of the content being attached. Name : Name of the attachment + [ContentId ]: Unique identifier (CID) to reference an inline attachment. [ContentHtml ]: Html version of the email message. [ContentPlainText ]: Plain text version of the email message. [Header ]: Custom email headers to be passed. @@ -205,7 +215,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailAttachment[]] # List of attachments. - # Please note that we limit the total size of an email request (which includes attachments) to 10MB. + # Please note that we limit the total size of an email request (which includes both regular and inline attachments) to 10MB. ${Attachment}, [Parameter(ParameterSetName='SendExpanded')] diff --git a/src/Communication/EmailServicedata.Autorest/generated/api/EmailServicedata.cs b/src/Communication/EmailServicedata.Autorest/generated/api/EmailServicedata.cs index f619ea6ce48e..c75f91c09e52 100644 --- a/src/Communication/EmailServicedata.Autorest/generated/api/EmailServicedata.cs +++ b/src/Communication/EmailServicedata.Autorest/generated/api/EmailServicedata.cs @@ -27,7 +27,7 @@ public partial class EmailServicedata /// public async global::System.Threading.Tasks.Task EmailGetSendResult(string operationId, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-31"; + var apiVersion = @"2024-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -65,7 +65,7 @@ public partial class EmailServicedata /// public async global::System.Threading.Tasks.Task EmailGetSendResultViaIdentity(global::System.String viaIdentity, string endpoint, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-31"; + var apiVersion = @"2024-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -111,7 +111,7 @@ public partial class EmailServicedata /// public async global::System.Threading.Tasks.Task EmailGetSendResultViaIdentityWithResult(global::System.String viaIdentity, string endpoint, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-31"; + var apiVersion = @"2024-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -157,7 +157,7 @@ public partial class EmailServicedata /// public async global::System.Threading.Tasks.Task EmailGetSendResultWithResult(string operationId, string endpoint, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-31"; + var apiVersion = @"2024-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -327,7 +327,7 @@ public partial class EmailServicedata /// public async global::System.Threading.Tasks.Task EmailSend(string operationId, string xMSClientRequestId, string endpoint, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailMessage body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-31"; + var apiVersion = @"2024-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -381,7 +381,7 @@ public partial class EmailServicedata /// public async global::System.Threading.Tasks.Task EmailSendViaIdentity(global::System.String viaIdentity, string operationId, string xMSClientRequestId, string endpoint, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailMessage body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-31"; + var apiVersion = @"2024-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -444,7 +444,7 @@ public partial class EmailServicedata /// public async global::System.Threading.Tasks.Task EmailSendViaIdentityWithResult(global::System.String viaIdentity, string operationId, string xMSClientRequestId, string endpoint, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailMessage body, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-31"; + var apiVersion = @"2024-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -505,7 +505,7 @@ public partial class EmailServicedata /// public async global::System.Threading.Tasks.Task EmailSendViaJsonString(string operationId, string xMSClientRequestId, string endpoint, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-31"; + var apiVersion = @"2024-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -557,7 +557,7 @@ public partial class EmailServicedata /// public async global::System.Threading.Tasks.Task EmailSendViaJsonStringWithResult(string operationId, string xMSClientRequestId, string endpoint, global::System.String jsonString, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-31"; + var apiVersion = @"2024-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -610,7 +610,7 @@ public partial class EmailServicedata /// public async global::System.Threading.Tasks.Task EmailSendWithResult(string operationId, string xMSClientRequestId, string endpoint, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailMessage body, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-31"; + var apiVersion = @"2024-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { diff --git a/src/Communication/EmailServicedata.Autorest/generated/api/Models/EmailAttachment.PowerShell.cs b/src/Communication/EmailServicedata.Autorest/generated/api/Models/EmailAttachment.PowerShell.cs index 0945b7505667..32aeaac87a84 100644 --- a/src/Communication/EmailServicedata.Autorest/generated/api/Models/EmailAttachment.PowerShell.cs +++ b/src/Communication/EmailServicedata.Autorest/generated/api/Models/EmailAttachment.PowerShell.cs @@ -114,6 +114,10 @@ internal EmailAttachment(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailAttachmentInternal)this).ContentInBase64 = (byte[]) content.GetValueForProperty("ContentInBase64",((Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailAttachmentInternal)this).ContentInBase64, i => i); } + if (content.Contains("ContentId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailAttachmentInternal)this).ContentId = (string) content.GetValueForProperty("ContentId",((Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailAttachmentInternal)this).ContentId, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -143,6 +147,10 @@ internal EmailAttachment(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailAttachmentInternal)this).ContentInBase64 = (byte[]) content.GetValueForProperty("ContentInBase64",((Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailAttachmentInternal)this).ContentInBase64, i => i); } + if (content.Contains("ContentId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailAttachmentInternal)this).ContentId = (string) content.GetValueForProperty("ContentId",((Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailAttachmentInternal)this).ContentId, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/src/Communication/EmailServicedata.Autorest/generated/api/Models/EmailAttachment.cs b/src/Communication/EmailServicedata.Autorest/generated/api/Models/EmailAttachment.cs index 06185cdd4a24..c7b1caebc279 100644 --- a/src/Communication/EmailServicedata.Autorest/generated/api/Models/EmailAttachment.cs +++ b/src/Communication/EmailServicedata.Autorest/generated/api/Models/EmailAttachment.cs @@ -13,6 +13,13 @@ public partial class EmailAttachment : Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailAttachmentInternal { + /// Backing field for property. + private string _contentId; + + /// Unique identifier (CID) to reference an inline attachment. + [Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.PropertyOrigin.Owned)] + public string ContentId { get => this._contentId; set => this._contentId = value; } + /// Backing field for property. private byte[] _contentInBase64; @@ -44,6 +51,17 @@ public EmailAttachment() public partial interface IEmailAttachment : Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IJsonSerializable { + /// Unique identifier (CID) to reference an inline attachment. + [Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Unique identifier (CID) to reference an inline attachment.", + SerializedName = @"contentId", + PossibleTypes = new [] { typeof(string) })] + string ContentId { get; set; } /// Base64 encoded contents of the attachment [Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.Info( Required = true, @@ -83,6 +101,8 @@ public partial interface IEmailAttachment : internal partial interface IEmailAttachmentInternal { + /// Unique identifier (CID) to reference an inline attachment. + string ContentId { get; set; } /// Base64 encoded contents of the attachment byte[] ContentInBase64 { get; set; } /// MIME type of the content being attached. diff --git a/src/Communication/EmailServicedata.Autorest/generated/api/Models/EmailAttachment.json.cs b/src/Communication/EmailServicedata.Autorest/generated/api/Models/EmailAttachment.json.cs index 28392433f739..14fe7787de41 100644 --- a/src/Communication/EmailServicedata.Autorest/generated/api/Models/EmailAttachment.json.cs +++ b/src/Communication/EmailServicedata.Autorest/generated/api/Models/EmailAttachment.json.cs @@ -68,6 +68,7 @@ internal EmailAttachment(Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Run {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} {_contentType = If( json?.PropertyT("contentType"), out var __jsonContentType) ? (string)__jsonContentType : (string)_contentType;} {_contentInBase64 = If( json?.PropertyT("contentInBase64"), out var __w) ? System.Convert.FromBase64String( ((string)__w).Replace("_","/").Replace("-","+").PadRight( ((string)__w).Length + ((string)__w).Length * 3 % 4, '=') ) : null;} + {_contentId = If( json?.PropertyT("contentId"), out var __jsonContentId) ? (string)__jsonContentId : (string)_contentId;} AfterFromJson(json); } @@ -105,6 +106,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.Json.JsonNode AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); AddIf( null != (((object)this._contentType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.Json.JsonString(this._contentType.ToString()) : null, "contentType" ,container.Add ); AddIf( null != this._contentInBase64 ? global::System.Convert.ToBase64String( this._contentInBase64) : null ,(v)=> container.Add( "contentInBase64",v) ); + AddIf( null != (((object)this._contentId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.Json.JsonString(this._contentId.ToString()) : null, "contentId" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/Communication/EmailServicedata.Autorest/generated/api/Models/EmailMessage.cs b/src/Communication/EmailServicedata.Autorest/generated/api/Models/EmailMessage.cs index 065c4d484515..4fe536a9d747 100644 --- a/src/Communication/EmailServicedata.Autorest/generated/api/Models/EmailMessage.cs +++ b/src/Communication/EmailServicedata.Autorest/generated/api/Models/EmailMessage.cs @@ -17,7 +17,8 @@ public partial class EmailMessage : private System.Collections.Generic.List _attachment; /// - /// List of attachments. Please note that we limit the total size of an email request (which includes attachments) to 10MB. + /// List of attachments. Please note that we limit the total size of an email request (which includes both regular and inline + /// attachments) to 10MB. /// [Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Origin(Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.PropertyOrigin.Owned)] public System.Collections.Generic.List Attachment { get => this._attachment; set => this._attachment = value; } @@ -108,7 +109,8 @@ public partial interface IEmailMessage : Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IJsonSerializable { /// - /// List of attachments. Please note that we limit the total size of an email request (which includes attachments) to 10MB. + /// List of attachments. Please note that we limit the total size of an email request (which includes both regular and inline + /// attachments) to 10MB. /// [Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.Info( Required = false, @@ -116,7 +118,7 @@ public partial interface IEmailMessage : Read = true, Create = true, Update = true, - Description = @"List of attachments. Please note that we limit the total size of an email request (which includes attachments) to 10MB.", + Description = @"List of attachments. Please note that we limit the total size of an email request (which includes both regular and inline attachments) to 10MB.", SerializedName = @"attachments", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailAttachment) })] System.Collections.Generic.List Attachment { get; set; } @@ -240,7 +242,8 @@ internal partial interface IEmailMessageInternal { /// - /// List of attachments. Please note that we limit the total size of an email request (which includes attachments) to 10MB. + /// List of attachments. Please note that we limit the total size of an email request (which includes both regular and inline + /// attachments) to 10MB. /// System.Collections.Generic.List Attachment { get; set; } /// Email content to be sent. diff --git a/src/Communication/EmailServicedata.Autorest/generated/cmdlets/GetAzEmailServicedataEmailSendResult_Get.cs b/src/Communication/EmailServicedata.Autorest/generated/cmdlets/GetAzEmailServicedataEmailSendResult_Get.cs index 867d72d21ca5..5dc6db9f27b8 100644 --- a/src/Communication/EmailServicedata.Autorest/generated/cmdlets/GetAzEmailServicedataEmailSendResult_Get.cs +++ b/src/Communication/EmailServicedata.Autorest/generated/cmdlets/GetAzEmailServicedataEmailSendResult_Get.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailSendResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Description(@"Gets the status of the email send operation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.HttpPath(Path = "/emails/operations/{operationId}", ApiVersion = "2023-03-31")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.HttpPath(Path = "/emails/operations/{operationId}", ApiVersion = "2024-07-01-preview")] public partial class GetAzEmailServicedataEmailSendResult_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IContext diff --git a/src/Communication/EmailServicedata.Autorest/generated/cmdlets/GetAzEmailServicedataEmailSendResult_GetViaIdentity.cs b/src/Communication/EmailServicedata.Autorest/generated/cmdlets/GetAzEmailServicedataEmailSendResult_GetViaIdentity.cs index 50020ea72ffd..94714e18ff0a 100644 --- a/src/Communication/EmailServicedata.Autorest/generated/cmdlets/GetAzEmailServicedataEmailSendResult_GetViaIdentity.cs +++ b/src/Communication/EmailServicedata.Autorest/generated/cmdlets/GetAzEmailServicedataEmailSendResult_GetViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailSendResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Description(@"Gets the status of the email send operation.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.HttpPath(Path = "/emails/operations/{operationId}", ApiVersion = "2023-03-31")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.HttpPath(Path = "/emails/operations/{operationId}", ApiVersion = "2024-07-01-preview")] public partial class GetAzEmailServicedataEmailSendResult_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IContext diff --git a/src/Communication/EmailServicedata.Autorest/generated/cmdlets/SendAzEmailServicedataEmail_Send.cs b/src/Communication/EmailServicedata.Autorest/generated/cmdlets/SendAzEmailServicedataEmail_Send.cs index bdf05c71eba8..ebafb68fa70b 100644 --- a/src/Communication/EmailServicedata.Autorest/generated/cmdlets/SendAzEmailServicedataEmail_Send.cs +++ b/src/Communication/EmailServicedata.Autorest/generated/cmdlets/SendAzEmailServicedataEmail_Send.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailSendResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Description(@"Queues an email message to be sent to one or more recipients")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.HttpPath(Path = "/emails:send", ApiVersion = "2023-03-31")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.HttpPath(Path = "/emails:send", ApiVersion = "2024-07-01-preview")] public partial class SendAzEmailServicedataEmail_Send : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IContext diff --git a/src/Communication/EmailServicedata.Autorest/generated/cmdlets/SendAzEmailServicedataEmail_SendExpanded.cs b/src/Communication/EmailServicedata.Autorest/generated/cmdlets/SendAzEmailServicedataEmail_SendExpanded.cs index 700bd3d22e60..9aac725dca1c 100644 --- a/src/Communication/EmailServicedata.Autorest/generated/cmdlets/SendAzEmailServicedataEmail_SendExpanded.cs +++ b/src/Communication/EmailServicedata.Autorest/generated/cmdlets/SendAzEmailServicedataEmail_SendExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailSendResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Description(@"Queues an email message to be sent to one or more recipients")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.HttpPath(Path = "/emails:send", ApiVersion = "2023-03-31")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.HttpPath(Path = "/emails:send", ApiVersion = "2024-07-01-preview")] public partial class SendAzEmailServicedataEmail_SendExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IContext @@ -58,15 +58,16 @@ public partial class SendAzEmailServicedataEmail_SendExpanded : global::System.M public global::System.Management.Automation.SwitchParameter AsJob { get; set; } /// - /// List of attachments. Please note that we limit the total size of an email request (which includes attachments) to 10MB. + /// List of attachments. Please note that we limit the total size of an email request (which includes both regular and inline + /// attachments) to 10MB. /// [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of attachments. Please note that we limit the total size of an email request (which includes attachments) to 10MB.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "List of attachments. Please note that we limit the total size of an email request (which includes both regular and inline attachments) to 10MB.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.Info( Required = false, ReadOnly = false, - Description = @"List of attachments. Please note that we limit the total size of an email request (which includes attachments) to 10MB.", + Description = @"List of attachments. Please note that we limit the total size of an email request (which includes both regular and inline attachments) to 10MB.", SerializedName = @"attachments", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailAttachment) })] public Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailAttachment[] Attachment { get => _messageBody.Attachment?.ToArray() ?? null /* fixedArrayOf */; set => _messageBody.Attachment = (value != null ? new System.Collections.Generic.List(value) : null); } diff --git a/src/Communication/EmailServicedata.Autorest/generated/cmdlets/SendAzEmailServicedataEmail_SendViaJsonFilePath.cs b/src/Communication/EmailServicedata.Autorest/generated/cmdlets/SendAzEmailServicedataEmail_SendViaJsonFilePath.cs index fc99aa24c1e3..ac07bf7030dd 100644 --- a/src/Communication/EmailServicedata.Autorest/generated/cmdlets/SendAzEmailServicedataEmail_SendViaJsonFilePath.cs +++ b/src/Communication/EmailServicedata.Autorest/generated/cmdlets/SendAzEmailServicedataEmail_SendViaJsonFilePath.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailSendResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Description(@"Queues an email message to be sent to one or more recipients")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.HttpPath(Path = "/emails:send", ApiVersion = "2023-03-31")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.HttpPath(Path = "/emails:send", ApiVersion = "2024-07-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.NotSuggestDefaultParameterSet] public partial class SendAzEmailServicedataEmail_SendViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IEventListener, diff --git a/src/Communication/EmailServicedata.Autorest/generated/cmdlets/SendAzEmailServicedataEmail_SendViaJsonString.cs b/src/Communication/EmailServicedata.Autorest/generated/cmdlets/SendAzEmailServicedataEmail_SendViaJsonString.cs index 60380e2fa84c..f74c4907a7ce 100644 --- a/src/Communication/EmailServicedata.Autorest/generated/cmdlets/SendAzEmailServicedataEmail_SendViaJsonString.cs +++ b/src/Communication/EmailServicedata.Autorest/generated/cmdlets/SendAzEmailServicedataEmail_SendViaJsonString.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailSendResult))] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Description(@"Queues an email message to be sent to one or more recipients")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.HttpPath(Path = "/emails:send", ApiVersion = "2023-03-31")] + [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.HttpPath(Path = "/emails:send", ApiVersion = "2024-07-01-preview")] [global::Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.NotSuggestDefaultParameterSet] public partial class SendAzEmailServicedataEmail_SendViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Runtime.IEventListener, diff --git a/src/Communication/EmailServicedata.Autorest/help/Send-AzEmailServicedataEmail.md b/src/Communication/EmailServicedata.Autorest/help/Send-AzEmailServicedataEmail.md index ebd4d8ce8768..815c4c24d37a 100644 --- a/src/Communication/EmailServicedata.Autorest/help/Send-AzEmailServicedataEmail.md +++ b/src/Communication/EmailServicedata.Autorest/help/Send-AzEmailServicedataEmail.md @@ -95,13 +95,21 @@ $emailRecipientTo = @( } ) -$fileBytes = [System.IO.File]::ReadAllBytes("") +$fileBytes1 = [System.IO.File]::ReadAllBytes("") + +$fileBytes2 = [System.IO.File]::ReadAllBytes("") $emailAttachment = @( @{ - ContentInBase64 = $fileBytes + ContentInBase64 = $fileBytes1 ContentType = "" Name = "" + }, + @{ + ContentInBase64 = $fileBytes2 + ContentType = "image/png" + Name = "" + contentId = "" } ) @@ -137,7 +145,7 @@ $message = @{ RecipientTo = @($emailRecipientTo) # Array of email address objects SenderAddress = 'info@contoso.com' Attachment = @($emailAttachment) # Array of attachments - ContentHtml = "Enter title

This is the first email from ACS - HTML

" + ContentHtml = "Enter titleCompany Logo

This is the first email from ACS - HTML

" ContentPlainText = "This is the first email from ACS - HTML" Header = $headers # Importance = high/medium/low or X-Priority = 2/3/4 RecipientBcc = @($emailRecipientBcc) # Array of email address objects @@ -182,7 +190,7 @@ Accept wildcard characters: False ### -Attachment List of attachments. -Please note that we limit the total size of an email request (which includes attachments) to 10MB. +Please note that we limit the total size of an email request (which includes both regular and inline attachments) to 10MB. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.EmailServicedata.Models.IEmailAttachment[] diff --git a/src/Communication/EmailServicedata.Autorest/test/Get-AzEmailServicedataEmailSendResult.Recording.json b/src/Communication/EmailServicedata.Autorest/test/Get-AzEmailServicedataEmailSendResult.Recording.json index 6ac3d7935e18..b8d4b3de1515 100644 --- a/src/Communication/EmailServicedata.Autorest/test/Get-AzEmailServicedataEmailSendResult.Recording.json +++ b/src/Communication/EmailServicedata.Autorest/test/Get-AzEmailServicedataEmailSendResult.Recording.json @@ -1,51 +1,51 @@ { - "Get-AzEmailServicedataEmailSendResult+[NoContext]+Get+$POST+https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails:send?api-version=2023-03-31+1": { + "Get-AzEmailServicedataEmailSendResult+[NoContext]+Get+$POST+https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails:send?api-version=2024-07-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails:send?api-version=2023-03-31", - "Content": "{\r\n \"content\": {\r\n \"subject\": \"Test Email\",\r\n \"plainText\": \"This is the first email from ACS - HTML\"\r\n },\r\n \"recipients\": {\r\n \"to\": [\r\n {\r\n \"address\": \"contosouser@contoso.com\",\r\n \"displayName\": \"ContosoUser\"\r\n }\r\n ]\r\n },\r\n \"senderAddress\": \"DoNotReply@088a9b12-bb8e-41eb-ac0b-1b8de90c33a7.azurecomm.net\"\r\n}", + "RequestUri": "https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails:send?api-version=2024-07-01-preview", + "Content": "{\r\n \"content\": {\r\n \"subject\": \"Test Email\",\r\n \"plainText\": \"This is the first email from ACS - HTML\"\r\n },\r\n \"recipients\": {\r\n \"to\": [\r\n {\r\n \"address\": \"contosouser@contoso.com\",\r\n \"displayName\": \"ContosoUser\"\r\n }\r\n ]\r\n },\r\n \"senderAddress\": \"DoNotReply@3e45443c-baa6-46e9-848e-e671458a3e6c.azurecomm.net\"\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "359" ] + "Content-Length": [ "348" ] } }, "Response": { "StatusCode": 202, "Headers": { "Retry-After": [ "3" ], - "mise-correlation-id": [ "d26f87d1-f981-46c4-a163-5ee747f65949" ], - "Operation-Location": [ "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/d89c2c5a-2e27-485b-a7f1-a95ef0ac15ea?api-version=2023-03-31" ], - "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31" ], + "mise-correlation-id": [ "e0835065-8b24-4af1-bd8e-71e22318ec67" ], + "Operation-Location": [ "https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/e97d8927-703d-4f43-a513-3fc9da4a1528?api-version=2024-07-01-preview" ], + "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31, 2024-07-01-preview" ], "X-Cache": [ "CONFIG_NOCACHE" ], "Strict-Transport-Security": [ "max-age=31536000;includeSubDomains" ], - "X-Azure-Ref": [ "06lenZgAAAADklb2sC+wZQZ1lUQR9D9leSEtCRURHRTA3MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], - "Date": [ "Mon, 29 Jul 2024 08:50:50 GMT" ] + "X-Azure-Ref": [ "0g1P2ZgAAAABUOpZz2Lz1SqiBugegAIOaSEtCRURHRTA3MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], + "Date": [ "Fri, 27 Sep 2024 06:41:07 GMT" ] }, "ContentHeaders": { "Content-Length": [ "77" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"d89c2c5a-2e27-485b-a7f1-a95ef0ac15ea\",\"status\":\"Running\",\"error\":null}", + "Content": "{\"id\":\"e97d8927-703d-4f43-a513-3fc9da4a1528\",\"status\":\"Running\",\"error\":null}", "isContentBase64": false } }, - "Get-AzEmailServicedataEmailSendResult+[NoContext]+Get+$GET+https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/d89c2c5a-2e27-485b-a7f1-a95ef0ac15ea?api-version=2023-03-31+2": { + "Get-AzEmailServicedataEmailSendResult+[NoContext]+Get+$GET+https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/e97d8927-703d-4f43-a513-3fc9da4a1528?api-version=2024-07-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/d89c2c5a-2e27-485b-a7f1-a95ef0ac15ea?api-version=2023-03-31", + "RequestUri": "https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/e97d8927-703d-4f43-a513-3fc9da4a1528?api-version=2024-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "18" ], - "x-ms-client-request-id": [ "00993be3-7d33-4cfc-8ea4-ec5a23af6c9e" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "6ee21a8d-fd90-42ba-984c-a81c33667932" ], "CommandName": [ "Send-AzEmailServicedataEmail" ], "FullCommandName": [ "Send-AzEmailServicedataEmail_Send" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.4", "Az.EmailServicedata/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.5", "Az.EmailServicedata/0.1.0" ] }, "ContentHeaders": { } @@ -53,35 +53,35 @@ "Response": { "StatusCode": 200, "Headers": { - "mise-correlation-id": [ "98e54d25-de60-4ccd-a9ec-08ccaf27ccaa" ], - "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31" ], + "mise-correlation-id": [ "907ddcff-9cfb-465a-b5e6-c53d43af5e8f" ], + "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31, 2024-07-01-preview" ], "X-Cache": [ "CONFIG_NOCACHE" ], "Strict-Transport-Security": [ "max-age=31536000;includeSubDomains" ], - "X-Azure-Ref": [ "07lenZgAAAAAwqc7L/AyzRqCrrGNEXR2ASEtCRURHRTA3MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], - "Date": [ "Mon, 29 Jul 2024 08:50:54 GMT" ] + "X-Azure-Ref": [ "0hlP2ZgAAAACHyYEjIMaJQ6OY5HSIunzXSEtCRURHRTA3MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], + "Date": [ "Fri, 27 Sep 2024 06:41:11 GMT" ] }, "ContentHeaders": { "Content-Length": [ "79" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"d89c2c5a-2e27-485b-a7f1-a95ef0ac15ea\",\"status\":\"Succeeded\",\"error\":null}", + "Content": "{\"id\":\"e97d8927-703d-4f43-a513-3fc9da4a1528\",\"status\":\"Succeeded\",\"error\":null}", "isContentBase64": false } }, - "Get-AzEmailServicedataEmailSendResult+[NoContext]+Get+$GET+https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/d89c2c5a-2e27-485b-a7f1-a95ef0ac15ea?api-version=2023-03-31+3": { + "Get-AzEmailServicedataEmailSendResult+[NoContext]+Get+$GET+https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/e97d8927-703d-4f43-a513-3fc9da4a1528?api-version=2024-07-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/d89c2c5a-2e27-485b-a7f1-a95ef0ac15ea?api-version=2023-03-31", + "RequestUri": "https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/e97d8927-703d-4f43-a513-3fc9da4a1528?api-version=2024-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "19" ], - "x-ms-client-request-id": [ "00993be3-7d33-4cfc-8ea4-ec5a23af6c9e" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "6ee21a8d-fd90-42ba-984c-a81c33667932" ], "CommandName": [ "Send-AzEmailServicedataEmail" ], "FullCommandName": [ "Send-AzEmailServicedataEmail_Send" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.4", "Az.EmailServicedata/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.5", "Az.EmailServicedata/0.1.0" ] }, "ContentHeaders": { } @@ -89,34 +89,34 @@ "Response": { "StatusCode": 200, "Headers": { - "mise-correlation-id": [ "242ca611-fe79-4df3-a428-722da81373d3" ], - "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31" ], + "mise-correlation-id": [ "f950f870-220e-4b87-9991-b8711fe7b71a" ], + "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31, 2024-07-01-preview" ], "X-Cache": [ "CONFIG_NOCACHE" ], "Strict-Transport-Security": [ "max-age=31536000;includeSubDomains" ], - "X-Azure-Ref": [ "071enZgAAAABLNrFWID8+RpUpZLdkLVyoSEtCRURHRTA3MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], - "Date": [ "Mon, 29 Jul 2024 08:50:54 GMT" ] + "X-Azure-Ref": [ "0h1P2ZgAAAADdXByXKPf5S6EFrXGNSOexSEtCRURHRTA3MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], + "Date": [ "Fri, 27 Sep 2024 06:41:11 GMT" ] }, "ContentHeaders": { "Content-Length": [ "79" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"d89c2c5a-2e27-485b-a7f1-a95ef0ac15ea\",\"status\":\"Succeeded\",\"error\":null}", + "Content": "{\"id\":\"e97d8927-703d-4f43-a513-3fc9da4a1528\",\"status\":\"Succeeded\",\"error\":null}", "isContentBase64": false } }, - "Get-AzEmailServicedataEmailSendResult+[NoContext]+Get+$GET+https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/d89c2c5a-2e27-485b-a7f1-a95ef0ac15ea?api-version=2023-03-31+4": { + "Get-AzEmailServicedataEmailSendResult+[NoContext]+Get+$GET+https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/e97d8927-703d-4f43-a513-3fc9da4a1528?api-version=2024-07-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/d89c2c5a-2e27-485b-a7f1-a95ef0ac15ea?api-version=2023-03-31", + "RequestUri": "https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/e97d8927-703d-4f43-a513-3fc9da4a1528?api-version=2024-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "20" ], - "x-ms-client-request-id": [ "867530c8-dfd1-4028-965c-f0ef3a69e148" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "b20d8d03-d5f6-4136-9287-7ea83ad9b4e7" ], "CommandName": [ "Get-AzEmailServicedataEmailSendResult" ], "FullCommandName": [ "Get-AzEmailServicedataEmailSendResult_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.4", "Az.EmailServicedata/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.5", "Az.EmailServicedata/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -125,68 +125,68 @@ "Response": { "StatusCode": 200, "Headers": { - "mise-correlation-id": [ "e75c29a2-882d-4580-9d77-f84efe2dbf45" ], - "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31" ], + "mise-correlation-id": [ "ebc12ba1-c8ab-4ead-942b-c8266a9dbf60" ], + "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31, 2024-07-01-preview" ], "X-Cache": [ "CONFIG_NOCACHE" ], "Strict-Transport-Security": [ "max-age=31536000;includeSubDomains" ], - "X-Azure-Ref": [ "071enZgAAAAAALG3Mns8hSIG26wfddeOXSEtCRURHRTA3MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], - "Date": [ "Mon, 29 Jul 2024 08:50:55 GMT" ] + "X-Azure-Ref": [ "0iFP2ZgAAAACEHB4aN7iJR4s9QIGtqnh4SEtCRURHRTA3MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], + "Date": [ "Fri, 27 Sep 2024 06:41:12 GMT" ] }, "ContentHeaders": { "Content-Length": [ "79" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"d89c2c5a-2e27-485b-a7f1-a95ef0ac15ea\",\"status\":\"Succeeded\",\"error\":null}", + "Content": "{\"id\":\"e97d8927-703d-4f43-a513-3fc9da4a1528\",\"status\":\"Succeeded\",\"error\":null}", "isContentBase64": false } }, - "Get-AzEmailServicedataEmailSendResult+[NoContext]+GetViaIdentity+$POST+https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails:send?api-version=2023-03-31+1": { + "Get-AzEmailServicedataEmailSendResult+[NoContext]+GetViaIdentity+$POST+https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails:send?api-version=2024-07-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails:send?api-version=2023-03-31", - "Content": "{\r\n \"content\": {\r\n \"subject\": \"Test Email\",\r\n \"plainText\": \"This is the first email from ACS - HTML\"\r\n },\r\n \"recipients\": {\r\n \"to\": [\r\n {\r\n \"address\": \"contosouser@contoso.com\",\r\n \"displayName\": \"ContosoUser\"\r\n }\r\n ]\r\n },\r\n \"senderAddress\": \"DoNotReply@088a9b12-bb8e-41eb-ac0b-1b8de90c33a7.azurecomm.net\"\r\n}", + "RequestUri": "https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails:send?api-version=2024-07-01-preview", + "Content": "{\r\n \"content\": {\r\n \"subject\": \"Test Email\",\r\n \"plainText\": \"This is the first email from ACS - HTML\"\r\n },\r\n \"recipients\": {\r\n \"to\": [\r\n {\r\n \"address\": \"contosouser@contoso.com\",\r\n \"displayName\": \"ContosoUser\"\r\n }\r\n ]\r\n },\r\n \"senderAddress\": \"DoNotReply@3e45443c-baa6-46e9-848e-e671458a3e6c.azurecomm.net\"\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "359" ] + "Content-Length": [ "348" ] } }, "Response": { "StatusCode": 202, "Headers": { "Retry-After": [ "3" ], - "mise-correlation-id": [ "adc48c59-ecb8-4745-8fc3-e13554978ac3" ], - "Operation-Location": [ "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/824b8d73-d1b1-4798-af77-19c7ff91b753?api-version=2023-03-31" ], - "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31" ], + "mise-correlation-id": [ "96c8dfc5-6a0b-49ba-8439-28807db56947" ], + "Operation-Location": [ "https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/d6db3f64-98e3-440e-ab70-3153a6e4c167?api-version=2024-07-01-preview" ], + "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31, 2024-07-01-preview" ], "X-Cache": [ "CONFIG_NOCACHE" ], "Strict-Transport-Security": [ "max-age=31536000;includeSubDomains" ], - "X-Azure-Ref": [ "08FenZgAAAAChZnydj7GGRa7sDWNkIPBJSEtCRURHRTA3MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], - "Date": [ "Mon, 29 Jul 2024 08:50:55 GMT" ] + "X-Azure-Ref": [ "0iVP2ZgAAAAD6S32W4QoXQpq0TWxP36/VSEtCRURHRTA3MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], + "Date": [ "Fri, 27 Sep 2024 06:41:13 GMT" ] }, "ContentHeaders": { "Content-Length": [ "77" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"824b8d73-d1b1-4798-af77-19c7ff91b753\",\"status\":\"Running\",\"error\":null}", + "Content": "{\"id\":\"d6db3f64-98e3-440e-ab70-3153a6e4c167\",\"status\":\"Running\",\"error\":null}", "isContentBase64": false } }, - "Get-AzEmailServicedataEmailSendResult+[NoContext]+GetViaIdentity+$GET+https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/824b8d73-d1b1-4798-af77-19c7ff91b753?api-version=2023-03-31+2": { + "Get-AzEmailServicedataEmailSendResult+[NoContext]+GetViaIdentity+$GET+https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/d6db3f64-98e3-440e-ab70-3153a6e4c167?api-version=2024-07-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/824b8d73-d1b1-4798-af77-19c7ff91b753?api-version=2023-03-31", + "RequestUri": "https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/d6db3f64-98e3-440e-ab70-3153a6e4c167?api-version=2024-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "22" ], - "x-ms-client-request-id": [ "8f3edb65-f403-4c3f-9070-532d8b2ba326" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "674692c9-9518-4346-a01c-c021fb0f5859" ], "CommandName": [ "Send-AzEmailServicedataEmail" ], "FullCommandName": [ "Send-AzEmailServicedataEmail_Send" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.4", "Az.EmailServicedata/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.5", "Az.EmailServicedata/0.1.0" ] }, "ContentHeaders": { } @@ -194,35 +194,35 @@ "Response": { "StatusCode": 200, "Headers": { - "mise-correlation-id": [ "9d7bb59f-5eb7-480c-8763-23638a7bcb58" ], - "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31" ], + "mise-correlation-id": [ "5248adae-50d4-4486-ba92-71e305a3b5cb" ], + "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31, 2024-07-01-preview" ], "X-Cache": [ "CONFIG_NOCACHE" ], "Strict-Transport-Security": [ "max-age=31536000;includeSubDomains" ], - "X-Azure-Ref": [ "081enZgAAAADPGMGkzoiXS40q5s+3Tl6RSEtCRURHRTA3MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], - "Date": [ "Mon, 29 Jul 2024 08:50:59 GMT" ] + "X-Azure-Ref": [ "0jFP2ZgAAAACZL0tfGiJvSa1fklnWhShhSEtCRURHRTA3MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], + "Date": [ "Fri, 27 Sep 2024 06:41:16 GMT" ] }, "ContentHeaders": { "Content-Length": [ "79" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"824b8d73-d1b1-4798-af77-19c7ff91b753\",\"status\":\"Succeeded\",\"error\":null}", + "Content": "{\"id\":\"d6db3f64-98e3-440e-ab70-3153a6e4c167\",\"status\":\"Succeeded\",\"error\":null}", "isContentBase64": false } }, - "Get-AzEmailServicedataEmailSendResult+[NoContext]+GetViaIdentity+$GET+https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/824b8d73-d1b1-4798-af77-19c7ff91b753?api-version=2023-03-31+3": { + "Get-AzEmailServicedataEmailSendResult+[NoContext]+GetViaIdentity+$GET+https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/d6db3f64-98e3-440e-ab70-3153a6e4c167?api-version=2024-07-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/824b8d73-d1b1-4798-af77-19c7ff91b753?api-version=2023-03-31", + "RequestUri": "https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/d6db3f64-98e3-440e-ab70-3153a6e4c167?api-version=2024-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "23" ], - "x-ms-client-request-id": [ "8f3edb65-f403-4c3f-9070-532d8b2ba326" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "674692c9-9518-4346-a01c-c021fb0f5859" ], "CommandName": [ "Send-AzEmailServicedataEmail" ], "FullCommandName": [ "Send-AzEmailServicedataEmail_Send" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.4", "Az.EmailServicedata/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.5", "Az.EmailServicedata/0.1.0" ] }, "ContentHeaders": { } @@ -230,34 +230,34 @@ "Response": { "StatusCode": 200, "Headers": { - "mise-correlation-id": [ "c3a14f20-d3ed-456b-a0ae-b600574232d6" ], - "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31" ], + "mise-correlation-id": [ "fafeade4-90f3-497b-8177-c2d80d8562f1" ], + "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31, 2024-07-01-preview" ], "X-Cache": [ "CONFIG_NOCACHE" ], "Strict-Transport-Security": [ "max-age=31536000;includeSubDomains" ], - "X-Azure-Ref": [ "09FenZgAAAAAvyY4q0NE7SLgjpd7uF3OJSEtCRURHRTA3MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], - "Date": [ "Mon, 29 Jul 2024 08:50:59 GMT" ] + "X-Azure-Ref": [ "0jFP2ZgAAAAAyGBRgR4j+Q5r2zMezA7avSEtCRURHRTA3MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], + "Date": [ "Fri, 27 Sep 2024 06:41:17 GMT" ] }, "ContentHeaders": { "Content-Length": [ "79" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"824b8d73-d1b1-4798-af77-19c7ff91b753\",\"status\":\"Succeeded\",\"error\":null}", + "Content": "{\"id\":\"d6db3f64-98e3-440e-ab70-3153a6e4c167\",\"status\":\"Succeeded\",\"error\":null}", "isContentBase64": false } }, - "Get-AzEmailServicedataEmailSendResult+[NoContext]+GetViaIdentity+$GET+https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/824b8d73-d1b1-4798-af77-19c7ff91b753?api-version=2023-03-31+4": { + "Get-AzEmailServicedataEmailSendResult+[NoContext]+GetViaIdentity+$GET+https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/d6db3f64-98e3-440e-ab70-3153a6e4c167?api-version=2024-07-01-preview+4": { "Request": { "Method": "GET", - "RequestUri": "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/824b8d73-d1b1-4798-af77-19c7ff91b753?api-version=2023-03-31", + "RequestUri": "https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/d6db3f64-98e3-440e-ab70-3153a6e4c167?api-version=2024-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "24" ], - "x-ms-client-request-id": [ "d1603631-c30e-4f47-bf9e-ebe9b96605ba" ], + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "a56a727f-850b-48b4-99f5-f6182986a918" ], "CommandName": [ "Get-AzEmailServicedataEmailSendResult" ], "FullCommandName": [ "Get-AzEmailServicedataEmailSendResult_GetViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.4", "Az.EmailServicedata/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.5", "Az.EmailServicedata/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -266,18 +266,18 @@ "Response": { "StatusCode": 200, "Headers": { - "mise-correlation-id": [ "a99cdaff-6b06-4968-be43-8151f7770bac" ], - "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31" ], + "mise-correlation-id": [ "e873c51c-40b9-481d-9900-11b48443ad68" ], + "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31, 2024-07-01-preview" ], "X-Cache": [ "CONFIG_NOCACHE" ], "Strict-Transport-Security": [ "max-age=31536000;includeSubDomains" ], - "X-Azure-Ref": [ "09FenZgAAAADIQdQu6sq0T6gNdhi38k4cSEtCRURHRTA3MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], - "Date": [ "Mon, 29 Jul 2024 08:51:01 GMT" ] + "X-Azure-Ref": [ "0jVP2ZgAAAABbH8q0OiDBQ4Et5b4CKiwtSEtCRURHRTA3MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], + "Date": [ "Fri, 27 Sep 2024 06:41:18 GMT" ] }, "ContentHeaders": { "Content-Length": [ "79" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"824b8d73-d1b1-4798-af77-19c7ff91b753\",\"status\":\"Succeeded\",\"error\":null}", + "Content": "{\"id\":\"d6db3f64-98e3-440e-ab70-3153a6e4c167\",\"status\":\"Succeeded\",\"error\":null}", "isContentBase64": false } } diff --git a/src/Communication/EmailServicedata.Autorest/test/Send-AzEmailServicedataEmail.Recording.json b/src/Communication/EmailServicedata.Autorest/test/Send-AzEmailServicedataEmail.Recording.json index 7b3ec31258c5..dae18d1e9e3f 100644 --- a/src/Communication/EmailServicedata.Autorest/test/Send-AzEmailServicedataEmail.Recording.json +++ b/src/Communication/EmailServicedata.Autorest/test/Send-AzEmailServicedataEmail.Recording.json @@ -1,51 +1,51 @@ { - "Send-AzEmailServicedataEmail+[NoContext]+Send+$POST+https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails:send?api-version=2023-03-31+1": { + "Send-AzEmailServicedataEmail+[NoContext]+Send+$POST+https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails:send?api-version=2024-07-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails:send?api-version=2023-03-31", - "Content": "{\r\n \"content\": {\r\n \"subject\": \"Test Email\",\r\n \"plainText\": \"This is the first email from ACS - HTML\"\r\n },\r\n \"recipients\": {\r\n \"to\": [\r\n {\r\n \"address\": \"contosouser@contoso.com\",\r\n \"displayName\": \"ContosoUser\"\r\n }\r\n ]\r\n },\r\n \"senderAddress\": \"DoNotReply@088a9b12-bb8e-41eb-ac0b-1b8de90c33a7.azurecomm.net\"\r\n}", + "RequestUri": "https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails:send?api-version=2024-07-01-preview", + "Content": "{\r\n \"content\": {\r\n \"subject\": \"Test Email\",\r\n \"plainText\": \"This is the first email from ACS - HTML\",\r\n \"html\": \"\\u003chtml\\u003e\\u003chead\\u003e\\u003ctitle\\u003eExciting offer!\\u003c/title\\u003e\\u003c/head\\u003e\\u003cbody\\u003e\\u003cimg src=\\u0027cid:inline-attachment\\u0027 alt=\\u0027kitten\\u0027/\\u003e\\u003ch1\\u003eThis exciting offer was created especially for you, our most loyal customer.\\u003c/h1\\u003e\\u003c/body\\u003e\\u003c/html\\u003e\"\r\n },\r\n \"recipients\": {\r\n \"to\": [\r\n {\r\n \"address\": \"contosouser@contoso.com\",\r\n \"displayName\": \"ContosoUser\"\r\n }\r\n ]\r\n },\r\n \"senderAddress\": \"DoNotReply@3e45443c-baa6-46e9-848e-e671458a3e6c.azurecomm.net\"\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "359" ] + "Content-Length": [ "696" ] } }, "Response": { "StatusCode": 202, "Headers": { "Retry-After": [ "3" ], - "mise-correlation-id": [ "301c08bc-95f7-4c46-97bc-3332ade50bf5" ], - "Operation-Location": [ "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/7afbaa08-7a70-4b30-af14-a32a37500bcd?api-version=2023-03-31" ], - "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31" ], + "mise-correlation-id": [ "accb35ae-92ef-4906-a291-4795293e9ef5" ], + "Operation-Location": [ "https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/1960f576-6d6f-4363-916d-6bec73650eb6?api-version=2024-07-01-preview" ], + "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31, 2024-07-01-preview" ], "X-Cache": [ "CONFIG_NOCACHE" ], "Strict-Transport-Security": [ "max-age=31536000;includeSubDomains" ], - "X-Azure-Ref": [ "091enZgAAAADUEKUwuF8rT7cu9kafao/rSEtCRURHRTA3MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], - "Date": [ "Mon, 29 Jul 2024 08:51:03 GMT" ] + "X-Azure-Ref": [ "0j1P2ZgAAAADB/Ime9bJyQIgRYWN0/NoxSEtCRURHRTA3MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], + "Date": [ "Fri, 27 Sep 2024 06:41:19 GMT" ] }, "ContentHeaders": { "Content-Length": [ "77" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"7afbaa08-7a70-4b30-af14-a32a37500bcd\",\"status\":\"Running\",\"error\":null}", + "Content": "{\"id\":\"1960f576-6d6f-4363-916d-6bec73650eb6\",\"status\":\"Running\",\"error\":null}", "isContentBase64": false } }, - "Send-AzEmailServicedataEmail+[NoContext]+Send+$GET+https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/7afbaa08-7a70-4b30-af14-a32a37500bcd?api-version=2023-03-31+2": { + "Send-AzEmailServicedataEmail+[NoContext]+Send+$GET+https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/1960f576-6d6f-4363-916d-6bec73650eb6?api-version=2024-07-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/7afbaa08-7a70-4b30-af14-a32a37500bcd?api-version=2023-03-31", + "RequestUri": "https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/1960f576-6d6f-4363-916d-6bec73650eb6?api-version=2024-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "26" ], - "x-ms-client-request-id": [ "7d196878-d003-4195-bda1-befd161ff79d" ], + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "97ef89c7-10f1-4574-9f39-77137c1b665d" ], "CommandName": [ "Send-AzEmailServicedataEmail" ], "FullCommandName": [ "Send-AzEmailServicedataEmail_Send" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.4", "Az.EmailServicedata/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.5", "Az.EmailServicedata/0.1.0" ] }, "ContentHeaders": { } @@ -53,35 +53,35 @@ "Response": { "StatusCode": 200, "Headers": { - "mise-correlation-id": [ "3eb4add1-d7bc-440a-a0e1-825dccd4e24b" ], - "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31" ], + "mise-correlation-id": [ "8c576e73-a9fc-4ad0-b193-e2187615706f" ], + "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31, 2024-07-01-preview" ], "X-Cache": [ "CONFIG_NOCACHE" ], "Strict-Transport-Security": [ "max-age=31536000;includeSubDomains" ], - "X-Azure-Ref": [ "0+1enZgAAAABvoCCwsiWaRIDdHwzhwzOaSEtCRURHRTA3MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], - "Date": [ "Mon, 29 Jul 2024 08:51:06 GMT" ] + "X-Azure-Ref": [ "0klP2ZgAAAAA7+Z9F1N2LSrxf76SQgLE1SEtCRURHRTA3MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], + "Date": [ "Fri, 27 Sep 2024 06:41:23 GMT" ] }, "ContentHeaders": { "Content-Length": [ "79" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"7afbaa08-7a70-4b30-af14-a32a37500bcd\",\"status\":\"Succeeded\",\"error\":null}", + "Content": "{\"id\":\"1960f576-6d6f-4363-916d-6bec73650eb6\",\"status\":\"Succeeded\",\"error\":null}", "isContentBase64": false } }, - "Send-AzEmailServicedataEmail+[NoContext]+Send+$GET+https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/7afbaa08-7a70-4b30-af14-a32a37500bcd?api-version=2023-03-31+3": { + "Send-AzEmailServicedataEmail+[NoContext]+Send+$GET+https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/1960f576-6d6f-4363-916d-6bec73650eb6?api-version=2024-07-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/7afbaa08-7a70-4b30-af14-a32a37500bcd?api-version=2023-03-31", + "RequestUri": "https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/1960f576-6d6f-4363-916d-6bec73650eb6?api-version=2024-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "27" ], - "x-ms-client-request-id": [ "7d196878-d003-4195-bda1-befd161ff79d" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "97ef89c7-10f1-4574-9f39-77137c1b665d" ], "CommandName": [ "Send-AzEmailServicedataEmail" ], "FullCommandName": [ "Send-AzEmailServicedataEmail_Send" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.4", "Az.EmailServicedata/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.5", "Az.EmailServicedata/0.1.0" ] }, "ContentHeaders": { } @@ -89,68 +89,68 @@ "Response": { "StatusCode": 200, "Headers": { - "mise-correlation-id": [ "c58db23e-7289-47c3-be10-1577a4b183fe" ], - "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31" ], + "mise-correlation-id": [ "44cbf5a1-481d-4d34-9b93-243b48d2bef0" ], + "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31, 2024-07-01-preview" ], "X-Cache": [ "CONFIG_NOCACHE" ], "Strict-Transport-Security": [ "max-age=31536000;includeSubDomains" ], - "X-Azure-Ref": [ "0+1enZgAAAACFz6WQxq5jQYFsisHkgcQSSEtCRURHRTA3MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], - "Date": [ "Mon, 29 Jul 2024 08:51:07 GMT" ] + "X-Azure-Ref": [ "0k1P2ZgAAAADm2rl2jLenQb3mtk8s95aeSEtCRURHRTA3MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], + "Date": [ "Fri, 27 Sep 2024 06:41:23 GMT" ] }, "ContentHeaders": { "Content-Length": [ "79" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"7afbaa08-7a70-4b30-af14-a32a37500bcd\",\"status\":\"Succeeded\",\"error\":null}", + "Content": "{\"id\":\"1960f576-6d6f-4363-916d-6bec73650eb6\",\"status\":\"Succeeded\",\"error\":null}", "isContentBase64": false } }, - "Send-AzEmailServicedataEmail+[NoContext]+SendExpanded+$POST+https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails:send?api-version=2023-03-31+1": { + "Send-AzEmailServicedataEmail+[NoContext]+SendExpanded+$POST+https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails:send?api-version=2024-07-01-preview+1": { "Request": { "Method": "POST", - "RequestUri": "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails:send?api-version=2023-03-31", - "Content": "{\r\n \"content\": {\r\n \"subject\": \"Test Email\",\r\n \"plainText\": \"This is the first email from ACS - HTML\"\r\n },\r\n \"recipients\": {\r\n \"to\": [\r\n {\r\n \"address\": \"contosouser@contoso.com\",\r\n \"displayName\": \"ContosoUser\"\r\n }\r\n ]\r\n },\r\n \"senderAddress\": \"DoNotReply@088a9b12-bb8e-41eb-ac0b-1b8de90c33a7.azurecomm.net\"\r\n}", + "RequestUri": "https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails:send?api-version=2024-07-01-preview", + "Content": "{\r\n \"content\": {\r\n \"subject\": \"Test Email\",\r\n \"plainText\": \"This is the first email from ACS - HTML\"\r\n },\r\n \"recipients\": {\r\n \"to\": [\r\n {\r\n \"address\": \"contosouser@contoso.com\",\r\n \"displayName\": \"ContosoUser\"\r\n }\r\n ]\r\n },\r\n \"senderAddress\": \"DoNotReply@3e45443c-baa6-46e9-848e-e671458a3e6c.azurecomm.net\"\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "359" ] + "Content-Length": [ "348" ] } }, "Response": { "StatusCode": 202, "Headers": { "Retry-After": [ "3" ], - "mise-correlation-id": [ "097f3911-920f-4c23-8113-85e997a935bb" ], - "Operation-Location": [ "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/768dbcaf-9f7f-4918-b4a5-19dd837f4e7c?api-version=2023-03-31" ], - "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31" ], + "mise-correlation-id": [ "cb9169a4-ee99-4cb8-9cd8-88d5a4dbe6d9" ], + "Operation-Location": [ "https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/ef89c3d0-b95d-416c-91c9-df7d15c29bc9?api-version=2024-07-01-preview" ], + "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31, 2024-07-01-preview" ], "X-Cache": [ "CONFIG_NOCACHE" ], "Strict-Transport-Security": [ "max-age=31536000;includeSubDomains" ], - "X-Azure-Ref": [ "0/FenZgAAAABLuqUTykXWTLCW9Pb/YqCBSEtCRURHRTA3MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], - "Date": [ "Mon, 29 Jul 2024 08:51:08 GMT" ] + "X-Azure-Ref": [ "0lFP2ZgAAAAD3CtkCHwnPTYTNb6qxQC+mSEtCRURHRTA3MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], + "Date": [ "Fri, 27 Sep 2024 06:41:24 GMT" ] }, "ContentHeaders": { "Content-Length": [ "77" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"768dbcaf-9f7f-4918-b4a5-19dd837f4e7c\",\"status\":\"Running\",\"error\":null}", + "Content": "{\"id\":\"ef89c3d0-b95d-416c-91c9-df7d15c29bc9\",\"status\":\"Running\",\"error\":null}", "isContentBase64": false } }, - "Send-AzEmailServicedataEmail+[NoContext]+SendExpanded+$GET+https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/768dbcaf-9f7f-4918-b4a5-19dd837f4e7c?api-version=2023-03-31+2": { + "Send-AzEmailServicedataEmail+[NoContext]+SendExpanded+$GET+https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/ef89c3d0-b95d-416c-91c9-df7d15c29bc9?api-version=2024-07-01-preview+2": { "Request": { "Method": "GET", - "RequestUri": "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/768dbcaf-9f7f-4918-b4a5-19dd837f4e7c?api-version=2023-03-31", + "RequestUri": "https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/ef89c3d0-b95d-416c-91c9-df7d15c29bc9?api-version=2024-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "29" ], - "x-ms-client-request-id": [ "20f92642-fa61-49f4-b14d-8f2744711510" ], + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "68e82391-c0c2-473e-b8bd-824c2cd64cca" ], "CommandName": [ "Send-AzEmailServicedataEmail" ], "FullCommandName": [ "Send-AzEmailServicedataEmail_SendExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.4", "Az.EmailServicedata/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.5", "Az.EmailServicedata/0.1.0" ] }, "ContentHeaders": { } @@ -158,72 +158,35 @@ "Response": { "StatusCode": 200, "Headers": { - "Retry-After": [ "3" ], - "mise-correlation-id": [ "c17eac73-17c6-4f4f-820b-d6e1e57e0b9c" ], - "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31" ], + "mise-correlation-id": [ "02b68493-9207-4932-9d92-86137fb68352" ], + "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31, 2024-07-01-preview" ], "X-Cache": [ "CONFIG_NOCACHE" ], "Strict-Transport-Security": [ "max-age=31536000;includeSubDomains" ], - "X-Azure-Ref": [ "0AFinZgAAAADiA51VVMvaQJgGhhdNMcPOSEtCRURHRTA3MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], - "Date": [ "Mon, 29 Jul 2024 08:51:11 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "77" ], - "Content-Type": [ "application/json; charset=utf-8" ] - }, - "Content": "{\"id\":\"768dbcaf-9f7f-4918-b4a5-19dd837f4e7c\",\"status\":\"Running\",\"error\":null}", - "isContentBase64": false - } - }, - "Send-AzEmailServicedataEmail+[NoContext]+SendExpanded+$GET+https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/768dbcaf-9f7f-4918-b4a5-19dd837f4e7c?api-version=2023-03-31+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/768dbcaf-9f7f-4918-b4a5-19dd837f4e7c?api-version=2023-03-31", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "30" ], - "x-ms-client-request-id": [ "20f92642-fa61-49f4-b14d-8f2744711510" ], - "CommandName": [ "Send-AzEmailServicedataEmail" ], - "FullCommandName": [ "Send-AzEmailServicedataEmail_SendExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.4", "Az.EmailServicedata/0.1.0" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "mise-correlation-id": [ "b5c92ca1-ae1f-45a7-90ba-5fcc2f4583ae" ], - "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31" ], - "X-Cache": [ "CONFIG_NOCACHE" ], - "Strict-Transport-Security": [ "max-age=31536000;includeSubDomains" ], - "X-Azure-Ref": [ "0A1inZgAAAABgYBzQ+OdbR55bprndnEf/SEtCRURHRTA3MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], - "Date": [ "Mon, 29 Jul 2024 08:51:15 GMT" ] + "X-Azure-Ref": [ "0l1P2ZgAAAACjq0CIl90OSrlFxzOu3MCWSEtCRURHRTA3MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], + "Date": [ "Fri, 27 Sep 2024 06:41:27 GMT" ] }, "ContentHeaders": { "Content-Length": [ "79" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"768dbcaf-9f7f-4918-b4a5-19dd837f4e7c\",\"status\":\"Succeeded\",\"error\":null}", + "Content": "{\"id\":\"ef89c3d0-b95d-416c-91c9-df7d15c29bc9\",\"status\":\"Succeeded\",\"error\":null}", "isContentBase64": false } }, - "Send-AzEmailServicedataEmail+[NoContext]+SendExpanded+$GET+https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/768dbcaf-9f7f-4918-b4a5-19dd837f4e7c?api-version=2023-03-31+4": { + "Send-AzEmailServicedataEmail+[NoContext]+SendExpanded+$GET+https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/ef89c3d0-b95d-416c-91c9-df7d15c29bc9?api-version=2024-07-01-preview+3": { "Request": { "Method": "GET", - "RequestUri": "https://persistentcommresourcename4woepr.unitedstates.communication.azure.com/emails/operations/768dbcaf-9f7f-4918-b4a5-19dd837f4e7c?api-version=2023-03-31", + "RequestUri": "https://persistentcommresourcenamemf8he5.unitedstates.communication.azure.com/emails/operations/ef89c3d0-b95d-416c-91c9-df7d15c29bc9?api-version=2024-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "31" ], - "x-ms-client-request-id": [ "20f92642-fa61-49f4-b14d-8f2744711510" ], + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "68e82391-c0c2-473e-b8bd-824c2cd64cca" ], "CommandName": [ "Send-AzEmailServicedataEmail" ], "FullCommandName": [ "Send-AzEmailServicedataEmail_SendExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.4", "Az.EmailServicedata/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.4.5", "Az.EmailServicedata/0.1.0" ] }, "ContentHeaders": { } @@ -231,18 +194,18 @@ "Response": { "StatusCode": 200, "Headers": { - "mise-correlation-id": [ "5c1cee57-9a00-40fb-a77a-c712c2161b8d" ], - "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31" ], + "mise-correlation-id": [ "5c21b94c-1b3e-470f-8970-04d9f52f27ac" ], + "api-supported-versions": [ "2021-10-01-preview, 2023-01-15-preview, 2023-03-31, 2024-07-01-preview" ], "X-Cache": [ "CONFIG_NOCACHE" ], "Strict-Transport-Security": [ "max-age=31536000;includeSubDomains" ], - "X-Azure-Ref": [ "0BFinZgAAAADJ7pqObjtvRZLyaPDoA1hsSEtCRURHRTA3MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], - "Date": [ "Mon, 29 Jul 2024 08:51:15 GMT" ] + "X-Azure-Ref": [ "0mFP2ZgAAAABgeqL/E2VRS7pdKp4ZvDA+SEtCRURHRTA3MTIAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx" ], + "Date": [ "Fri, 27 Sep 2024 06:41:28 GMT" ] }, "ContentHeaders": { "Content-Length": [ "79" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "Content": "{\"id\":\"768dbcaf-9f7f-4918-b4a5-19dd837f4e7c\",\"status\":\"Succeeded\",\"error\":null}", + "Content": "{\"id\":\"ef89c3d0-b95d-416c-91c9-df7d15c29bc9\",\"status\":\"Succeeded\",\"error\":null}", "isContentBase64": false } } diff --git a/src/Communication/EmailServicedata.Autorest/test/Send-AzEmailServicedataEmail.Tests.ps1 b/src/Communication/EmailServicedata.Autorest/test/Send-AzEmailServicedataEmail.Tests.ps1 index 98adbf70fcf3..086a8853e559 100644 --- a/src/Communication/EmailServicedata.Autorest/test/Send-AzEmailServicedataEmail.Tests.ps1 +++ b/src/Communication/EmailServicedata.Autorest/test/Send-AzEmailServicedataEmail.Tests.ps1 @@ -1,17 +1,17 @@ if(($null -eq $TestName) -or ($TestName -contains 'Send-AzEmailServicedataEmail')) { - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Send-AzEmailServicedataEmail.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Send-AzEmailServicedataEmail.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName } Describe 'Send-AzEmailServicedataEmail' { @@ -22,10 +22,35 @@ Describe 'Send-AzEmailServicedataEmail' { DisplayName = "ContosoUser" } ) + $currentDirectory = Get-Location + Write-Host "Current working directory: $currentDirectory" + $filePath = Join-Path -Path $currentDirectory -ChildPath "test\inline-attachment.jpg" + + # Check if the file exists, if not, set the fallback path + if (-Not (Test-Path $filePath)) { + $fallbackPath = Join-Path -Path $currentDirectory -ChildPath "artifacts\Debug\Az.Communication\EmailServicedata.Autorest\test\inline-attachment.jpg" + if (Test-Path $fallbackPath) { + $filePath = $fallbackPath + } else { + Write-Host "File not found in either location." + return + } + } + + $fileBytes1 = [System.IO.File]::ReadAllBytes($filePath) + $emailAttachment = @( + @{ + ContentInBase64 = $fileBytes1 + ContentType = "png" + Name = "inline-attachment.png" + contentId = "inline-attachment" + } + ) $message = @{ ContentSubject = "Test Email" RecipientTo = @($emailRecipientTo) # Array of email address objects SenderAddress = $env.senderAddress + ContentHtml = "Exciting offer!kitten

This exciting offer was created especially for you, our most loyal customer.

" ContentPlainText = "This is the first email from ACS - HTML" } $SendEmailResult = Send-AzEmailServicedataEmail -Message $message -endpoint $env.endPoint diff --git a/src/Communication/EmailServicedata.Autorest/test/env.json b/src/Communication/EmailServicedata.Autorest/test/env.json index b22fee593a17..fd29d4a59063 100644 --- a/src/Communication/EmailServicedata.Autorest/test/env.json +++ b/src/Communication/EmailServicedata.Autorest/test/env.json @@ -1,14 +1,14 @@ { - "endPoint": "https://persistentCommResourceName4woepr.UnitedStates.communication.azure.com", - "persistentDomainResourceName": "persistentDomainResourceName4woepr.net", - "persistentCommResourceName": "persistentCommResourceName4woepr", - "SubscriptionId": "653983b8-683a-427c-8c27-9e9624ce9176", - "rstr2": "cwlkp7", - "senderAddress": "DoNotReply@088a9b12-bb8e-41eb-ac0b-1b8de90c33a7.azurecomm.net", - "rstr1": "4woepr", - "dataLocation": "UnitedStates", + "rstr2": "0eomqc", + "SubscriptionId": "50ad1522-5c2c-4d9a-a6c8-67c11ecb75b8", "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "resourceGroup": "testgroup4woepr", - "persistentEmailResourceName": "persistentEmailResourceName4woepr", - "location": "Global" + "location": "Global", + "persistentEmailResourceName": "persistentEmailResourceNamemf8he5", + "endPoint": "https://persistentCommResourceNamemf8he5.UnitedStates.communication.azure.com", + "resourceGroup": "testgroupmf8he5", + "persistentDomainResourceName": "persistentDomainResourceNamemf8he5.net", + "persistentCommResourceName": "persistentCommResourceNamemf8he5", + "dataLocation": "UnitedStates", + "rstr1": "mf8he5", + "senderAddress": "DoNotReply@3e45443c-baa6-46e9-848e-e671458a3e6c.azurecomm.net" } diff --git a/src/Communication/EmailServicedata.Autorest/test/inline-attachment.jpg b/src/Communication/EmailServicedata.Autorest/test/inline-attachment.jpg new file mode 100644 index 0000000000000000000000000000000000000000..97fc2f896c167427745c094cbc10fa2edbeb170b GIT binary patch literal 21734 zcmbTdWmFqq_%0dwdcD>@Txt_Fj9(1>oS|0RC6|w+Rqb4{&h= z0CaQ!eD{}#0Jus30Pwzt1JDEjlyL5k|MmZ$_HPBC3LqgQBqk&vAtoYz@PLGrf{~Jf zoScG{{vkCZgq`aVm>tZ?^H^Glhfji^6D*=8A|WfUq@=_p1l3Yk(3DnGlK*cJoCgmc zP>@luP*SqU^MZNh|F_$}E&vq~4iC;U5Qh_hON9fZ!ui(=V7tFp{Cjl&1MvPF7l?;X zKuAPP^5A|#GbI2Q2MEN)1LEW3;oXmh+>ZnBsPL&dgp~VxVU+E`NYH}B&DQfRMpg>8Zfw~p^>qPshPQjy~A@yCubK| zq>rzke?VYRRCG*iT>NVkChbjn#@o!S?4sh5(z5c3%BqIOrskGbY+L)6p5DIxfx)5S z>6z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6Tvc-~t;U*OFZsEw6X{!9m7rwbFGtf3lKI&!s>L^v`ZU8O=d^a+cbBvN>f$Qb`=* ztr+fTSnHPeH!lQkuIg|?usE$ZlmZFPJ-b(*cq2^_B)W?RN4sL-PaiLA`<}J0;(P0; zg{7sA;WVwd^PDLDhO|;?T!}$BSshoJuh5V1tlRxcD;yb}P%+vMVrok*!Z2n4IUIpl zek^#T5Ww=HnOgy5T<-P<*QHZ#*Cr8M)?@X=OPxKY*sNEOM-{+4r_3OY#GGM|TJ&2D zlIco~(UhwKb6$C=!nXIW6Bt$_0P-u6y1Gp3qU_orLa1a`C8Wj|C#5+GMu#|E!vvFx zY{|TgK#5jC<)Xq4_qKc8&YGl*L-ZW83g4mrh2iBh((M3xs4U%PxInTXSlUj=12>|4K zQAIeU!RTg7;;AIuu&K{uoK}2#wxukEc)>hm(M4~`70|`a+-=NyoxmTw$F}NxS|+7& zZ ztI=q!2pb!r??n|CV?|A0!-oF=4aV@e1oo~*PY2$ck1j2k^)1$lD_T_~wlka)+|0ev z?yP4KN`SFA1TZ9*3n(CDY8{%z0JXFesw5 zvNKbXFP%zX?8J}E`9qR0K4O2uqJr+?Ymb&j499_*D6HHflR9BG=z$5pj!9lwV4VS3?0s>lz_0O|PmHQU2@GNDFFj!hI(dzl&uD<7MH2;&u#s^1HX znCx(H*l7sjiYO8_>=C0xUI0;o0P9(vb6ohX_Yd_6<$>$oiYmGiw`WlaZZa@H^{#Wr zR&8~pp&u*8+tq>O5k(bm;9`c8MST}lXVVMMlHg>VV?UL1ch?JXsY$s8_T&r!nkcSn z&)r8%66a+}L|~UZ$-n>%VxKf)VhI!(2*@LhQAKi_vNuM;I632xd(_@(^k2$~DXm2G GKmXYQ72f3l literal 0 HcmV?d00001 diff --git a/src/Communication/EmailServicedata.Autorest/test/localEnv.json b/src/Communication/EmailServicedata.Autorest/test/localEnv.json index ec8aac153126..da81563c69fa 100644 --- a/src/Communication/EmailServicedata.Autorest/test/localEnv.json +++ b/src/Communication/EmailServicedata.Autorest/test/localEnv.json @@ -1,14 +1,14 @@ { - "SubscriptionId": "653983b8-683a-427c-8c27-9e9624ce9176", - "dataLocation": "UnitedStates", - "senderAddress": "DoNotReply@77b648d3-93fd-4797-bbd9-f3ff4c79bc33.azurecomm.net", - "persistentDomainResourceName": "persistentDomainResourceName9wfoxs.net", - "rstr2": "8unare", - "resourceGroup": "testgroup9wfoxs", - "endPoint": "https://persistentCommResourceName9wfoxs.UnitedStates.communication.azure.com", "location": "Global", - "rstr1": "9wfoxs", - "persistentEmailResourceName": "persistentEmailResourceName9wfoxs", - "persistentCommResourceName": "persistentCommResourceName9wfoxs", + "persistentDomainResourceName": "persistentDomainResourceNamezcp592.net", + "resourceGroup": "testgroupzcp592", + "dataLocation": "UnitedStates", + "SubscriptionId": "50ad1522-5c2c-4d9a-a6c8-67c11ecb75b8", + "endPoint": "https://persistentCommResourceNamezcp592.UnitedStates.communication.azure.com", + "persistentEmailResourceName": "persistentEmailResourceNamezcp592", + "rstr1": "zcp592", + "senderAddress": "DoNotReply@755be115-f8d7-4a3e-abe5-39e42b5ad3e4.azurecomm.net", + "persistentCommResourceName": "persistentCommResourceNamezcp592", + "rstr2": "kl9xf8", "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47" }