Skip to content

Commit 2477dd8

Browse files
committed
Merge branch 'generation' of https://github.com/Azure/azure-powershell into storage_custom
2 parents edd820b + 7a414ba commit 2477dd8

File tree

409 files changed

+23623
-22875
lines changed

Some content is hidden

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

409 files changed

+23623
-22875
lines changed

src/AppConfiguration/readme.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This directory contains the PowerShell module for the AppConfiguration service.
1717
This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.
1818

1919
## Module Requirements
20-
- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 1.4.0 or greater
20+
- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 1.6.0 or greater
2121

2222
## Authentication
2323
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
@@ -49,7 +49,6 @@ In this directory, run AutoRest:
4949
``` yaml
5050
require:
5151
- $(this-folder)/../readme.azure.md
52-
- $(repo)/specification/appconfiguration/resource-manager/readme.enable-multi-api.md
5352
- $(repo)/specification/appconfiguration/resource-manager/readme.md
5453

5554
module-version: 0.1.3

src/AppService/custom/scripts/DefaultParameterValues.ps1

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/AppService/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ In this directory, run AutoRest:
4949
``` yaml
5050
require:
5151
- $(this-folder)/../readme.azure.md
52-
- $(repo)/specification/web/resource-manager/readme.enable-multi-api.md
5352
- $(repo)/specification/web/resource-manager/readme.md
5453

5554
module-version: 0.0.1

src/Billing/custom/scripts/DefaultParameterValues.ps1

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/Billing/readme.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,8 @@ In this directory, run AutoRest:
4949
``` yaml
5050
require:
5151
- $(this-folder)/../readme.azure.md
52-
- $(repo)/specification/billing/resource-manager/readme.enable-multi-api.md
5352
- $(repo)/specification/billing/resource-manager/readme.md
54-
- $(repo)/specification/commerce/resource-manager/readme.enable-multi-api.md
5553
- $(repo)/specification/commerce/resource-manager/readme.md
56-
- $(repo)/specification/consumption/resource-manager/readme.enable-multi-api.md
5754
- $(repo)/specification/consumption/resource-manager/readme.md
5855

5956
module-version: 0.0.1

src/Compute/custom/scripts/DefaultParameterValues.ps1

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/Compute/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ In this directory, run AutoRest:
4949
``` yaml
5050
require:
5151
- $(this-folder)/../readme.azure.md
52-
- $(repo)/specification/compute/resource-manager/readme.enable-multi-api.md
5352
- $(repo)/specification/compute/resource-manager/readme.md
5453

5554
#input-file:

