Skip to content

Mitigate MI breaking change #24459

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
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
8 changes: 5 additions & 3 deletions src/CustomLocation/CustomLocation.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,19 @@ For information on how to develop for `Az.CustomLocation`, see [how-to.md](how-t
commit: f1180941e238bc99ac71f9535ecd126bb8b77d8f
require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
input-file:
- $(repo)/specification/extendedlocation/resource-manager/Microsoft.ExtendedLocation/preview/2021-08-31-preview/customlocations.json

module-version: 0.1.0
title: CustomLocation
subject-prefix: $(service-name)

identity-correction-for-post: true
disable-transform-identity-type: true
flatten-userassignedidentity: false

directive:
- from: swagger-document
- from: swagger-document
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations/{resourceName}"].delete.responses
transform: >-
return {
Expand All @@ -62,7 +64,7 @@ directive:
}
}

- from: swagger-document
- from: swagger-document
where: $.definitions.customLocationProperties.properties.provisioningState
transform: >-
return {
Expand Down
22 changes: 12 additions & 10 deletions src/ElasticSan/ElasticSan.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ title: ElasticSan
module-version: 0.3.0
subject-prefix: $(service-name)

use-extension:
use-extension:
"@autorest/powershell": "4.x"
enable-parent-pipeline-input: true
disable-transform-identity-type: true
flatten-userassignedidentity: false

# If there are post APIs for some kinds of actions in the RP, you may need to
# If there are post APIs for some kinds of actions in the RP, you may need to
# uncomment following line to support viaIdentity for these post APIs
# identity-correction-for-post: true

Expand All @@ -68,12 +70,12 @@ directive:
alias: ElasticSanName
- where:
subject: VolumeGroup
parameter-name: Name
parameter-name: Name
set:
alias: VolumeGroupName
- where:
subject: Volume
parameter-name: Name
parameter-name: Name
set:
alias: VolumeName
- where:
Expand All @@ -85,7 +87,7 @@ directive:
set:
parameter-name: ForceDelete
- where:
parameter-name: SnapshotName
parameter-name: SnapshotName
set:
parameter-name: Name
- where:
Expand All @@ -106,7 +108,7 @@ directive:
parameter-name: GroupName
set:
parameter-name: VolumeGroupName
- where:
- where:
subject: VolumeSnapshot
verb: Update
remove: true
Expand Down Expand Up @@ -139,14 +141,14 @@ directive:
- where:
subject: ^PrivateEndpointConnection$|^PrivateLinkResource$
hide: true
- where:
- where:
verb: ^New$|^Update$
subject: ^VolumeGroup$
hide: true
- where:
- where:
verb: New
subject: Volume
parameter-name: ManagedByResourceId
subject: Volume
parameter-name: ManagedByResourceId
hide: true
- from: IdentityUserAssignedIdentities.dictionary.cs
where: $
Expand Down