-
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.
Add memory objects for AFDX profile LogSrubbing
- Loading branch information
1 parent
aabd66f
commit 34cb8b3
Showing
9 changed files
with
294 additions
and
2 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
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
93 changes: 93 additions & 0 deletions
93
src/Cdn/Cdn.Autorest/docs/New-AzCdnProfileLogScrubbingObject.md
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,93 @@ | ||
--- | ||
external help file: | ||
Module Name: Az.Cdn | ||
online version: https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnProfileLogScrubbingObject | ||
schema: 2.0.0 | ||
--- | ||
|
||
# New-AzCdnProfileLogScrubbingObject | ||
|
||
## SYNOPSIS | ||
Create an in-memory object for ProfileLogScrubbing. | ||
|
||
## SYNTAX | ||
|
||
``` | ||
New-AzCdnProfileLogScrubbingObject [-ScrubbingRule <IProfileScrubbingRules[]>] | ||
[-State <ProfileScrubbingState>] [<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
Create an in-memory object for ProfileLogScrubbing. | ||
|
||
## EXAMPLES | ||
|
||
### Example 1: {{ Add title here }} | ||
```powershell | ||
{{ Add code here }} | ||
``` | ||
|
||
```output | ||
{{ Add output here }} | ||
``` | ||
|
||
{{ Add description here }} | ||
|
||
### Example 2: {{ Add title here }} | ||
```powershell | ||
{{ Add code here }} | ||
``` | ||
|
||
```output | ||
{{ Add output here }} | ||
``` | ||
|
||
{{ Add description here }} | ||
|
||
## PARAMETERS | ||
|
||
### -ScrubbingRule | ||
List of log scrubbing rules applied to the Azure Front Door profile logs. | ||
To construct, see NOTES section for SCRUBBINGRULE properties and create a hash table. | ||
|
||
```yaml | ||
Type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.IProfileScrubbingRules[] | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -State | ||
State of the log scrubbing config. | ||
Default value is Enabled. | ||
```yaml | ||
Type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ProfileScrubbingState | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
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). | ||
## INPUTS | ||
## OUTPUTS | ||
### Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.ProfileLogScrubbing | ||
## NOTES | ||
## RELATED LINKS | ||
107 changes: 107 additions & 0 deletions
107
src/Cdn/Cdn.Autorest/docs/New-AzCdnProfileScrubbingRulesObject.md
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,107 @@ | ||
--- | ||
external help file: | ||
Module Name: Az.Cdn | ||
online version: https://learn.microsoft.com/powershell/module/Az.Cdn/new-AzCdnProfileScrubbingRulesObject | ||
schema: 2.0.0 | ||
--- | ||
|
||
# New-AzCdnProfileScrubbingRulesObject | ||
|
||
## SYNOPSIS | ||
Create an in-memory object for ProfileScrubbingRules. | ||
|
||
## SYNTAX | ||
|
||
``` | ||
New-AzCdnProfileScrubbingRulesObject -MatchVariable <ScrubbingRuleEntryMatchVariable> [-Selector <String>] | ||
[-State <ScrubbingRuleEntryState>] [<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
Create an in-memory object for ProfileScrubbingRules. | ||
|
||
## EXAMPLES | ||
|
||
### Example 1: {{ Add title here }} | ||
```powershell | ||
{{ Add code here }} | ||
``` | ||
|
||
```output | ||
{{ Add output here }} | ||
``` | ||
|
||
{{ Add description here }} | ||
|
||
### Example 2: {{ Add title here }} | ||
```powershell | ||
{{ Add code here }} | ||
``` | ||
|
||
```output | ||
{{ Add output here }} | ||
``` | ||
|
||
{{ Add description here }} | ||
|
||
## PARAMETERS | ||
|
||
### -MatchVariable | ||
The variable to be scrubbed from the logs. | ||
|
||
```yaml | ||
Type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ScrubbingRuleEntryMatchVariable | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -Selector | ||
When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. | ||
```yaml | ||
Type: System.String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -State | ||
Defines the state of a log scrubbing rule. | ||
Default value is enabled. | ||
```yaml | ||
Type: Microsoft.Azure.PowerShell.Cmdlets.Cdn.Support.ScrubbingRuleEntryState | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
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). | ||
## INPUTS | ||
## OUTPUTS | ||
### Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20240201.ProfileScrubbingRules | ||
## NOTES | ||
## RELATED LINKS | ||
22 changes: 22 additions & 0 deletions
22
src/Cdn/Cdn.Autorest/examples/New-AzCdnProfileLogScrubbingObject.md
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,22 @@ | ||
### Example 1: {{ Add title here }} | ||
```powershell | ||
{{ Add code here }} | ||
``` | ||
|
||
```output | ||
{{ Add output here }} | ||
``` | ||
|
||
{{ Add description here }} | ||
|
||
### Example 2: {{ Add title here }} | ||
```powershell | ||
{{ Add code here }} | ||
``` | ||
|
||
```output | ||
{{ Add output here }} | ||
``` | ||
|
||
{{ Add description here }} | ||
|
22 changes: 22 additions & 0 deletions
22
src/Cdn/Cdn.Autorest/examples/New-AzCdnProfileScrubbingRulesObject.md
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,22 @@ | ||
### Example 1: {{ Add title here }} | ||
```powershell | ||
{{ Add code here }} | ||
``` | ||
|
||
```output | ||
{{ Add output here }} | ||
``` | ||
|
||
{{ Add description here }} | ||
|
||
### Example 2: {{ Add title here }} | ||
```powershell | ||
{{ Add code here }} | ||
``` | ||
|
||
```output | ||
{{ Add output here }} | ||
``` | ||
|
||
{{ Add description here }} | ||
|
21 changes: 21 additions & 0 deletions
21
src/Cdn/Cdn.Autorest/test/New-AzCdnProfileLogScrubbingObject.Tests.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,21 @@ | ||
if(($null -eq $TestName) -or ($TestName -contains 'New-AzCdnProfileLogScrubbingObject')) | ||
{ | ||
$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' | ||
if (-Not (Test-Path -Path $loadEnvPath)) { | ||
$loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' | ||
} | ||
. ($loadEnvPath) | ||
$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzCdnProfileLogScrubbingObject.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 'New-AzCdnProfileLogScrubbingObject' { | ||
It '__AllParameterSets' -skip { | ||
{ throw [System.NotImplementedException] } | Should -Not -Throw | ||
} | ||
} |
Oops, something went wrong.