Skip to content

Commit b34c1ff

Browse files
committed
Change the name of sub-module
1 parent 3c852a4 commit b34c1ff

File tree

5 files changed

+19
-12
lines changed

5 files changed

+19
-12
lines changed

src/Monitor/MetricsData.Autorest/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ root-module-name: $(prefix).Monitor
4040
title: Metricdata
4141
module-version: 0.1.0
4242
subject-prefix: ""
43+
namespace: Microsoft.Azure.PowerShell.Cmdlets.Metric
4344

4445
directive:
4546
- where:

src/Monitor/MetricsData.Autorest/custom/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ These provide functionality to our HTTP pipeline and other useful features. In s
3131

3232
### Attributes
3333
For processing the cmdlets, we've created some additional attributes:
34-
- `Microsoft.Azure.PowerShell.Cmdlets.Metricdata.DescriptionAttribute`
34+
- `Microsoft.Azure.PowerShell.Cmdlets.Metric.DescriptionAttribute`
3535
- Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
36-
- `Microsoft.Azure.PowerShell.Cmdlets.Metricdata.DoNotExportAttribute`
36+
- `Microsoft.Azure.PowerShell.Cmdlets.Metric.DoNotExportAttribute`
3737
- Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.Metricdata`.
38-
- `Microsoft.Azure.PowerShell.Cmdlets.Metricdata.InternalExportAttribute`
38+
- `Microsoft.Azure.PowerShell.Cmdlets.Metric.InternalExportAttribute`
3939
- Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.Metricdata`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder.
40-
- `Microsoft.Azure.PowerShell.Cmdlets.Metricdata.ProfileAttribute`
40+
- `Microsoft.Azure.PowerShell.Cmdlets.Metric.ProfileAttribute`
4141
- Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules.

src/Monitor/MetricsData.Autorest/docs/Get-AzMetricsBatch.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ Get-AzMetricsBatch -Endpoint <String> -Name <List<String>> -Namespace <String> [
2222

2323
### BatchViaIdentityExpanded
2424
```
25-
Get-AzMetricsBatch -Endpoint <String> -InputObject <IMetricIdentity> -Name <List<String>> -Namespace <String>
26-
[-Aggregation <String>] [-EndTime <String>] [-Filter <String>] [-Interval <String>] [-Orderby <String>]
27-
[-Rollupby <String>] [-StartTime <String>] [-Top <Int32>] [-ResourceId <String[]>]
25+
Get-AzMetricsBatch -Endpoint <String> -InputObject <IMetricdataIdentity> -Name <List<String>>
26+
-Namespace <String> [-Aggregation <String>] [-EndTime <String>] [-Filter <String>] [-Interval <String>]
27+
[-Orderby <String>] [-Rollupby <String>] [-StartTime <String>] [-Top <Int32>] [-ResourceId <String[]>]
2828
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
2929
```
3030

@@ -665,10 +665,9 @@ Accept wildcard characters: False
665665
666666
### -InputObject
667667
Identity Parameter
668-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
669668
670669
```yaml
671-
Type: Microsoft.Azure.PowerShell.Cmdlets.Metric.Models.IMetricIdentity
670+
Type: Microsoft.Azure.PowerShell.Cmdlets.Metric.Models.IMetricdataIdentity
672671
Parameter Sets: BatchViaIdentityExpanded
673672
Aliases:
674673

@@ -702,7 +701,7 @@ Accept wildcard characters: False
702701
The names of the metrics (comma separated) to retrieve.
703702
704703
```yaml
705-
Type: System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
704+
Type: System.Collections.Generic.List`1[[System.String, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
706705
Parameter Sets: (All)
707706
Aliases: MetricName
708707

@@ -863,7 +862,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
863862
864863
## INPUTS
865864
866-
### Microsoft.Azure.PowerShell.Cmdlets.Metric.Models.IMetricIdentity
865+
### Microsoft.Azure.PowerShell.Cmdlets.Metric.Models.IMetricdataIdentity
867866
868867
## OUTPUTS
869868

src/Monitor/MetricsData.Autorest/test/loadEnv.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) {
2525
$env = @{}
2626
if (Test-Path -Path $envFilePath) {
2727
$env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json
28-
$PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant}
28+
$PSDefaultParameterValues=@{"*:Tenant"=$env.Tenant}
2929
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
param()
2+
if ($env:AzPSAutorestTestPlaybackMode) {
3+
$loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1'
4+
. ($loadEnvPath)
5+
return $env.SubscriptionId
6+
}
7+
return (Get-AzContext).Subscription.Id

0 commit comments

Comments
 (0)