src/Dns/Az.Dns.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.Dns.private.dll'
1313
FormatsToProcess = './Az.Dns.format.ps1xml'
14-
CmdletsToExport = 'Get-AzDnsRecordSet', 'Get-AzDnsResourceReference', 'Get-AzDnsZone', 'New-AzDnsRecordSet', 'New-AzDnsZone', 'Remove-AzDnsRecordSet', 'Remove-AzDnsZone', 'Set-AzDnsRecordSet', 'Set-AzDnsZone', 'Update-AzDnsRecordSet', 'Update-AzDnsZone', '*'
15-
AliasesToExport = '*'
14+
CmdletsToExport = 'Get-AzDnsRecordSet', 'Get-AzDnsResourceReference', 'Get-AzDnsZone', 'New-AzDnsRecordSet', 'New-AzDnsZone', 'Remove-AzDnsRecordSet', 'Remove-AzDnsZone', 'Set-AzDnsRecordSet', 'Set-AzDnsZone', 'Test-AzDummy', 'Update-AzDnsRecordSet', '*'
15+
AliasesToExport = 'Add-AzDnsRecordConfig', 'New-AzDnsRecordConfig', 'Remove-AzDnsRecordConfig', '*'
1616
PrivateData = @{
1717
PSData = @{
1818
Tags = 'Azure', 'ResourceManager', 'ARM', 'Dns'
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<#
2+
.Synopsis
3+
Returns the DNS records specified by the referencing targetResourceIds.
4+
.Description
5+
Returns the DNS records specified by the referencing targetResourceIds.
6+
.Example
7+
To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.dns/get-azdnsresourcereference
8+
.Outputs
9+
Microsoft.Azure.PowerShell.Cmdlets.Dns.Models.Api20180501.IDnsResourceReferenceResultProperties
10+
.Link
11+
https://docs.microsoft.com/en-us/powershell/module/az.dns/get-azdnsresourcereference
12+
#>
13+
function Get-AzDnsResourceReference {
14+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Dns.Models.Api20180501.IDnsResourceReferenceResultProperties')]
15+
[CmdletBinding(DefaultParameterSetName='GetExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
16+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Profile('latest-2019-04-30')]
17+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Description('Returns the DNS records specified by the referencing targetResourceIds.')]
18+
param(
19+
[Parameter(Mandatory, HelpMessage='Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.')]
20+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Path')]
21+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Runtime.Info(SerializedName='subscriptionId', Required, PossibleTypes=([System.String]), Description='Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.')]
22+
[System.String[]]
23+
# Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.
24+
${SubscriptionId},
25+
26+
[Parameter(HelpMessage='A list of references to azure resources for which referencing dns records need to be queried.')]
27+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Body')]
28+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Runtime.Info(SerializedName='targetResources', PossibleTypes=([System.String]), Description='A list of references to azure resources for which referencing dns records need to be queried.')]
29+
[System.String[]]
30+
# A list of references to azure resources for which referencing dns records need to be queried.
31+
${TargetResourceId},
32+
33+
[Parameter(HelpMessage='The credentials, account, tenant, and subscription used for communication with Azure.')]
34+
[Alias('AzureRMContext', 'AzureCredential')]
35+
[ValidateNotNull()]
36+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Azure')]
37+
[System.Management.Automation.PSObject]
38+
# The credentials, account, tenant, and subscription used for communication with Azure.
39+
${DefaultProfile},
40+
41+
[Parameter(DontShow, HelpMessage='Wait for .NET debugger to attach')]
42+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Runtime')]
43+
[System.Management.Automation.SwitchParameter]
44+
# Wait for .NET debugger to attach
45+
${Break},
46+
47+
[Parameter(DontShow, HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')]
48+
[ValidateNotNull()]
49+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Runtime')]
50+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Runtime.SendAsyncStep[]]
51+
# SendAsync Pipeline Steps to be appended to the front of the pipeline
52+
${HttpPipelineAppend},
53+
54+
[Parameter(DontShow, HelpMessage='SendAsync Pipeline Steps to be prepended to the front of the pipeline')]
55+
[ValidateNotNull()]
56+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Runtime')]
57+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Runtime.SendAsyncStep[]]
58+
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
59+
${HttpPipelinePrepend},
60+
61+
[Parameter(DontShow, HelpMessage='The URI for the proxy server to use')]
62+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Runtime')]
63+
[System.Uri]
64+
# The URI for the proxy server to use
65+
${Proxy},
66+
67+
[Parameter(DontShow, HelpMessage='Credentials for a proxy server to use for the remote call')]
68+
[ValidateNotNull()]
69+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Runtime')]
70+
[System.Management.Automation.PSCredential]
71+
# Credentials for a proxy server to use for the remote call
72+
${ProxyCredential},
73+
74+
[Parameter(DontShow, HelpMessage='Use the default credentials for the proxy')]
75+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Runtime')]
76+
[System.Management.Automation.SwitchParameter]
77+
# Use the default credentials for the proxy
78+
${ProxyUseDefaultCredentials}
79+
)
80+
81+
process {
82+
if ($PSBoundParameters.ContainsKey('TargetResourceId')) {
83+
$null = $PSBoundParameters.Remove('TargetResourceId')
84+
$PSBoundParameters['TargetResource'] = ($TargetResourceId | ForEach-Object { @{ Id = $_ } })
85+
}
86+
Az.Dns.internal\Get-AzDnsResourceReference @PSBoundParameters
87+
}
88+
}
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
<#
2+
.Synopsis
3+
Creates or updates a record set within a DNS zone.
4+
.Description
5+
Creates or updates a record set within a DNS zone.
6+
.Example
7+
To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/az.dns/new-azdnsrecordset
8+
.Outputs
9+
Microsoft.Azure.PowerShell.Cmdlets.Dns.Models.Api20180501.IRecordSet
10+
.Link
11+
https://docs.microsoft.com/en-us/powershell/module/az.dns/new-azdnsrecordset
12+
#>
13+
function New-AzDnsRecordSet_CreateA {
14+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Dns.Models.Api20180501.IRecordSet')]
15+
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
16+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Profile('latest-2019-04-30')]
17+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Description('Creates or updates a record set within a DNS zone.')]
18+
param(
19+
[Parameter(Mandatory, HelpMessage='The name of the record set, relative to the name of the zone.')]
20+
[Alias('RelativeRecordSetName')]
21+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Path')]
22+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Runtime.Info(SerializedName='relativeRecordSetName', Required, PossibleTypes=([System.String]), Description='The name of the record set, relative to the name of the zone.')]
23+
[System.String]
24+
# The name of the record set, relative to the name of the zone.
25+
${Name},
26+
27+
[Parameter(Mandatory, HelpMessage='The name of the resource group.')]
28+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Path')]
29+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Runtime.Info(SerializedName='resourceGroupName', Required, PossibleTypes=([System.String]), Description='The name of the resource group.')]
30+
[System.String]
31+
# The name of the resource group.
32+
${ResourceGroupName},
33+
34+
[Parameter(Mandatory, HelpMessage='Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.')]
35+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Path')]
36+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Runtime.Info(SerializedName='subscriptionId', Required, PossibleTypes=([System.String]), Description='Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.')]
37+
[System.String]
38+
# Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.
39+
${SubscriptionId},
40+
41+
[Parameter(Mandatory, HelpMessage='The name of the DNS zone (without a terminating dot).')]
42+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Path')]
43+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Runtime.Info(SerializedName='zoneName', Required, PossibleTypes=([System.String]), Description='The name of the DNS zone (without a terminating dot).')]
44+
[System.String]
45+
# The name of the DNS zone (without a terminating dot).
46+
${ZoneName},
47+
48+
[Parameter(Mandatory, HelpMessage='The list of A records in the record set. To construct, see NOTES section for ARECORD properties and create a hash table.')]
49+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Body')]
50+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Runtime.Info(SerializedName='ARecords', PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Dns.Models.Api20150504Preview.IARecord]), Description='The list of A records in the record set.')]
51+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Models.Api20150504Preview.IARecord[]]
52+
# The list of A records in the record set.
53+
# To construct, see NOTES section for ARECORD properties and create a hash table.
54+
${ARecord},
55+
56+
[Parameter(HelpMessage='Does not overwrite the record set if it already exists.')]
57+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Header')]
58+
[System.Management.Automation.SwitchParameter]
59+
# Does not overwrite the record set if it already exists.
60+
${DoNotOverwrite},
61+
62+
[Parameter(HelpMessage='The etag of the record set.')]
63+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Body')]
64+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Runtime.Info(SerializedName='etag', PossibleTypes=([System.String]), Description='The etag of the record set.')]
65+
[System.String]
66+
# The etag of the record set.
67+
${Etag},
68+
69+
[Parameter(HelpMessage='The metadata attached to the record set.')]
70+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Body')]
71+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Runtime.Info(SerializedName='metadata', PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Dns.Models.Api20160401.IRecordSetPropertiesMetadata]), Description='The metadata attached to the record set.')]
72+
[System.Collections.Hashtable]
73+
# The metadata attached to the record set.
74+
${Metadata},
75+
76+
[Parameter(HelpMessage='Resource Id.')]
77+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Body')]
78+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Runtime.Info(SerializedName='id', PossibleTypes=([System.String]), Description='Resource Id.')]
79+
[System.String]
80+
# Resource Id.
81+
${TargetResourceId},
82+
83+
[Parameter(HelpMessage='The TTL (time-to-live) of the records in the record set.')]
84+
[Alias('Ttl')]
85+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Body')]
86+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Runtime.Info(SerializedName='TTL', PossibleTypes=([System.Int64]), Description='The TTL (time-to-live) of the records in the record set.')]
87+
[System.Int64]
88+
# The TTL (time-to-live) of the records in the record set.
89+
${TimeToLive},
90+
91+
[Parameter(HelpMessage='The credentials, account, tenant, and subscription used for communication with Azure.')]
92+
[Alias('AzureRMContext', 'AzureCredential')]
93+
[ValidateNotNull()]
94+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Azure')]
95+
[System.Management.Automation.PSObject]
96+
# The credentials, account, tenant, and subscription used for communication with Azure.
97+
${DefaultProfile},
98+
99+
[Parameter(DontShow, HelpMessage='Wait for .NET debugger to attach')]
100+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Runtime')]
101+
[System.Management.Automation.SwitchParameter]
102+
# Wait for .NET debugger to attach
103+
${Break},
104+
105+
[Parameter(DontShow, HelpMessage='SendAsync Pipeline Steps to be appended to the front of the pipeline')]
106+
[ValidateNotNull()]
107+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Runtime')]
108+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Runtime.SendAsyncStep[]]
109+
# SendAsync Pipeline Steps to be appended to the front of the pipeline
110+
${HttpPipelineAppend},
111+
112+
[Parameter(DontShow, HelpMessage='SendAsync Pipeline Steps to be prepended to the front of the pipeline')]
113+
[ValidateNotNull()]
114+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Runtime')]
115+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Runtime.SendAsyncStep[]]
116+
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
117+
${HttpPipelinePrepend},
118+
119+
[Parameter(DontShow, HelpMessage='The URI for the proxy server to use')]
120+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Runtime')]
121+
[System.Uri]
122+
# The URI for the proxy server to use
123+
${Proxy},
124+
125+
[Parameter(DontShow, HelpMessage='Credentials for a proxy server to use for the remote call')]
126+
[ValidateNotNull()]
127+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Runtime')]
128+
[System.Management.Automation.PSCredential]
129+
# Credentials for a proxy server to use for the remote call
130+
${ProxyCredential},
131+
132+
[Parameter(DontShow, HelpMessage='Use the default credentials for the proxy')]
133+
[Microsoft.Azure.PowerShell.Cmdlets.Dns.Category('Runtime')]
134+
[System.Management.Automation.SwitchParameter]
135+
# Use the default credentials for the proxy
136+
${ProxyUseDefaultCredentials}
137+
)
138+
139+
process {
140+
if ($PSBoundParameters.ContainsKey('DoNotOverwrite')) {
141+
$null = $PSBoundParameters.Remove('DoNotOverwrite')
142+
$PSBoundParameters['IfNoneMatch'] = '*'
143+
}
144+
$PSBoundParameters['RecordType'] = [Microsoft.Azure.PowerShell.Cmdlets.Dns.Support.RecordType]::A
145+
Az.Dns.internal\New-AzDnsRecordSet @PSBoundParameters
146+
}
147+
}

0 commit comments

Comments
 (0)