Skip to content

Commit c590c38

Browse files
PowerShell Support for Email Services Control Plane CRUD operations (#24230)
* Powershell Support for Email Services Control Plane CRUD operations - # 3442118 * Powershell Support for Email Services Control Plane CRUD operations - test recordings- #3442118 * Removed .gitignore * Updated test recordings * readme.md file root-module-name changes * Updated examples * Remove use autorest.powershell 4.x --------- Co-authored-by: Jin Lei <[email protected]>
1 parent dff1cf2 commit c590c38

File tree

91 files changed

+19488
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+19488
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
bin
2+
obj
3+
.vs
4+
generated
5+
internal
6+
exports
7+
tools
8+
custom/*.psm1
9+
custom/autogen-model-cmdlets
10+
test/*-TestResults.xml
11+
/*.ps1
12+
/*.ps1xml
13+
/*.psm1
14+
/*.snk
15+
/*.csproj
16+
/*.nuspec
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@{
2+
GUID = '21bdebd2-08fb-474b-9b85-a6b7415bd1f2'
3+
RootModule = './Az.EmailService.psm1'
4+
ModuleVersion = '0.1.0'
5+
CompatiblePSEditions = 'Core', 'Desktop'
6+
Author = 'Microsoft Corporation'
7+
CompanyName = 'Microsoft Corporation'
8+
Copyright = 'Microsoft Corporation. All rights reserved.'
9+
Description = 'Microsoft Azure PowerShell: EmailService cmdlets'
10+
PowerShellVersion = '5.1'
11+
DotNetFrameworkVersion = '4.7.2'
12+
RequiredAssemblies = './bin/Az.EmailService.private.dll'
13+
FormatsToProcess = './Az.EmailService.format.ps1xml'
14+
FunctionsToExport = 'Get-AzEmailService', 'Get-AzEmailServiceDomain', 'Get-AzEmailServiceSenderUsername', 'Invoke-AzEmailServiceInitiateDomainVerification', 'New-AzEmailService', 'New-AzEmailServiceDomain', 'New-AzEmailServiceSenderUsername', 'Remove-AzEmailService', 'Remove-AzEmailServiceDomain', 'Remove-AzEmailServiceSenderUsername', 'Stop-AzEmailServiceDomainVerification', 'Update-AzEmailService', 'Update-AzEmailServiceDomain', 'Update-AzEmailServiceSenderUsername'
15+
PrivateData = @{
16+
PSData = @{
17+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'EmailService'
18+
LicenseUri = 'https://aka.ms/azps-license'
19+
ProjectUri = 'https://github.com/Azure/azure-powershell'
20+
ReleaseNotes = ''
21+
}
22+
}
23+
}
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<!-- region Generated -->
2+
# Az.EmailService
3+
This directory contains the PowerShell module for the EmailService service.
4+
5+
---
6+
## Status
7+
[![Az.EmailService](https://img.shields.io/powershellgallery/v/Az.EmailService.svg?style=flat-square&label=Az.EmailService "Az.EmailService")](https://www.powershellgallery.com/packages/Az.EmailService/)
8+
9+
## Info
10+
- Modifiable: yes
11+
- Generated: all
12+
- Committed: yes
13+
- Packaged: yes
14+
15+
---
16+
## Detail
17+
This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.
18+
19+
## Module Requirements
20+
- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater
21+
22+
## Authentication
23+
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
24+
25+
## Development
26+
For information on how to develop for `Az.EmailService`, see [how-to.md](how-to.md).
27+
<!-- endregion -->
28+
29+
### AutoRest Configuration
30+
> see https://aka.ms/autorest
31+
32+
``` yaml
33+
commit: 663ea6835c33bca216b63f777227db6a459a06b3
34+
require:
35+
# readme.azure.noprofile.md is the common configuration file
36+
- $(this-folder)/../../readme.azure.noprofile.md
37+
input-file:
38+
# You need to specify your swagger files here.
39+
- $(repo)/specification/communication/resource-manager/Microsoft.Communication/preview/2023-06-01-preview/EmailServices.json
40+
- $(repo)/specification/communication/resource-manager/Microsoft.Communication/preview/2023-06-01-preview/Domains.json
41+
- $(repo)/specification/communication/resource-manager/Microsoft.Communication/preview/2023-06-01-preview/SenderUsernames.json
42+
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
43+
# - (this-folder)/relative-path-to-your-swagger
44+
45+
root-module-name: $(prefix).Communication
46+
# For new RP, the version is 0.1.0
47+
module-version: 0.1.0
48+
# Normally, title is the service name
49+
title: EmailService
50+
subject-prefix: $(service-name)
51+
52+
# If there are post APIs for some kinds of actions in the RP, you may need to
53+
# uncomment following line to support viaIdentity for these post APIs
54+
# identity-correction-for-post: true
55+
56+
directive:
57+
# Following is two common directive which are normally required in all the RPs
58+
# 1. Remove the unexpanded parameter set
59+
# 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well
60+
- where:
61+
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
62+
remove: true
63+
# Remove the set-* cmdlet
64+
- where:
65+
verb: Set
66+
remove: true
67+
# Remove the GetEmailServiceVerifiedExchangeOnlineDomain cmdlet
68+
- where:
69+
verb: Get
70+
subject: EmailServiceVerifiedExchangeOnlineDomain
71+
remove: true
72+
# set the location default value to global
73+
- where:
74+
parameter-name: Location
75+
set:
76+
default:
77+
name: Location default
78+
description: Sets the Location default value to Global.
79+
script: '"global"'
80+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"resourceType": "emailServices/domains/senderUsernames",
3+
"apiVersion": "2023-06-01-preview",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.communication"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzEmailServiceSenderUsername",
10+
"description": "Get a valid sender username for a domains resource.",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.communication/get-azemailservicesenderusername"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-DomainName <String>",
20+
"-EmailServiceName <String>",
21+
"-ResourceGroupName <String>",
22+
"-SenderUsername <String>",
23+
"[-SubscriptionId <String[]>]"
24+
]
25+
}
26+
]
27+
},
28+
"examples": [
29+
{
30+
"description": "Get a valid sender username for a domains resource.",
31+
"parameters": [
32+
{
33+
"name": "-DomainName",
34+
"value": "[Path.domainName]"
35+
},
36+
{
37+
"name": "-EmailServiceName",
38+
"value": "[Path.emailServiceName]"
39+
},
40+
{
41+
"name": "-ResourceGroupName",
42+
"value": "[Path.resourceGroupName]"
43+
},
44+
{
45+
"name": "-SenderUsername",
46+
"value": "[Path.senderUsername]"
47+
},
48+
{
49+
"name": "-SubscriptionId",
50+
"value": "[Path.subscriptionId]"
51+
}
52+
]
53+
}
54+
]
55+
},
56+
{
57+
"name": "Remove-AzEmailServiceSenderUsername",
58+
"description": "Operation to delete a SenderUsernames resource.",
59+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}",
60+
"help": {
61+
"learnMore": {
62+
"url": "https://learn.microsoft.com/powershell/module/az.communication/remove-azemailservicesenderusername"
63+
},
64+
"parameterSets": [
65+
{
66+
"parameters": [
67+
"-DomainName <String>",
68+
"-EmailServiceName <String>",
69+
"-ResourceGroupName <String>",
70+
"-SenderUsername <String>",
71+
"[-SubscriptionId <String>]"
72+
]
73+
}
74+
]
75+
},
76+
"examples": [
77+
{
78+
"description": "Operation to delete a SenderUsernames resource.",
79+
"parameters": [
80+
{
81+
"name": "-DomainName",
82+
"value": "[Path.domainName]"
83+
},
84+
{
85+
"name": "-EmailServiceName",
86+
"value": "[Path.emailServiceName]"
87+
},
88+
{
89+
"name": "-ResourceGroupName",
90+
"value": "[Path.resourceGroupName]"
91+
},
92+
{
93+
"name": "-SenderUsername",
94+
"value": "[Path.senderUsername]"
95+
},
96+
{
97+
"name": "-SubscriptionId",
98+
"value": "[Path.subscriptionId]"
99+
}
100+
]
101+
}
102+
]
103+
}
104+
]
105+
}
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"resourceType": "emailServices/domains",
3+
"apiVersion": "2023-06-01-preview",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.communication"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzEmailServiceDomain",
10+
"description": "Get the Domains resource and its properties.",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.communication/get-azemailservicedomain"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-EmailServiceName <String>",
20+
"-Name <String>",
21+
"-ResourceGroupName <String>",
22+
"[-SubscriptionId <String[]>]"
23+
]
24+
}
25+
]
26+
},
27+
"examples": [
28+
{
29+
"description": "Get the Domains resource and its properties.",
30+
"parameters": [
31+
{
32+
"name": "-EmailServiceName",
33+
"value": "[Path.emailServiceName]"
34+
},
35+
{
36+
"name": "-Name",
37+
"value": "[Path.domainName]"
38+
},
39+
{
40+
"name": "-ResourceGroupName",
41+
"value": "[Path.resourceGroupName]"
42+
},
43+
{
44+
"name": "-SubscriptionId",
45+
"value": "[Path.subscriptionId]"
46+
}
47+
]
48+
}
49+
]
50+
},
51+
{
52+
"name": "Remove-AzEmailServiceDomain",
53+
"description": "Operation to delete a Domains resource.",
54+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}",
55+
"help": {
56+
"learnMore": {
57+
"url": "https://learn.microsoft.com/powershell/module/az.communication/remove-azemailservicedomain"
58+
},
59+
"parameterSets": [
60+
{
61+
"parameters": [
62+
"-EmailServiceName <String>",
63+
"-Name <String>",
64+
"-ResourceGroupName <String>",
65+
"[-SubscriptionId <String>]"
66+
]
67+
}
68+
]
69+
},
70+
"examples": [
71+
{
72+
"description": "Operation to delete a Domains resource.",
73+
"parameters": [
74+
{
75+
"name": "-EmailServiceName",
76+
"value": "[Path.emailServiceName]"
77+
},
78+
{
79+
"name": "-Name",
80+
"value": "[Path.domainName]"
81+
},
82+
{
83+
"name": "-ResourceGroupName",
84+
"value": "[Path.resourceGroupName]"
85+
},
86+
{
87+
"name": "-SubscriptionId",
88+
"value": "[Path.subscriptionId]"
89+
}
90+
]
91+
}
92+
]
93+
}
94+
]
95+
}

0 commit comments

Comments
 (0)