-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Customize memory ojbects for profile Logscrub
- Loading branch information
1 parent
34cb8b3
commit 0d4297f
Showing
11 changed files
with
175 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnProfileLogScrubbingObject.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
# ---------------------------------------------------------------------------------- | ||
# 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. | ||
# ---------------------------------------------------------------------------------- | ||
|
||
<# | ||
.Synopsis | ||
Create an in-memory object for ProfileLogScrubbing. | ||
.Description | ||
Create an in-memory object for ProfileLogScrubbing. | ||
.Outputs | ||
Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.ProfileLogScrubbing | ||
.Link | ||
https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzFrontDoorCdnProfileLogScrubbingObject | ||
#> | ||
function New-AzFrontDoorCdnProfileLogScrubbingObject { | ||
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.ProfileLogScrubbing')] | ||
[CmdletBinding(PositionalBinding=$false)] | ||
Param( | ||
|
||
[Parameter(HelpMessage="List of log scrubbing rules applied to the Azure Front Door profile logs.")] | ||
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.IProfileScrubbingRules[]] | ||
$ScrubbingRule, | ||
[Parameter(HelpMessage="State of the log scrubbing config. Default value is Enabled.")] | ||
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ProfileScrubbingState])] | ||
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ProfileScrubbingState] | ||
$State | ||
) | ||
|
||
process { | ||
$Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.ProfileLogScrubbing]::New() | ||
|
||
if ($PSBoundParameters.ContainsKey('ScrubbingRule')) { | ||
$Object.ScrubbingRule = $ScrubbingRule | ||
} | ||
if ($PSBoundParameters.ContainsKey('State')) { | ||
$Object.State = $State | ||
} | ||
return $Object | ||
} | ||
} | ||
|
61 changes: 61 additions & 0 deletions
61
src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnProfileScrubbingRulesObject.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
|
||
# ---------------------------------------------------------------------------------- | ||
# 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. | ||
# ---------------------------------------------------------------------------------- | ||
|
||
<# | ||
.Synopsis | ||
Create an in-memory object for ProfileScrubbingRules. | ||
.Description | ||
Create an in-memory object for ProfileScrubbingRules. | ||
.Outputs | ||
Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.ProfileScrubbingRules | ||
.Link | ||
https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzFrontDoorCdnProfileScrubbingRulesObject | ||
#> | ||
function New-AzFrontDoorCdnProfileScrubbingRulesObject { | ||
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.ProfileScrubbingRules')] | ||
[CmdletBinding(PositionalBinding=$false)] | ||
Param( | ||
|
||
[Parameter(Mandatory, HelpMessage="The variable to be scrubbed from the logs.")] | ||
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ScrubbingRuleEntryMatchVariable])] | ||
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ScrubbingRuleEntryMatchVariable] | ||
$MatchVariable, | ||
[Parameter(HelpMessage="When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to.")] | ||
[string] | ||
$Selector, | ||
[Parameter(HelpMessage="Defines the state of a log scrubbing rule. Default value is enabled.")] | ||
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ScrubbingRuleEntryState])] | ||
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ScrubbingRuleEntryState] | ||
$State | ||
) | ||
|
||
process { | ||
$Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.ProfileScrubbingRules]::New() | ||
|
||
if ($PSBoundParameters.ContainsKey('MatchVariable')) { | ||
$Object.MatchVariable = $MatchVariable | ||
} | ||
if ($PSBoundParameters.ContainsKey('Selector')) { | ||
$Object.Selector = $Selector | ||
} | ||
if ($PSBoundParameters.ContainsKey('State')) { | ||
$Object.State = $State | ||
} | ||
return $Object | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.