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 000000000000..97fc2f896c16 Binary files /dev/null and b/src/Communication/EmailServicedata.Autorest/test/inline-attachment.jpg differ 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" }