Skip to content

[ApplicationInsights] Az.ApplicationInsights update generation tool version: autorest.powershell v3->v4 #27351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// 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.

using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ApplicationInsightsManagementClient")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.3.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("2.3.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
15 changes: 6 additions & 9 deletions src/ApplicationInsights/ApplicationInsights.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,9 @@ input-file:
module-version: 0.1.0
subject-prefix: $(service-name)

identity-correction-for-post: true
resourcegroup-append: true
nested-object-to-string: true

# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
"@autorest/powershell": "3.x"

directive:
- from: swagger-document
where: $.info.title
Expand Down Expand Up @@ -403,10 +398,12 @@ directive:
hide: true

- model-cmdlet:
- WebTestGeolocation
- WorkbookTemplateGallery
# Hide for custom modle cmdlet.
# - HeaderField
- model-name: WebTestGeolocation
cmdlet-name: New-AzApplicationInsightsWebTestGeolocationObject
- model-name: WorkbookTemplateGallery
cmdlet-name: New-AzApplicationInsightsWorkbookTemplateGalleryObject
- model-name: HeaderField
cmdlet-name: New-AzApplicationInsightsWebTestHeaderFieldObject

# format output table
- where:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Returns an Application Insights component.
https://learn.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsights
#>
function Get-AzApplicationInsights {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent], [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.PSApplicationInsightsComponentWithPricingPlan])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsComponent], [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.PSApplicationInsightsComponentWithPricingPlan])]
[CmdletBinding(DefaultParameterSetName='ListBySubscription', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
Expand Down Expand Up @@ -66,15 +66,15 @@ function Get-AzApplicationInsights {
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},

[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')]
[System.Management.Automation.PSObject]
# The credentials, account, tenant, and subscription used for communication with Azure.
# The DefaultProfile parameter is not functional.
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},

[Parameter(DontShow)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using System.Text.RegularExpressions;
using System.Linq;
using System;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models;

namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models;

namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models;

namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models;

namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models;

namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// ----------------------------------------------------------------------------------

using System.Linq;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501;
using Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models;

namespace Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Note: You cannot specify a different value for InstrumentationKey nor AppId in t
https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsights
#>
function New-AzApplicationInsights {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsComponent])]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
Expand Down Expand Up @@ -53,7 +53,7 @@ function New-AzApplicationInsights {
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[System.String]
[Alias("ApplicationKind")]
[ValidateSet("web", "other", "nodejs", "java", "ios", "store", "phone", IgnoreCase)]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.PSArgumentCompleterAttribute("web", "other", "nodejs", "java", "ios", "store", "phone", "IgnoreCase")]
# The kind of application that this component refers to, used to customize UI.
# This value is a freeform string, values should typically be one of the following: web, ios, other, store, java, phone.
${Kind},
Expand All @@ -65,9 +65,9 @@ function New-AzApplicationInsights {
${Location},

[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.ApplicationType])]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.PSArgumentCompleterAttribute("web", "other")]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.ApplicationType]
[System.String]
# Type of application being monitored.
${ApplicationType},

Expand All @@ -90,9 +90,9 @@ function New-AzApplicationInsights {
${Etag},

[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.FlowType])]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.PSArgumentCompleterAttribute("Bluefield")]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.FlowType]
[System.String]
# Used by the Application Insights system to determine what kind of flow this component was created by.
# This is to be set to 'Bluefield' when creating/updating a component via the REST API.
${FlowType},
Expand All @@ -107,6 +107,7 @@ function New-AzApplicationInsights {
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[System.String]
# The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.
# Please visit external url https://aka.ms/ewjuel to get more information.
${HockeyAppId},

[Parameter()]
Expand All @@ -116,30 +117,30 @@ function New-AzApplicationInsights {
${ImmediatePurgeDataOn30Day},

[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.IngestionMode])]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.PSArgumentCompleterAttribute("ApplicationInsights", "ApplicationInsightsWithDiagnosticSettings", "LogAnalytics")]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.IngestionMode]
[System.String]
# Indicates the flow of the ingestion.
${IngestionMode},

[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.PublicNetworkAccessType])]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.PSArgumentCompleterAttribute("Enabled", "Disabled")]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.PublicNetworkAccessType]
[System.String]
# The network access type for accessing Application Insights ingestion.
${PublicNetworkAccessForIngestion},

[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.PublicNetworkAccessType])]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.PSArgumentCompleterAttribute("Enabled", "Disabled")]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.PublicNetworkAccessType]
[System.String]
# The network access type for accessing Application Insights query.
${PublicNetworkAccessForQuery},

[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.RequestSource])]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.PSArgumentCompleterAttribute("rest")]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Support.RequestSource]
[System.String]
# Describes what tool created this Application Insights component.
# Customers using this API should set this to the default 'rest'.
${RequestSource},
Expand All @@ -154,12 +155,13 @@ function New-AzApplicationInsights {
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[System.Double]
# Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.
# Please visit external url https://aka.ms/sl0yqd to get more information.
${SamplingPercentage},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[Alias("Tags")]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IComponentsResourceTags]))]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IComponentsResourceTags]))]
[System.Collections.Hashtable]
# Resource tags
${Tag},
Expand All @@ -177,7 +179,8 @@ function New-AzApplicationInsights {
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')]
[System.Management.Automation.PSObject]
# The credentials, account, tenant, and subscription used for communication with Azure.
# The DefaultProfile parameter is not functional.
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},

[Parameter(DontShow)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Create an API Key of an Application Insights component.
https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightsapikey
#>
function New-AzApplicationInsightsApiKey {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentApiKey])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsComponentApiKey])]
[CmdletBinding(DefaultParameterSetName='ComponentNameParameterSet', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName="ComponentNameParameterSet")]
Expand Down Expand Up @@ -55,7 +55,7 @@ function New-AzApplicationInsightsApiKey {
[Parameter(Mandatory)]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[ValidateSet("ReadTelemetry", "WriteAnnotations", "AuthenticateSDKControlChannel")]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.PSArgumentCompleterAttribute("ReadTelemetry", "WriteAnnotations", "AuthenticateSDKControlChannel")]
[System.String[]]
# The read access rights of this API Key.
${Permissions},
Expand All @@ -65,7 +65,8 @@ function New-AzApplicationInsightsApiKey {
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')]
[System.Management.Automation.PSObject]
# The credentials, account, tenant, and subscription used for communication with Azure.
# The DefaultProfile parameter is not functional.
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},

[Parameter(DontShow)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IAppli
https://learn.microsoft.com/powershell/module/az.applicationinsights/new-azapplicationinsightscontinuousexport
#>
function New-AzApplicationInsightsContinuousExport {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api20150501.IApplicationInsightsComponentExportConfiguration])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.IApplicationInsightsComponentExportConfiguration])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
Expand Down Expand Up @@ -107,7 +107,8 @@ function New-AzApplicationInsightsContinuousExport {
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Azure')]
[System.Management.Automation.PSObject]
# The credentials, account, tenant, and subscription used for communication with Azure.
# The DefaultProfile parameter is not functional.
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},

[Parameter(DontShow)]
Expand Down
Loading
Loading