Skip to content

Commit 38e31e8

Browse files
authored
[Az.Elastic] Update generation tool version: autorest.powershell v3->v4 (#27636)
1 parent c532191 commit 38e31e8

File tree

85 files changed

+2522
-687
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+2522
-687
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Elastic")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.2.1")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]
27+

src/Elastic/Elastic.Autorest/README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@ title: Elastic
4343
module-version: 0.1.0
4444
subject-prefix: $elastic
4545

46-
identity-correction-for-post: true
47-
resourcegroup-append: true
48-
49-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
50-
use-extension:
51-
"@autorest/powershell": "3.x"
52-
5346
directive:
5447
# Swagger issue that the ProvisioningState should readonly.
5548
- from: swagger-document
@@ -112,8 +105,16 @@ directive:
112105
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.
113106

114107
- where:
115-
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^UpgradeViaIdentityExpanded$
108+
subject: Monitor|VMCollection|TagRule|OpenAi|ExternalUser
109+
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
110+
remove: true
111+
- where:
116112
subject: Monitor|VMCollection|TagRule
113+
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$|^UpgradeViaIdentityExpanded$|^UpgradeViaJsonFilePath$|^UpgradeViaJsonString$
114+
remove: true
115+
- where:
116+
subject: OrganizationApiKey
117+
variant: ^Get$
117118
remove: true
118119

119120
- where:
@@ -137,6 +138,7 @@ directive:
137138
- Name
138139
- ProvisioningState
139140

140-
# - model-cmdlet:
141-
# - FilteringTag
141+
- model-cmdlet:
142+
- model-name: FilteringTag
143+
cmdlet-name: New-AzElasticFilteringTagObject
142144
```

src/Elastic/Elastic.Autorest/custom/New-AzElasticFilteringTagObject.ps1

Lines changed: 0 additions & 53 deletions
This file was deleted.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
2+
# ----------------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
14+
# is regenerated.
15+
# ----------------------------------------------------------------------------------
16+
17+
<#
18+
.Synopsis
19+
Create an in-memory object for FilteringTag.
20+
.Description
21+
Create an in-memory object for FilteringTag.
22+
23+
.Outputs
24+
Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.FilteringTag
25+
.Link
26+
https://learn.microsoft.com/powershell/module/Az.Elastic/new-azelasticfilteringtagobject
27+
#>
28+
function New-AzElasticFilteringTagObject {
29+
[Microsoft.Azure.PowerShell.Cmdlets.Elastic.ModelCmdletAttribute()]
30+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.FilteringTag')]
31+
[CmdletBinding(PositionalBinding=$false)]
32+
Param(
33+
34+
[Parameter(HelpMessage="Valid actions for a filtering tag.")]
35+
[Microsoft.Azure.PowerShell.Cmdlets.Elastic.PSArgumentCompleterAttribute("Include", "Exclude")]
36+
[string]
37+
$Action,
38+
[Parameter(HelpMessage="The name (also known as the key) of the tag.")]
39+
[string]
40+
$Name,
41+
[Parameter(HelpMessage="The value of the tag.")]
42+
[string]
43+
$Value
44+
)
45+
46+
process {
47+
$Object = [Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.FilteringTag]::New()
48+
49+
if ($PSBoundParameters.ContainsKey('Action')) {
50+
$Object.Action = $Action
51+
}
52+
if ($PSBoundParameters.ContainsKey('Name')) {
53+
$Object.Name = $Name
54+
}
55+
if ($PSBoundParameters.ContainsKey('Value')) {
56+
$Object.Value = $Value
57+
}
58+
return $Object
59+
}
60+
}
61+

src/Elastic/Elastic.Autorest/docs/Az.Elastic.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.Elastic
3-
Module Guid: ac429574-aa9e-48ba-b46c-129fe2b846d2
3+
Module Guid: b2e855f4-b219-475c-9008-e98c5b88a595
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.elastic
55
Help Version: 1.0.0.0
66
Locale: en-US
@@ -63,25 +63,25 @@ List the vm resources currently being monitored by the Elastic monitor resource.
6363
Associate traffic filter for the given deployment.
6464

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

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

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

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

7777
### [New-AzElasticMonitor](New-AzElasticMonitor.md)
78-
Create a monitor resource.
78+
create a monitor resource.
7979

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

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

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

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

104104
### [Update-AzElasticMonitor](Update-AzElasticMonitor.md)
105-
Update a monitor resource.
105+
update a monitor resource.
106+
107+
### [Update-AzElasticOpenAi](Update-AzElasticOpenAi.md)
108+
update a OpenAI integration rule for a given monitor resource.
109+
110+
### [Update-AzElasticTagRule](Update-AzElasticTagRule.md)
111+
update a tag rule set for a given monitor resource.
106112

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

src/Elastic/Elastic.Autorest/docs/Get-AzElasticAllTrafficFilter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
132132
133133
## OUTPUTS
134134
135-
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20240301.IElasticTrafficFilter
135+
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IElasticTrafficFilterResponse
136136
137137
## NOTES
138138

src/Elastic/Elastic.Autorest/docs/Get-AzElasticBillingInfo.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ Accept wildcard characters: False
6666
6767
### -InputObject
6868
Identity Parameter
69-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
7069
7170
```yaml
7271
Type: Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IElasticIdentity
@@ -167,7 +166,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
167166
168167
## OUTPUTS
169168
170-
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20240301.IBillingInfoResponse
169+
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IBillingInfoResponse
171170
172171
## NOTES
173172

src/Elastic/Elastic.Autorest/docs/Get-AzElasticConnectedPartnerResource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
138138
139139
## OUTPUTS
140140
141-
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20240301.IConnectedPartnerResourcesListFormat
141+
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IConnectedPartnerResourcesListFormat
142142
143143
## NOTES
144144

src/Elastic/Elastic.Autorest/docs/Get-AzElasticDeploymentInfo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
138138
139139
## OUTPUTS
140140
141-
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20240301.IDeploymentInfoResponse
141+
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IDeploymentInfoResponse
142142
143143
## NOTES
144144

src/Elastic/Elastic.Autorest/docs/Get-AzElasticDetailUpgradableVersion.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ Accept wildcard characters: False
5656
5757
### -InputObject
5858
Identity Parameter
59-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
6059
6160
```yaml
6261
Type: Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IElasticIdentity
@@ -157,7 +156,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
157156
158157
## OUTPUTS
159158
160-
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.Api20240301.IUpgradableVersionsList
159+
### Microsoft.Azure.PowerShell.Cmdlets.Elastic.Models.IUpgradableVersionsList
161160
162161
## NOTES
163162

0 commit comments

Comments
 (0)