Skip to content

Commit 211c807

Browse files
authored
[Az.HealthcareApis] Update generation tool version: autorest.powershell v3->v4 (#28317)
1 parent aeff3bb commit 211c807

File tree

74 files changed

+4217
-947
lines changed

Some content is hidden

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

74 files changed

+4217
-947
lines changed

src/HealthcareApis/HealthcareApis.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - HealthcareApis")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.1.0")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("2.1.0")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.1.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("2.1.1")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]

src/HealthcareApis/HealthcareApis.Autorest/README.md

Lines changed: 4 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,9 @@ module-version: 0.3.0
3737
title: HealthcareApis
3838
subject-prefix: $(service-name)
3939

40-
resourcegroup-append: true
41-
identity-correction-for-post: true
42-
4340
metadata:
4441
tags: Azure ResourceManager ARM PSModule $(service-name) HealthCare FhirService
4542

46-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
47-
use-extension:
48-
"@autorest/powershell": "3.x"
49-
5043
directive:
5144
- where:
5245
subject-prefix: (^HealthcareApis)(.*)
@@ -56,7 +49,10 @@ directive:
5649
where: $
5750
transform: return $.replace(/ErrorDetailsInternal/g, "InternalErrorDetails")
5851
- where:
59-
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
52+
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
53+
remove: true
54+
- where:
55+
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
6056
remove: true
6157
- where:
6258
verb: Set
@@ -239,120 +235,4 @@ directive:
239235
verb: New
240236
subject: IotConnectorFhirDestination
241237
hide: true
242-
243-
- where:
244-
verb: Get|Update
245-
subject: ApisService
246-
set:
247-
breaking-change:
248-
deprecated-output-properties:
249-
- PrivateEndpointConnection
250-
- AccessPolicy
251-
- AcrConfigurationOciArtifact
252-
- CorConfigurationOrigin
253-
- CorConfigurationMethod
254-
- AcrConfigurationLoginServer
255-
- CorConfigurationHeader
256-
new-output-properties:
257-
- PrivateEndpointConnection
258-
- AccessPolicy
259-
- AcrConfigurationOciArtifact
260-
- CorConfigurationOrigin
261-
- CorConfigurationMethod
262-
- AcrConfigurationLoginServer
263-
- CorConfigurationHeader
264-
change-description: The types of the properties 'PrivateEndpointConnection', 'AccessPolicy', 'AcrConfigurationOciArtifact', 'CorConfigurationOrigin', 'CorConfigurationMethod', 'AcrConfigurationLoginServer', and 'CorConfigurationHeader' will be changed from single object to 'List'.
265-
deprecated-by-version: 9.0.0
266-
deprecated-by-azversion: 15.0.0
267-
change-effective-date: 2025/11/03
268-
269-
- where:
270-
verb: Get|Update
271-
subject: ApisWorkspace
272-
set:
273-
breaking-change:
274-
deprecated-output-properties:
275-
- PrivateEndpointConnection
276-
new-output-properties:
277-
- PrivateEndpointConnection
278-
change-description: The types of the properties 'PrivateEndpointConnection' will be changed from single object to 'List'.
279-
deprecated-by-version: 9.0.0
280-
deprecated-by-azversion: 15.0.0
281-
change-effective-date: 2025/11/03
282-
283-
- where:
284-
verb: Get|Update
285-
subject: DicomService
286-
set:
287-
breaking-change:
288-
deprecated-output-properties:
289-
- PrivateEndpointConnection
290-
- AuthenticationConfigurationAudience
291-
- IdentityType
292-
- IdentityUserAssignedIdentity
293-
new-output-properties:
294-
- PrivateEndpointConnection
295-
- AuthenticationConfigurationAudience
296-
- IdentityType
297-
- IdentityUserAssignedIdentity
298-
change-description: (1)The types of the properties 'PrivateEndpointConnection' and 'AuthenticationConfigurationAudience' will be changed from single object to 'List'. (2)IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.
299-
deprecated-by-version: 9.0.0
300-
deprecated-by-azversion: 15.0.0
301-
change-effective-date: 2025/11/03
302-
303-
- where:
304-
verb: Get|Update
305-
subject: FhirService
306-
set:
307-
breaking-change:
308-
deprecated-output-properties:
309-
- PrivateEndpointConnection
310-
- AccessPolicy
311-
- AcrConfigurationOciArtifact
312-
- CorConfigurationOrigin
313-
- CorConfigurationMethod
314-
- AcrConfigurationLoginServer
315-
- CorConfigurationHeader
316-
- IdentityType
317-
- IdentityUserAssignedIdentity
318-
new-output-properties:
319-
- PrivateEndpointConnection
320-
- AccessPolicy
321-
- AcrConfigurationOciArtifact
322-
- CorConfigurationOrigin
323-
- CorConfigurationMethod
324-
- AcrConfigurationLoginServer
325-
- CorConfigurationHeader
326-
- IdentityType
327-
- IdentityUserAssignedIdentity
328-
change-description: (1)The types of the properties 'PrivateEndpointConnection' and 'AuthenticationConfigurationAudience' will be changed from single object to 'List'. (2)IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.
329-
deprecated-by-version: 9.0.0
330-
deprecated-by-azversion: 15.0.0
331-
change-effective-date: 2025/11/03
332-
333-
- where:
334-
verb: Test
335-
subject: ServiceNameAvailability
336-
variant: CheckViaIdentityExpanded|CheckViaIdentity
337-
set:
338-
breaking-change:
339-
deprecated-by-version: 9.0.0
340-
deprecated-by-azversion: 15.0.0
341-
change-effective-date: 2025/11/03
342-
343-
- where:
344-
verb: Update
345-
subject: IotConnector
346-
set:
347-
breaking-change:
348-
deprecated-output-properties:
349-
- IdentityType
350-
- IdentityUserAssignedIdentity
351-
new-output-properties:
352-
- EnableSystemAssignedIdentity
353-
- UserAssignedIdentity
354-
change-description: IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.
355-
deprecated-by-version: 9.0.0
356-
deprecated-by-azversion: 15.0.0
357-
change-effective-date: 2025/11/03
358238
```

src/HealthcareApis/HealthcareApis.Autorest/custom/New-AzHealthcareApisService.ps1

Lines changed: 49 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ PRIVATEENDPOINTCONNECTION <IPrivateEndpointConnection[]>: The list of private en
4949
https://learn.microsoft.com/powershell/module/az.healthcareapis/new-azhealthcareapisservice
5050
#>
5151
function New-AzHealthcareApisService {
52-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.Api20211101.IServicesDescription])]
53-
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.Api20211101.IServicesDescription", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.IServicesDescription", DeprecatedOutputProperties = ("PrivateEndpointConnection Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.IPrivateEndpointConnection", "AccessPolicy Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.IServiceAccessPolicyEntry", "AcrConfigurationOciArtifact Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.IServiceOciArtifactEntry", "CorConfigurationOrigin System.String[]", "CorConfigurationMethod System.String[]", "AcrConfigurationLoginServer System.String[]", "CorConfigurationHeader System.String[]"), NewOutputProperties = ("PrivateEndpointConnection System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.IPrivateEndpointConnection]", "AccessPolicy System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.IServiceAccessPolicyEntry]", "AcrConfigurationOciArtifact System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.IServiceOciArtifactEntry]", "CorConfigurationOrigin System.Collections.Generic.List`1[System.String]", "CorConfigurationMethod System.Collections.Generic.List`1[System.String]", "AcrConfigurationLoginServer System.Collections.Generic.List`1[System.String]", "CorConfigurationHeader System.Collections.Generic.List`1[System.String]"))]
52+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.IServicesDescription])]
5453
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
5554
param(
5655
[Parameter(Mandatory)]
@@ -72,152 +71,161 @@ function New-AzHealthcareApisService {
7271
# The subscription identifier.
7372
${SubscriptionId},
7473

75-
[Parameter(Mandatory)]
76-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Support.Kind])]
74+
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
75+
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.PSArgumentCompleterAttribute("fhir", "fhir-Stu3", "fhir-R4")]
7776
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
78-
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Support.Kind]
77+
[System.String]
7978
# The kind of the service.
8079
${Kind},
8180

82-
[Parameter(Mandatory)]
81+
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
8382
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
8483
[System.String]
8584
# The resource location.
8685
${Location},
8786

88-
[Parameter()]
87+
[Parameter(ParameterSetName='CreateExpanded')]
8988
[AllowEmptyCollection()]
9089
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
91-
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.Api20211101.IServiceAccessPolicyEntry[]]
90+
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.IServiceAccessPolicyEntry[]]
9291
# The access policies of the service instance.
93-
# To construct, see NOTES section for ACCESSPOLICYOBJECTID properties and create a hash table.
9492
${AccessPolicyObjectId},
9593

96-
[Parameter()]
94+
[Parameter(ParameterSetName='CreateExpanded')]
9795
[AllowEmptyCollection()]
9896
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
9997
[System.String[]]
10098
# The list of the ACR login servers.
10199
${AcrConfigurationLoginServer},
102100

103-
[Parameter()]
101+
[Parameter(ParameterSetName='CreateExpanded')]
104102
[AllowEmptyCollection()]
105103
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
106-
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.Api20211101.IServiceOciArtifactEntry[]]
104+
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.IServiceOciArtifactEntry[]]
107105
# The list of Open Container Initiative (OCI) artifacts.
108-
# To construct, see NOTES section for ACRCONFIGURATIONOCIARTIFACT properties and create a hash table.
109106
${AcrConfigurationOciArtifact},
110107

111-
[Parameter()]
108+
[Parameter(ParameterSetName='CreateExpanded')]
112109
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
113110
[System.Management.Automation.SwitchParameter]
114111
# If credentials are allowed via CORS.
115112
${AllowCorsCredential},
116113

117-
[Parameter()]
114+
[Parameter(ParameterSetName='CreateExpanded')]
118115
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
119116
[System.String]
120117
# The audience url for the service
121118
${Audience},
122119

123-
[Parameter()]
120+
[Parameter(ParameterSetName='CreateExpanded')]
124121
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
125122
[System.String]
126123
# The authority url for the service
127124
${Authority},
128125

129-
[Parameter()]
126+
[Parameter(ParameterSetName='CreateExpanded')]
130127
[AllowEmptyCollection()]
131128
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
132129
[System.String[]]
133130
# The headers to be allowed via CORS.
134131
${CorsHeader},
135132

136-
[Parameter()]
133+
[Parameter(ParameterSetName='CreateExpanded')]
137134
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
138135
[System.Int32]
139136
# The max age to be allowed via CORS.
140137
${CorsMaxAge},
141138

142-
[Parameter()]
139+
[Parameter(ParameterSetName='CreateExpanded')]
143140
[AllowEmptyCollection()]
144141
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
145142
[System.String[]]
146143
# The methods to be allowed via CORS.
147144
${CorsMethod},
148145

149-
[Parameter()]
146+
[Parameter(ParameterSetName='CreateExpanded')]
150147
[AllowEmptyCollection()]
151148
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
152149
[System.String[]]
153150
# The origins to be allowed via CORS.
154151
${CorsOrigin},
155152

156-
[Parameter()]
153+
[Parameter(ParameterSetName='CreateExpanded')]
157154
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
158155
[System.String]
159156
# The URI of the customer-managed key for the backing database.
160157
${CosmosKeyVaultKeyUri},
161158

162-
[Parameter(Mandatory)]
159+
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
163160
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
164161
[System.Int32]
165162
# The provisioned throughput for the backing database.
166163
${CosmosOfferThroughput},
167164

168-
[Parameter()]
165+
[Parameter(ParameterSetName='CreateExpanded')]
169166
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
170167
[System.Management.Automation.SwitchParameter]
171168
# If the SMART on FHIR proxy is enabled
172169
${EnableSmartProxy},
173170

174-
[Parameter()]
171+
[Parameter(ParameterSetName='CreateExpanded')]
172+
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
173+
[System.Management.Automation.SwitchParameter]
174+
# Determines whether to enable a system-assigned identity for the resource.
175+
${EnableSystemAssignedIdentity},
176+
177+
[Parameter(ParameterSetName='CreateExpanded')]
175178
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
176179
[System.String]
177180
# An etag associated with the resource, used for optimistic concurrency when editing it.
178181
${Etag},
179182

180-
[Parameter()]
183+
[Parameter(ParameterSetName='CreateExpanded')]
181184
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
182185
[System.String]
183186
# The name of the default export storage account.
184187
${ExportStorageAccountName},
185188

186-
[Parameter()]
187-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Support.ManagedServiceIdentityType])]
188-
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
189-
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Support.ManagedServiceIdentityType]
190-
# Type of identity being specified, currently SystemAssigned and None are allowed.
191-
${IdentityType},
192-
193-
[Parameter()]
189+
[Parameter(ParameterSetName='CreateExpanded')]
194190
[AllowEmptyCollection()]
195191
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
196-
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.Api10.IPrivateEndpointConnection[]]
192+
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.IPrivateEndpointConnection[]]
197193
# The list of private endpoint connections that are set up for this resource.
198-
# To construct, see NOTES section for PRIVATEENDPOINTCONNECTION properties and create a hash table.
199194
${PrivateEndpointConnection},
200195

201-
[Parameter()]
202-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Support.PublicNetworkAccess])]
196+
[Parameter(ParameterSetName='CreateExpanded')]
197+
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.PSArgumentCompleterAttribute("Enabled", "Disabled")]
203198
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
204-
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Support.PublicNetworkAccess]
199+
[System.String]
205200
# Control permission for data plane traffic coming from public networks while private endpoint is enabled.
206201
${PublicNetworkAccess},
207202

208-
[Parameter()]
203+
[Parameter(ParameterSetName='CreateExpanded')]
209204
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
210-
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.Api20211101.IServicesResourceTags]))]
205+
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Models.IServicesResourceTags]))]
211206
[System.Collections.Hashtable]
212207
# The resource tags.
213208
${Tag},
214209

210+
[Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
211+
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
212+
[System.String]
213+
# Path of Json file supplied to the Create operation
214+
${JsonFilePath},
215+
216+
[Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
217+
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Body')]
218+
[System.String]
219+
# Json string supplied to the Create operation
220+
${JsonString},
221+
215222
[Parameter()]
216223
[Alias('AzureRMContext', 'AzureCredential')]
217224
[ValidateNotNull()]
218225
[Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Category('Azure')]
219226
[System.Management.Automation.PSObject]
220-
# The credentials, account, tenant, and subscription used for communication with Azure.
227+
# The DefaultProfile parameter is not functional.
228+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
221229
${DefaultProfile},
222230

223231
[Parameter()]

0 commit comments

Comments
 (0)