Skip to content

[Az.Elastic] Update generation tool version: autorest.powershell v3->v4 #27636

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

Merged
merged 8 commits into from
Apr 27, 2025
Merged
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
27 changes: 27 additions & 0 deletions src/Elastic/Elastic.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// 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 - Elastic")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.1")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.2.1")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]

22 changes: 12 additions & 10 deletions src/Elastic/Elastic.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ title: Elastic
module-version: 0.1.0
subject-prefix: $elastic

identity-correction-for-post: true
resourcegroup-append: 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:
# Swagger issue that the ProvisioningState should readonly.
- from: swagger-document
Expand Down Expand Up @@ -112,8 +105,16 @@ directive:
parameter-description: The SKU depends on the Elasticsearch Plans available for your account and is a combination of PlanID_Term. \<br>For instance, if the plan ID is "planXYZ" and term is "Yearly", the SKU will be "planXYZ_Yearly". \<br>You may find your eligible plans [here](https://portal.azure.com/#view/Microsoft_Azure_Marketplace/GalleryItemDetailsBladeNopdl/id/elastic.ec-azure-pp/selectionMode~/false/resourceGroupId//resourceGroupLocation//dontDiscardJourney~/false/selectedMenuId/home/launchingContext~/%7B%22galleryItemId%22%3A%22elastic.ec-azure-ppess-consumption-2024%22%2C%22source%22%3A%5B%22GalleryFeaturedMenuItemPart%22%2C%22VirtualizedTileDetails%22%5D%2C%22menuItemId%22%3A%22home%22%2C%22subMenuItemId%22%3A%22Search%20results%22%2C%22telemetryId%22%3A%2262f8ce76-e5e4-4983-9d3e-5c608a0b2bff%22%7D/searchTelemetryId/cca0a8d3-f232-4156-948f-701a5d74a729) or in the online documentation [here](https://azuremarketplace.microsoft.com/en-us/marketplace/apps/elastic.ec-azure-pp) for more details or in case of any issues with the SKU.

- where:
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^UpgradeViaIdentityExpanded$
subject: Monitor|VMCollection|TagRule|OpenAi|ExternalUser
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
subject: Monitor|VMCollection|TagRule
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$|^UpgradeViaIdentityExpanded$|^UpgradeViaJsonFilePath$|^UpgradeViaJsonString$
remove: true
- where:
subject: OrganizationApiKey
variant: ^Get$
remove: true

- where:
Expand All @@ -137,6 +138,7 @@ directive:
- Name
- ProvisioningState

# - model-cmdlet:
# - FilteringTag
- model-cmdlet:
- model-name: FilteringTag
cmdlet-name: New-AzElasticFilteringTagObject
```

This file was deleted.

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 FilteringTag.
.Description
Create an in-memory object for FilteringTag.

.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.FilteringTag
.Link
https://learn.microsoft.com/powershell/module/Az.Elastic/new-azelasticfilteringtagobject
#>
function New-AzElasticFilteringTagObject {
[Microsoft.Azure.PowerShell.Cmdlets.Elastic.ModelCmdletAttribute()]
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.FilteringTag')]
[CmdletBinding(PositionalBinding=$false)]
Param(

[Parameter(HelpMessage="Valid actions for a filtering tag.")]
[Microsoft.Azure.PowerShell.Cmdlets.Elastic.PSArgumentCompleterAttribute("Include", "Exclude")]
[string]
$Action,
[Parameter(HelpMessage="The name (also known as the key) of the tag.")]
[string]
$Name,
[Parameter(HelpMessage="The value of the tag.")]
[string]
$Value
)

process {
$Object = [Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.FilteringTag]::New()

if ($PSBoundParameters.ContainsKey('Action')) {
$Object.Action = $Action
}
if ($PSBoundParameters.ContainsKey('Name')) {
$Object.Name = $Name
}
if ($PSBoundParameters.ContainsKey('Value')) {
$Object.Value = $Value
}
return $Object
}
}

28 changes: 17 additions & 11 deletions src/Elastic/Elastic.Autorest/docs/Az.Elastic.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.Elastic
Module Guid: ac429574-aa9e-48ba-b46c-129fe2b846d2
Module Guid: b2e855f4-b219-475c-9008-e98c5b88a595
Download Help Link: https://learn.microsoft.com/powershell/module/az.elastic
Help Version: 1.0.0.0
Locale: en-US
Expand Down Expand Up @@ -63,25 +63,25 @@ List the vm resources currently being monitored by the Elastic monitor resource.
Associate traffic filter for the given deployment.

### [New-AzElasticCreateAndAssociateIPFilter](New-AzElasticCreateAndAssociateIPFilter.md)
Create and Associate IP traffic filter for the given deployment.
create and Associate IP traffic filter for the given deployment.

### [New-AzElasticCreateAndAssociatePlFilter](New-AzElasticCreateAndAssociatePlFilter.md)
Create and Associate private link traffic filter for the given deployment.
create and Associate private link traffic filter for the given deployment.

### [New-AzElasticExternalUser](New-AzElasticExternalUser.md)
Create User inside elastic deployment which are used by customers to perform operations on the elastic deployment
create User inside elastic deployment which are used by customers to perform operations on the elastic deployment

### [New-AzElasticFilteringTagObject](New-AzElasticFilteringTagObject.md)
Create a in-memory object for FilteringTag
Create an in-memory object for FilteringTag.

### [New-AzElasticMonitor](New-AzElasticMonitor.md)
Create a monitor resource.
create a monitor resource.

### [New-AzElasticOpenAi](New-AzElasticOpenAi.md)
Create or update a OpenAI integration rule for a given monitor resource.
create a OpenAI integration rule for a given monitor resource.

### [New-AzElasticTagRule](New-AzElasticTagRule.md)
Create or update a tag rule set for a given monitor resource.
create a tag rule set for a given monitor resource.

### [Remove-AzElasticDetachAndDeleteTrafficFilter](Remove-AzElasticDetachAndDeleteTrafficFilter.md)
Detach and Delete traffic filter from the given deployment.
Expand All @@ -99,11 +99,17 @@ Delete traffic filter from the account.
Detach traffic filter for the given deployment.

### [Update-AzElasticExternalUser](Update-AzElasticExternalUser.md)
Create User inside elastic deployment which are used by customers to perform operations on the elastic deployment
update User inside elastic deployment which are used by customers to perform operations on the elastic deployment

### [Update-AzElasticMonitor](Update-AzElasticMonitor.md)
Update a monitor resource.
update a monitor resource.

### [Update-AzElasticOpenAi](Update-AzElasticOpenAi.md)
update a OpenAI integration rule for a given monitor resource.

### [Update-AzElasticTagRule](Update-AzElasticTagRule.md)
update a tag rule set for a given monitor resource.

### [Update-AzElasticVMCollection](Update-AzElasticVMCollection.md)
Update the vm details that will be monitored by the Elastic monitor resource.
update the vm details that will be monitored by the Elastic monitor resource.

Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20240301.IElasticTrafficFilter
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IElasticTrafficFilterResponse

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IElasticIdentity
Expand Down Expand Up @@ -167,7 +166,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20240301.IBillingInfoResponse
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IBillingInfoResponse

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20240301.IConnectedPartnerResourcesListFormat
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IConnectedPartnerResourcesListFormat

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20240301.IDeploymentInfoResponse
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IDeploymentInfoResponse

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IElasticIdentity
Expand Down Expand Up @@ -157,7 +156,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20240301.IUpgradableVersionsList
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IUpgradableVersionsList

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IElasticIdentity
Expand Down Expand Up @@ -176,7 +175,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20240301.IVMIngestionDetailsResponse
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IVMIngestionDetailsResponse

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20240301.IElasticTrafficFilter
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IElasticTrafficFilterResponse
## NOTES
Expand Down
3 changes: 1 addition & 2 deletions src/Elastic/Elastic.Autorest/docs/Get-AzElasticMonitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IElasticIdentity
Expand Down Expand Up @@ -188,7 +187,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20240301.IElasticMonitorResource
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IElasticMonitorResource

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20240301.IMonitoredResource
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IMonitoredResource

## NOTES

Expand Down
Loading
Loading