-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[Az.SqlVirtualMachine] Update Autorest v3 to v4 #29156
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
base: main
Are you sure you want to change the base?
Changes from all commits
1bc5510
df28161
2cc73ca
2c91beb
d64f1ac
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 | ||||||
|
||||||
| // Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code | |
| // Code generated by Microsoft (R) AutoRest Code Generator. Changes may cause incorrect behavior and will be lost if the code |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,15 +37,25 @@ try-require: | |
| - $(repo)/specification/sqlvirtualmachine/resource-manager/readme.powershell.md | ||
|
|
||
| inlining-threshold: 100 | ||
| resourcegroup-append: true | ||
| nested-object-to-string: true | ||
| identity-correction-for-post: 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" | ||
| disable-transform-identity-type: true | ||
|
|
||
| directive: | ||
| - remove-operation: | ||
| - SqlVirtualMachineGroups_Update | ||
| - from: swagger-document | ||
| where: $.definitions.SqlVirtualMachineGroupProperties.properties.wsfcDomainProfile | ||
| transform: $['x-ms-mutability'] = ["read", "update", "create"] | ||
| - from: swagger-document | ||
|
Comment on lines
42
to
+48
|
||
| where: $.definitions.WsfcDomainProfile.properties..x-ms-mutability | ||
| transform: >- | ||
| return [ | ||
| "read", | ||
| "update", | ||
| "create" | ||
| ] | ||
| - from: swagger-document | ||
| where: $.definitions.SqlVirtualMachineProperties.properties.sqlVirtualMachineGroupResourceId | ||
| transform: $['x-ms-mutability'] = ["read", "update", "create"] | ||
| #1. [swagger] define password parameters as password type | ||
| - from: swagger-document | ||
| where: $.definitions..storageAccountPrimaryKey | ||
|
|
@@ -134,8 +144,8 @@ directive: | |
| hide: true | ||
| #8. [cmdlet] add model cmdlet | ||
| - model-cmdlet: | ||
| - AgReplica | ||
| - MultiSubnetIPConfiguration | ||
| - model-name: AgReplica | ||
| - model-name: MultiSubnetIPConfiguration | ||
| #9. [parameter] rename parameters | ||
| - where: | ||
| parameter-name: SqlVirtualMachineGroupName | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The license header comment contains doubled quotes (e.g., ""License"", ""AS IS"") which reduces readability and looks like an escaping artifact. Please update these comment strings to the standard Apache 2.0 header wording with normal quotes.